OSDN Git Service

* collect2.c (main): Add -fno-whole-program.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-07  Jan Hubicka  <jh@suse.cz>
2
3         * collect2.c (main): Add -fno-whole-program.
4         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
5
6 2009-10-07  Jan Hubicka  <jh@suse.cz>
7
8         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones has
9         no address taken.
10         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
11         never needed.
12         (cgraph_clone_node): Clear externally_visible flag for clones.
13         * cgraph.h (cgraph_only_called_directly_p,
14         cgraph_can_remove_if_no_direct_calls_p): New predicates.
15         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
16         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
17         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
18         ipcp_insert_stage): Likwise.
19         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
20         externally_visible flag.
21         (verify_cgraph_node): Verify that inline clones look right.
22         (process_function_and_variable_attributes): Do not set
23         externally_visible flags.
24         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
25         been already run.
26         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
27         boundaries.
28         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
29         clear externally_visible when turning into inline clones
30         (cgraph_mark_inline_edge): Use new predicates.
31         (cgraph_estimate_growth): Likewise.
32         (cgraph_decide_inlining): Likewise.
33         * ipa.c (cgraph_postorder): Likewise.
34         (cgraph_remove_unreachable_nodes): Likewise; sanity check
35         that inline clones are not needed.
36         (cgraph_externally_visible_p): New predicate.
37         (function_and_variable_visibility): Add whole_program parameter;
38         always set externally_visible flag; handle COMDAT function
39         privatization.
40         (local_function_and_variable_visibility): New function.
41         (gate_whole_program_function_and_variable_visibility): New function.
42         (whole_program_function_and_variable_visibility): New function.
43         (pass_ipa_whole_program_visibility): New function.
44         * passes.c  (init_optimization_passes): Add whole program visibility
45         pass.
46         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
47         not care about needed/reachable flags.
48         * varpool.c: Include flags.h
49         (decide_is_variable_needed): When doing LTO assume whole-program mode.
50         (varpool_finalize_decl): When we are in LTO read-back, all variables
51         are analyzed.
52         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
53
54 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
55
56         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
57         add MASK_HARD_DFP.
58
59 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
60
61         * config.gcc: Don't include the makefile fragments intended for
62         libgcc.
63         * config/s390/fixdfdi.h: File removed.
64         * config/s390/libgcc-glibc.ver: File removed.
65         * config/s390/s390.h: Remove the fixdfdi.h hack.
66         * config/s390/t-crtstuff: File moved to libgcc dir.
67         * config/s390/t-linux: Likewise.
68         * config/s390/t-tpf: libgcc specific parts removed.
69         * config/s390/t-linux64: Likewise.
70
71 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
72
73         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
74         (lto-compress.o): Likewise.
75
76 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
77
78         PR target/41512
79         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
80         dllexport to class members here.
81         (i386_pe_determine_dllimport_p): Only check static class data for
82         definition.
83         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
84         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
85         functions for vague linkage.
86         (i386_pe_type_dllexport_p): Fix formatting.
87         (maybe_add_dllexport) New function.
88         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
89         to class members.
90         
91         2009-10-07  Ben Elliston  <bje@au.ibm.com>
92
93         * config/rs6000/a2.md: Remove duplicated lines.
94
95 2009-10-07  Ben Elliston  <bje@au.ibm.com>
96
97         * config.gcc (powerpc*-*-*): Handle a2.
98         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
99         * config/rs6000/a2.md: New file.
100         * config/rs6000/rs6000.opt (mno-update): New.
101         (mupdate): Return to using a mask, not a var.
102         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
103         (enum processor_type): Add PROCESSOR_PPCA2.
104         * config/rs6000/rs6000.c (ppca2_cost): New costs.
105         (rs6000_override_options): Add "a2" to processor_target_table.
106         Update rs6000_always_hint logic.  Correctly set rs6000_cost for
107         a2.
108         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
109         -mcpu=a2.
110
111 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
112
113         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
114         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
115         reference to nonexistent gen_truncxfxf2 function.
116
117 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
118
119         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
120         (DWIH, g, di, doubleint_general_operand): New mode attributes.
121         (general_operand): Handle TI mode.
122         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
123         using SDWIM mode iterator.
124         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
125         pattern from *add{di,ti}3_1 patterns and corresponding splitters
126         using DWI mode iterator.
127         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
128         patterns using SWI mode iterator.
129         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
130         using SWI48 mode iterator.
131         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
132         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
133         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
134         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
135         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
136         using SDWIM mode iterator.
137         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
138         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
139         using DWI mode iterator.
140         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
141         patterns using SWI mode iterator.
142         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
143         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
144         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
145         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
146         patterns using plusminus code iterator.
147         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
148         sub<mode>3 patterns using plusminus code iterator.
149         * config/i386/i386.c (override_options): Update call to
150         gen_subdi_carry_rex64 for renamed function.
151         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
152         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
153         calls to instruction expanders.
154
155 2009-10-06  Martin Jambor  <mjambor@suse.cz>
156
157         PR bootstrap/41395
158         * opts.c (decode_options): Run IPA-SRA at -O2.
159
160 2009-10-06  Richard Guenther  <rguenther@suse.de>
161
162         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
163
164 2009-10-06  Tobias Burnus  <burnus@net-b.de>
165
166         PR lto/41591
167         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
168         -flto and -fwhole-program flags can be combined.
169
170 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
171
172         PR driver/41217
173         * gcc.c (process_command): Check that -o argument was specified.
174
175 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
176
177         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix
178         compilation.
179
180 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
181
182         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
183         * doc/invoke.texi (Warning Options): Annotate allowed languages
184         for -Wunsuffixed-float-constants.
185
186 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
187
188         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
189         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
190         same name and isn't the main variant.
191
192         PR debug/41558
193         * dwarf2out.c (loc_by_reference): Removed.
194         (dw_loc_list_1): New function.
195         (dw_loc_list): Remove toplev argument, add want_address argument.
196         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
197         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
198         want_address == 2 to dw_loc_list.  For successful dw_loc_list
199         set have_address to 1 only if want_address is not 0.
200
201 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
202
203         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
204         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
205         a code block followed by two pointers.
206         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
207         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
208         (MIPS_MOVE): Likewise.
209         (MIPS_LUI): Likewise.
210         (MIPS_JR): Likewise.
211         (MIPS_BAL): Likewise.
212         (MIPS_NOP): Likewise.
213         (mips_asm_trampoline_template): Delete.
214         (mips_trampoline_code_size): New function.
215         (mips_trampoline_init): Add shorter sequences for all cases
216         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
217         Calculate the opcodes directly, rather than copying from a template.
218         Only flush the code part of the trampoline.
219         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
220
221 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
222
223         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
224         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
225         (INCOMING_RETURN_ADDR_RTX): Likewise.
226         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
227         with AT_REGNUM.
228         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
229         with RETURN_ADDR_REGNUM.
230         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
231         * config/mips/mips.c (mips16_build_call_stub): Replace
232         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
233         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
234         (mips_print_operand_punctuation): Likewise.
235         (mips_frame_set): Likewise.
236         (mips16e_output_save_restore): Likewise.
237         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
238         (mips_save_reg_p): Likewise.
239         (mips_return_addr): Likewise.
240         (mips_set_return_address): Likewise.
241         (mips_direct_save_slot_move_p): Likewise.
242         (mips_output_function_prologue): Likewise.
243         (mips_restore_reg): Likewise.
244         (mips_expand_epilogue): Likewise.
245         (mips_epilogue_uses): Likewise.
246         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
247         (*mov<mode>_ra): Use it instead of a hard-coded 31.
248         (clear_hazard_<mode>): Likewise.
249         (call_internal): Likewise.
250         (call_internal_direct): Likewise.
251         (call_direct_split): Likewise.
252         (call_value_internal): Likewise.
253         (call_value_split): Likewise.
254         (call_value_internal_direct): Likewise.
255         (call_value_direct_split): Likewise.
256         (call_value_multiple_internal): Likewise.
257         (call_value_multiple_split): Likewise.
258
259 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
260             Jakub Jelinek  <jakub@redhat.com>
261
262         PR rtl-optimization/41511
263         * combine.c (record_value_for_reg): Pass explicit values as argument
264         to get_last_value_validate.
265         (get_last_value_validate): Document INSN parameter.
266         For non-readonly MEMs, assume they might have been modified if INSN
267         was in another basic block.
268         (get_last_value): Minor reformatting.
269
270 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
271
272         PR tree-opt/40992
273         * final.c (asm_str_count): Split out from asm_insn_count.
274         * rtl.h (asm_str_count): New prototype.
275         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
276         asm_str_count.
277
278 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
279
280         * doc/plugins.texi: Change plugin_pass to register_pass_info.
281
282 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
283             Rafael Espindola  <espindola@google.com>
284
285         * gengtype.c (write_types): Moved call to write_func_for_structure
286         into seperate loops.
287
288 2009-10-05  Richard Guenther  <rguenther@suse.de>
289
290         PR lto/41281
291         * lto-cgraph.c (output_cgraph): Output toplevel asms.
292         (input_cgraph_1): Input toplevel asms.
293
294 2009-10-05  Richard Guenther  <rguenther@suse.de>
295
296         PR lto/40902
297         * lto-symtab.c (lto_compatible_attributes_p): Remove.
298         (external_aggregate_decl_p): Likewise.
299         (lto_symtab_compatible): Re-structure.  Remove dead code.
300         For variables ignore toplevel qualifiers when comparing types.
301         Issue warnings, not errors for mismatched user-alignment.
302
303 2009-10-05  Richard Guenther  <rguenther@suse.de>
304
305         PR lto/41552
306         PR lto/41487
307         * lto-symtab.c (struct lto_symtab_base_def): Remove.
308         (struct lto_symtab_identifier_def): Likewise.
309         (struct lto_symtab_decl_def): Likewise.
310         (struct lto_symtab_entry_def): New.
311         (lto_symtab_identifier_t): Rename to ...
312         (lto_symtab_entry_t): ... this.
313         (lto_symtab_decls): Remove.
314         (lto_symtab_base_hash): Rename to ...
315         (lto_symtab_entry_hash): ... this.
316         (lto_symtab_base_eq): Rename to ...
317         (lto_symtab_entry_eq): ... this.
318         (lto_symtab_base_marked_p): Rename to ...
319         (lto_symtab_entry_marked_p): ... this.
320         (lto_symtab_identifier_marked_p): Remove.
321         (lto_symtab_decl_marked_p): Likewise.
322         (lto_symtab_maybe_init_hash_tables): Rename to ...
323         (lto_symtab_maybe_init_hash_table): ... this.
324         (lto_symtab_set_resolution_and_file_data): Remove.
325         (lto_symtab_register_decl): New function.
326         (lto_symtab_get_identifier): Remove.
327         (lto_symtab_get): New function.
328         (lto_symtab_get_resolution): Adjust.
329         (lto_symtab_get_identifier_decl): Remove.
330         (lto_symtab_set_identifier_decl): Likewise.
331         (lto_symtab_merge_decl): Rename to ...
332         (lto_symtab_merge): ... this.  Rewrite.
333         (lto_symtab_merge_var): Remove.
334         (lto_symtab_merge_fn): Likewise.
335         (lto_symtab_prevailing_decl): Adjust.
336         (lto_cgraph_replace_node): New function.
337         (lto_symtab_merge_decls_2): Likewise.
338         (lto_symtab_merge_decls_1): Likewise.
339         (lto_symtab_fixup_var_decls): Likewise.
340         (lto_symtab_resolve_symbols): Likewise.
341         (lto_symtab_merge_decls): Likewise.
342         (lto_symtab_prevailing_decl): Adjust.
343         (lto_symtab_get_symtab_def): Remove.
344         (lto_symtab_get_file_data): Likewise.
345         (lto_symtab_clear_resolution): Adjust.
346         (lto_symtab_clear_resolution): Likewise.
347         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
348         (input_cgraph_1): Likewise.
349         * lto-streamer-in.c (get_resolution): Do not provide fake
350         symbol resolutions here.
351         (deferred_global_decls): Remove.
352         (lto_register_deferred_decls_in_symtab): Likewise.
353         (lto_register_var_decl_in_symtab): Change signature, register
354         variable via lto_symtab_register_decl.
355         (lto_register_function_decl_in_symtab): Likewise.
356         (lto_read_tree): Adjust.
357         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
358         (lto_symtab_merge_var): Likewise.
359         (lto_symtab_merge_fn): Likewise.
360         (lto_symtab_register_decl): Declare.
361         (lto_symtab_merge_decls): Likewise.
362
363 2009-10-05  Richard Guenther  <rguenther@suse.de>
364
365         PR tree-optimization/23821
366         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
367         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
368         simple IV increments.
369
370 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
371
372         * config/arm/arm.c (arm_override_options): Really initialize
373         flag_dwarf2_cfi_asm to 0.
374
375 2009-10-05  Doug Kwan  <dougkwan@google.com>
376
377         PR rtl-optimization/41574
378         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
379         floating point and we are not doing unsafe math optimizations.
380
381 2009-10-03  Simon Baldwin  <simonb@google.com>
382             Cary Coutant  <ccoutant@google.com>
383             Rafael Espindola  <espindola@google.com>
384             Richard Guenther  <rguenther@suse.de>
385             Jan Hubicka  <jh@suse.cz>
386             Doug Kwan <dougkwan@google.com>
387             H.J. Lu  <hongjiu.lu@intel.com>
388             Bill Maddox  <maddox@google.com>
389             Ryan Mansfield  <rmansfield@qnx.com>
390             Diego Novillo  <dnovillo@google.com>
391             Ollie Wild  <aaw@google.com>
392             Kenneth Zadeck <zadeck@naturalbridge.com>
393
394         * lto-cgraph.c: New file.
395         * lto-compress.c: New file.
396         * lto-compress.h: New file.
397         * lto-opts.c: New file.
398         * lto-section-in.c: New file.
399         * lto-section-out.c: New file.
400         * lto-streamer-in.c: New file.
401         * lto-streamer-out.c: New file.
402         * lto-streamer.c: New file.
403         * lto-streamer.h: New file.
404         * lto-symtab.c: New file.
405         * lto-wpa-fixup.c: New file.
406         * lto-wrapper.c: New file.
407
408 2009-10-03  Simon Baldwin  <baldwin@google.com>
409             Ben Elliston  <bje@au.ibm.com>
410             Rafael Espindola  <espindola@google.com>
411             Nathan Froyd  <froydnj@codesourcery.com>
412             Jan Hubicka  <jh@suse.cz>
413             Doug Kwan  <dougkwan@google.com>
414             Diego Novillo  <dnovillo@google.com>
415             Kenneth Zadeck  <zadeck@naturalbridge.com>
416
417         * Makefile.in (enable_lto): New.
418         (site.exp): If @enable_lto@ is set to 'yes' define
419         ENABLE_LTO.
420         (LINKER_PLUGIN_API_H): Define.
421         (LTO_SYMTAB_H): Define.
422         (LTO_STREAMER_H): Define.
423         (TREE_VECTORIZER_H): Define.
424         (INCLUDES): Add LIBELFINC.
425         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
426         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
427         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o,
428         lto-compress.o.
429         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
430         (native): Add lto-wrapper$(exeext)
431         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
432         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
433         lto-symtab.o, lto-opts.o, lto-streamer.o,
434         lto-wpa-fixup.o): New rules.
435         (gimple.o): Add dependency on LTO_HEADER_H and
436         LTO_SECTION_OUT_H.
437         (varasm.o): Add dependency on tree-iterator.h.
438         (cgraph.o): Add dependency on cif-code.def.
439         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
440         (ipa-pure-const.o): Likewise.
441         (GTFILES): Add lto-symtab.c.
442         (install-lto-wrapper): New.
443         * configure.ac: If 'lto' is in enable_languages, define
444         ENABLE_LTO and enable_lto.
445         If LIBELFLIBS is set, define HAVE_libelf.
446         * config.in: Regenerate.
447
448 2009-10-03  Rafael Espindola  <espindola@google.com>
449             Diego Novillo  <dnovillo@google.com>
450
451         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
452         ipa_write_summaries.
453         Call execute_ipa_summary_passes for all_regular_ipa_passes and
454         all_lto_gen_passes.
455         (cgraph_optimize): Make extern.
456
457 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
458             Kenneth Zadeck <zadeck@naturalbridge.com>
459
460         * toplev.c (in_lto_p): Declare.
461         * collect2.c (scan_prog_file): Read all the output when reading
462         information for LTO.
463         (enum lto_mode_d): Declare.
464
465 2009-10-03  Richard Guenther  <rguenther@suse.de>
466             Diego Novillo  <dnovillo@google.com>
467
468         * gimple.c: Include target.h and alias.h.
469         (gimple_types): Declare.
470         (type_hash_cache): Declare.
471         (gimple_alloc_stat): Make extern.
472         (gimple_build_eh_must_not_throw): Call
473         gimple_eh_must_not_throw_set_fndecl.
474         (struct type_pair_d): Declare.
475         (type_pair_t): Declare.
476         (type_pair_hash): New.
477         (type_pair_eq): New.
478         (lookup_type_pair): New.
479         (gimple_force_type_merge): New.
480         (compare_type_names_p): New.
481         (compare_field_offset): New.
482         (gimple_types_compatible_p): New.
483         (struct sccs): Declare.
484         (next_dfs_num): Declare.
485         (iterative_hash_gimple_type): New.
486         (visit): New.
487         (iterative_hash_type_name): New.
488         (iterative_hash_gimple_type): New.
489         (gimple_type_hash): New.
490         (gimple_type_eq): New.
491         (gimple_register_type): New.
492         (print_gimple_types_stats): New.
493         (gimple_signed_or_unsigned_type): New.
494         (gimple_unsigned_type): New.
495         (gimple_signed_type): New.
496         (gimple_get_alias_set): New.
497         (gimple_decl_printable_name): Do not use DMGL_TYPES.
498         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
499         (gimple_force_type_merge): Declare.
500         (gimple_types_compatible_p): Declare.
501         (gimple_register_type): Declare.
502         (print_gimple_types_stats): Declare.
503         (gimple_unsigned_type): Declare.
504         (gimple_signed_type): Declare.
505         (gimple_get_alias_set): Declare.
506         (gimple_eh_must_not_throw_set_fndecl): New.
507
508 2009-10-03  Jan Hubicka  <jh@suse.cz>
509             Kenneth Zadeck <zadeck@naturalbridge.com>
510
511         * ipa-pure-const.c: Include lto-streamer.h.
512         (register_hooks): Factor out of ...
513         (generate_summary): ... here.
514         (pure_const_write_summary): New.
515         (pure_const_read_summary): New.
516         (pass_ipa_pure_const): Add pure_const_write_summary and
517         pure_const_read_summary.
518         * ipa-reference.c: Include lto-streamer.h.
519         (add_new_function): New.
520         (remove_node_data): New.
521         (duplicate_node_data): New.
522         (ipa_init): Guard against multiple calls.
523         Move hook setup from analyze_function.
524         (write_node_summary_p): New.
525         (ipa_reference_write_summary): New.
526         (ipa_reference_read_summary): New.
527         (pass_ipa_reference): Add ipa_reference_write_summary and
528         ipa_reference_read_summary.
529         * cgraph.h (cgraph_local_info): Add field lto_file_data.
530         (struct cgraph_edge): Add fields lto_stmt_uid and
531         call_stmt_cannot_inline_p.
532         (cgraph_optimize): Declare.
533         (cgraph_decide_is_function_needed): Declare.
534         (reset_inline_failed): Declare.
535         (enum LTO_cgraph_tags): Declare.
536         (LTO_cgraph_tag_names): Declare.
537         (LCC_NOT_FOUND): Define.
538
539 2009-10-03  Doug Kwan  <dougkwan@google.com>
540             Rafael Espindola  <espindola@google.com>
541             Jan Hubicka  <jh@suse.cz>
542             Diego Novillo  <dnovillo@google.com>
543             Kenneth Zadeck  <zadeck@naturalbridge.com>
544
545         * passes.c (all_regular_ipa_passes): New.
546         (all_ipa_passes): Rename to all_small_ipa_passes.
547         (init_optimization_passes): Init all_regular_ipa_passes.
548         * tree-pass.h (all_regular_ipa_passes): New.
549         (all_ipa_passes): Rename to all_small_ipa_passes.
550         * passes.c (all_lto_gen_passes): New.
551         (init_optimization_passes): Initialize all_lto_gen_passes.
552         (execute_ipa_summary_passes): Make non-static.
553         (ipa_write_summaries_1): New.
554         (ipa_write_summaries_2): New.
555         (ipa_write_summaries): New.
556         (ipa_write_summaries_of_cgraph_node_set): New.
557         (ipa_read_summaries_1): New.
558         (ipa_read_summaries): New.
559         (execute_ipa_pass_list): Call cgraph_process_new_functions.
560         (execute_regular_ipa_pass_list): Remove.
561         (init_optimization_passes): Schedule
562         pass_rebuild_cgraph_edges and pass_early_inline outside
563         of pass_all_early_optimizations.  Document reason.
564         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
565         pass_ipa_lto_finish_out): New pass.
566         (pass_ipa_summary_passes): Start and stop timers if the pass
567         has them.
568         (execute_all_ipa_transforms): New.
569         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
570         (dump_properties, debug_properties): New.
571         * tree-optimize.c (gate_all_early_local_passes): Return
572         false if we are in lto1.
573         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
574         * tree-pass.h (execute_all_ipa_transforms): Declare.
575         (pass_ipa_function_and_variable_visibility): Declare.
576         (pass_ipa_early_inline): Declare.
577         (pass_ipa_lto_gimple_out): Declare.
578         (pass_ipa_lto_wpa_fixup): Declare.
579         (pass_ipa_lto_finish_out): Declare.
580         (all_small_ipa_passes, all_regular_ipa_passes,
581         all_lto_gen_passes): Declare.
582         (execute_ipa_summary_passes): Declare.
583         (execute_all_ipa_transforms): Declare.
584         (ipa_write_summaries): Declare
585         (ipa_write_summaries_of_cgraph_node_set): Declare.
586         (ipa_read_summaries): Declare.
587
588 2009-10-03  Doug Kwan  <dougkwan@google.com>
589             Ollie Wild  <aaw@google.com>
590
591         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do
592         nothing in WPA.
593
594         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
595         (lto_mode): New variable.
596         (maybe_run_lto_and_relink): Handle the -fwpa option.
597         (main): Handle the -fwpa option.
598         (maybe_unlink_list): New function.
599         * gcc.c (link_lto_options): Replace -flto with -fwpa.
600         * common.opt (flto): New flag.
601         * toplev.c (flag_generate_lto): Declare.
602
603 2009-10-03  Simon Baldwin  <simonb@google.com>
604
605         * common.opt (flto-compression-level): New flag.
606
607         * opts.c: Include lto-opts.h.
608         (handle_option): Call lto_register_user_option for each
609         valid option handled.
610         * (decode_options): Clear registered options before the options
611         handling loop.
612
613 2009-10-03  Cary Coutant  <ccoutant@google.com>
614
615         * collect2.c (is_elf): New function.
616         (scan_prog_file): Require LTO object to be in ELF format.
617
618 2009-10-03  Rafael Espindola  <espindola@google.com>
619
620         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
621         libgcc to the linker.
622
623         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is
624         running.
625
626         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
627         (collect_execute): Add flags argument. Pass flags to pex_run. Update
628         all callers.
629         * collect2.h (collect_execute): Add flags argument.
630         * tlink.c (tlink_execute): Update call to collect_execute.
631         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
632         (use_linker_plugin): New.
633         (use_linker_plugin_spec_function): New.
634         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
635         (linker_plugin_file_spec): New.
636         (lto_wrapper_spec): New.
637         (lto_gcc_spec): New.
638         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
639         (static_spec_functions): Add use-linker-plugin.
640         (process_command): Handle -use-linker-plugin.
641         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
642         linker_plugin_file_spec and lto_gcc_spec.
643         (use_linker_plugin_spec_function): New.
644
645 2009-10-03  Richard Guenther  <rguenther@suse.de>
646
647         PR lto/41547
648         PR lto/41548
649         * tree.h (is_lang_specific): Include LANG_TYPE.
650         * tree.c (find_decls_types_r): Manually add interesting parts
651         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
652
653         * gimple.c (type_pair_hash): Make symmetric.
654         (type_pair_eq): Likewise.
655         (lookup_type_pair): Increase initial hashtable size.
656         (gimple_force_type_merge): Rely on type-pair symmetry.
657         (visit): Remove excessive checking code.
658         (iterative_hash_type_name): Do not hash TYPE_NAME of
659         anonymous unions.
660         (gimple_register_type): Remove getenv calls, shrink initial
661         hashtable size.
662
663         PR middle-end/41502
664         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
665         inline functions if not generating lto output.
666
667         PR lto/41379
668         * toplev.c (finalize): In WPA mode remove the asm file.
669
670 2009-10-03  Doug Kwan  <dougkwan@google.com>
671
672         * ipa-inline.c (cgraph_mark_inline): Check
673         edge->call_stmt_cannot_inline_p instead of calling
674         gimple_call_cannot_inline_p.
675         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
676         (cgraph_gate_ipa_early_inlining): Return false if
677         in_lto_p is set.
678         (inline_generate_summary): Do nothing in LTRANS.
679         * cgraph.c (initialize_inline_failed): Make sure
680         e->call_stmt exists before calling
681         gimple_call_cannot_inline_p.
682         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
683         (cgraph_clone_edge): Add argument STMT_UID.  Modify all
684         callers.
685         Update new_edge->lto_stmt_uid.
686         * cgraphbuild.c (reset_inline_failed): New.
687
688         * common.opt (fwpa): New flag.
689         (fltrans): New option.
690         * gcc.c (gcc_lto_option_t): New type.
691         (current_lto_option): New variable.
692         (lto_single_spec_function): Remove and is replaced by ..
693         (lto_option_spec_function): New function.
694         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
695         passing the -flto flag.
696         (cc1_options): Separate non-LTO related parts into ..
697         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
698         (lto1_options): New spec for lto FE.
699         (link_lto_options): New spec for handling LTO flags in linker.
700         (invoke_lto_single): Re-format to fit in 80 column.  Replace
701         lto-single with lto-option.
702         (static_specs): Add cc1_non_lto_options, lto1_options and
703         link_lto_options.
704         (static_spec_function): Replace lto-single with lto-option.
705         (process_command): Handle -flto, -fwpa and -fltran
706         by setting current_lto_option and not passing it to subprocess
707         unconditionally.
708
709 2009-10-03  Bill Maddox  <maddox@google.com>
710
711         Add `gcc' driver support for link-time code generation (LTO).
712
713         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
714         (lto_flag, lto_objects, lto_o_file): New variables.
715         (struct lto_object, struct lto_object_list): New structures.
716         (collect_exit, handler): Remove LTO temporary output file on exit.
717         (add_lto_object): New function.
718         (maybe_run_lto_and_relink): New function. Perform link time code
719         generation and relinking for object files containing LTO information.
720         (main): Invoke maybe_run_lto_and_relink().
721         (dump_argv): New function.  For debugging, currently disabled.
722         (scan_prog_file): Add LTO information pass.
723         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
724         collect2.
725         * toplev.c (compile_file): Emit assembler directive to create
726         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
727
728 2009-10-03  Diego Novillo  <dnovillo@google.com>
729
730         * c.opt: Add LTO to warn_abi and warn_psabi.
731
732         * tree.c (fld_worklist_push): Rename from PUSH.
733         Convert to static inline function.
734         Ignore language-specific nodes.
735         Update all users.
736         (find_decls_types_r): Do not traverse the subtrees of
737         language-specific nodes.
738         Do not traverse DECL_INITIAL for TYPE_DECLs.
739         * tree.h (is_lang_specific): New.
740         * langhooks.h (struct lang_hooks_for_decls): Remove
741         may_need_assembler_name_p.  Update all users.
742
743         * c-common.c (set_builtin_user_assembler_name): Move ...
744         * builtins.c (set_builtin_user_assembler_name): ... here.
745         (is_builtin_name): Add comment
746         (is_builtin_fn): New.
747         * except.c (output_ttype): Only call
748         lookup_type_for_runtime if TYPE is not a runtime type.
749
750         * passes.c (register_pass): Call position_pass on
751         all_small_ipa_passes, all_regular_ipa_passes and
752         all_lto_gen_passes.
753         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
754         (TV_IPA_LTO_DECL_IO): Define.
755         (TV_IPA_LTO_CGRAPH_IO): Define.
756         (TV_LTO): Define.
757         (TV_WHOPR_WPA): Define.
758         (TV_WHOPR_WPA_IO): Define.
759         (TV_WHOPR_LTRANS): Define.
760         (TV_WHOPR_WPA_FIXUP): Define.
761         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
762         * tree-cfg.c (tree_node_can_be_shared): Make extern.
763         * tree-flow.h (tree_node_can_be_shared): Declare.
764         * tree-inline.c (tree_can_inline_p): Check that E has a
765         statement associated with it.
766         * tree.c (free_lang_data_in_binf): Factor out of ...
767         (free_lang_data_in_type): ... here.
768         Call RECORD_OR_UNION_TYPE_P.
769         (need_assembler_name_p): Ignore DECL if it does not have
770         TREE_PUBLIC set.
771         Call lang_hooks.decls.may_need_assembler_name_p if set.
772         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for
773         CONST_DECLs.
774         (free_lang_data): Set debug_info_level to
775         DINFO_LEVEL_NONE.
776         Set write_symbols to NO_DEBUG.
777         Set debug_hooks to do_nothing_debug_hooks.
778         (gate_free_lang_data): Return true if flag_generate_lto
779         is set.
780         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
781         * c-common.h (set_builtin_user_assembler_name): Move ...
782         * tree.h (set_builtin_user_assembler_name): ... here.
783
784         * common.opt (flto-report): New flag.
785         * opts.c (complain_wrong_lang): Do not complain if
786         running lto1.
787         * collect2.c (scan_prog_file): Send the error output of
788         'nm' to HOST_BIT_BUCKET.
789
790 2009-10-03  Ollie Wild  <aaw@google.com>
791
792         * langhooks-def.h (lhd_begin_section): New function declaration.
793         (lhd_write_section): New function declaration.
794         (lhd_end_section): New function declaration.
795         (LANG_HOOKS_BEGIN_SECTION): New macro.
796         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
797         (LANG_HOOKS_END_SECTION): New macro.
798         (LANG_HOOKS_LTO): New macro.
799         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
800         * langhooks.c (output.h): Add include.
801         (saved_section): New static variable.
802         (lhd_begin_section): New function.
803         (lhd_write_section_data): New function.
804         (lhd_end_section): New function.
805         * langhooks.h (struct lang_hooks_for_lto): New structure.
806         (struct lang_hooks): Add member lto.
807         * Makefile.in (langhooks.o): Add dependency on output.h.
808
809         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
810
811 2009-10-03  Richard Guenther  <rguenther@suse.de>
812
813         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
814         Handle LTO.
815
816 2009-10-03  Simon Baldwin  <simonb@google.com>
817             Richard Guenther  <rguenther@suse.de>
818             Janis Johnson  <janis187@us.ibm.com>
819             Doug Kwan  <dougkwan@google.com>
820             Diego Novillo  <dnovillo@google.com>
821             Ramana Radhakrishnan  <ramana.r@gmail.com>
822             Ollie Wild  <aaw@google.com>
823
824         * doc/install.texi: Add documentation for libelf and --enable-lto.
825         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr,
826         -fltrans, -flto-report, -flto-compression-level and
827         -use-linker-plugin.
828         * doc/sourcebuild.texi: Document use of zlib.
829         Document lto-plugin.
830         Add section for LTO Testing.
831
832 2009-10-02  Cary Coutant  <ccoutant@google.com>
833
834         Add support for comdat type sections for DWARF v4.  Merge from dwarf4
835         branch.
836         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
837         (dw_die_ref): Define vector type.
838         (enum dw_val_class): Add dw_val_class_data8.
839         (struct dw_val_struct): Add v.val_data8.
840         (comdat_type_node_ref): New type.
841         (struct die_struct): Move die_symbol into a union; add new field
842         die_type_node.  Change all uses.
843         (comdat_type_node): New type.
844         (skeleton_chain_node): New type.
845         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
846         (comdat_type_list): New variable.
847         (dwarf_tag_name): Add DW_TAG_type_unit.
848         (dwarf_attr_name): Add DW_AT_signature.
849         (add_AT_data8): New function.
850         (replace_child): New function.
851         (move_all_children): New function.
852         (print_signature): New function.
853         (print_die): Print signature information; add dw_val_class_data8.
854         (attr_checksum): Support dw_val_class_data8.
855         (CHECKSUM_STRING): Redefine for DWARF-4 to include
856         trailing NULL byte.
857         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
858         (checksum_sleb128, checksum_uleb128): New functions.
859         (checksum_die_context): New function.
860         (loc_checksum_ordered): New function.
861         (attr_checksum_ordered): New function.
862         (struct checksum_attributes): New structure.
863         (collect_checksum_attributes): New function.
864         (die_checksum_ordered): New function.
865         (generate_type_signature): New function.
866         (same_dw_val_p): Add dw_val_class_data8.
867         (is_symbol_die): Use new is_declaration_die function.
868         (is_declaration_die): New function.
869         (should_move_die_to_comdat): New function.
870         (clone_die): New function.
871         (clone_tree): New function.
872         (clone_as_declaration): New function.
873         (copy_declaration_context): New function.
874         (generate_skeleton_ancestor_tree): New function.
875         (generate_skeleton_bottom_up): New function.
876         (generate_skeleton): New function.
877         (remove_child_or_replace_with_skeleton): New function.
878         (break_out_comdat_types): New function.
879         (struct decl_table_entry): New type.
880         (htab_decl_hash): New function.
881         (htab_decl_eq): New function.
882         (htab_decl_del): New function.
883         (copy_ancestor_tree): New function.
884         (copy_decls_walk): New function.
885         (copy_decls_for_unworthy_types): New function.
886         (build_abbrev_table): Don't assert on missing die_symbol when doing
887         comdat type sections.
888         (size_of_die): Use DW_FORM_sig8 for external references; Add
889         dw_val_class_data8.
890         (unmark_dies): Don't assert for unmarked dies when doing comdat
891         type sections.
892         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
893         (output_signature): New function.
894         (output_die): Likewise.
895         (output_compilation_unit_header): Mark output as DWARF version 3
896         even if generating DWARF 4.
897         (output_comdat_type_unit): New function.
898         (output_line_info): Mark output as DWARF version 3 even if generating
899         DWARF 4.
900         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
901         DWARF-4.
902         (dwarf2out_end_source_file): Likewise.
903         (prune_unused_types_walk_attribs): Don't follow references into
904         comdat type sections.
905         (prune_unused_types_mark): When generating type units, do not mark
906         children of non-defining declarations of types; do mark children of
907         type entries.
908         (prune_unused_types): Process comdat type sections.
909         (htab_ct_hash): New function.
910         (htab_ct_eq): New function.
911         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
912         Add a pointer to the line table from type unit entries so
913         DW_AT_decl_file has meaning.
914         * varasm.c (default_elf_asm_named_section): Use identifier name as
915         comdat key instead of lang hook.
916
917 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
918
919         * gcov-io.c (gcov_open): Open files read-only when MODE < 0
920
921 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
922
923         * config/i386/i386.md (SWIM248): New mode iterator.
924         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
925         divmodhi4 patterns using SWIM248 macro.
926         (*divmod<mode>4): Macroize insn_and_split pattern from
927         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
928         and their corresponding splitters usign SWIM248 macro.  Split SImode
929         insn to generate cltd and DImode insn to generate cqto instead of
930         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
931         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
932         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
933         *divmodsi_noext patterns using SWIM248 macro.
934         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
935         udivmodhi4 patterns using SWIM248 macro.
936         (*udivmod<mode>4): Macroize insn_and_split pattern from
937         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
938         corresponding splitters using SWIM248 macro.
939         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
940         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
941
942 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
943
944         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
945         of zero-sized element is zero-sized regardless of its extent.
946
947 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
948
949         PR debug/40521
950         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
951         * configure: Regenerated.
952         * config.in: Regenerated.
953         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
954         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
955         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
956         not emitting .eh_frame, emit .cfi_sections .debug_frame
957         directive.
958
959         PR debug/41404
960         PR debug/41353
961         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
962         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end with
963         '\0'.
964         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
965         vars use DECL_RTL with resetting it back to NULL afterwards.
966         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
967         rtx_equal_p instead of asserting it is a SYMBOL_REF.
968         (value_format): For dw_val_class_addr only use DW_FORM_addr if
969         the attribute type allows it, otherwise use DW_FORM_dataN.
970         (mem_loc_descriptor): Handle CONST_STRING.
971         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
972         Handle MEM with CONST_STRING address using add_AT_string.
973         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
974         CONST_STRING for const arrays initialized with a string literal.
975         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
976         (dwarf2out_finish): Call resolve_addr.
977
978 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
979             Maxim Kuvyrkov  <maxim@codesourcery.com>
980
981         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
982
983 2009-10-02  Nick Clifton  <nickc@redhat.com>
984
985         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
986         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
987
988 2009-10-01  Jan Hubicka  <jh@suse.cz>
989
990         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
991         (cgraph_create_virtual_clone): Just pass redirect_callers
992         around.
993         * cgraph.h (cgraph_clone_node): Update prototype.
994         * ipa-pure-const.c (self_recursive_p): New function.
995         (propagate): Use it.
996         * ipa-inline.c (cgraph_clone_inlined_nodes,
997         cgraph_decide_recursive_inlining): Update.
998
999 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
1000
1001         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1002         instructions for TARGET_OCTEON.
1003
1004 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1005
1006         * config/arm/arm.c (arm_override_options): Turn off
1007         flag_dwarf2_cfi_asm for AAPCS variants.
1008
1009 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1010
1011         PR middle-end/12392
1012         * tree-sra.c (convert_callers): Do not call
1013         compute_inline_parameters on one caller more than once.
1014
1015 2009-10-01  Nick Clifton  <nickc@redhat.com>
1016
1017         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1018         an empty string if not already defined.
1019
1020 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1021
1022         PR bootstrap/41395
1023         * tree-sra.c (is_va_list_type): New function.
1024         (find_var_candidates): Call is_va_list_type.
1025         (find_param_candidates): Check that the type or the type pointed
1026         to are not va_list types.
1027
1028 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1029
1030         PR c++/41503
1031         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1032         DECL_ARTIFICIAL (param_decl) is true.
1033
1034 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
1035
1036         * tree.h (tree_decl_common::lang_flag_8): New.
1037         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1038         keyword.
1039         * c-common.h (RID_CONSTEXPR): New.
1040
1041 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1042
1043         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1044         Use ref-all pointers.
1045         (alpha_gimplify_va_arg): Ditto.
1046
1047 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
1048
1049         PR target/41279
1050         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1051         before insn counting loop now that BB_END (bb) is counted.  Ensure
1052         the return value isn't zero.
1053
1054 2009-09-30  Nick Clifton  <nickc@redhat.com>
1055
1056         * config.gcc (sh-symbianelf): Replace definition of extra_objs
1057         with separate definitions of c_target_objs and cxx_target_objs.
1058         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1059         and symbian-base.o.
1060         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1061         sh_symbian_import_export_class.
1062         * config/sh/sh-protos.h: Fix names of exported symbian functions.
1063         * config/sh/symbian.c: Delete, moving code into...
1064         * config/sh/symbian-base.c: ... here
1065         * config/sh/symbian-c.c: ... and here
1066         * config/sh/symbian-cxx.c: ... and here.
1067
1068 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1069
1070         PR target/22093
1071         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1072         of plus RTX into register.
1073
1074 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1075
1076         * doc/install.texi: Linguistic and markup fixes.
1077         (Configuration) <--disable-cpp>: Remove description.
1078         <--enable-maintainer-mode>: Autotools files are affected, too.
1079         <--with-sysroot>: Improve description.
1080         (Building): Bump required GNU make version.
1081
1082 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1083
1084         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1085         (x86_64-*-*): Ditto.
1086
1087         * config/i386/fma4intrin.h: New file, provide common x86 compiler
1088         intrinisics for FMA4.
1089         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1090         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1091         Add FMA4 check and fma4intrin.h.
1092         * config/i386/i386-c.c(ix86_target_macros_internal): Check
1093         ISA_FLAG for FMA4.
1094         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1095         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1096         constant for FMA4 support.
1097         (UNSPEC_FMA4_FMADDSUB): Ditto.
1098         (UNSPEC_FMA4_FMSUBADD): Ditto.
1099         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1100         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1101         (ix86_expand_fma4_multiple_memory): Ditto.
1102         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1103         (OPTION_MASK_ISA_FMA4_UNSET): New.
1104         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1105         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1106         (ix86_handle_option): Handle -mfma4.
1107         (isa_opts): Handle -mfma4.
1108         (enum pta_flags): Add PTA_FMA4.
1109         (override_options): Add FMA4 support.
1110         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1111         (IX86_BUILTIN_VFMADDSD): Ditto.
1112         (IX86_BUILTIN_VFMADDPS): Ditto.
1113         (IX86_BUILTIN_VFMADDPD): Ditto.
1114         (IX86_BUILTIN_VFMSUBSS): Ditto.
1115         (IX86_BUILTIN_VFMSUBSD): Ditto.
1116         (IX86_BUILTIN_VFMSUBPS): Ditto.
1117         (IX86_BUILTIN_VFMSUBPD): Ditto.
1118         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1119         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1120         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1121         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1122         (IX86_BUILTIN_VFNMADDSS): Ditto.
1123         (IX86_BUILTIN_VFNMADDSD): Ditto.
1124         (IX86_BUILTIN_VFNMADDPS): Ditto.
1125         (IX86_BUILTIN_VFNMADDPD): Ditto.
1126         (IX86_BUILTIN_VFNMSUBSS): Ditto.
1127         (IX86_BUILTIN_VFNMSUBSD): Ditto.
1128         (IX86_BUILTIN_VFNMSUBPS): Ditto.
1129         (IX86_BUILTIN_VFNMSUBPD): Ditto.
1130         (IX86_BUILTIN_VFMADDPS256): Ditto.
1131         (IX86_BUILTIN_VFMADDPD256): Ditto.
1132         (IX86_BUILTIN_VFMSUBPS256): Ditto.
1133         (IX86_BUILTIN_VFMSUBPD256): Ditto.
1134         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1135         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1136         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1137         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1138         (IX86_BUILTIN_VFNMADDPS256): Ditto.
1139         (IX86_BUILTIN_VFNMADDPD256): Ditto.
1140         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1141         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1142         (enum multi_arg_type): New enum for describing the various FMA4
1143         intrinsic argument types.
1144         (bdesc_multi_arg): New table for FMA4 intrinsics.
1145         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1146         (ix86_expand_multi_arg_builtin): New function for creating FMA4
1147         intrinsics.
1148         (ix86_expand_builtin): Add FMA4 intrinsic support.
1149         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1150         operand instructions.
1151         (ix86_expand_fma4_multiple_memory): New function to split the
1152         second memory reference from FMA4 instructions.
1153         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1154         (ssemodesuffixf2s): Ditto.
1155         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1156         instructions.
1157         (fma4_fmsub<mode>4): Ditto.
1158         (fma4_fnmadd<mode>4): Ditto.
1159         (fma4_fnmsub<mode>4): Ditto.
1160         (fma4_vmfmadd<mode>4): Ditto.
1161         (fma4_vmfmsub<mode>4): Ditto.
1162         (fma4_vmfnmadd<mode>4): Ditto.
1163         (fma4_vmfnmsub<mode>4): Ditto.
1164         (fma4_fmadd<mode>4256): Ditto.
1165         (fma4_fmsub<mode>4256): Ditto.
1166         (fma4_fnmadd<mode>4256): Ditto.
1167         (fma4_fnmsub<mode>4256): Ditto.
1168         (fma4_fmaddsubv8sf4): Ditto.
1169         (fma4_fmaddsubv4sf4): Ditto.
1170         (fma4_fmaddsubv4df4): Ditto.
1171         (fma4_fmaddsubv2df4): Ditto.
1172         (fma4_fmsubaddv8sf4): Ditto.
1173         (fma4_fmsubaddv4sf4): Ditto.
1174         (fma4_fmsubaddv4df4): Ditto.
1175         (fma4_fmsubaddv2df4): Ditto.
1176         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1177         instructions for intrinsics.
1178         (fma4i_fmsub<mode>4): Ditto.
1179         (fma4i_fnmadd<mode>4): Ditto.
1180         (fma4i_fnmsub<mode>4): Ditto.
1181         (fma4i_vmfmadd<mode>4): Ditto.
1182         (fma4i_vmfmsub<mode>4): Ditto.
1183         (fma4i_vmfnmadd<mode>4): Ditto.
1184         (fma4i_vmfnmsub<mode>4): Ditto.
1185         (fma4i_fmadd<mode>4256): Ditto.
1186         (fma4i_fmsub<mode>4256): Ditto.
1187         (fma4i_fnmadd<mode>4256): Ditto.
1188         (fma4i_fnmsub<mode>4256): Ditto.
1189         (fma4i_fmaddsubv8sf4): Ditto.
1190         (fma4i_fmaddsubv4sf4): Ditto.
1191         (fma4i_fmaddsubv4df4): Ditto.
1192         (fma4i_fmaddsubv2df4): Ditto.
1193         (fma4i_fmsubaddv8sf4): Ditto.
1194         (fma4i_fmsubaddv4sf4): Ditto.
1195         (fma4i_fmsubaddv4df4): Ditto.
1196         (fma4i_fmsubaddv2df4): Ditto.
1197
1198         * doc/invoke.texi (-mfma4): Add documentation.
1199         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1200
1201 2009-09-29  Richard Henderson  <rth@redhat.com>
1202
1203         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1204         an edge to the new destination block.
1205
1206 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1207
1208         PR target/41393
1209         * pa.c (hppa_profile_hook): Use
1210         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1211
1212 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
1213             Alexander Monakov  <amonakov@ispras.ru>
1214
1215         PR target/41365
1216         * config/ia64/predicates.md (not_postinc_destination_operand): New.
1217         (not_postinc_memory_operand): New.
1218         (not_postinc_move_operand): New.
1219         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1220         (*cmovsi_internal): Ditto.
1221
1222 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
1223
1224         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1225         restrict issue_rate in first pass when scheduling for register
1226         pressure.
1227
1228 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
1229             Rafael Avila de Espindola  <espindola@google.com>
1230
1231         * gengtype.c (plugin_output): New.
1232         (get_output_file_with_visibility): Return plugin_output for plugins.
1233         (main): Parse and use the -P option.
1234         * gty.texi: Update the command line format.
1235
1236 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
1237
1238         PR debug/41438
1239         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
1240         functions.
1241         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
1242         out if !const_ok_for_output.
1243
1244         PR debug/41474
1245         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
1246         case VAR_LOCATION>: Remove gcc_unreachable ().
1247
1248 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1249
1250         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1251         (x86_64-*-*): Ditto.
1252         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
1253         back to smmintrin.h.
1254         * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
1255         * config/i386/x86intrin.h: Remove SSE5.
1256         * config/i386/mmintrin-common.h: Delete file.
1257         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
1258
1259 2009-09-29  Richard Guenther  <rguenther@suse.de>
1260
1261         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
1262         resulting from stack temporaries on STRICT_ALIGNMENT targets.
1263
1264 2009-09-29  Nick Clifton  <nickc@redhat.com>
1265
1266         * function.c (current_function_name): If there is no current
1267         function just return "<none>".
1268
1269 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
1270
1271         * tree-pass.h (register_pass_info): New structure.
1272         (pass_positioning_ops): Move enum from gcc-plugin.h.
1273         (register_pass): New function.
1274         * gcc-plugin.h (plugin_pass): Delete structure.
1275         (pass_positioning_ops): Delete enum.
1276         * plugin.c (regsiter_pass): Delete function.
1277         (position_pass): Delete function.
1278         (added_pass_nodes): Delete variable.
1279         (prev_added_pass_nodes): Delete variable.
1280         (pass_list_node): Delete structure.
1281         * passes.c (make_pass_instance): New function.
1282         (next_pass_1): Change to call make_pass_instance.
1283         (pass_list_node): Move structure from gcc-plugin.h.
1284         (added_pass_nodes): Move variable from plugin.c.
1285         (prev_added_pass_nodes): Move variable from plugin.c.
1286         (position_pass): New function.
1287         (register_pass): New function.
1288
1289 2009-09-28  Easwaran Raman  <eraman@google.com>
1290
1291         * ifcvt.c (noce_try_abs): Recognize pattern and call
1292         expand_one_cmpl_abs_nojump.
1293         * optabs.c (expand_one_cmpl_abs_nojump): New function.
1294         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
1295
1296 2009-09-28  Ian Lance Taylor  <iant@google.com>
1297
1298         PR middle-end/40500
1299         * c-opts.c (c_common_handle_option): Don't set
1300         warn_jump_misses_init for -Wall.
1301         * doc/invoke.texi (Warning Options): Update documentation.
1302
1303 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1304
1305         * Makefile.in ($(out_object_file)): Depend on
1306         gt-$(basename $(notdir $(out_file))).h.
1307
1308 2009-09-28  Richard Henderson  <rth@redhat.com>
1309
1310         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
1311         * except.c (gen_eh_region): Set it.
1312         (duplicate_eh_regions_1): Copy it.
1313         * tree-eh.c (lower_resx): Use it to determine which function
1314         to call to resume.
1315
1316         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
1317         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
1318         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
1319         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
1320         BUILT_IN_CXA_END_CLEANUP if necessary.
1321
1322         * c-common.c (c_define_builtins): Update call to
1323         build_common_builtin_nodes.
1324
1325 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1326
1327         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
1328
1329 2009-09-28  Michael Matz  <matz@suse.de>
1330
1331         * builtins.c (interclass_mathfn_icode): New helper.
1332         (expand_builtin_interclass_mathfn): Use it here, and split folding
1333         into ...
1334         (fold_builtin_interclass_mathfn): ... this new folder.
1335         (build_call_nofold_loc): New static helper.
1336         (build_call_nofold): New wrapper macro for above.
1337         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
1338         (expand_builtin_pow): Ditto.
1339         (expand_builtin_memset_args): Ditto.
1340         (expand_builtin_printf): Ditto.
1341         (expand_builtin_fprintf): Ditto.
1342         (expand_builtin_sprintf): Ditto.
1343         (expand_builtin_memory_chk): Ditto.
1344         (expand_builtin_mempcpy_args): Ditto and don't call folders.
1345         (expand_builtin_stpcpy): Ditto.
1346         (expand_builtin_strcmp): Ditto.
1347         (expand_builtin_strncmp): Ditto.
1348         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
1349         (expand_builtin_strcpy_args): Don't call folders.
1350         (expand_builtin_memcmp): Ditto.
1351         (expand_builtin_strncpy): Ditto, and use target.
1352         (expand_builtin_memcpy): Ditto.
1353         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
1354         expand_builtin_strpbrk, expand_builtin_memmove,
1355         expand_builtin_memmove_args, expand_builtin_bcopy,
1356         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
1357         expand_builtin_strspn, expand_builtin_strcspn,
1358         expand_builtin_fputs): Remove these.
1359         (expand_builtin): Don't call the above, change calls to other
1360         expanders that changed prototype.
1361         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
1362         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
1363         fold_builtin_interclass_mathfn.
1364         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
1365         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
1366
1367         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
1368         * passes.c (init_optimization_passes): Move pass_fold_builtins
1369         after last phiopt pass.
1370         * tree-inline.c (fold_marked_statements): When folding builtins
1371         iterate over all instruction potentially generated.
1372         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
1373         earlier.
1374         (fold_gimple_call): Use it to always fold calls (into potentially
1375         multiple instructions).
1376         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
1377         calls into zero at this time.
1378         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
1379         statements generated by builtin folding.
1380
1381 2009-09-28  Nick Clifton  <nickc@redhat.com>
1382
1383         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging
1384         insns.
1385
1386 2009-09-28  Duncan Sands  <baldrick@free.fr>
1387
1388         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
1389         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
1390         (register_callback): Dispatch it.
1391         (invoke_plugin_callbacks): Incorporate in sanity check.
1392         * ggc.h (ggc_register_cache_tab): Add declaration.
1393         * ggc-common.c (ggc_register_root_tab): Simplify.
1394         (const_ggc_cache_tab_t): New typedef.
1395         (extra_cache_vec): New vector of dynamically added cache tables.
1396         (ggc_register_cache_tab): New function.
1397         (ggc_scan_cache_tab): New function.
1398         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
1399         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
1400
1401 2009-09-27  Richard Henderson  <rth@redhat.com>
1402
1403         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
1404         which we remove __builtin_stack_restore.
1405
1406 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1407
1408         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
1409         to test for GRD_INVARIANT.
1410         (simple_rhs_p): Anything that's function_invariant_p is fine.
1411
1412 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
1413
1414         * gengtype.c (main): Use plunge_files instead of plugin_output.
1415
1416 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
1417             Rafael Avila de Espindola  <espindola@google.com>
1418
1419         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
1420         Don't print pch related info if it is false.
1421         (main): Don't print pch info in plugin mode.
1422
1423 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1424
1425         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
1426         with dw_val_class_const_double.
1427         (struct dw_val_struct): Replace val_long_long with val_double and
1428         adjust for above change.
1429         (output_loc_operands): Likewise.
1430         (add_AT_long_long): Rename into...
1431         (add_AT_double): ...this.
1432         (print_die): Replace dw_val_class_long_long with
1433         dw_val_class_const_double and adjust.
1434         (attr_checksum): Likewise.
1435         (same_dw_val_p): Likewise.
1436         (size_of_die): Likewise.
1437         (value_format): Likewise.
1438         (output_die): Likewise.
1439         (loc_descriptor) <CONST_DOUBLE>: Likewise.
1440         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
1441         instead of add_AT_long_long.
1442         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
1443         value with the precision of its type.
1444
1445 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
1446
1447         PR c/41476
1448         * c-typeck.c (build_conditional_expr): Use the readonly and
1449         volatile flags of the operand types, not of the operands itself.
1450
1451 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
1452
1453         collect2.c (main): Look for -brtl before adding libraries.
1454
1455 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
1456
1457         * config.gcc: Update OpenBSD targets.
1458         * config/openbsd-stdint.h: New file.
1459         * config/openbsd-libpthread.h: New file.
1460         * config/openbsd.h: Update and break out LIB_SPEC definition.
1461         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
1462         * config/i386/openbsdelf.h: Correct types.
1463         * config/m68k/openbsd.h: Likewise.
1464         * config/mips/openbsd.h: Likewise.
1465         * config/vax/openbsd.h: Likewise.
1466
1467 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1468
1469         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
1470         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
1471         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
1472         of the length and zero.
1473
1474 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1475
1476         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
1477         (FLAGS_H): Add options.h $(REAL_H).
1478         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
1479         (TREE_VECTORIZER_H): New.
1480         (EBITMAP_H): Renamed from EBIMAP_H.
1481         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
1482         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
1483         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
1484         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
1485         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
1486         (graphite-clast-to-gimple.o, graphite-dependences.o)
1487         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
1488         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
1489         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
1490         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
1491         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
1492         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
1493         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
1494         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
1495         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
1496         updated and fixed as per above changes and per
1497         check_makefile_deps.sh output.
1498
1499         PR bootstrap/40928
1500         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
1501         * configure: Regenerate.
1502
1503 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1504
1505         * doc/install.texi: Update minimum MPC version to 0.7.
1506
1507 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
1508
1509         * doc/install.texi (Binaries): Remove reference to the binary
1510         distribution CD-ROM from the FSF.
1511
1512 2009-09-26  Michael Matz  <matz@suse.de>
1513
1514         PR lto/40758
1515         PR middle-end/41470
1516         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
1517         that are mentioned in the body.
1518
1519 2009-09-26  Michael Matz  <matz@suse.de>
1520
1521         PR tree-optimization/41454
1522         * tree-ssa-dom (stmts_to_rescan): Remove variable.
1523         (tree_ssa_dominator_optimize): Don't allocate and free it.
1524         (dom_opt_leave_block): Don't iterate over it.
1525         (eliminate_redundant_computations): Don't return a value.
1526         (cprop_operand, cprop_into_stmt): Ditto.
1527         (optimize_stmt): Don't defer updating stmts.
1528
1529 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
1530
1531         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
1532         generic_parameter_die, template_parameter_pack_die,
1533         gen_formal_parameter_die, gen_subprogram_die): Adjust after renaming
1534         DW_TAG_formal_parameter_pack and DW_TAG_template_parameter_pack into
1535         DW_TAG_GNU_formal_parameter_pack and DW_TAG_GNU_template_parameter_pack.
1536
1537 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
1538
1539         * config/v850/v850.h (FUNCTION_VALUE): Remove.
1540         * config/v850/v850.c (v850_function_value): New function.
1541         (TARGET_FUNCTION_VALUE): Define.
1542
1543 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
1544
1545         * tree-vect-stmts.c (vectorizable_call): Call
1546         mark_symbols_for_renaming after vect_finish_stmt_generation.
1547
1548         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
1549         to loc_descriptor_from_tree.
1550         (add_location_or_const_value_attribute): Pass 0 instead of 2
1551         for decl_by_reference_p decls.
1552
1553 2009-09-25  Richard Guenther  <rguenther@suse.de>
1554
1555         PR middle-end/41463
1556         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
1557         arrays again.
1558
1559 2009-09-25  Ben Elliston  <bje@au.ibm.com>
1560
1561         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
1562         after `power7'.
1563
1564 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
1565
1566         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
1567         form of instruction.
1568
1569 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1570
1571         PR middle-end/41435
1572         * fold-const.c (const_binop): Handle complex int division.
1573         * tree-complex.c (expand_complex_div_straight,
1574         expand_complex_div_wide): Update comments.
1575
1576 2009-09-24  DJ Delorie  <dj@redhat.com>
1577
1578         PR target/41456
1579         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
1580         (reg_class): Likewise.
1581         (REG_CLASS_NAMES): Likewise.
1582         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
1583
1584         * config/m32c/m32c.c (m32c_override_options): Disable -fivopts for
1585         M32C.
1586
1587 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1588
1589         * config/rs6000/predicates.md (indexed_or_indirect_operand):
1590         Delete VSX load/store with update support.
1591         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
1592         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
1593         (vsx_movti): Ditto.
1594         (VSX_U): Delete.
1595         (VSbit): Ditto.
1596         (VStype_load_update): Ditto.
1597         (VStype_store_update): Ditto.
1598         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
1599         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
1600
1601         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
1602         load/store with update builtins.
1603
1604 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
1605
1606         * libgcc2.c (L_trampoline): Prototype for getpagesize
1607         and mprotect in WINNT case.
1608
1609 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
1610
1611         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
1612         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
1613         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
1614         'outgoing' argument.
1615         (TARGET_FUNCTION_VALUE): Define.
1616
1617 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1618
1619         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
1620
1621 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
1622
1623         PR bootstrap/41405
1624         * common.opt: Initialize dwarf_strict to -1.
1625         * toplev.c (process_options): Catch unset dwarf_strict
1626         and set to 0 for all targets not overriding.
1627         * config/darwin.c (darwin_override_options): Catch unset
1628         dwarf_strict and override to 1.
1629
1630 2009-09-24  Jeff Law  <law@redhat.com>
1631
1632         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
1633
1634 2009-09-24  Richard Guenther  <rguenther@suse.de>
1635
1636         PR tree-optimization/36143
1637         PR tree-optimization/38747
1638         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
1639         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
1640
1641 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
1642
1643         PR bootstrap/41457
1644         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
1645         return false instead of gcc_unreachable ().  For CONST return the
1646         value returned by recursive call instead of always returning true.
1647         (tree_add_const_value_attribute): Return the value returned by
1648         add_const_value_attribute instead of always returning true if rtl
1649         is non-NULL.
1650
1651 2009-09-23  Justin Seyster  <jrseys@gmail.com>
1652
1653         * Makefile.in (PLUGIN_HEADERS): Include real.h.
1654
1655 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
1656
1657         * cgraphunit.c (cgraph_lower_function): Revert last change.
1658         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
1659         instead of DECL_NO_STATIC_CHAIN.
1660         * tree-cfg.c (verify_gimple_call): Likewise.
1661         * tree-nested.c (get_chain_decl, get_chain_field,
1662         convert_tramp_reference_op, convert_gimple_call): Likewise.
1663         (convert_all_function_calls): Likewise.  Always set or clear
1664         DECL_STATIC_CHAIN initially, for !n->outer clear it.
1665         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
1666         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
1667         if nested.
1668         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
1669         DECL_NO_STATIC_CHAIN.
1670         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
1671         instead of DECL_NO_STATIC_CHAIN.
1672         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
1673         decl_function_context.
1674         * varasm.c (initializer_constant_valid_p): Likewise.
1675         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
1676         (DECL_STATIC_CHAIN): ... this.
1677         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
1678         instead of DECL_NO_STATIC_CHAIN.
1679
1680 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
1681             Rafael Avila de Espindola  <espindola@google.com>
1682
1683         * gengtype.c (nb_plugin_files): Make it unsigned to match
1684         num_gt_files. Adjust other variables to avoid warnings.
1685         (main): Allocate an all zero lang_bitmap before each plugin file name
1686         to match regular file names.
1687
1688 2009-09-23  Richard Henderson  <rth@redhat.com>
1689
1690         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1691         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
1692         static chain passed in memory.
1693         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
1694         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
1695         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
1696         STATIC_CHAIN_REGNUM defined.
1697
1698         * config/picochip/picochip-protos.h: s/class/klass/.
1699         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
1700         (picochip_static_chain): New.
1701         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
1702         (STATIC_CHAIN_INCOMING): Remove.
1703
1704         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
1705         (xtensa_static_chain): New.
1706         * config/xtensa/xtensa.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
1707
1708 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
1709
1710         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
1711         * config/pa/pa-protos.h (function_value): Remove.
1712         * config/pa/pa.c (pa_function_value): Rename from function_value.
1713         Make static, add 'outgoing' argument.
1714         (TARGET_FUNCTION_VALUE): Define.
1715
1716 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
1717
1718         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
1719         instead of cfun->machine->is_leaf.
1720         * config/avr/avr.h (machine_function): Remove is_leaf field.
1721
1722 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1723
1724         PR debug/41439
1725         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
1726         DW_OP_piece after DW_OP_stack_value, adjust size calculations
1727         for it, when DW_OP_stack_value and DW_OP_implicit_value has
1728         the same size, prefer DW_OP_stack_value.
1729         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
1730         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
1731
1732 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
1733
1734         PR debug/41353
1735         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
1736
1737 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
1738
1739         PR debug/41248
1740         * cfgexpand.c (convert_debug_memory_address): New.
1741         (expand_debug_expr): Convert base address and offset to the same
1742         mode.  Use it to convert addresses to other modes.  Accept
1743         ptr_mode addresses.
1744
1745 2009-09-23  Richard Guenther  <rguenther@suse.de>
1746
1747         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
1748         produced for bigendian targets with promoted subregs.
1749
1750 2009-09-23  Richard Guenther  <rguenther@suse.de>
1751
1752         * value-prof.c (gimple_ic): Purge old EH edges only after building
1753         the new ones.
1754
1755 2009-09-23  Nick Clifton  <nickc@redhat.com>
1756
1757         * config/arc/arc.c (arc_trampoline_init): Fix typo.
1758
1759 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1760
1761         PR bootstrap/41405
1762         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
1763
1764         PR bootstrap/41436
1765         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
1766         on non-nested functions.
1767
1768 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
1769             Jan Hubicka  <jh@suse.cz>
1770
1771         * dwarf2out.c (loc_list_plus_const): Only define if
1772         DWARF2_DEBUGGING_INFO.
1773         (address_of_int_loc_descriptor): Likewise.
1774
1775         PR debug/41411
1776         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
1777
1778 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
1779
1780         PR c/39779
1781         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
1782         constant is more than zero.
1783
1784 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
1785
1786         PR target/40473
1787         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1788         call final to emit non-scheduled prologue, instead insert at entry.
1789
1790 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
1791             Joseph S. Myers  <joseph@codesourcery.com>
1792
1793         * doc/install.texi (*-*-freebsd*): Add proper format codes.
1794
1795 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
1796             Rafael Avila de Espindola  <espindola@google.com>
1797
1798         * gengtype.c (is_file_equal): New function.
1799         (close_output_files): Use is_file_equal. Free of->buf.
1800
1801 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
1802             Rafael Avila de Espindola  <espindola@google.com>
1803
1804         * gengtype.c (write_types, write_local): Add the output_header
1805         argument. Update all callers.
1806
1807 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
1808
1809         * dwarf2out.c (template_parameter_pack_die,
1810         gen_formal_parameter_pack_die ): New functions.
1811         (make_ith_pack_parameter_name): Remove this function.
1812         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
1813         DW_TAG_formal_parameter_pack.
1814         (gen_generic_params_dies): Represent each template parameter pack
1815         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
1816         represented by usual DW_TAG_template_*_parameter DIEs that are
1817         children of the DW_TAG_template_parameter_pack element DIE.
1818         (generic_parameter_die): This doesn't deal with parameter pack
1819         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
1820         of parameter pack DIEs.
1821         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
1822         in certain cases, e.g. for pack elements.
1823         (gen_formal_types_die, gen_decl_die): Adjust usage of
1824         gen_formal_parameter_die.
1825         (gen_subprogram_die): Represent each function parameter pack by a
1826         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
1827         represented by usual DW_TAG_formal_parameter DIEs that are children
1828         of the DW_TAG_formal_parameter_pack DIE. Remove references to
1829         ____builtin_va_alist decls as no part of the compiler uses those
1830         anymore.
1831         * langhooks.h (struct lang_hooks_for_decls): Add
1832         function_parm_expanded_from_pack_p, get_generic_function_decl
1833         and function_parameter_pack_p hooks.  Fix comment for
1834         get_innermost_generic_parms hook.
1835         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
1836         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
1837         macros and use them to initialize lang_hook.
1838
1839 2009-09-22  Richard Henderson  <rth@redhat.com>
1840
1841         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
1842         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
1843         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
1844         on TRAMPOLINE_TEMPLATE.
1845         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
1846         TRAMPOLINE_ADJUST_ADDRESS.
1847         * targhooks.c (default_asm_trampoline_template): Remove.
1848         (default_trampoline_adjust_address): Remove.
1849         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
1850         * targhooks.h: Update decls.
1851
1852 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
1853
1854         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
1855         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
1856         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
1857
1858 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
1859
1860         PR debug/41295
1861         * reload1.c (reload): Reset debug insns with pseudos without
1862         equivalences.
1863
1864 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
1865
1866         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
1867         unconditional true for decimal float modes.
1868         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
1869         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
1870
1871 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
1872
1873         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
1874         Enable a new case for __FreeBSD__ >= 7.
1875         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
1876         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
1877         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
1878         and USE_LD_AS_NEEDED.
1879
1880         * doc/install.texi (*-*-freebsd*): Update target information.
1881
1882 2009-09-22  Richard Guenther  <rguenther@suse.de>
1883
1884         PR middle-end/41395
1885         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
1886         arrays really properly.
1887
1888 2009-09-22  Richard Henderson  <rth@redhat.com>
1889
1890         PR target/41246
1891         * target.h (struct gcc_target): Add asm_out.trampoline_template,
1892         calls.static_chain, calls.trampoline_init,
1893         calls.trampoline_adjust_address.
1894         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1895         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
1896         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1897         * builtins.c (expand_builtin_setjmp_receiver): Use
1898         targetm.calls.static_chain; only clobber registers.
1899         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
1900         set up memory attributes properly for the trampoline block.
1901         (expand_builtin_adjust_trampoline): Use
1902         targetm.calls.trampoline_adjust_address.
1903         * calls.c (prepare_call_address): Add fndecl argument.  Use
1904         targetm.calls.static_chain.
1905         * df-scan.c (df_need_static_chain_reg): Remove.
1906         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
1907         consolodate static chain handling.
1908         * doc/tm.texi: Document new hooks.
1909         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
1910         (init_emit_regs): Don't initialize them.
1911         * expr.h (prepare_call_address): Update decl.
1912         * final.c (profile_function): Use targetm.calls.static_chain.
1913         * function.c (expand_function_start): Likewise.
1914         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
1915         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
1916         only clobber registers.
1917         * targhooks.c (default_static_chain): New.
1918         (default_asm_trampoline_template, default_trampoline_init): New.
1919         (default_trampoline_adjust_address): New.
1920         * targhooks.h: Declare them.
1921         * varasm.c (assemble_trampoline_template): Use
1922         targetm.asm_out.trampoline_template.  Make the memory block const
1923         and set its size.
1924
1925         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
1926         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
1927         differences into the TARGET_ABI_OPEN_VMS code block.
1928         (TARGET_TRAMPOLINE_INIT): New.
1929         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
1930         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
1931         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
1932         (INITIALIZE_TRAMPOLINE): Remove.
1933
1934         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
1935         (TRAMPOLINE_TEMPLATE): Merge with ...
1936         (INITIALIZE_TRAMPOLINE): ... this and move ...
1937         * config/arc/arc.c (arc_trampoline_init): ... here.
1938         (TARGET_TRAMPOLINE_INIT): New.
1939
1940         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
1941         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
1942         (arm_asm_trampoline_template): New.
1943         (arm_trampoline_init, arm_trampoline_adjust_address): New.
1944         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
1945         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
1946         code to arm_asm_trampoline_template.
1947         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
1948         arm_trampoline_adjust_address.
1949         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
1950         adjust for target hook parameters.
1951
1952         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
1953         Remove.
1954
1955         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
1956         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
1957         (bfin_trampoline_init): Rename from initialize_trampoline;
1958         make static; update for target hook parameters.
1959         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
1960         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
1961         bfin_asm_trampoline_template.
1962         (INITIALIZE_TRAMPOLINE): Remove.
1963
1964         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1965         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
1966         cris_trampoline_init): New.
1967         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
1968         cris_asm_trampoline_template.
1969         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
1970         adjust for target hook parameters.
1971
1972         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
1973
1974         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
1975         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
1976         fr30_trampoline_init): New.
1977         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
1978         fr30_asm_trampoline_template.
1979         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
1980         adjust for target hook parameters.
1981
1982         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
1983         (frv_trampoline_init): Rename from frv_initialize_trampoline;
1984         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
1985         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
1986         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
1987
1988         * config/h8300/h8300.c (h8300_trampoline_init): New.
1989         (TARGET_TRAMPOLINE_INIT): New.
1990         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
1991         to h8300_trampoline_init and adjust for hook parameters.
1992
1993         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
1994         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
1995         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
1996         make static; adjust for hook parameters.
1997         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
1998
1999         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2000         (TARGET_TRAMPOLINE_INIT): New.
2001         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2002         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2003         iq2000_asm_trampoline_template.
2004         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2005         (TRAMPOLINE_CODE_SIZE): New.
2006         (TRAMPOLINE_SIZE): Use it.
2007         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2008
2009         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2010         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2011         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2012         adjust for hook parameters.
2013         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2014
2015         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2016         (m32r_trampoline_init): New.
2017         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2018         m32r_trampoline_init.
2019
2020         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2021         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2022         make static; update for hook parameters.
2023         * config/m68hc11/m68hc11-protos.h: Update.
2024         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2025
2026         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2027         (TARGET_TRAMPOLINE_INIT): New.
2028         (mcore_function_value): Fix typo.
2029         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2030         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2031         to mcore_asm_trampoline_template.
2032         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2033
2034         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2035         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2036         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2037         update for hook parameters.
2038         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2039
2040         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2041         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2042         mips_trampoline_init): New.
2043         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2044         mips_asm_trampoline_template.
2045         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2046         update for hook parameters.
2047
2048         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2049         (TARGET_TRAMPOLINE_INIT): New.
2050         (mmix_trampoline_size): Remove.
2051         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2052         make static.  Remove out-of-date tetra vs octa comment.
2053         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2054         make static; update for hook parameters.
2055         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2056         (INITIALIZE_TRAMPOLINE): Remove.
2057         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2058         (TRAMPOLINE_ALIGNMENT): New.
2059         * gcc/config/mmix/mmix-protos.h: Update.
2060
2061         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2062         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2063         mn10300_trampoline_init): New.
2064         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2065         mn10300_asm_trampoline_template.
2066         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2067
2068         * config/moxie/moxie.c (moxie_static_chain,
2069         moxie_asm_trampoline_template, moxie_trampoline_init,
2070         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2071         TARGET_TRAMPOLINE_INIT): New.
2072         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2073         moxie_trampoline_init.
2074         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2075         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2076
2077         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2078         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2079         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2080         pa_trampoline_adjust_address): New.
2081         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2082         pa_asm_trampoline_template.
2083         (TRAMPOLINE_ALIGNMENT): New.
2084         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2085         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2086         adjust for hook parameters.
2087         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2088
2089         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2090         (TARGET_TRAMPOLINE_INIT): New.
2091         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2092         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2093
2094         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2095
2096         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2097         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2098         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2099         make static; adjust parameters for the hook.
2100         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2101
2102         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2103         s390_trampoline_template; make static.
2104         (s390_trampoline_init): Rename from s390_initialize_trampoline;
2105         make static; adjust for target hook.
2106         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2107         * config/s390/s390-protos.h: Remove trampoline decls.
2108         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2109         (TRAMPOLINE_TEMPLATE): Remove.
2110         (TRAMPOLINE_ALIGNMENT): New.
2111
2112         * config/score/score-protos.h (score_initialize_trampoline): Remove.
2113         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2114         (TARGET_TRAMPOLINE_INIT): New.
2115         (score_asm_trampoline_template): New.
2116         (score_trampoline_init): Rename from score_initialize_trampoline;
2117         make static; adjust for hook parameters.
2118         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2119         score[37]_asm_trampoline_template.
2120         (INITIALIZE_TRAMPOLINE): Remove.
2121         * config/score/score3.c (score3_asm_trampoline_template): New.
2122         (score3_trampoline_init): Rename from score3_initialize_trampoline;
2123         adjust for target hook.
2124         * config/score/score7.c (score7_asm_trampoline_template): New.
2125         (score7_trampoline_init): Rename from score7_initialize_trampoline;
2126         adjust for target hook.
2127         * config/score/score3.h, config/score/score7.h: Update.
2128
2129         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2130         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2131         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2132         (sh_trampoline_init): Rename from sh_initialize_trampoline;
2133         make static; adjust for target hook parameters.
2134         (sh_trampoline_adjust_address): New.
2135         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2136         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2137
2138         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2139         (sparc32_initialize_trampoline): Rename from
2140         sparc_initialize_trampoline; make static; replace tramp parameter
2141         with m_tramp and update memory accesses.
2142         (sparc64_initialize_trampoline): Similarly.
2143         (sparc_trampoline_init): New.
2144         * config/sparc/sparc-protos.h: Remove trampoline decls.
2145         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2146         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2147
2148         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2149         (array_to_constant): Make ARR parameter const.
2150         (spu_trampoline_init): Rename from spu_initialize_trampoline;
2151         make static; update for hook parameters.
2152         * config/spu/spu-protos.h: Update decls.
2153         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2154
2155         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2156         from xstormy16_initialize_trampoline; make static; update for
2157         hook parameters.
2158         (TARGET_TRAMPOLINE_INIT): New.
2159         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2160
2161         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2162         (TARGET_TRAMPOLINE_INIT): New.
2163         (v850_can_eliminate): Make static.
2164         (v850_asm_trampoline_template, v850_trampoline_init): New.
2165         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2166         v850_asm_trampoline_template.
2167         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2168         and adjust for target hook parameters.
2169
2170         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2171         (TARGET_TRAMPOLINE_INIT): New.
2172         (vax_asm_trampoline_template, vax_trampoline_init): New.
2173         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2174         vax_asm_trampoline_template.
2175         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2176
2177         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2178         (TARGET_TRAMPOLINE_INIT): New.
2179         (xtensa_asm_trampoline_template): Rename from
2180         xtensa_trampoline_template; make static.
2181         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2182         make static; update for hook parameters.
2183         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2184         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2185         (INITIALIZE_TRAMPOLINE): Remove.
2186
2187         * config/i386/i386.c (ix86_function_regparm): Do not issue an
2188         error for nested functions with regparm=3.
2189         (ix86_compute_frame_layout): Adjust frame pointer offset for
2190         ix86_static_chain_on_stack.
2191         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2192         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2193         don't reset to UNITS_PER_WORD.
2194         (ix86_emit_leave): Adjust ix86_cfa_state.
2195         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2196         (ix86_static_chain): New.
2197         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2198         make static; update for target hook parameters; use ix86_static_chain.
2199         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2200         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2201         (INITIALIZE_TRAMPOLINE): Remove.
2202         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2203         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2204         to the end.  Add static_chain_on_stack.
2205         (ix86_static_chain_on_stack): New.
2206
2207         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2208         (m68k_output_mi_thunk): Don't use static_chain_rtx.
2209         (m68k_trampoline_init): New.
2210         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2211         m68k_trampoline_init and adjust for hook parameters.
2212         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2213         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2214
2215 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2216
2217         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2218         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2219
2220         * reload1.c (reload): Call wrap_constant when substituting
2221         reg for equiv inside of DEBUG_INSNs.
2222
2223         PR bootstrap/41405
2224         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2225         add_call_src_coords_attributes, add_high_low_attributes,
2226         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2227         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2228         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2229         when -gdwarf-2 -gstrict-dwarf.
2230         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
2231         -gdwarf-[23] -gstrict-dwarf.
2232         (address_of_int_loc_descriptor, loc_descriptor,
2233         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
2234         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
2235         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
2236
2237 2009-09-22  Richard Guenther  <rguenther@suse.de>
2238
2239         PR tree-optimization/41428
2240         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
2241         (ccp_finalize): Pass it to substitute_and_fold.
2242
2243 2009-09-22  Richard Guenther  <rguenther@suse.de>
2244
2245         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2246         (substitute_and_fold): Adjust prototype.
2247         * tree-vrp.c (vrp_evaluate_conditional): Make static.
2248         (simplify_stmt_using_ranges): Likewise.
2249         (fold_predicate_in): Move here from tree-ssa-propagate.c.
2250         (vrp_fold_stmt): New function.
2251         (vrp_finalize): Pass it to substitute_and_fold.
2252         * tree-flow.h (vrp_evaluate_conditional): Remove.
2253         (simplify_stmt_using_ranges): Likewise.
2254         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
2255         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2256         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
2257         member.
2258         (fold_predicate_in): Move to tree-vrp.c.
2259         (substitute_and_fold): Use the callback instead of calling into
2260         tree-vrp.c functions directly.
2261
2262 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2263
2264         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
2265         comparison warning on rs6000.
2266
2267         PR middle-end/41429
2268         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
2269         GIMPLE_EH_MUST_NOT_THROW cleanup.
2270         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2271
2272 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
2273
2274         PR middle-end/41260
2275         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
2276         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
2277         LIB_SPEC for darwin10 and later since it always uses the unwinder in
2278         libSystem which is derived from the gcc 4.2.1 unwinder.
2279
2280 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2281
2282         PR middle-end/41357
2283         * varasm.c (default_encode_section_info): Copy TLS model into
2284         sym_ref flags regardless of backend support for TLS, for all
2285         model types except TLS_MODEL_EMULATED.
2286
2287 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2288
2289         PR bootstrap/41404
2290         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
2291         we can handle it correctly.
2292
2293 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
2294
2295         * doc/install.texi (os2): Remove section.
2296
2297 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
2298
2299         * doc/standards.texi (Objective-C): Adjust two URLs.
2300
2301 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
2302
2303         * tree-tailcall.c (process_assignment): Don't check if a
2304         multiplication or an addition are already present.
2305         (find_tail_calls): Combine multiple additions and multiplications.
2306         (adjust_accumulator_values): Emit accumulators.
2307
2308 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
2309
2310         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
2311         xmm register restore.
2312
2313 2009-09-21  Jan Hubicka  <jh@suse.cz>
2314
2315         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
2316         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
2317         restore at the end.
2318
2319 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
2320
2321         * stor-layout.c (layout_type): Remove obsolete code.
2322
2323 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
2324
2325         PR middle-end/41395
2326         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
2327
2328 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2329
2330         PR middle-end/30789
2331         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
2332         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
2333         (fold_builtin_2, do_mpc_arg1): Update accordingly.
2334         * fold-const.c (const_binop): Likewise.
2335         * real.h (do_mpc_arg2): Update prototype.
2336
2337 2009-09-20  Jan Hubicka  <jh@suse.cz>
2338
2339         * dwarf2out.c (add_const_value_attribute): Return true if successful.
2340         (add_location_or_const_value_attribute): Rewrite using
2341         loc_list_from_tree.
2342         (tree_add_const_value_attribute): Return true if successful.
2343         (tree_add_const_value_attribute_for_decl): Likewise.
2344
2345         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
2346         (loc_descriptor): ... here;
2347         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2348         (cst_pool_loc_descr): Break out from ...; do not reffer constant
2349         pool items that was not marked for output.
2350         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
2351         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2352         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2353         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
2354         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
2355         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
2356         DW_OP_stack_value to get address of items that are not available
2357         as addresses.
2358         (dw_loc_list): Handle single element lists correctly.
2359
2360 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
2361             Pascal Obry  <obry@adacore.com>
2362
2363         * unwind-dw2-fde.c (classify_object_over_fdes):
2364         Cast the constant 1 to _Unwind_Ptr.
2365         (add_fdes): Likewise.
2366         (linear_search_fdes): Likewise.
2367
2368 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2369
2370         * stor-layout.c (set_sizetype): Avoid useless type copy.
2371
2372 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
2373
2374         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
2375         feature check.
2376         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
2377         * configure, config.in: Regenerate.
2378         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
2379         DW_EH_PE_absptr.
2380         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
2381         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
2382         for global data if the output could be used in a shared library.
2383         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2384         to 0 if TARGET_WRITABLE_EH_FRAME.
2385
2386 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
2387
2388         PR rtl-optimization/39886
2389         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
2390         just when insn is equal to BB_END (bb).
2391
2392 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
2393
2394         * config/mips/mips.opt (mrelax-pic-calls): New option.
2395         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
2396         the file.
2397         (mips_unspec_call): Change "unspec_call" expander into this.
2398         (mips_strip_unspec_call): New function.
2399         (mips_got_load): Call mips_unspec_call instead of
2400         gen_unspec_call<mode>.
2401         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
2402         MIPS_CALL.
2403         (mips_cfg_in_reorg): New function.
2404         (mips16_lay_out_constants): Use it to decide whether to call
2405         CFG-aware insn splitting.
2406         (r10k_insert_cache_barriers): Move CFG set-up code from here to
2407         mips_reorg.  Move DF set-up code from here ...
2408         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
2409         from here.
2410         (mips_reorg): Call mips_df_reorg instead of
2411         r10k_insert_cache_barriers.  Move CFG set-up code here from
2412         r10k_insert_cache_barriers.
2413         (mips_call_expr_from_insn): New function.
2414         (mips_pic_call_symbol_from_set): Likewise.
2415         (mips_find_pic_call_symbol): Likewise.
2416         (mips_annotate_pic_call_expr): Likewise.
2417         (mips_get_pic_call_symbol): Likewise.
2418         (mips_annotate_pic_calls): Likewise.
2419         (mips_override_options): Disable -mrelax-pic-calls unless PIC
2420         calls are used.
2421         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
2422         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
2423         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
2424         directive.
2425         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
2426         (unspec_call<mode>): Remove it.
2427         (sibcall_internal, sibcall_value_internal,
2428         sibcall_value_multiple_internal, call_internal, call_split,
2429         call_value_internal, call_value_split,
2430         call_value_multiple_internal, call_value_multiple_split): Pass
2431         SIZE_OPNO to MIPS_CALL.
2432         (call_internal_direct, call_direct_split,
2433         call_value_internal_direct, call_value_direct_split): Pass -1 as
2434         SIZE_OPNO to MIPS_CALL.
2435         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
2436         * configure: Regenerate.
2437         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
2438         and -mno-relax-pic-calls.
2439         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
2440
2441 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2442
2443         PR bootstrap/35619
2444         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
2445         in the directory this rule is called from, rather than the
2446         toplevel 'gcc' directory, to fix in-tree build.
2447
2448 2009-09-19  Chris Demetriou  <cgd@google.com>
2449
2450         PR preprocessor/28435:
2451         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
2452         to cpplib that the preprocessor output is needed.
2453
2454 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
2455
2456         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
2457         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
2458         *return_and_restore_fpregs_<mode>,
2459         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
2460
2461         PR bootstrap/41397
2462         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
2463         instead of assuming it has always a REG inside of it.
2464
2465 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
2466
2467         * config/freebsd.h: Update comment on types.
2468         (WINT_TYPE): Define.
2469
2470 2009-09-18  Jason Merrill  <jason@redhat.com>
2471
2472         * c.opt: Add -fno-deduce-init-list.
2473
2474 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
2475
2476         * value-prof.c (interesting_stringop_to_profile_p): Added output
2477         argument to indicate which parameter is the size parameter.
2478         * value-prof.c (gimple_stringop_fixed_value): Use
2479         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
2480         * value-prof.c (gimple_stringops_transform): Update call sites to
2481         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
2482
2483 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
2484
2485         PR target/38288
2486         From David Binderman <dcb314@hotmail.com>:
2487         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
2488         local variable f.  Remove stale comments.
2489         (ix86_compute_frame_layout): Remove useless local variable total_size.
2490         Remove #if 0'd code.
2491         (legitimate_address_p): Remove useless local variables
2492         reason_rtx and reason.
2493         (ix86_split_copysign_const): Remove useless local variable op1.
2494         (scale_counter): Remove useless local variable piece_size_mask.
2495
2496 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
2497
2498         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
2499         output decl.
2500
2501 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2502
2503         PR target/40913
2504         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
2505
2506 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
2507
2508         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
2509         TYPE_STUB_DECL.
2510
2511 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
2512
2513         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
2514         DW_OP_implicit_value even without dwarf_version 4.
2515
2516 2009-09-17  Jan Hubicka  <jh@suse.cz>
2517
2518         * dwarf2out.c: Include tree-pass.h and gimple.h.
2519         (loc_list_plus_const): New function.
2520         (loc_descriptor_from_tree_1): Rename to ...
2521         (loc_descriptor_from_tree): ... remove original.
2522         (loc_list_from_tree): New function.
2523         (add_AT_location_description): Accept location list.
2524         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
2525         (concatn_mem_loc_descriptor): Remove.
2526         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
2527         returning NULL.
2528         (secname_for_decl): Move up.
2529         (hidden_reference_p): New function; break out from ...
2530         (loc_by_refernece): ... here; move up.
2531         (dw_loc_list): New function.
2532         (single_element_loc_list): New function.
2533         (single_element_loc_list_p): New function.
2534         (add_loc_descr_to_each): New function.
2535         (add_loc_list): New function.
2536         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
2537         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
2538         add diagnostics why expansion failed.
2539         (add_location_or_const_value_attribute): Support location lists.
2540         (add_bound_info): Likewise.
2541         (descr_info_loc): Update call of loc_descriptor_from_tree.
2542         (gen_variable_die): Work on location lists.
2543         * final.c (pass_final): Add dump file.
2544         * Makefile.in (dwarf2out.o): Add new dependencies.
2545
2546 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
2547
2548         PR c/41049
2549         * real.c decimal_from_integer, decimal_integer_string): New.
2550         (real_from_integer): Use them as special case for decimal float.
2551         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
2552         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
2553         Do not append zero after the decimal point in string to convert.
2554
2555 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
2556
2557         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2558         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
2559
2560 2009-09-17  Martin Jambor  <mjambor@suse.cz>
2561
2562         * common.opt (fipa-sra): New switch.
2563         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
2564         * timevar.def (TV_IPA_SRA): New timevar.
2565         * params.def (ipa-sra-ptr-growth-factor): New parameter.
2566         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
2567         * tree-sra.c: Include cgraph.c.
2568         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
2569         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
2570         and grp_not_necessarilly_dereferenced.
2571         (func_param_count): New variable.
2572         (encountered_apply_args): New variable.
2573         (bb_dereferences): New variable.
2574         (final_bbs): New variable.
2575         (no_accesses_representant): New variable.
2576         (no_accesses_p): New function.
2577         (dump_access): Dump the new fields.
2578         (sra_initialize): Set encountered_apply_args to false.
2579         (get_ssa_base_param): New function.
2580         (mark_parm_dereference): New function.
2581         (create_access): Caring for INIDRECT_REFs and different handling of
2582         varialble length accesses in early IPA SRA.  Store the stmt - a new
2583         parameter - to the new access.
2584         (build_access_from_expr_1): New parameter stmt, passed to
2585         create_access.  Handle INDIRECT_REFs.
2586         (build_access_from_expr): Pass the current statement to
2587         build_access_from_expr_1.
2588         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
2589         passes.
2590         (build_accesses_from_assign): Pass the current statement to
2591         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
2592         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
2593         final_bbs when necessary.  Check for calls to __builtin_apply_args.
2594         Fixup EH info if anythng was changed.
2595         (is_unused_scalar_param): New function.
2596         (ptr_parm_has_direct_uses): New function.
2597         (find_param_candidates): New function.
2598         (mark_maybe_modified): New function.
2599         (analyze_modified_params): New function.
2600         (propagate_dereference_distances): New function.
2601         (dump_dereferences_table): New function.
2602         (analyze_caller_dereference_legality): New function.
2603         (unmodified_by_ref_scalar_representative): New function.
2604         (splice_param_accesses): New function.
2605         (decide_one_param_reduction): New function.
2606         (enum ipa_splicing_result): New type.
2607         (splice_all_param_accesses): New function.
2608         (get_param_index): New function.
2609         (turn_representatives_into_adjustments): New function.
2610         (analyze_all_param_acesses): New function.
2611         (get_replaced_param_substitute): New function.
2612         (get_adjustment_for_base): New function.
2613         (replace_removed_params_ssa_names): New function.
2614         (sra_ipa_reset_debug_stmts): New function.
2615         (sra_ipa_modify_expr): New function.
2616         (sra_ipa_modify_assign): New function.
2617         (convert_callers): New function.
2618         (modify_function): New function.
2619         (ipa_sra_preliminary_function_checks): New function.
2620         (ipa_early_sra): New function.
2621         (ipa_early_sra_gate): New function.
2622         (pass_early_ipa_sra): New variable.
2623         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
2624
2625 2009-09-17  Michael Matz  <matz@suse.de>
2626
2627         PR middle-end/41347
2628         * tree.c (build_type_attribute_qual_variant): Export.
2629         * tree.h (build_type_attribute_qual_variant): Declare.
2630         * tree-inline.c (remap_type_1): Use it to build variants with
2631         the original qualifiers and attributes.
2632
2633 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2634
2635         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
2636         without a fallthrough edge.
2637
2638 2009-09-16  DJ Delorie  <dj@redhat.com>
2639
2640         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
2641         chip and ignore the "fast_interrupt" attribute if so.
2642
2643 2009-09-16  Richard Henderson  <rth@redhat.com>
2644
2645         PR middle-end/41360
2646         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
2647         barrier fix.
2648
2649 2009-09-16  Richard Henderson  <rth@redhat.com>
2650
2651         PR target/41246
2652         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
2653         is set only if DECL_NO_STATIC_CHAIN is unset.
2654         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
2655         (FOR_EACH_NEST_INFO): New.
2656         (walk_all_functions): Use it.
2657         (finalize_nesting_tree): Likewise.
2658         (unnest_nesting_tree): Likewise.
2659         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
2660         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
2661         (convert_gimple_call): Early out if gimple_call_chain already set.
2662         (convert_all_function_calls): Iterate until no new functions
2663         require a static chain.
2664         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
2665         when building a trampoline.  Use dump_function_to_file instead
2666         of dump_function.
2667         (lower_nested_functions): Open dump_file.  Validate that decls
2668         that have DECL_NO_STATIC_CHAIN from the front end don't have that
2669         bit reset by this pass.
2670
2671 2009-09-16  Michael Matz  <matz@suse.de>
2672
2673         PR fortran/41212
2674         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
2675         shorten decl_common_unused.
2676         (DECL_RESTRICTED_P): New accessor.
2677         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
2678         to disambiguate marked decls and restrict pointers.
2679
2680 2009-09-16  Richard Henderson  <rth@redhat.com>
2681
2682         PR middle-end/41360
2683         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
2684
2685 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
2686
2687         * integrate.c (set_block_abstract_flags): Call
2688         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
2689
2690 2009-09-16  Richard Guenther  <rguenther@suse.de>
2691
2692         PR middle-end/34011
2693         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
2694         as non-aliased.
2695
2696 2009-09-16  DJ Delorie  <dj@redhat.com>
2697             Kaz Kojima  <kkojima@gcc.gnu.org>
2698
2699         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
2700         (sh_expand_prologue): Update calls to output_stack_adjust.
2701         (sh_expand_epilogue): Likewise.
2702
2703 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
2704
2705         PR bootstrap/41349
2706         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
2707         trying to limit the extent of searches in the insn stream.
2708
2709 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
2710             Jakub Jelinek  <jakub@redhat.com>
2711
2712         PR target/41175
2713         PR target/40677
2714         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
2715         problem.
2716         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
2717         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
2718         (rs6000_savres_strategy): Always save FP registers inline if the
2719         target doesn't support hardware double-precision.  Set the above
2720         bits in return value when needed.
2721         (rs6000_savres_routine_sym): Fix computation for cache selector.
2722         Mark the generated symbol as a function.  Rename exitp argument to
2723         lr.  Move code for determining the name of the symbol...
2724         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
2725         getting the names right on AIX and 64-bit Linux.
2726         (savres_routine_name): New variable.
2727         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
2728         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
2729         on what the target routine uses as a base register.  If savep && lr
2730         describe saving of r0 into memory slot.
2731         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
2732         line calls for AIX ABI.
2733         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
2734         determine FP save/restore functions.
2735         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
2736         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
2737         gen_addsi3.
2738         (rs6000_emit_epilogue): Adjust computation of restore_lr.
2739         Duplicate restoration of LR and execute the appropriate one
2740         depending on whether GPRs are being restored inline.  Set r11 from
2741         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
2742         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
2743         Fix out of line calls for AIX ABI.
2744         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
2745         New insn.
2746         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
2747         register 11.
2748         (*restore_gpregs_spe): Likewise.
2749         (*return_and_restore_gpregs_spe): Likewise.
2750         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
2751         Define to empty string unconditionally.
2752         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
2753         Define to empty string unconditionally.
2754         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
2755         !TARGET_64BIT.
2756
2757 2009-09-15  Jan Hubicka  <jh@suse.cz>
2758
2759         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
2760         * params.def (inline-insns-auto): Likewise.
2761
2762 2009-09-15  Martin Jambor  <mjambor@suse.cz>
2763
2764         * ipa-inline.c (estimate_function_body_sizes): Dump info about
2765         individual statements only at TDF_DETAILS dump level.  Format
2766         source for 80 characters per line.
2767
2768 2009-09-15  Christian Bruel  <christian.bruel@st.com>
2769
2770         * regrename.c (do_replace): Update REG_DEAD notes.
2771
2772 2009-09-15  Revital Eres  <eres@il.ibm.com>
2773
2774         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
2775         * targhooks.c (default_builtin_support_vector_misalignment):
2776         New builtin function.
2777         * targhooks.h (default_builtin_support_vector_misalignment):
2778         Declare.
2779         * target.h (builtin_support_vector_misalignment):
2780         New field in struct gcc_target.
2781         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
2782         new builtin function.
2783         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
2784         Define.
2785         * config/rs6000/rs6000.c
2786         (rs6000_builtin_support_vector_misalignment): New function.
2787         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
2788
2789 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
2790
2791         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
2792         instead of INSN_P.
2793         (bfin_optimize_loop): Likewise.
2794         (bfin_gen_bundles): Likewise.
2795         (workaround_speculation): Likewise.
2796         (find_load): Return NULL_RTX for debug_insn.
2797
2798 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
2799
2800         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
2801         (sminsf3): Ditto.
2802
2803 2009-09-14  DJ Delorie  <dj@redhat.com>
2804
2805         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
2806         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
2807         VLIW mode.
2808
2809 2009-09-14  Richard Henderson  <rth@redhat.com>
2810             Jakub Jelinek  <jakub@redhat.com>
2811
2812         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
2813         * cfgbuild.c (make_edges): Handle asm goto.
2814         * cfglayout.c (fixup_reorder_chain): Likewise.
2815         * cfgrtl.c (patch_jump_insn): Likewise.
2816         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
2817         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
2818         (gimple_build_asm_vec): Add and use labels parameter.
2819         (gimple_build_asm): Remove.
2820         (walk_gimple_asm): Walk labels too.
2821         * gimple.def (GIMPLE_ASM): Update docs.
2822         * gimple.h: Update decls.
2823         (struct gimple_statement_asm): Change nc to use unsigned char;
2824         add nl member.
2825         (gimple_asm_nlabels): New.
2826         (gimple_asm_label_op, gimple_asm_set_label_op): New.
2827         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
2828         into gimple_build_asm_vec.
2829         * jump.c (mark_jump_label_asm): New.
2830         (mark_jump_label): Use it.
2831         (redirect_jump_1): Handle asm goto.
2832         (invert_jump_1): Soft fail if X is null.
2833         * recog.c (extract_asm_operands): New.
2834         (asm_noperands): Use it; handle asm labels.
2835         (decode_asm_operands): Use extract_asm_operands.
2836         (asm_operand_ok): Properly handle empty string.
2837         * reg-stack.c (get_asm_operands_in_out): Rename from
2838         get_asm_operand_n_inputs; use extract_asm_operands; return both
2839         inputs and outputs by reference; update all callers.
2840         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
2841         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
2842         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
2843         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
2844         (extract_asm_operands): Declare.
2845         * stmt.c (expand_asm_operands): Add and use labels parameter.
2846         (check_unique_operand_names): Likewise.
2847         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
2848         (expand_asm_stmt): Handle asm labels.
2849         * tree-cfg.c (make_gimple_asm_edges): New.
2850         (make_edges): Use it.
2851         (cleanup_dead_labels): Handle asm labels.
2852         (is_ctrl_altering_stmt): Likewise.
2853         (gimple_redirect_edge_and_branch): Likewise.
2854         * tree.def (ASM_EXPR): Add 5th operand.
2855         * tree.h (ASM_LABELS): New.
2856         (resolve_asm_operand_names): Update decl.
2857
2858         * c-parser.c (c_parser_asm_statement): Parse asm goto.
2859         (c_parser_asm_goto_operands): New.
2860         * c-tree.h (build_asm_expr): Update decl.
2861         * c-typeck.c (build_asm_expr): Add and use labels parameter.
2862         * doc/extend.texi: Document asm goto.
2863
2864 2009-09-14  Richard Henderson  <rth@redhat.com>
2865
2866         * except.h: Update declarations.
2867         (struct pointer_map_t): Forward declare.
2868         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
2869         (struct eh_landing_pad_d, eh_landing_pad): New.
2870         (struct eh_catch_d, eh_catch): New.
2871         (struct eh_region_d): Remove next_region_sharing_label, aka,
2872         label, tree_label, landing_pad, post_landing_pad, resume,
2873         may_contain_throw.  Rename region_number to index.  Remove
2874         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
2875         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
2876         (VEC(eh_landing_pad,gc)): New.
2877         (struct eh_status): Remove last_region_number.  Add lp_array,
2878         throw_stmt_table, ttype_data, ehspec_data.
2879         (ehr_next, FOR_ALL_EH_REGION_AT): New.
2880         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
2881         * except.c (lang_protect_cleanup_actions): Return tree.
2882         (struct ehl_map_entry): Remove.
2883         (init_eh_for_function): Push zero entries for region and lp_array.
2884         (gen_eh_region): Add to region_array immediately.
2885         (gen_eh_region_catch): Operate on eh_catch objects.
2886         (gen_eh_landing_pad): New.
2887         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
2888         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
2889         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
2890         (get_eh_landing_pad_from_number_fn): New.
2891         (get_eh_landing_pad_from_number): New.
2892         (get_eh_region_from_lp_number_fn): New.
2893         (get_eh_region_from_lp_number): New.
2894         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
2895         (get_exception_pointer, get_exception_filter): Remove.
2896         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
2897         (current_function_has_exception_handlers): Simplify.
2898         (bring_to_root, eh_region_replaceable_by_p): Remove.
2899         (replace_region, hash_type_list, hash_eh_region): Remove.
2900         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
2901         (label_to_region_map, num_eh_regions): Remove.
2902         (get_next_region_sharing_label, must_not_throw_labels): Remove.
2903         (find_exception_handler_labels): Remove.
2904         (duplicate_eh_regions_0, find_prev_try): Remove.
2905         (struct duplicate_eh_regions_data): New.
2906         (duplicate_eh_regions_1): Rewrite.
2907         (duplicate_eh_regions): Return a pointer map instead of an
2908         integer offset.
2909         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
2910         (redirect_eh_edge_to_label): Remove.
2911         (eh_region_outermost): Rewrite using eh_region pointers
2912         instead of integers.
2913         (add_ttypes_entry): Update for ttype_data move to eh_status.
2914         (add_ehspec_entry): Rewrite with VEC instead of varray.
2915         (assign_filter_values): Likewise.  Export.
2916         (build_post_landing_pads, connect_post_landing_pads): Remove.
2917         (dw2_build_landing_pads): Rewrite to use lp_array.
2918         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
2919         (sjlj_assign_call_site_values): Rewrite to use lp_array.
2920         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
2921         (sjlj_mark_call_sites): Update for landing pad numbers.
2922         (finish_eh_generation): Rewrite.
2923         (gate_handle_eh): Do nothing for no eh tree.
2924         (pass_rtl_eh): Move up near finish_eh_generation.
2925         (remove_eh_landing_pad): New.
2926         (remove_eh_handler): Export.
2927         (remove_eh_region, remove_eh_handler_and_replace): Remove.
2928         (for_each_eh_label): Rewrite to use lp_array.
2929         (make_reg_eh_region_note): New.
2930         (make_reg_eh_region_note_nothrow_nononlocal): New.
2931         (insn_could_throw_p): New.
2932         (copy_reg_eh_region_note_forward): New.
2933         (copy_reg_eh_region_note_backward): New.
2934         (check_handled, add_reachable_handler): Remove.
2935         (reachable_next_level, foreach_reachable_handler): Remove.
2936         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
2937         (get_eh_region_and_lp_from_rtx): New.
2938         (get_eh_region_from_rtx): New.
2939         (can_throw_internal_1, can_throw_external_1): Remove.
2940         (can_throw_internal): Use get_eh_region_from_rtx.
2941         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
2942         (insn_nothrow_p, can_nonlocal_goto): New.
2943         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
2944         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
2945         (add_action_record): Use VEC not varray.
2946         (collect_one_action_chain): Update for eh_region changes.
2947         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
2948         Use get_eh_region_and_lp_from_rtx.
2949         (gate_convert_to_eh_region_ranges): New.
2950         (pass_convert_to_eh_region_ranges): Use it.
2951         (push_uleb128, push_sleb128): Use VEC not varray.
2952         (output_one_function_exception_table): Likewise.
2953         (dump_eh_tree): Update for eh_region changes.
2954         (verify_eh_tree): Likewise.
2955         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
2956         * tree-eh.c: Include target.h.
2957         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
2958         Don't disallow GIMPLE_RESX; adjust argument check.
2959         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
2960         (record_stmt_eh_region): Update for landing pad numbers;
2961         generate a landing pad if necessary.
2962         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
2963         (remove_stmt_from_eh_lp_fn): Similarly.
2964         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
2965         Update for lp numbers; don't special case missing throw_stmt_table.
2966         (lookup_expr_eh_lp): Similarly.
2967         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
2968         (eh_seq, eh_region_may_contain_throw): New.
2969         (struct leh_state): Add ehp_region.
2970         (struct leh_tf_state): Remove eh_label.
2971         (emit_post_landing_pad): New.
2972         (emit_resx, emit_eh_dispatch): New.
2973         (note_eh_region_may_contain_throw): New.
2974         (frob_into_branch_around): Take eh_region not eh label;
2975         emit eh code into eh_seq.
2976         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
2977         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
2978         lower_eh_must_not_throw.  Emit code to eh_seq.
2979         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
2980         (lower_try_finally_onedest): Likewise.
2981         (lower_try_finally_copy): Likewise.
2982         (lower_try_finally_switch): Likewise.
2983         (lower_try_finally): Initialize ehp_region.
2984         (lower_catch): Update for eh_catch objects.
2985         (lower_eh_filter): Don't handle must_not_throw.
2986         (lower_eh_must_not_throw): New.
2987         (lower_cleanup): Don't set eh_label.
2988         (lower_eh_constructs_2): Resolve eh builtins.
2989         Handle GIMPLE_EH_MUST_NOT_THROW.
2990         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
2991         Add eh_seq to the end of the function body.
2992         (make_eh_dispatch_edges): New.
2993         (make_eh_edge): Remove.
2994         (make_eh_edges): Simplify for landing pads.
2995         (redirect_eh_edge_1): New.
2996         (redirect_eh_edge): Use it.
2997         (redirect_eh_dispatch_edge): New.
2998         (stmt_could_throw_p): Use a switch.  Allow RESX.
2999         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3000         (stmt_can_throw_internal): Likewise.
3001         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3002         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3003         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3004         (gate_refactor_eh): New.
3005         (pass_refactor_eh): Use it.
3006         (lower_resx, execute_lower_resx, pass_lower_resx): New.
3007         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3008         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3009         (remove_unreachable_handlers): Rename from
3010         tree_remove_unreachable_handlers; rewrite for landing pads;
3011         call remove_eh_handler directly.
3012         (remove_unreachable_handlers_no_lp): New.
3013         (unsplit_eh, unsplit_all_eh): New.
3014         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3015         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3016         (cleanup_empty_eh_unsplit): New.
3017         (cleanup_empty_eh): Rewrite.
3018         (cleanup_all_empty_eh): New.
3019         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
3020         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
3021         (gate_cleanup_eh): New.
3022         (pass_cleanup_eh): Use it.
3023         (verify_eh_edges): Move later in file.  Expect one EH edge.
3024         (verify_eh_dispatch_edge): New.
3025
3026         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3027         (gtype-desc.o): Add TARGET_H.
3028         (tree.o): Use EXCEPT_H, not except.h.
3029         (cfgbuild.o): Add EXPR_H.
3030         (GTFILES): Add vecprim.h.
3031         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3032         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3033         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3034         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3035         * calls.c (emit_call_1): Use make_reg_eh_region_note.
3036         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3037         calls to can_throw_internal.
3038         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3039         (make_edges): Don't handle RESX; use can_nonlocal_goto.
3040         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3041         (expand_gimple_stmt): Use make_reg_eh_region_note.
3042         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3043         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3044         or find_exception_handler_labels.
3045         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
3046         there is exacly one EH edge.  Use can_nonlocal_goto and
3047         can_throw_internal.
3048         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3049         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3050         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3051         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3052         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3053         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3054         * dse.c (scan_insn): Use insn_could_throw_p.
3055         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3056         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3057         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3058         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3059         EXC_PTR_EXPR or FILTER_EXPR.
3060         (tree_expr_nonzero_warnv_p): Likewise.
3061         * function.h: Include vecprim.h, not varray.h
3062         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3063         move ttype_data and ehspec_data members to struct eh_status; change
3064         action_record_data member to a VEC.
3065         * gcse.c (hash_scan_set): Use can_throw_internal.
3066         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3067         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3068         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3069         (block_may_fallthru): Don't handle RESX_EXPR.
3070         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3071         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3072         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3073         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3074         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3075         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3076         (gimple_size): Likewise.
3077         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3078         (gimple_build_resx): Use gimple_build_with_ops.
3079         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3080         (is_gimple_val): Likewise.
3081         (is_gimple_stmt): Remove RESX_EXPR.
3082         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3083         (GIMPLE_RESX): Reorder with other EH constructs.
3084         * gimple.h (struct gimple_statement_eh_mnt): New.
3085         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3086         (gimple_eh_filter_must_not_throw): Remove.
3087         (gimple_eh_filter_set_must_not_throw): Remove.
3088         (gimple_eh_must_not_throw_fndecl): New.
3089         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3090         (is_gimple_resx): New.
3091         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3092         Don't copy EH_FILTER_MUST_NOT_THROW.
3093         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3094         * ipa-inline.c (estimate_function_body_sizes): Don't try to
3095         handle must_not_throw_labels specially.
3096         * ipa-pure-const.c (check_call): Update debug statement for LP.
3097         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3098         * ipa-utils.c (get_base_var): Likewise.
3099         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3100         * lower-subreg.c (move_eh_region_note): Remove.
3101         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3102         * omp-low.c (new_omp_context): Update for eh_lp_nr.
3103         (create_task_copyfn): Likewise.
3104         (maybe_catch_exception): Use gimple_build_eh_filter.
3105         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3106         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
3107         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3108         and pass_lower_resx.
3109         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3110         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3111         can_throw_internal, can_nonlocal_goto.
3112         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3113         copy_reg_eh_region_note_forward.
3114         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3115         (emit_output_reload_insns): Likewise.
3116         (copy_eh_notes): Remove.
3117         * rtl.def (RESX): Remove.
3118         * rtl.h: Update declarations.
3119         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
3120         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
3121         (update_eh_label): Remove.
3122         (cleanup_dead_labels_eh): New.
3123         (cleanup_deal_labels): Use it instead of update_eh_label.
3124         (gimple_merge_blocks): Update landing pad data structure when
3125         removing a landing pad label.
3126         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
3127         test; handle GIMPLE_EH_MUST_NOT_THROW.
3128         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
3129         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
3130         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
3131         (verify_stmt): Likewise.  Verify landing pads.
3132         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
3133         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
3134         (struct move_stmt_d): Add eh_map.
3135         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
3136         (move_stmt_r): Remap eh region numbers in builtin calls,
3137         resx and eh_dispatch.
3138         (move_block_to_fn): Remove eh_offset parameter.  Use
3139         maybe_duplicate_eh_stmt_fn.
3140         (find_outermost_region_in_block): Operate on eh_region pointers
3141         instead of region numbers.
3142         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
3143         duplicate_eh_regions.
3144         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
3145         test earlier.  Disallow EH landing pads.
3146         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
3147         * tree-flow.h: Update declarations.
3148         (struct tree_ann_common_d): Replace rn with lp_nr.
3149         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
3150         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
3151         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
3152         resx and eh_dispatch.
3153         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
3154         (copy_edges_for_bb): Use make_eh_dispatch_edges.
3155         (copy_cfg_body): Expect eh_map instead of eh_region_offset
3156         from duplicate_eh_regions.
3157         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
3158         update RESX; handle EH_DISPATCH.
3159         (expand_call_inline): Set eh_lp_nr, not eh_region.
3160         (maybe_inline_call_in_expr): Likewise.
3161         * tree-inline.h (struct copy_body_data): Replace eh_region with
3162         eh_lp_nr, eh_region_offset with eh_map.
3163         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
3164         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
3165         * tree-pretty-print.c (dump_generic_node): Don't handle
3166         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
3167         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
3168         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
3169         EXC_PTR_EXPR, FILTER_EXPR.
3170         * tree-ssa-operands.c (get_expr_operands): Likewise.
3171         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
3172         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3173         (ao_ref_init_from_vn_reference): Likewise.
3174         * tree-ssa-sink.c (statement_sink_location): Likewise.
3175         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3176         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
3177         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
3178         EXC_PTR_EXPR, FILTER_EXPR.
3179         (is_exception_related): Remove.
3180         (compute_avail): Don't call it.
3181         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
3182         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
3183         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
3184         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
3185         Build EH builtins.
3186         (build_resx): Remove.
3187         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
3188         * tree.h: Update declarations.
3189         (EH_FILTER_MUST_NOT_THROW): Remove.
3190         (struct tree_label_decl): Add eh_landing_pad_nr.
3191         (EH_LANDING_PAD_NR): New.
3192         * value-prof.c (gimple_ic): Tidy variable names.  Update for
3193         landing pad numbers.
3194         (gimple_stringop_fixed_value): Tidy variable names.  Assert
3195         that neither call stmt can throw.
3196         * vecprim.h (uchar): New.
3197         (VEC(uchar,heap), VEC(uchar,gc)): New.
3198
3199         * c-common.c (c_define_builtins): Update call to
3200         build_common_builtin_nodes.
3201         * c-parser.c (c_parse_file): Don't call
3202         default_init_unwind_resume_libfunc.
3203
3204 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3205
3206         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
3207         (mips_cprestore_address_p): Likewise.
3208         (mips_save_gp_to_cprestore_slot): Likewise.
3209         (mips_restore_gp): Rename to...
3210         (mips_restore_gp_from_cprestore_slot): ...this.
3211         (mips_must_initialize_gp_p): Declare.
3212         (mips_emit_save_slot_move): Likewise.
3213         (mips_output_load_label): Return nothing.
3214         (mips_eh_uses): Declare.
3215         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
3216         (TARGET_CPRESTORE_DIRECTIVE): New macro.
3217         (TARGET_ABSOLUTE_JUMPS): Likewise.
3218         (EH_USES): Likewise.
3219         (FIRST_PSEUDO_REGISTER): Update comment.
3220         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
3221         (MIPS_CALL): ...here.
3222         (REGISTER_NAMES): Add $cprestore.
3223         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
3224         Add load_label_length, has_inflexible_gp_insn_p,
3225         has_flexible_gp_insn_p, must_initialize_gp_p and
3226         must_restore_gp_when_clobbered_p.
3227         (mips_expand_call): Don't generate split instructions here.
3228         (mips_split_call): Update the call to mips_restore_gp after
3229         the above name change.
3230         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
3231         (mips_find_gp_ref): New function.
3232         (mips_insn_has_inflexible_gp_ref_p): Likewise.
3233         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
3234         (mips_insn_has_flexible_gp_ref_p): Likewise.
3235         (mips_cfun_has_flexible_gp_ref_p): Likewise.
3236         (mips_function_has_gp_insn): Delete.
3237         (mips_global_pointer): Drop the df_regs_ever_live_p check.
3238         Use the new functions above.  Only return INVALID_REGNUM
3239         for TARGET_ABSOLUTE_JUMPS.
3240         (mips_must_initialize_gp_p): New function.
3241         (mips_get_cprestore_base_and_offset): New function, extracted from...
3242         (mips_cprestore_slot): ...here.  Take a bool parameter.
3243         (mips_cfun_has_cprestore_slot_p): New function.
3244         (mips_cprestore_address_p): Likewise.
3245         (mips_save_gp_to_cprestore_slot): Likewise.
3246         (mips_restore_gp): Rename to...
3247         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
3248         epilogue_completed.  Update the call to mips_cprestore_slot.
3249         Test cfun->machine->must_restore_gp_when_clobbered_p.
3250         (mips_direct_save_slot_move_p): New function.
3251         (mips_emit_save_slot_move): Likewise.
3252         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
3253         of cfun->machine->global_pointer.
3254         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
3255         (mips_save_reg): Use mips_emit_save_slot_move.
3256         (mips_expand_prologue): Set must_initialize_gp_p.
3257         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
3258         for all cprestore saves.  Emit a use_cprestore instruction after
3259         setting up the cprestore slot.
3260         (mips_restore_reg): Use mips_emit_save_slot_move.
3261         (mips_process_load_label): New function.
3262         (mips_load_label_length): Likewise.
3263         (mips_output_load_label): Don't return asm: output it here instead.
3264         Use mips_process_load_label.
3265         (mips_adjust_insn_length): Adjust the length of branch instructions
3266         that have length MAX_PIC_BRANCH_LENGTH.
3267         (mips_output_conditional_branch): Update the call to
3268         mips_output_load_label.  Assume the branch target is OPERANDS[0]
3269         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
3270         (mips_output_order_conditional_branch): Swap the meaning of
3271         OPERANDS[0] and OPERANDS[1].
3272         (mips_variable_issue): Don't count ghost instructions.
3273         (mips_expand_ghost_gp_insns): New function.
3274         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
3275         (mips_output_mi_thunk): Set must_initialize_gp_p.
3276         (mips_eh_uses): New function.
3277         * config/mips/predicates.md (cprestore_save_slot_operand)
3278         (cprestore_load_slot_operand): New predicates.
3279         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
3280         (UNSPEC_MOVE_GP): Likewise.
3281         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
3282         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
3283         (CPRESTORE_SLOT_REGNUM): New register.
3284         (MAX_PIC_BRANCH_LENGTH): New constant.
3285         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
3286         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
3287         branches.  Fix commentary.
3288         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
3289         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
3290         Change type to "ghost".
3291         (loadgp_absolute_<mode>): Likewise.
3292         (loadgp_rtp_<mode>): Likewise.
3293         (copygp_mips16): Likewise.
3294         (loadgp_blockage): Remove redundant mode attribute.
3295         (potential_cprestore): New instruction.
3296         (cprestore): Turn into an unspec set.
3297         (use_cprestore): New instruction.
3298         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
3299         (*branch_fp_inverted): Likewise.
3300         (*branch_order<mode>): Likewise.
3301         (*branch_order<mode>_inverted): Likewise.
3302         (*branch_equality<mode>): Likewise.
3303         (*branch_equality<mode>_inverted): Likewise.
3304         (*branch_bit<bbv><mode>): Likewise.
3305         (*branch_bit<bbv><mode>_inverted): Likewise.
3306         (*branch_equality<mode>_mips16): Remove redundant mode.
3307         (jump): Turn into a define_expand.
3308         (*jump_absolute): New instruction.
3309         (*jump_pic): Likewise.
3310         (*jump_mips16): Rename previously-unnamed pattern.  Remove
3311         redundant mode attribute.
3312         (restore_gp): Split on epilogue_completed rather than
3313         reload_completed.  Change type to "ghost".
3314         (move_gp<mode>): New instruction.
3315         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
3316         Remove redundant mode attribute.
3317         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
3318         (bc1any4f, bc1any2t, bc1any2f): Likewise.
3319         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
3320
3321 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3322
3323         PR target/41210
3324         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
3325         are returned in the same register (vs34 or v2) that Altivec vector
3326         types are returned in.
3327         (rs6000_libcall_value): Ditto.
3328
3329         PR target/41331
3330         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
3331         instead of explicit addsi3/adddi3 calls.
3332         (rs6000_split_multireg_move): Ditto.
3333         (rs6000_emit_allocate_stack): Ditto.
3334         (rs6000_emit_prologue): Ditto.
3335         (rs6000_output_mi_thunk): Ditto.
3336
3337         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
3338         size is 64 bits if we can use 64-bit registers.
3339
3340 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
3341
3342         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
3343         symbols.
3344
3345         From Jie Zhang <jie.zhang@analog.com>:
3346         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
3347         save FP and RETS with saveall attribute.
3348         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
3349         with saveall attribute.
3350
3351         * config/bfin/bfin.c (bfin_expand_builtin,
3352         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
3353         operands.
3354
3355         From Jie Zhang <jie.zhang@analog.com>:
3356         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
3357         before use in two places.
3358         * config/bfin/bfin.md (AREG): Define mode iterator.
3359         (reload_in, reload_out): Use mode iterator AREG.
3360
3361 2009-09-14  Richard Guenther  <rguenther@suse.de>
3362
3363         PR middle-end/41350
3364         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
3365         EH personality path.
3366
3367 2009-09-13  Richard Guenther  <rguenther@suse.de>
3368             Rafael Avila de Espindola  <espindola@google.com>
3369
3370         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
3371         (LANG_HOOKS_EH_PERSONALITY): Likewise.
3372         (LANG_HOOKS_INITIALIZER): Adjust.
3373         (lhd_pass_through_t): Declare.
3374         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
3375         eh_personality.
3376         * langhooks.c (lhd_pass_through_t): New function.
3377         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
3378         dwarf2out_begin_prologue): Use personality from current_function_decl.
3379         * expr.h (get_personality_function): Declare.
3380         * expr.c (get_personality_function): New function.
3381         (build_personality_function): Likewise.
3382         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
3383         (eh_personality_libfunc): Remove.
3384         * optabs.c (build_libfunc_function): New function split out from ...
3385         (init_one_libfunc): ... here.
3386         * tree.h (DECL_FUNCTION_PERSONALITY): New.
3387         (tree_function_decl): Add personality.
3388         (lhd_gcc_personality): Declare.
3389         (build_personality_function): Likewise.
3390         * tree.c (gcc_eh_personality_decl): New.
3391         (lhd_gcc_personality): New function.
3392         * except.h (lang_eh_runtime_type): Remove.
3393         (enum eh_personality_kind): New.
3394         (build_personality_function): Declare.
3395         (function_needs_eh_personality): Declare.
3396         * except.c (lang_eh_runtime_type): Remove.
3397         (function_needs_eh_personality): New function.
3398         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
3399         (sjlj_emit_function_enter, output_function_exception_table):
3400         Use personality from current_function_decl.
3401         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
3402         * tree-inline.c (tree_can_inline_p): Do not inline across different
3403         EH personalities.
3404         (expand_call_inline): Likewise.  Adjust the callers EH personality.
3405         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
3406         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
3407         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
3408         (c-parser.o): Likewise
3409         * c-tree.h (c_eh_initialized_p): Remove.
3410         (c_maybe_initialize_eh): Likewise.
3411         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
3412         (finish_decl): Don't call c_maybe_initialize_eh.
3413         (c_eh_initialized_p): Remove.
3414         (c_maybe_initialize_eh): Likewise.
3415         * c-parser.c (c_parser_omp_construct): Likewise.
3416         (c_parse_file): Initialize exception handling.
3417
3418 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
3419
3420         * config.gcc (tm_file): Remove i386/biarch32.h
3421         for i?86-w64-mingw* case.
3422         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
3423         support.
3424         * config.host: Set for x64 mingw the option
3425         use_long_long_for_widest_fast_int to yes.
3426
3427 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
3428
3429         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3430         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
3431         (dbxout_begin_function): Likewise.
3432         * final.c (dwarf2_debug_info_emitted_p): New predicate.
3433         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
3434         set on the function.
3435         (final_end_function): Likewise.
3436         (final_scan_insn): Likewise.
3437         (rest_of_handle_final): Likewise.
3438         * varasm.c (assemble_start_function): Likewise.
3439         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3440
3441 2009-09-12  Jason Merrill  <jason@redhat.com>
3442
3443         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
3444         * opts.c (common_handle_option): constify.
3445
3446 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
3447
3448         * doc/install.texi (avr): Remove obsolete reference site.
3449
3450 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
3451
3452         * doc/install.texi (Binaries): Adjust AIX link.
3453
3454 2009-09-12  Akim Demaille  <demaille@gostai.com>
3455
3456         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
3457         Use an imperative sentence.
3458
3459 2009-09-11  Richard Henderson  <rth@redhat.com>
3460
3461         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
3462         structure-name and has-tree-operands arguments; update all entries.
3463         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
3464         update all entries.
3465         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
3466         (gsstruct_code_size): New.
3467         (gss_for_code_): New.
3468         (gss_for_code): Remove.
3469         (gimple_size): Rewrite using gsstruct_code_size.
3470         (gimple_statement_structure): Move to gimple.h.
3471         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
3472         (gss_for_code, gimple_statement_structure): New.
3473         (gimple_ops): Use new arrays; tidy.
3474
3475 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3476
3477         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
3478         operand to be a PLUS expression.
3479         * config/pa/pa.c (pa_secondary_reload): Likewise.
3480
3481 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
3482
3483         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
3484
3485         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
3486         XEXP (in_rtx, 8).
3487
3488 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3489
3490         From Jie Zhang <jie.zhang@analog.com>:
3491         * doc/extend.texi (node Function Attributes): Document l2
3492         function attribute.
3493         (node Blackfin Variable Attributes): Document l2 variable attributes.
3494
3495 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
3496
3497         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
3498         to match the system compiler's configuration at inflection point.
3499         Add comment to remark a remaining difference with system compiler.
3500
3501         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
3502         * configure: Regenerate.
3503
3504 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3505
3506         From Jie Zhang <jie.zhang@analog.com>:
3507         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
3508         (bfin_handle_l2_attribute): New.
3509         (bfin_attribute_table): Add l2 attribute.
3510
3511 2009-09-11  Michael Matz  <matz@suse.de>
3512
3513         PR middle-end/41275
3514         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
3515         on the local_decls list.
3516
3517 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
3518
3519         PR debug/41276
3520         PR debug/41307
3521         * cselib.c (cselib_expand_value_rtx_cb): Document callback
3522         interface.
3523         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
3524         for VALUEs, to implement the documented interface.
3525         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
3526         Adjust for VALUEs and anything else, to implement the
3527         documented interface.
3528
3529 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
3530
3531         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
3532         with actual SPE/paired vector modes before using 64-bit alignment.
3533         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
3534
3535 2009-09-10  DJ Delorie  <dj@redhat.com>
3536
3537         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
3538         emitted.
3539
3540         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
3541         * config/mep/mep.c (mep_legitimate_constant_p): New.
3542         * config/mep/mep-protos.h: Prototype it.
3543
3544 2009-09-10  Richard Henderson  <rth@redhat.com>
3545
3546         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
3547
3548 2009-09-10  Jason Merrill  <jason@redhat.com>
3549
3550         * tree.c (chain_index): New fn.
3551         * tree.h: Declare it.
3552
3553 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3554
3555         * config/sol2-c.c (cmn_err_length_specs): Initialize
3556         scalar_identity_flag.
3557
3558 2009-09-10  Richard Henderson  <rth@redhat.com>
3559
3560         * tree.h (struct tree_decl_common): Move align member earlier;
3561         move label_decl_uid member ...
3562         (struct tree_label_decl): ... here.
3563         (LABEL_DECL_UID): Update to match.
3564
3565         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
3566         not TDF_DETAILS.
3567
3568         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
3569         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
3570
3571         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
3572         dest_prev if the edge is complex.
3573
3574         * tree-cfg.c (is_ctrl_stmt): Use a switch.
3575
3576         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
3577         loop latch tests earlier.
3578
3579         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
3580         before GIMPLE_RETURN, not after its predecessor; insert
3581         before GIMPLE_RESX.
3582
3583         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
3584         gimple_seq_empty_p to test for no PHI nodes.
3585         * tree-cfg.c (split_critical_edges): Likewise.
3586
3587         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
3588
3589 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
3590
3591         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
3592         introduced by the VTA branch merge.
3593
3594 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
3595
3596         * ira-conflicts.c: Use fputs or putc instead of fprintf
3597         where appropriate.
3598         * cfg.c: Ditto.
3599         * toplev.c: Ditto.
3600         * tree-switch-conversion.c: Ditto.
3601
3602 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
3603
3604         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
3605         introduced by the VTA branch merge.
3606
3607 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
3608
3609         Revert:
3610         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
3611
3612         PR rtl-optimization/39779
3613         * expr.c (convert_modes): Return when mode == oldmode after
3614         CONST_INTs are processed.
3615
3616 2009-09-10  Nick Clifton  <nickc@redhat.com>
3617
3618         * config/mep/mep.c (mep_encode_section_info): Copy weakness
3619         attribute and referring decl when creating renamed symbol.
3620
3621 2009-09-10  Richard Guenther  <rguenther@suse.de>
3622
3623         PR middle-end/41257
3624         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
3625         reachable nodes.
3626         (cgraph_finalize_compilation_unit): Compute reachability
3627         before emitting thunks.  Properly process aliases before
3628         possibly removing unreachable nodes.
3629
3630 2009-09-10  Richard Guenther  <rguenther@suse.de>
3631
3632         PR middle-end/41254
3633         * tree.c (struct free_lang_data_d): Add worklist member.
3634         (find_decls_types_r): Push onto the worklist instead of recursing.
3635         Handle TREE_BINFOs properly.
3636         (find_decls_types): New function wrapped around find_decls_types_r
3637         to process the worklist.
3638         (find_decls_types_in_eh_region): Use it.
3639         (find_decls_types_in_node): Likewise.
3640         (find_decls_types_in_var): Likewise.
3641         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
3642         * tree.h (RECORD_OR_UNION_TYPE_P): New.
3643         (AGGREGATE_TYPE_P): Adjust.
3644
3645 2009-09-09  Jason Merrill  <jason@redhat.com>
3646
3647         * configure.ac: Check glibc version even if we have an in-tree
3648         assembler.
3649
3650 2009-09-09  Anthony Green  <green@moxielogic.com>
3651
3652         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
3653         the constant 0 when appropriate.
3654         * config/moxie/constraints.md: Add constraint O.
3655
3656         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
3657         to pass up to 6 32-bit argument values in registers.
3658         (moxie_function_arg): Ditto.
3659         (moxie_arg_partial_bytes): Ditto.
3660         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
3661         (REG_PARM_STACK_SPACE): Ditto.
3662         (FUNCTION_ARG_REGNO_P): Ditto.
3663
3664         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
3665         instruction to allocate stack space.
3666
3667 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
3668
3669         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
3670         unnecessarily stringent constraints.  Fix address
3671         calculation in the splitters.
3672
3673 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
3674
3675         PR rtl-optimization/39779
3676         * expr.c (convert_modes): Return when mode == oldmode after
3677         CONST_INTs are processed.
3678
3679 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
3680
3681         PR/41315
3682         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
3683         (ix86_expand_prologue): Take frame.padding0 into logic of
3684         to_allocate checks.
3685         (ix86_expand_epilogue): Likewise.
3686
3687 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
3688
3689         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
3690         New variables.
3691         (SHLIB_LINK, SHLIB_INSTALL): Use them.
3692         * config/t-slibgcc-libgcc: New file.
3693         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
3694
3695 2009-09-09  Martin Jambor  <mjambor@suse.cz>
3696
3697         PR tree-optimization/41089
3698         * tree-sra.c (find_var_candidates): Do not consider va_lists in
3699         early SRA.
3700
3701 2009-09-09  Richard Henderson  <rth@redhat.com>
3702
3703         * gimple.h (CASE_GIMPLE_OMP): New.
3704         (is_gimple_omp): Use it.
3705         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
3706         (verify_gimple_debug): Likewise.
3707
3708 2009-09-09  Richard Guenther  <rguenther@suse.de>
3709
3710         PR tree-optimization/41101
3711         * tree-ssa-pre.c (maximal_set): Remove.
3712         (compute_antic_aux): Treat the maximal set as implicitly all ones.
3713         Defer all blocks we didn't visit at least one successor.
3714         (add_to_exp_gen): Do not add to the maximal set.
3715         (make_values_for_phi): Likewise.
3716         (compute_avail): Likewise.
3717         (init_pre): Do not allocate the maximal set.
3718         (execute_pre): Do not dump it.
3719
3720 2009-09-09  Martin Jambor  <mjambor@suse.cz>
3721
3722         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
3723         an SSA_NAME rather than a is_gimple_variable.
3724
3725 2009-09-09  Richard Guenther  <rguenther@suse.de>
3726
3727         PR middle-end/41317
3728         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
3729         code dealing with plain pointer bases.
3730         (maybe_fold_offset_to_reference): Likewise.
3731         (maybe_fold_stmt_addition): Adjust.
3732
3733 2009-09-09  Richard Guenther  <rguenther@suse.de>
3734
3735         * tree.c (free_lang_data_in_type): Do not free the type variant
3736         chains.
3737         (free_lang_data): Merge char_type_node with its properly signed
3738         variant.
3739         (pass_ipa_free): Collect after freeing language specific data.
3740
3741 2009-09-09  Michael Matz  <matz@suse.de>
3742
3743         PR middle-end/41268
3744         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
3745         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
3746         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
3747         to reflect reality.
3748
3749 2009-09-08  DJ Delorie  <dj@redhat.com>
3750
3751         * config/mep/mep.c (conversions[]): Add "ml" pattern.
3752
3753 2009-09-04  Jason Merrill  <jason@redhat.com>
3754
3755         * tree.c (tree_find_value): Remove.
3756         * tree.h: Remove prototype.
3757         * varasm.c (assemble_external): Use value_member instead.
3758
3759 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3760
3761         * toplev.c (process_options): Choose default debugging type when
3762         gtoggle enables debug info and type is unset.
3763
3764 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3765
3766         PR debug/41276
3767         PR debug/41307
3768         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
3769         invalid subreg.
3770
3771 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3772
3773         * configure: Rebuilt with modified libtool.m4.
3774
3775 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3776
3777         PR debug/41229
3778         PR debug/41291
3779         PR debug/41300
3780         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
3781
3782 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3783
3784         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
3785         (remove_statement): Likewise.
3786         (rewrite_use_nonlinear_expr): Adjust.
3787         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
3788         * tree-ssa.c (release_defs_bitset): ... this.  New.
3789         * tree-flow.h (release_defs_bitset): Declare.
3790
3791 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
3792
3793         PR debug/41232
3794         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
3795         in the middle block.
3796
3797 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
3798
3799         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
3800         via intptr_t to long type.
3801         (insert_operand_rank): Cast long type via intptr_t to
3802         pointer type.
3803         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
3804         pointer to scalar.
3805         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
3806         from pointer to unsigned via uintptr_t.
3807
3808         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
3809         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
3810         and HAVE_INTPTR_T.
3811         * configure: Regenerated.
3812         * config.in: Regenerated
3813         * system.h (stdint.h): Add include.
3814         (inttypes.h): Likewise.
3815         * Makefile.in (aclocal): Add config/stdint.m4.
3816         * aclocal.m4: Regenerated.
3817
3818 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
3819
3820         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
3821         variables.
3822         (note_np_check_stores): New function.
3823         (harmless_null_pointer_p): New function.
3824         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
3825         changed.  Take into account whether we're in the shadow of a condjump
3826         that tested NP_REG for NULL.
3827         Lose all code that tested for SEQUENCEs.
3828         (workaround_speculation): Avoid inserting NOPs for loads that are
3829         either always executed or a NULL pointer.
3830
3831 2009-09-08  Jan Hubicka  <jh@suse.cz>
3832
3833         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
3834         * params.def (early-inlining-insns): Likewise.
3835
3836 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
3837
3838         PR rtl-optimization/41239
3839         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
3840         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
3841         lists.
3842         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
3843         across calls, as the calls might not always return normally.
3844         (call_may_noreturn_p): New function.
3845         (deps_analyze_insn): Update last_function_call_may_noreturn list.
3846         (init_deps): Initialize it.
3847         (remove_from_deps): Also remove calls from
3848         last_function_call_may_noreturn list.
3849
3850 2009-09-07  Richard Henderson  <rth@redhat.com>
3851
3852         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
3853         more VR->OPERANDS than LHS operands.  Free LHS before returning.
3854
3855 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
3856
3857         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
3858         (attr "addrtype"): New member "spreg".
3859         Use it if mem_spfp_address_operand is true for the address.
3860         (attr "type"): New entry "stall".
3861         (cpu_unit "load"): New.
3862         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
3863         "load".
3864         (insn_reservation "loadsp"): New.
3865         (insn_reservation "load_stall1"): New.
3866         (insn_reservation "load_stall3"): New.
3867         (stall): New insn.
3868         * config/bfin/predicates.md (const1_operand, const3_operand): New.
3869         (mem_p_address_operand): Exclude stack and frame pointer based
3870         addresses.
3871         (mem_spfp_address_operand): New; match them here.
3872         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
3873         (bfin_reorg): Call it if scheduling insns.
3874         (bfin_gen_bundles): Remove dummy insns created by
3875         add_sched_insns_for_speculation.
3876
3877         From Jie Zhang <jie.zhang@analog.com>:
3878         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
3879         bfin_si_revision, bfin_workarounds): Move these ...
3880         * config/bfin/bfin.h: ... here.
3881
3882         From Mike Frysinger  <michael.frysinger@analog.com>
3883         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
3884         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
3885         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
3886         bf547m, bf548m, and bf549m.
3887         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
3888         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
3889         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
3890         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
3891         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3892         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
3893         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3894         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3895         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
3896         bf542m, bf544m, bf547m, bf548m, and bf549m.
3897
3898         From Jie Zhang <jie.zhang@analog.com>:
3899         * config/bfin/predicates.md (p_register_operand): New predicate.
3900         (dp_register_operand): New predicate.
3901         * config/bfin/bfin-protos.h (WA_05000074): Define.
3902         (ENABLE_WA_05000074): Define.
3903         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
3904         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
3905         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
3906         (define_attr addrtype): Allow load/store register to be P register.
3907         (define_attr storereg): New.
3908         (define_cpu_unit anomaly_05000074): New.
3909         (define_insn_reservation dsp32shiftimm): New.
3910         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
3911         (define_insn_reservation loadp): Cannot use slot2.
3912         (define_insn_reservation loadsp): Cannot use slot2.
3913         (define_insn_reservation storep): Cannot use slot2. Does not
3914         apply when working around 05000074.
3915         (define_insn_reservation storep_anomaly_05000074): New.
3916         (define_insn_reservation storei): Does not apply when working
3917         around 05000074.
3918         (define_insn_reservation storei_anomaly_05000074): New.
3919         (define_attr length): Add dsp32shiftimm case.
3920         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
3921         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
3922         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
3923         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
3924         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
3925
3926 2009-09-07  Martin Jambor  <mjambor@suse.cz>
3927
3928         PR middle-end/41282
3929         * tree-sra.c (create_artificial_child_access): Return NULL if
3930         build_ref_for_offset fails.
3931         (propagate_subacesses_accross_link): Allow build_ref_for_offset
3932         and create_artificial_child_access to fail.
3933
3934 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
3935
3936         PR c++/41214
3937         * unwind-dw2.c (uw_init_context_1): Mark noinline.
3938         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
3939         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
3940
3941 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
3942
3943         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
3944         block, ensure it has an exit edge.  Emit a barrier after a jump.
3945
3946 2009-09-07  Nick Clifton  <nickc@redhat.com>
3947
3948         * gcc.c (this_is_linker_script): New variable.  Like
3949         this_is_library_file but for the %T constructor.
3950         (end_going_arg): If this_is_linker_script is set then locate the
3951         script and insert a --script switch before it
3952         (do_spec_2): Initialise this_is_linker_script.
3953         (do_spec_1): Likewise.  Handle %T construct.
3954         (eval_spec_function): Preserve this_is_linker_script.
3955         * doc/invoke.texi: Document %T construct in spec files.
3956         * config/m32c/m32c.h (LIB_SPEC): Use it.
3957
3958 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3959
3960         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
3961         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
3962         when volatile flag is set.
3963         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
3964
3965 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3966
3967         PR bootstrap/41241
3968         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
3969         (combine_stack_adjustments_for_block): Allow insns between stack
3970         adjustments and stores with corresponding pre-(dec|inc)rement or
3971         pre-modify operation.
3972
3973 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
3974
3975         PR bootstrap/41241
3976         * combine-stack-adj.c (struct csa_memlist): Rename to...
3977         (struct csa_reflist): ... this.  Rename mem field to ref.
3978         (free_csa_memlist): Rename to...
3979         (free_csa_reflist): ... this.
3980         (record_one_stack_memref): Rename to...
3981         (record_one_stack_ref): ... this.  Handle also REG_P.
3982         (try_apply_stack_adjustment): Handle also REG_P.
3983         (struct record_stack_memrefs_data): Rename to...
3984         (struct record_stack_refs_data): ... this.  Rename memlist field to
3985         reflist.
3986         (record_stack_memrefs): Rename to...
3987         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
3988         subexpressions instead of failing when a MEM contains SP references.
3989         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
3990         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
3991
3992 2009-09-06  Richard Guenther  <rguenther@suse.de>
3993
3994         PR middle-end/41144
3995         * tree.c (build_array_type): Do not record types marked
3996         with structural equality in the canonical type hashtable.
3997
3998 2009-09-06  Richard Guenther  <rguenther@suse.de>
3999
4000         PR middle-end/41261
4001         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4002
4003 2009-09-05  Richard Guenther  <rguenther@suse.de>
4004
4005         PR middle-end/41181
4006         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4007
4008 2009-09-05  Richard Guenther  <rguenther@suse.de>
4009
4010         PR debug/41273
4011         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4012
4013 2009-09-05  Richard Guenther  <rguenther@suse.de>
4014
4015         PR middle-end/41271
4016         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4017         before comparing function argument types.
4018
4019 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4020
4021         PR target/41024
4022         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
4023         the assembler.
4024
4025 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4026
4027         Revert:
4028         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
4029
4030         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4031         locators before emit_insn is called.
4032
4033 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4034
4035         PR bootstrap/41241
4036         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
4037         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
4038         (reginfo_init): Don't call allocate_reg_info.
4039
4040 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4041
4042         PR target/41262
4043         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
4044         NONDEBUG_INSN_P instead of INSN_P.
4045
4046 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4047
4048         PR debug/41225
4049         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
4050
4051 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4052
4053         PR target/41252
4054         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
4055         pattern of the split.
4056
4057 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4058
4059         * toplev.c (process_options): Move setter of flag_var_tracking
4060         before other tests that depend on it.  Move down setter of
4061         flag_rename_registers.  Don't enable var-tracking-assignments
4062         by default if selective scheduling is enabled.  Warn if both
4063         are enabled.
4064
4065 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4066
4067         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
4068         comment.  Use switch statement to catch overlaps between rtx
4069         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
4070         (IS_DECL_CODE): ... here. Remove.
4071         (check_value_is_not_decl): Remove.
4072         (dv_from_decl, dv_from_value): Check after conversion.
4073
4074 2009-09-04  Richard Guenther  <rguenther@suse.de>
4075
4076         PR middle-end/41257
4077         * (cgraph_finalize_compilation_unit): Move finalizing aliases
4078         after emitting tunks.  Move emitting thunks and ctors from ...
4079         (cgraph_optimize): ... here.  Remove redundant
4080         cgraph_analyze_functions.
4081         * varasm.c (find_decl_and_mark_needed): Remove no longer
4082         necessary check.
4083         (finish_aliases_1): Adjust check for thunk aliases.
4084
4085 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
4086
4087         * config/arm/arm.md (ctzsi2): Added braces
4088         to avoid warning that broke booststrap.
4089
4090 2009-09-04  Martin Jambor  <mjambor@suse.cz>
4091
4092         PR tree-optimization/41112
4093         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
4094         handle variable-bounded arrays.
4095         (expr_with_var_bounded_array_refs_p): New function.
4096         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
4097
4098 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
4099
4100         * config/s390/2097.md: Removed two incorrect bypasses.
4101         (z10_fsimpdf): Fixed latency.
4102         (z10_fhex): New insn_reservation.
4103         (z10_floaddf): Fixed latency.
4104         (z10_floadsf): Fixed latency.
4105         (z10_ftrunctf): Fixed latency.
4106         (z10_ftruncdf): Fixed latency.
4107         * config/s390/s390.c (z10_cost): Fixed values.
4108         (s390_adjust_priority): Added z10 path.
4109         * config/s390/s390.md (type): Added fhex.
4110         (*mov<mode>_64dfp): Updated type attribute.
4111         (*mov<mode>_64): Updated type attribute.
4112         (*mov<mode>_31): Updated type attribute.
4113         (*mov<mode>"): Likewise.
4114         * config/s390/2084.md (x_fsimpdf): Updated condition.
4115
4116 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4117
4118         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
4119         RTXs in the predicate for operand 1.
4120
4121 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
4122
4123         * config/arm/arm.md (UNSPEC_RBIT): New constant.
4124         (rbitsi2): New insn.
4125         (ctzsi2): New expand.
4126         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
4127
4128 2009-09-03  Martin Jambor  <mjambor@suse.cz>
4129
4130         * tree-sra.c (duplicate_expr_for_different_base): Removed.
4131         (create_artificial_child_access): Use build_ref_for_offset instead
4132         of duplicate_expr_for_different_base.
4133         (propagate_subacesses_accross_link): Likewise.
4134
4135 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
4136
4137         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
4138         of INSN_P.
4139         (mips16e_collect_argument_saves): Skip debug instructions.
4140         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
4141         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
4142         (r10k_insert_cache_barriers): Likewise.
4143         (mips_reorg_process_insns): Likewise.
4144
4145 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4146
4147         PR bootstrap/41241
4148         * ira.c (update_equiv_reg): Remove check on class likely spill.
4149
4150 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
4151
4152         PR debug/41236
4153         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
4154         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
4155         it or SUBREG.
4156
4157         PR debug/41238
4158         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
4159         the stack slot if it is passed by invisible reference.
4160         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
4161         by invisible reference.
4162
4163 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4164
4165         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4166         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4167         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
4168         0.
4169         * config/bfin/sync.md: New file.
4170         * config/bfin/bfin.md: Include it.
4171         (UNSPEC_ATOMIC): New.
4172         (UNSPEC_ONES): Provide a unique number.
4173
4174         From Jie Zhang <jie.zhang@analog.com>:
4175         * config/bfin/bfin.c (ret_regs): New.
4176         (must_save_fp_p): Don't return true because of frame_pointer_needed.
4177         (must_save_rets_p): New.
4178         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
4179         current_function_is_leaf.
4180         (do_link): Likewise.
4181         (do_unlink): Likewise.
4182         (expand_interrupt_handler_prologue): Use ret_regs array.
4183         (expand_interrupt_handler_epilogue): Use ret_regs array and
4184         pass return register to gen_return_internal.
4185         (bfin_expand_epilogue): Pass return register to
4186         gen_return_internal.
4187         (bfin_expand_call): Explicitly clobber RETS.
4188         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
4189         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
4190         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
4191         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
4192         RETS.
4193         (return_internal): Take a reg rtx rather than the register number.
4194
4195 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4196
4197         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
4198         when comparing against estimated_loop_iterations_int return.
4199
4200 2009-09-03  Richard Guenther  <rguenther@suse.de>
4201
4202         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
4203         eh_personality_libfunc.
4204
4205 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4206
4207         * tree-parloops.c (separate_decls_in_region): Add space.
4208
4209 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4210
4211         * tree-parloops.c (separate_decls_in_region): Change the condition
4212         checking if there are reductions in the loop.
4213
4214 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4215
4216         PR tree-optimization/38275
4217         * tree-parloops.c (parallelize_loops): Replace profitability condition
4218         for expected number of iterations.
4219
4220 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4221
4222         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
4223         (bootstrap-debug): Explain conditions in which it becomes default.
4224         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
4225         make it add to it.
4226
4227 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
4228
4229         * doc/invoke.texi (Optimize Options): Move
4230         -finline-small-functions to the -O2 list.
4231
4232 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4233
4234         * toplev.c (process_options): Enable var-tracking-assignments
4235         by default if var-tracking is enabled.
4236
4237 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
4238
4239         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
4240         barrier.
4241         * emit-rtl.c (prev_nonnote_insn_bb): New function.
4242         * rtl.h (prev_nonnote_insn_bb): Declare it.
4243
4244 2009-09-03  Diego Novillo  <dnovillo@google.com>
4245
4246         * cgraph.c (cgraph_node_for_decl): New.
4247         * cgraph.h (cgraph_node_for_decl): Declare.
4248         * tree.c (host_integerp): Return 0 if T is NULL.
4249
4250 2009-09-03  Diego Novillo  <dnovillo@google.com>
4251
4252         * tree.h (struct alias_pair): Move from varasm.c.
4253         (alias_pairs): Likewise.
4254         (TYPE_MAXVAL): Define.
4255         (TYPE_MINVAL): Define.
4256         (iterative_hash_host_wide_int): Declare.
4257         (remove_unreachable_alias_pairs): Declare.
4258         * tree-pass.h (pass_ipa_free_lang_data): Declare.
4259         * diagnostic.c (default_diagnostic_starter): Make extern.
4260         (default_diagnostic_finalizer): Make extern.
4261         * diagnostic.h (default_diagnostic_starter): Declare.
4262         (default_diagnostic_finalizer): Declare.
4263         (default_tree_printer): Declare.
4264         * toplev.c (default_tree_printer): Make extern.
4265
4266 2009-09-03  Richard Guenther  <rguenther@suse.de>
4267             Diego Novillo  <dnovillo@google.com>
4268
4269         * cgraph.c (cgraph_add_new_function): Remove gimplification.
4270         * cgraphunit.c (cgraph_expand_function): Do not emit
4271         associated thunks from here.
4272         (cgraph_emit_thunks): New.
4273         (cgraph_optimize): Call it.
4274         Return if any IPA pass finds an error.
4275         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
4276         by thunks.
4277
4278 2009-09-03  Simon Baldwin  <simonb@google.com>
4279             Rafael Espindola  <espindola@google.com>
4280             Richard Guenther  <rguenther@suse.de>
4281             Doug Kwan  <dougkwan@google.com>
4282             Diego Novillo  <dnovillo@google.com>
4283
4284         * tree.c: Include tree-pass.h, langhooks-def.h,
4285         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
4286         (free_lang_data_in_type): New.
4287         (need_assembler_name_p): New.
4288         (free_lang_data_in_block): New.
4289         (free_lang_data_in_decl): New.
4290         (struct free_lang_data_d): New.
4291         (add_tree_to_fld_list): New.
4292         (find_decls_types_r): New.
4293         (get_eh_types_for_runtime): New.
4294         (find_decls_types_in_eh_region): New.
4295         (find_decls_types_in_node): New.
4296         (find_decls_types_in_var): New.
4297         (free_lang_data_in_cgraph): New.
4298         (free_lang_data): New.
4299         (gate_free_lang_data): New.
4300         (pass_ipa_free_lang_data): New.
4301
4302 2009-09-03  Diego Novillo  <dnovillo@google.com>
4303
4304         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
4305         * langhooks.h (struct lang_hooks): Add field free_lang_data.
4306         (lang_hooks): Remove const qualifier.
4307         * ipa.c (cgraph_remove_unreachable_nodes): Call
4308         remove_unreachable_alias_pairs.
4309         * except.c (add_type_for_runtime): Check if TYPE has
4310         already been converted.
4311         (lookup_type_for_runtime): Likewise.
4312         (check_handled): Handle converted types.
4313         * varasm.c (remove_unreachable_alias_pairs): New.
4314         * gimple.c: Include demangle.h.
4315         (gimple_decl_printable_name): New.
4316         (gimple_fold_obj_type_ref): New.
4317         * gimple.h (gimple_decl_printable_name): Declare.
4318         (gimple_fold_obj_type_ref): Declare.
4319         * passes.c (init_optimization_passes): Add pass
4320         pass_ipa_free_lang_data.
4321         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
4322         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
4323
4324 2009-09-03  Diego Novillo  <dnovillo@google.com>
4325
4326         * c-lang.c (lang_hooks): Remove const qualifier.
4327
4328 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
4329
4330         * doc/install.texi (*-*-freebsd*): Update target information.
4331
4332 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
4333
4334         * hard-reg-set.h (call_fixed_regs): Remove.
4335         * reginfo.c (call_fixed_regs): Remove.
4336         (init_reg_sets_1): Remove initialization of call_fixed_regs.
4337         (globalize_reg): Don't use call_fixed_regs.
4338         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
4339         call_fixed_regs.
4340
4341 2009-09-01  Michael Matz  <matz@suse.de>
4342
4343         * expr.h (emit_storent_insn, expand_expr_real_1,
4344         expand_expr_real_2): Declare.
4345         * expr.c (emit_storent_insn, expand_expr_real_1,
4346         expand_expr_real_2): Export.
4347         (store_expr): Setting and evaluating dont_return_target is useless.
4348         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
4349         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
4350         * except.c (expand_resx_expr): Rename to ...
4351         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
4352         * except.h (expand_resx_stmt): Declare.
4353         * stmt.c: Add include gimple.h
4354         (expand_asm_expr): Rename to ...
4355         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
4356         (expand_case): Rewrite to take gimple statement.
4357         * tree.h (expand_asm_stmt): Declare.
4358         (expand_case): Change prototype.
4359         * Makefile.in (stmt.o): Depend on gimple.h.
4360         * builtins.c (expand_builtin_synchronize): Build gimple asm
4361         statement, not an ASM_EXPR.
4362         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
4363         gimple_to_tree, release_stmt_tree): Remove.
4364         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
4365         ggc_free, but hold comparison code and operands separately.
4366         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
4367         (expand_call_stmt, expand_gimple_stmt_1,
4368         expand_gimple_stmt): New helpers.
4369         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
4370         release_stmt_tree.  Call expand_gimple_stmt instead.
4371         (expand_gimple_basic_block): Ditto.
4372
4373         * calls.c (emit_call_1): Don't look at EH regions here, make
4374         fntree parameter useless.
4375         (expand_call): New local rettype for TREE_TYPE(exp), use it
4376         throughout.  Remove local p, use addr instead.
4377         Don't look at EH regions here.
4378
4379 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
4380
4381         * doc/invoke.texi (-fsched-pressure): Document it.
4382         (-fsched-reg-pressure-heuristic): Remove it.
4383
4384         * reload.c (ira.h): Include.
4385         (find_reloads): Add choosing reload on number of small spilled
4386         classes.
4387
4388         * haifa-sched.c (ira.h): Include.
4389         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
4390         saved_reg_pressure, curr_reg_live, saved_reg_live,
4391         region_ref_regs): New variables.
4392         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
4393         initiate_reg_pressure_info, setup_ref_regs,
4394         initiate_bb_reg_pressure_info, save_reg_pressure,
4395         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
4396         functions.
4397         (setup_insn_reg_pressure_info): New function.
4398         (rank_for_schedule): Add pressure checking and insn issue time.
4399         Remove comparison of insn reg weights.
4400         (ready_sort): Set insn reg pressure info.
4401         (update_register_pressure, setup_insn_max_reg_pressure,
4402         update_reg_and_insn_max_reg_pressure,
4403         sched_setup_bb_reg_pressure_info): New functions.
4404         (schedule_insn): Add code for printing and updating reg pressure info.
4405         (find_set_reg_weight, find_insn_reg_weight): Remove.
4406         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
4407         (debug_ready_list): Print reg pressure info.
4408         (schedule_block): Ditto.  Check insn issue time.
4409         (sched_init): Set up sched_pressure_p.  Allocate and set up some
4410         reg pressure related info.
4411         (sched_finish): Free some reg pressure related info.
4412         (fix_tick_ready): Make insn always ready if pressure_p.
4413         (init_h_i_d): Don't call find_insn_reg_weight.
4414         (haifa_finish_h_i_d): Free insn reg pressure info.
4415
4416         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4417         ira_memory_move_cost, ira_class_hard_regs,
4418         ira_class_hard_regs_num, ira_no_alloc_regs,
4419         ira_available_class_regs, ira_reg_class_cover_size,
4420         ira_reg_class_cover, ira_class_translate): Move to ira.h.
4421
4422         * ira-lives.c (single_reg_class): Check mode to find how many
4423         registers are necessary for operand.
4424         (ira_implicitly_set_insn_hard_regs): New.
4425
4426         * common.opt (fsched-pressure): New options.
4427         (fsched-reg-pressure-heuristic): Remove.
4428
4429         * ira.c (setup_eliminable_regset): Rename to
4430         ira_setup_eliminable_regset.  Make it external.
4431         (expand_reg_info): Pass cover class to setup_reg_classes.
4432         (ira): Call resize_reg_info instead of allocate_reg_info.
4433
4434         * sched-deps.c: Include ira.h.
4435         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
4436         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
4437         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
4438         mark_insn_hard_regno_birth, mark_insn_reg_birth,
4439         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
4440         mark_insn_reg_store, mark_insn_reg_clobber,
4441         setup_insn_reg_pressure_info): New.
4442         (sched_analyze_1): Update implicit_reg_pending_uses.
4443         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
4444         Use them to create dependencies.  Set insn reg uses and pressure
4445         info.  Process reg_pending_uses in one place.
4446         (free_deps): Free implicit sets.
4447         (remove_from_deps): Remove implicit sets if necessary.  Check
4448         implicit sets when clearing reg_last_in_use.
4449         (init_deps_global): Clear implicit_reg_pending_clobbers and
4450         implicit_reg_pending_uses.
4451
4452         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4453         ira_memory_move_cost, ira_class_hard_regs,
4454         ira_class_hard_regs_num, ira_no_alloc_regs,
4455         ira_available_class_regs, ira_reg_class_cover_size,
4456         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
4457         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
4458         ira_implicitly_set_insn_hard_regs): New prototypes.
4459
4460         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
4461         cost_elements_num): New variables.
4462         (allocno_costs, total_costs): Rename to costs and
4463         total_allocno_costs.
4464         (COSTS_OF_ALLOCNO): Rename to COSTS.
4465         (allocno_pref): Rename to pref.
4466         (allocno_pref_buffer): Rename to pref_buffer.
4467         (common_classes): Rename to regno_cover_class.
4468         (COST_INDEX): New.
4469         (record_reg_classes): Set allocno attributes only if allocno_p.
4470         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
4471         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
4472         and COSTS_OF_ALLOCNO.
4473         (print_costs): Rename to print_allocno_costs.
4474         (print_pseudo_costs): New.
4475         (process_bb_node_for_costs): Split into 2 functions with new
4476         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
4477         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
4478         new parameter dump_file.  Use cost_elements_num instead of
4479         ira_allocnos_num.  Make one iteration if preferred classes were
4480         already calculated for scheduler.  Make 2 versions of code
4481         depending on allocno_p.
4482         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
4483         regno_cover_class and COSTS instead of common_classes and
4484         COSTS_OF_ALLOCNO.
4485         (init_costs, finish_costs): New.
4486         (ira_costs): Set up allocno_p and cost_elements_num.  Call
4487         init_costs and finish_costs.
4488         (ira_set_pseudo_classes): New.
4489
4490         * rtl.h (allocate_reg_info): Remove.
4491         (resize_reg_info): Change return type.
4492         (reg_cover_class): New.
4493         (setup_reg_classes): Add new parameter.
4494
4495         * sched-int.h (struct deps_reg): New member implicit_sets.
4496         (sched_pressure_p, sched_regno_cover_class): New external definitions.
4497         (INCREASE_BITS): New macro.
4498         (struct reg_pressure_data, struct reg_use_data): New.
4499         (struct _haifa_insn_data): Remove reg_weight.  Add members
4500         reg_pressure, reg_use_list, reg_set_list, and
4501         reg_pressure_excess_cost_change.
4502         (struct deps): New member implicit_sets.
4503         (pressure_p): New variable.
4504         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
4505         (struct reg_pressure_data, struct reg_use_data): New.
4506         (INSN_REG_WEIGHT): Remove.
4507         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
4508         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
4509         (sched_init_region_reg_pressure_info,
4510         sched_setup_bb_reg_pressure_info): New prototypes.
4511
4512         * reginfo.c (struct reg_pref): New member coverclass.
4513         (reg_cover_class): New function.
4514         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
4515         (reg_info_size): New variable.
4516         (allocate_reg_info): Make static.  Setup reg_info_size.
4517         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
4518         (setup_reg_classes): Add a new parameter.  Setup cover class too.
4519
4520         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
4521         the dependencies.
4522
4523         * sched-rgn.c (deps_join): Set up implicit_sets.
4524         (schedule_region): Set up region and basic blocks pressure
4525         relative info.
4526
4527         * passes.c (init_optimization_passes): Move
4528         pass_subregs_of_mode_init before pass_sched.
4529
4530 2009-09-02  Martin Jambor  <mjambor@suse.cz>
4531
4532         * tree-sra.c (struct access): New field grp_hint.
4533         (dump_access): Dump grp_hint.
4534         (sort_and_splice_var_accesses): Set grp_hint if a group is read
4535         multiple times.
4536         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
4537         those which have been specifically read and somehow written to.
4538         (propagate_subacesses_accross_link): Set grp_hint of right child and
4539         also possibly of the left child.
4540
4541 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
4542
4543         * tree-object-size.c (addr_object_size): Always use object_size_type
4544         0 or 2 when determining the pointer pointed object size.
4545
4546 2009-09-02  Richard Guenther  <rguenther@suse.de>
4547
4548         Revert
4549         2009-08-31  Richard Guenther  <rguenther@suse.de>
4550
4551         * builtins.c (fold_builtin_memory_op): Use the alias oracle
4552         to query if the memory regions for memmove overlap.
4553         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
4554         asserts on pointers, instead deal with odd trees.
4555         (ptr_derefs_may_alias_p): Likewise.
4556         (refs_may_alias_p_1): Constructor bases also never alias.
4557
4558 2009-08-01  Christian Bruel  <christian.bruel@st.com>
4559
4560         Revert:
4561         2009-07-31  Christian Bruel  <christian.bruel@st.com>
4562         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4563
4564 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
4565
4566         * doc/invoke.texi (-fvar-tracking-assignments): New.
4567         (-fvar-tracking-assignments-toggle): New.
4568         (-fdump-final-insns=file): Mark filename as optional.
4569         (--param min-nondebug-insn-uid): New.
4570         (-gdwarf-@{version}): Mention version 4.
4571         * opts.c (common_handle_option): Accept it.
4572         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
4573         * regrename.c (regrename_optimize): Drop last.  Don't count debug
4574         insns as uses.  Don't reject change because of debug insn.
4575         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
4576         from the chain starter, and check for inexact matches in DEBUG_INSNS.
4577         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
4578         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
4579         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
4580         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
4581         * doc/gimple.texi (is_gimple_debug): New.
4582         (gimple_debug_bind_p): New.
4583         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
4584         * doc/install.texi (bootstrap-debug): More details.
4585         (bootstrap-debug-big, bootstrap-debug-lean): Document.
4586         (bootstrap-debug-lib): More details.
4587         (bootstrap-debug-ckovw): Update.
4588         (bootstrap-time): New.
4589         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
4590         (insert_phi_nodes_for): Insert debug stmts.
4591         (rewrite_stmt): Take iterator.  Insert debug stmts.
4592         (rewrite_enter_block): Adjust.
4593         (maybe_replace_use_in_debug_stmt): New.
4594         (rewrite_update_stmt): Use it.
4595         (mark_use_interesting): Return early for debug stmts.
4596         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
4597         stmts before replacing stmt.
4598         (move_computations_stmt): Likewise.
4599         * ira-conflicts.c (add_copies): Skip debug insns.
4600         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
4601         (regstat_bb_compute_ri): Skip debug insns.
4602         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
4603         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
4604         check_loop_closed_ssa_stmt): Skip debug stmts.
4605         * tree-tailcall.c (find_tail_calls): Likewise.
4606         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4607         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
4608         (build_var_debug_value_stat): Declare.
4609         (build_var_debug_value): Define.
4610         (target_for_debug_bind): Declare.
4611         * reload.c (find_equiv_reg): Skip debug insns.
4612         * rtlanal.c (reg_used_between_p): Skip debug insns.
4613         (side_effects_p): Likewise.
4614         (canonicalize_condition): Likewise.
4615         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
4616         insns never depend on debug insns.
4617         (create_ddg_dep_no_link): Likewise.
4618         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
4619         Don't add inter-loop dependencies for debug insns.
4620         (build_intra_loop_deps): Likewise.
4621         (create_ddg): Count debug insns.
4622         * ddg.h (struct ddg::num_debug): New.
4623         (num_backargs): Pair up with previous int field.
4624         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
4625         -fcompare-debug-second.
4626         * final.c (get_attr_length_1): Skip debug insns.
4627         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
4628         * gcc.c (invoke_as): Call compare-debug-dump-opt.
4629         (driver_self_specs): Map -fdump-final-insns to
4630         -fdump-final-insns=..
4631         (get_local_tick): New.
4632         (compare_debug_dump_opt_spec_function): Test for . argument and
4633         compute output name.  Compute temp output spec without flag name.
4634         Compute -frandom-seed.
4635         (OPT): Undef after use.
4636         * cfgloopanal.c (num_loop_insns): Skip debug insns.
4637         (average_num_loop_insns): Likewise.
4638         * params.h (MIN_NONDEBUG_INSN_UID): New.
4639         * gimple.def (GIMPLE_DEBUG): New.
4640         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
4641         * auto-inc-dec.c (merge_in_block): Skip debug insns.
4642         (merge_in_block): Fix whitespace.
4643         * toplev.c (flag_var_tracking): Update comment.
4644         (flag_var_tracking_assignments): New.
4645         (flag_var_tracking_assignments_toggle): New.
4646         (process_options): Don't open final insns dump file if we're not
4647         going to write to it.  Compute defaults for var_tracking.
4648         * df-scan.c (df_insn_rescan_debug_internal): New.
4649         (df_uses_record): Handle debug insns.
4650         * haifa-sched.c (ready): Initialize n_debug.
4651         (contributes_to_priority): Skip debug insns.
4652         (dep_list_size): New.
4653         (priority): Use it.
4654         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
4655         they're ready.  Disregard previous debug insns to make decisions.
4656         (queue_insn): Never queue debug insns.
4657         (ready_add, ready_remove_first, ready_remove): Count debug insns.
4658         (schedule_insn): Don't reject debug insns because of issue rate.
4659         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
4660         (queue_to_ready): Skip and discount debug insns.
4661         (choose_ready): Let debug insns through.
4662         (schedule_block): Check boundary debug insns.  Discount debug
4663         insns, schedule them early.  Adjust whitespace.
4664         (set_priorities): Check for boundary debug insns.
4665         (add_jump_dependencies): Use dep_list_size.
4666         (prev_non_location_insn): New.
4667         (check_cfg): Use it.
4668         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
4669         stmts.
4670         (remove_unused_ivs): Reset debug stmts.
4671         * modulo-sched.c (const_iteration_count): Skip debug insns.
4672         (res_MII): Discount debug insns.
4673         (loop_single_full_bb_p): Skip debug insns.
4674         (sms_schedule): Likewise.
4675         (sms_schedule_by_order): Likewise.
4676         (ps_has_conflicts): Likewise.
4677         * caller-save.c (refmarker_fn): New.
4678         (save_call_clobbered_regs): Replace regs with saved mem in
4679         debug insns.
4680         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
4681         Call refmarker_fn mark for hardregnos.
4682         (mark_reg_as_referenced): New.
4683         (replace_reg_with_saved_mem): New.
4684         * ipa-pure-const.c (check_stmt): Skip debug stmts.
4685         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
4686         searching back.
4687         (cse_extended_basic_block): Skip debug insns.
4688         (count_reg_usage): Likewise.
4689         (is_dead_reg): New, split out of...
4690         (set_live_p): ... here.
4691         (insn_live_p): Use it for debug insns.
4692         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
4693         (execute_optimize_stdarg): Likewise.
4694         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
4695         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
4696         changes in debug stmts as changes.
4697         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
4698         (moveup_expr): Don't move across debug insns.  Don't move
4699         debug insn if it would create a bookkeeping block.
4700         (moveup_expr_cached): Don't use cache for debug insns that
4701         are heads of blocks.
4702         (compute_av_set_inside_bb): Skip debug insns.
4703         (sel_rank_for_schedule): Schedule debug insns first.  Remove
4704         dead code.
4705         (block_valid_for_bookkeeping_p); Support lax searches.
4706         (create_block_for_bookkeeping): Adjust block numbers when
4707         encountering debug-only blocks.
4708         (find_place_for_bookkeeping): Deal with debug-only blocks.
4709         (generate_bookkeeping_insn): Accept no place to insert.
4710         (remove_temp_moveop_nops): New argument full_tidying.
4711         (prepare_place_to_insert): Deal with debug insns.
4712         (advance_state_on_fence): Debug insns don't start cycles.
4713         (update_boundaries): Take fence as argument.  Deal with
4714         debug insns.
4715         (schedule_expr_on_boundary): No full_tidying on debug insns.
4716         (fill_insns): Deal with debug insns.
4717         (track_scheduled_insns_and_blocks): Don't count debug insns.
4718         (need_nop_to_preserve_insn_bb): New, split out of...
4719         (remove_insn_from_stream): ... this.
4720         (fur_orig_expr_not_found): Skip debug insns.
4721         * rtl.def (VALUE): Move up.
4722         (DEBUG_INSN): New.
4723         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
4724         (nearest_common_dominator_of_uses): Take debug_stmts argument.
4725         Set it if debug stmts are found.
4726         (statement_sink_location): Skip debug stmts.  Propagate
4727         moving defs into debug stmts.
4728         * ifcvt.c (first_active_insn): Skip debug insns.
4729         (last_active_insns): Likewise.
4730         (cond_exec_process_insns): Likewise.
4731         (noce_process_if_block): Likewise.
4732         (check_cond_move_block): Likewise.
4733         (cond_move_convert_if_block): Likewise.
4734         (block_jumps_and_fallthru_p): Likewise.
4735         (dead_or_predicable): Likewise.
4736         * dwarf2out.c (debug_str_hash_forced): New.
4737         (find_AT_string): Add comment.
4738         (gen_label_for_indirect_string): New.
4739         (get_debug_string_label): New.
4740         (AT_string_form): Use it.
4741         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
4742         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
4743         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
4744         several operations that cannot be represented with DWARF opcodes.
4745         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
4746         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
4747         (dwarf2out_var_location): Take during-call mark into account.
4748         (output_indirect_string): Update comment.  Output if there are
4749         label and references.
4750         (prune_indirect_string): New.
4751         (prune_unused_types): Call it if debug_str_hash_forced.
4752         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
4753         (dw_long_long_const): Remove.
4754         (struct dw_val_struct): Change val_long_long type to rtx.
4755         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
4756         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
4757         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
4758         component instead of HOST_BITS_PER_LONG.
4759         (output_loc_operands): Likewise.  For const8* assert
4760         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
4761         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
4762         rather than HOST_BITS_PER_LONG is >= 64.
4763         (add_AT_long_long): Remove val_hi and val_lo arguments, add
4764         val_const_double.
4765         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
4766         HOST_BITS_PER_LONG for dw_val_class_long_long.
4767         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
4768         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
4769         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
4770         DW_OP_stack_value.
4771         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
4772         Handle DW_OP_implicit_value.
4773         (extract_int): Move prototype earlier.
4774         (mem_loc_descriptor): For SUBREG punt if inner
4775         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
4776         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
4777         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
4778         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
4779         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
4780         instead of Pmode size.
4781         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
4782         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
4783         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
4784         (concat_loc_descriptor, concatn_loc_descriptor,
4785         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
4786         (add_location_or_const_value_attribute): Likewise.  For single
4787         location loc_lists attempt to use add_const_value_attribute
4788         for constant decls.  Add DW_AT_const_value even if
4789         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
4790         in its expression.
4791         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
4792         (control_flow_insn_p): Likewise.
4793         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
4794         (separate_decls_in_region_debug_bind): New.
4795         (separate_decls_in_region): Process debug bind stmts afterwards.
4796         * recog.c (verify_changes): Handle debug insns.
4797         (extract_insn): Likewise.
4798         (peephole2_optimize): Skip debug insns.
4799         * dse.c (scan_insn): Skip debug insns.
4800         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
4801         Pass it on.
4802         (setup_id_for_insn): Handle debug insns.
4803         (maybe_tidy_empty_bb): Adjust whitespace.
4804         (tidy_control_flow): Skip debug insns.
4805         (sel_remove_insn): Adjust for debug insns.
4806         (sel_estimate_number_of_insns): Skip debug insns.
4807         (create_insn_rtx_from_pattern): Handle debug insns.
4808         (create_copy_of_insn_rtx): Likewise.
4809         * sel-sched-.h (sel_bb_end): Declare.
4810         (sel_bb_empty_or_nop_p): New.
4811         (get_all_loop_exits): Use it.
4812         (_eligible_successor_edge_p): Likewise.
4813         (return_nop_to_pool): Adjust.
4814         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
4815         * ira-lives.c (process_bb_node_lives): Skip debug insns.
4816         * gimple-pretty-print.c (dump_gimple_debug): New.
4817         (dump_gimple_stmt): Use it.
4818         (dump_bb_header): Skip gimple debug stmts.
4819         * regmove.c (optimize_reg_copy_1): Discount debug insns.
4820         (fixup_match_2): Likewise.
4821         (regmove_backward_pass): Likewise.  Simplify combined
4822         replacement.  Handle debug insns.
4823         * function.c (instantiate_virtual_regs): Handle debug insns.
4824         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
4825         * print-rtl.h: Include cselib.h.
4826         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
4827         * df.h (df_inns_rescan_debug_internal): Declare.
4828         * gcse.c (alloc_hash_table): Estimate n_insns.
4829         (cprop_insn): Don't regard debug insns as changes.
4830         (bypass_conditional_jumps): Skip debug insns.
4831         (one_pre_gcse_pass): Adjust.
4832         (one_code_hoisting_pass): Likewise.
4833         (compute_ld_motion_mems): Skip debug insns.
4834         (one_cprop_pass): Adjust.
4835         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
4836         (if_convertible_stmt_p): Handle debug stmts.
4837         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
4838         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
4839         * ira-build.c (create_bb_allocnos): Skip debug insns.
4840         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
4841         (has_single_use): Likewise.
4842         (single_imm_use): Likewise.
4843         (num_imm_uses): Likewise.
4844         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
4845         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
4846         (create_outofssa_var_map): Likewise.
4847         * lower-subreg.c (adjust_decomposed_uses): New.
4848         (resolve_debug): New.
4849         (decompose_multiword_subregs): Use it.
4850         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
4851         * emit-rtl.c: Include params.h.
4852         (cur_debug_insn_uid): Define.
4853         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
4854         (copy_rtx_if_shared_1): Handle debug insns.
4855         (reset_used_flags): Likewise.
4856         (set_used_flags): LIkewise.
4857         (get_max_insn_count): New.
4858         (next_nondebug_insn): New.
4859         (prev_nondebug_insn): New.
4860         (make_debug_insn_raw): New.
4861         (emit_insn_before_noloc): Handle debug insns.
4862         (emit_jump_insn_before_noloc): Likewise.
4863         (emit_call_insn_before_noloc): Likewise.
4864         (emit_debug_insn_before_noloc): New.
4865         (emit_insn_after_noloc): Handle debug insns.
4866         (emit_jump_insn_after_noloc): Likewise.
4867         (emit_call_insn_after_noloc): Likewise.
4868         (emit_debug_insn_after_noloc): Likewise.
4869         (emit_insn_after): Take loc from earlier non-debug insn.
4870         (emit_jump_insn_after): Likewise.
4871         (emit_call_insn_after): Likewise.
4872         (emit_debug_insn_after_setloc): New.
4873         (emit_debug_insn_after): New.
4874         (emit_insn_before): Take loc from later non-debug insn.
4875         (emit_jump_insn_before): Likewise.
4876         (emit_call_insn_before): Likewise.
4877         (emit_debug_insn_before_setloc): New.
4878         (emit_debug_insn_before): New.
4879         (emit_insn): Handle debug insns.
4880         (emit_debug_insn): New.
4881         (emit_jump_insn): Handle debug insns.
4882         (emit_call_insn): Likewise.
4883         (emit): Likewise.
4884         (init_emit): Take min-nondebug-insn-uid into account.
4885         Initialize cur_debug_insn_uid.
4886         (emit_copy_of_insn_after): Handle debug insns.
4887         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
4888         location of single rhs in place.
4889         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
4890         (floor_sdiv_adjust): New.
4891         (cell_sdiv_adjust): New.
4892         (cell_udiv_adjust): New.
4893         (round_sdiv_adjust): New.
4894         (round_udiv_adjust): New.
4895         (wrap_constant): Moved from cselib.
4896         (unwrap_constant): New.
4897         (expand_debug_expr): New.
4898         (expand_debug_locations): New.
4899         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
4900         debug bind stmts.
4901         (gimple_expand_cfg): Expand debug locations.
4902         * cselib.c: Include tree-pass.h.
4903         (struct expand_value_data): New.
4904         (cselib_record_sets_hook): New.
4905         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
4906         (cselib_clear_table): Move, and implemnet in terms of...
4907         (cselib_reset_table_with_next_value): ... this.
4908         (cselib_get_next_unknown_value): New.
4909         (discard_useless_locs): Don't discard preserved values.
4910         (cselib_preserve_value): New.
4911         (cselib_preserved_value_p): New.
4912         (cselib_preserve_definitely): New.
4913         (cselib_clear_preserve): New.
4914         (cselib_preserve_only_values): New.
4915         (new_cselib_val): Take rtx argument.  Dump it in details.
4916         (cselib_lookup_mem): Adjust.
4917         (expand_loc): Take regs_active in struct.  Adjust.  Silence
4918         dumps unless details are requested.
4919         (cselib_expand_value_rtx_cb): New.
4920         (cselib_expand_value_rtx): Rename and reimplment in terms of...
4921         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
4922         without details.  Copy more subregs.  Try to resolve values
4923         using a callback.  Wrap constants.
4924         (cselib_subst_to_values): Adjust.
4925         (cselib_log_lookup): New.
4926         (cselib_lookup): Call it.
4927         (cselib_invalidate_regno): Don't count preserved values as useless.
4928         (cselib_invalidate_mem): Likewise.
4929         (cselib_record_set): Likewise.
4930         (struct set): Renamed to cselib_set, moved to cselib.h.
4931         (cselib_record_sets): Adjust.  Call hook.
4932         (cselib_process_insn): Reset table when it would be cleared.
4933         (dump_cselib_val): New.
4934         (dump_cselib_table): New.
4935         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
4936         (remove_forwarder_block): Support moving debug stmts.
4937         * cselib.h (cselib_record_sets_hook): Declare.
4938         (cselib_expand_callback): New type.
4939         (cselib_expand_value_rtx_cb): Declare.
4940         (cselib_reset_table_with_next_value): Declare.
4941         (cselib_get_next_unknown_value): Declare.
4942         (cselib_preserve_value): Declare.
4943         (cselib_preserved_value_p): Declare.
4944         (cselib_preserve_only_values): Declare.
4945         (dump_cselib_table): Declare.
4946         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
4947         (try_crossjump_to_edge): Likewise.
4948         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
4949         dominated blocks when debug stmts are present.
4950         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
4951         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
4952         (set_var_live_on_entry): Likewise.
4953         * loop-invariant.c (find_invariants_bb): Skip debug insns.
4954         * cfglayout.c (curr_location, last_location): Make static.
4955         (set_curr_insn_source_location): Don't avoid bouncing.
4956         (get_curr_insn_source_location): New.
4957         (get_curr_insn_block): New.
4958         (duplicate_insn_chain): Handle debug insns.
4959         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
4960         into debug stmts.
4961         * common.opt (fcompare-debug): Move to sort order.
4962         (fdump-unnumbered-links): Likewise.
4963         (fvar-tracking-assignments): New.
4964         (fvar-tracking-assignments-toggle): New.
4965         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
4966         because of debug stmts.
4967         (mark_stmt_if_obviously_necessary): Mark debug stmts.
4968         (eliminate_unnecessary_stmts): Walk dominated blocks before
4969         dominators.
4970         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
4971         * ira.c (memref_used_between_p): Skip debug insns.
4972         (update_equiv_regs): Likewise.
4973         * sched-deps.c (sd_lists_size): Accept empty list.
4974         (sd_init_insn): Mark debug insns.
4975         (sd_finish_insn): Unmark them.
4976         (sd_add_dep): Reject non-debug deps on debug insns.
4977         (fixup_sched_groups): Give debug insns group treatment.
4978         Skip debug insns.
4979         (sched_analyze_reg): Don't mark debug insns for sched before call.
4980         (sched_analyze_2): Handle debug insns.
4981         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
4982         insns.
4983         (deps_analyze_insn): Handle debug insns.
4984         (deps_start_bb): Skip debug insns.
4985         (init_deps): Initialize last_debug_insn.
4986         * tree-ssa.c (target_for_debug_bind): New.
4987         (find_released_ssa_name): New.
4988         (propagate_var_def_into_debug_stmts): New.
4989         (propagate_defs_into_debug_stmts): New.
4990         (verify_ssa): Skip debug bind stmts without values.
4991         (warn_uninialized_vars): Skip debug stmts.
4992         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
4993         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
4994         (rtx_equal_p): Likewise.
4995         * ira-costs.c (scan_one_insn): Skip debug insns.
4996         (process_bb_node_for_hard_reg_moves): Likewise.
4997         * rtl.h (DEBUG_INSN_P): New.
4998         (NONDEBUG_INSN_P): New.
4999         (MAY_HAVE_DEBUG_INSNS): New.
5000         (INSN_P): Accept debug insns.
5001         (RTX_FRAME_RELATED_P): Likewise.
5002         (INSN_DELETED_P): Likewise
5003         (PAT_VAR_LOCATION_DECL): New.
5004         (PAT_VAR_LOCATION_LOC): New.
5005         (PAT_VAR_OCATION_STATUS): New.
5006         (NOTE_VAR_LOCATION_DECL): Reimplement.
5007         (NOTE_VAR_LOCATION_LOC): Likewise.
5008         (NOTE_VAR_LOCATION_STATUS): Likewise.
5009         (INSN_VAR_LOCATION): New.
5010         (INSN_VAR_LOCATION_DECL): New.
5011         (INSN_VAR_LOCATION_LOC): New.
5012         (INSN_VAR_LOCATION_STATUS): New.
5013         (gen_rtx_UNKNOWN_VAR_LOC): New.
5014         (VAR_LOC_UNKNOWN_P): New.
5015         (NOTE_DURING_CALL_P): New.
5016         (SCHED_GROUP_P): Accept debug insns.
5017         (emit_debug_insn_before): Declare.
5018         (emit_debug_insn_before_noloc): Declare.
5019         (emit_debug_insn_beore_setloc): Declare.
5020         (emit_debug_insn_after): Declare.
5021         (emit_debug_insn_after_noloc): Declare.
5022         (emit_debug_insn_after_setloc): Declare.
5023         (emit_debug_insn): Declare.
5024         (make_debug_insn_raw): Declare.
5025         (prev_nondebug_insn): Declare.
5026         (next_nondebug_insn): Declare.
5027         (delegitimize_mem_from_attrs): Declare.
5028         (get_max_insn_count): Declare.
5029         (wrap_constant): Declare.
5030         (unwrap_constant): Declare.
5031         (get_curr_insn_source_location): Declare.
5032         (get_curr_insn_block): Declare.
5033         * tree-inline.c (insert_debug_decl_map): New.
5034         (processing_debug_stmt): New.
5035         (remap_decl): Don't create new mappings in debug stmts.
5036         (remap_gimple_op_r): Don't add references in debug stmts.
5037         (copy_tree_body_r): Likewise.
5038         (remap_gimple_stmt): Handle debug bind stmts.
5039         (copy_bb): Skip debug stmts.
5040         (copy_edges_for_bb): Likewise.
5041         (copy_debug_stmt): New.
5042         (copy_debug_stmts): New.
5043         (copy_body): Copy debug stmts at the end.
5044         (insert_init_debug_bind): New.
5045         (insert_init_stmt): Take id.  Skip and emit debug stmts.
5046         (setup_one_parameter): Remap variable earlier, register debug mapping.
5047         (estimate_num_insns): Skip debug stmts.
5048         (expand_call_inline): Preserve debug_map.
5049         (optimize_inline_calls): Check for no debug_stmts left-overs.
5050         (unsave_expr_now): Preserve debug_map.
5051         (copy_gimple_seq_and_replace_locals): Likewise.
5052         (tree_function_versioning): Check for no debug_stmts left-overs.
5053         Init and destroy debug_map as needed.  Split edges unconditionally.
5054         (build_duplicate_type): Init and destroy debug_map as needed.
5055         * tree-inline.h: Include gimple.h instead of pointer-set.h.
5056         (struct copy_body_data): Add debug_stmts and debug_map.
5057         * sched-int.h (struct ready_list): Add n_debug.
5058         (struct deps): Add last_debug_insn.
5059         (DEBUG_INSN_SCHED_P): New.
5060         (BOUNDARY_DEBUG_INSN_P): New.
5061         (SCHEDULE_DEBUG_INSN_P): New.
5062         (sd_iterator_cond): Accept empty list.
5063         * combine.c (create_log_links): Skip debug insns.
5064         (combine_instructions): Likewise.
5065         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
5066         return value is always unshared.
5067         (struct rtx_subst_pair): New.
5068         (auto_adjust_pair): New.
5069         (propagate_for_debug_subst): New.
5070         (propagate_for_debug): New.
5071         (try_combine): Skip debug insns.  Propagate removed defs into
5072         debug insns.
5073         (next_nonnote_nondebug_insn): New.
5074         (distribute_notes): Use it.  Skip debug insns.
5075         (distribute_links): Skip debug insns.
5076         * tree-outof-ssa.c (set_location_for_edge): Likewise.
5077         * resource.c (mark_target_live_regs): Likewise.
5078         * var-tracking.c: Include cselib.h and target.h.
5079         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
5080         MO_VAL_SET.
5081         (micro_operation_type_name): New.
5082         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
5083         (struct micro_operation_def): Update comments.
5084         (decl_or_value): New type.  Use instead of decls.
5085         (struct emit_note_data_def): Add vars.
5086         (struct attrs_def): Use decl_or_value.
5087         (struct variable_tracking_info_def): Add permp, flooded.
5088         (struct location_chain_def): Update comment.
5089         (struct variable_part_def): Use decl_or_value.
5090         (struct variable_def): Make var_part a variable length array.
5091         (valvar_pool): New.
5092         (scratch_regs): New.
5093         (cselib_hook_called): New.
5094         (dv_is_decl_p): New.
5095         (dv_is_value_p): New.
5096         (dv_as_decl): New.
5097         (dv_as_value): New.
5098         (dv_as_opaque): New.
5099         (dv_onepart_p): New.
5100         (dv_pool): New.
5101         (IS_DECL_CODE): New.
5102         (check_value_is_not_decl): New.
5103         (dv_from_decl): New.
5104         (dv_from_value): New.
5105         (dv_htab_hash): New.
5106         (variable_htab_hash): Use it.
5107         (variable_htab_eq): Support values.
5108         (variable_htab_free): Free from the right pool.
5109         (attrs_list_member, attrs_list_insert): Use decl_or_value.
5110         (attrs_list_union): Adjust.
5111         (attrs_list_mpdv_union): New.
5112         (tie_break_pointers): New.
5113         (canon_value_cmp): New.
5114         (unshare_variable): Return possibly-modified slot.
5115         (vars_copy_1): Adjust.
5116         (var_reg_decl_set): Adjust.  Split out of...
5117         (var_reg_set): ... this.
5118         (get_init_value): Adjust.
5119         (var_reg_delete_and_set): Adjust.
5120         (var_reg_delete): Adjust.
5121         (var_regno_delete): Adjust.
5122         (var_mem_decl_set): Split out of...
5123         (var_mem_set): ... this.
5124         (var_mem_delete_and_set): Adjust.
5125         (var_mem_delete): Adjust.
5126         (val_store): New.
5127         (val_reset): New.
5128         (val_resolve): New.
5129         (variable_union): Adjust.  Speed up merge of 1-part vars.
5130         (variable_canonicalize): Use unshared slot.
5131         (VALUED_RECURSED_INTO): New.
5132         (find_loc_in_1pdv): New.
5133         (struct dfset_merge): New.
5134         (insert_into_intersection): New.
5135         (intersect_loc_chains): New.
5136         (loc_cmp): New.
5137         (canonicalize_loc_order_check): New.
5138         (canonicalize_values_mark): New.
5139         (canonicalize_values_star): New.
5140         (variable_merge_over_cur): New.
5141         (variable_merge_over_src): New.
5142         (dataflow_set_merge): New.
5143         (dataflow_set_equiv_regs): New.
5144         (remove_duplicate_values): New.
5145         (struct dfset_post_merge): New.
5146         (variable_post_merge_new_vals): New.
5147         (variable_post_merge_perm_vals): New.
5148         (dataflow_post_merge_adjust): New.
5149         (find_mem_expr_in_1pdv): New.
5150         (dataflow_set_preserve_mem_locs): New.
5151         (dataflow_set_remove_mem_locs): New.
5152         (dataflow_set_clear_at_call): New.
5153         (onepart_variable_different_p): New.
5154         (variable_different_p): Use it.
5155         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
5156         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
5157         if not needed.
5158         (track_loc_p): Pass it true.
5159         (struct count_use_info): New.
5160         (find_use_val): New.
5161         (replace_expr_with_values): New.
5162         (log_op_type): New.
5163         (use_type): New, partially split out of...
5164         (count_uses): ... this.  Count new micro-ops.
5165         (count_uses_1): Adjust.
5166         (count_stores): Adjust.
5167         (count_with_sets): New.
5168         (VAL_NEEDS_RESOLUTION): New.
5169         (VAL_HOLDS_TRACK_EXPR): New.
5170         (VAL_EXPR_IS_COPIED): New.
5171         (VAL_EXPR_IS_CLOBBERED): New.
5172         (add_uses): Adjust.  Generate new micro-ops.
5173         (add_uses_1): Adjust.
5174         (add_stores): Generate new micro-ops.
5175         (add_with_sets): New.
5176         (find_src_status): Adjust.
5177         (find_src_set_src): Adjust.
5178         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
5179         Handle new micro-ops.  Canonicalize value equivalances.
5180         (vt_find_locations): Compute total size of hash tables for
5181         dumping.  Perform merge for var-tracking-assignments.  Don't
5182         disregard single-block loops.
5183         (dump_attrs_list): Handle decl_or_value.
5184         (dump_variable): Take variable.  Deal with decl_or_value.
5185         (dump_variable_slot): New.
5186         (dump_vars): Use it.
5187         (dump_dataflow_sets): Adjust.
5188         (set_slot_part): New, extended to support one-part variables
5189         after splitting out of...
5190         (set_variable_part): ... this.
5191         (clobber_slot_part): New, split out of...
5192         (clobber_variable_part): ... this.
5193         (delete_slot_part): New, split out of...
5194         (delete_variable_part): .... this.
5195         (check_wrap_constant): New.
5196         (vt_expand_loc_callback): New.
5197         (vt_expand_loc): New.
5198         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
5199         EMIT_NOTE_AFTER_CALL_INSN.
5200         (emit_notes_for_differences_1): Adjust.  Handle values.
5201         (emit_notes_for_differences_2): Likewise.
5202         (emit_notes_for_differences): Adjust.
5203         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
5204         Adjust.  Handle new micro-ops.
5205         (vt_add_function_parameters): Adjust.  Create and bind values.
5206         (vt_initialize): Adjust.  Initialize scratch_regs and
5207         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
5208         operations.  Move some code to count_with_sets and add_with_sets.
5209         (delete_debug_insns): New.
5210         (vt_debug_insns_local): New.
5211         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
5212         cselib.
5213         (var_tracking_main): If var-tracking-assignments is enabled
5214         but var-tracking isn't, delete debug insns and leave.  Likewise
5215         if we exceed limits or fail the stack adjustments tests, and
5216         after all var-tracking processing.
5217         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
5218         (dataflow_set): Add traversed_vars.
5219         (value_chain, const_value_chain): New typedefs.
5220         (value_chain_pool, value_chains): New variables.
5221         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
5222         add_value_chains, add_cselib_value_chains, remove_value_chain,
5223         remove_value_chains, remove_cselib_value_chains): New functions.
5224         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
5225         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
5226         static inlines.
5227         (shared_hash_find_slot_unshare, shared_hash_find_slot,
5228         shared_hash_find_slot_noinsert, shared_hash_find): Update.
5229         (dst_can_be_shared): New variable.
5230         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
5231         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
5232         different from set->vars, look up slot again instead of using the
5233         passed in slot.
5234         (dataflow_set_init): Initialize traversed_vars.
5235         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
5236         lookup if set->vars is shared.  Don't keep slot cleared before
5237         calling unshare_variable.  Unshare set->vars if needed.  Adjust
5238         unshare_variable callers.  Clear dst_can_be_shared if needed.
5239         Even ->refcount == 1 vars must be unshared if set->vars is shared
5240         and var needs to be modified.
5241         (dataflow_set_union): Set traversed_vars during canonicalization.
5242         (VALUE_CHANGED, DECL_CHANGED): Define.
5243         (set_dv_changed, dv_changed_p): New static inlines.
5244         (track_expr_p): Clear DECL_CHANGED.
5245         (dump_dataflow_sets): Set it.
5246         (variable_was_changed): Call set_dv_changed.
5247         (emit_note_insn_var_location): Likewise.
5248         (changed_variables_stack): New variable.
5249         (check_changed_vars_1, check_changed_vars_2): New functions.
5250         (emit_notes_for_changes): Do nothing if changed_variables is
5251         empty.  Traverse changed_variables with check_changed_vars_1,
5252         call check_changed_vars_2 on each changed_variables_stack entry.
5253         (emit_notes_in_bb): Add SET argument.  Just clear it at the
5254         beginning, use it instead of local &set, don't destroy it at the end.
5255         (vt_emit_notes): Call dataflow_set_clear early on all
5256         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
5257         computed set, dataflow_set_clear also VTI(bb)->in when we are
5258         done with the basic block.  Initialize changed_variables_stack,
5259         free it afterwards.  If ENABLE_CHECKING verify that after noting
5260         differences to an empty set value_chains hash table is empty.
5261         (vt_initialize): Initialize value_chains and value_chain_pool.
5262         (vt_finalize): Delete value_chains htab, free value_chain_pool.
5263         (variable_tracking_main): Call dump_dataflow_sets before calling
5264         vt_emit_notes, not after it.
5265         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
5266         (propagate_var_def_into_debug_stmts): Declare.
5267         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
5268         (df_set_note): Reject debug insns.
5269         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
5270         add notes to debug insns.
5271         (df_note_bb_compute): Adjust.  Likewise.
5272         (df_simulate_uses): Skip debug insns.
5273         (df_simulate_initialize_backwards): Likewise.
5274         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
5275         (subst_stack_regs_pat): Reject debug insns.
5276         (convert_regs_1): Handle debug insns.
5277         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
5278         (print-rtl.o): Depend on cselib.h.
5279         (cselib.o): Depend on TREE_PASS_H.
5280         (var-tracking.o): Depend on cselib.h and TARGET_H.
5281         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
5282         (init_ready_list): Skip boundary debug insns.
5283         (add_branch_dependences): Skip debug insns.
5284         (free_block_dependencies): Check for blocks with only debug insns.
5285         (compute_priorities): Likewise.
5286         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
5287         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
5288         all callers.
5289         (gimple_build_debug_bind_stat): New.
5290         (empty_body_p): Skip debug stmts.
5291         (gimple_has_side_effects): Likewise.
5292         (gimple_rhs_has_side_effects): Likewise.
5293         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
5294         (gimple_build_debug_bind_stat): Declare.
5295         (gimple_build_debug_bind): Define.
5296         (is_gimple_debug): New.
5297         (gimple_debug_bind_p): New.
5298         (gimple_debug_bind_get_var): New.
5299         (gimple_debug_bind_get_value): New.
5300         (gimple_debug_bind_get_value_ptr): New.
5301         (gimple_debug_bind_set_var): New.
5302         (gimple_debug_bind_set_value): New.
5303         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
5304         (gimple_debug_bind_reset_value): New.
5305         (gimple_debug_bind_has_value_p): New.
5306         (gsi_next_nondebug): New.
5307         (gsi_prev_nondebug): New.
5308         (gsi_start_nondebug_bb): New.
5309         (gsi_last_nondebug_bb): New.
5310         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
5311         (print_insn): Handle DEBUG_INSN.
5312         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
5313         of first insn prevail.
5314         (first_stmt): Skip debug stmts.
5315         (first_non_label_stmt): Likewise.
5316         (last_stmt): Likewise.
5317         (has_zero_uses_1): New.
5318         (single_imm_use_1): New.
5319         (verify_gimple_debug): New.
5320         (verify_types_in_gimple_stmt): Handle debug stmts.
5321         (verify_stmt): Likewise.
5322         (debug_loop_num): Skip debug stmts.
5323         (remove_edge_and_dominated_blocks): Remove dominators last.
5324         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
5325         (linearize_expr): Likewise.
5326         * config/i386/i386.c (ix86_delegitimize_address): Call
5327         default implementation.
5328         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
5329         (group_barrier_needed): Skip debug insns.
5330         (emit_insn_group_barriers): Likewise.
5331         (emit_all_insn_group_barriers): Likewise.
5332         (ia64_variable_issue): Handle debug insns.
5333         (ia64_dfa_new_cycle): Likewise.
5334         (final_emit_insn_group_barriers): Skip debug insns.
5335         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
5336         def cfa without frame.
5337         (process_set): Likewise.
5338         (process_for_unwind_directive): Pass frame on.
5339         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5340         (rs6000_delegitimize_address): New.
5341         (rs6000_debug_adjust_cost): Handle debug insns.
5342         (is_microcoded_insn): Likewise.
5343         (is_cracked_insn): Likewise.
5344         (is_nonpipeline_insn): Likewise.
5345         (insn_must_be_first_in_group): Likewise.
5346         (insn_must_be_last_in_group): Likewise.
5347         (force_new_group): Likewise.
5348         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
5349         contains only debug insns.
5350         (rtl_merge_blocks): Skip debug insns.
5351         (purge_dead_edges): Likewise.
5352         (rtl_block_ends_with_call_p): Skip debug insns.
5353         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
5354         (mark_reg_dependencies): Skip debug insns.
5355         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
5356         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
5357         * tree-ssa-threadedge.c
5358         (record_temporary_equivalences_from_stmts): Skip debug stmts.
5359         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
5360         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
5361         (copyprop_hardreg_forward_1): Handle debug insns.
5362         * reload1.c (reload): Skip debug insns.  Replace unassigned
5363         pseudos in debug insns with their equivalences.
5364         (eliminate_regs_in_insn): Skip debug insns.
5365         (emit_input_reload_insns): Skip debug insns at first, adjust
5366         them later.
5367         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
5368         (get_indirect_ref_operands): Pass opf_no_vops on.
5369         (get_expr_operands): Likewise.  Skip debug stmts.
5370         (parse_ssa_operands): Scan debug insns with opf_no_vops.
5371
5372 2009-09-01  Richard Henderson  <rth@redhat.com>
5373
5374         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
5375         stmt_ends_pp_p statements at least once.
5376         * tree-vrp.c (vrp_initialize): Likewise.
5377         (vrp_visit_stmt): Be prepared for non-interesting stmts.
5378
5379 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
5380
5381         PR bootstrap/41205
5382         Fix AIX bootstrap after PR debug/30161
5383         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
5384         that is a GNU extension.
5385         (tmpl_value_parm_die_table): Move the definition of this global
5386         outside #ifdef DWARF2_DEBUGGING_INFO region.
5387
5388 2009-09-01  Richard Guenther  <rguenther@suse.de>
5389
5390         * tree.c (tree_expr_size): New function.
5391         * tree.h (tree_expr_size): Declare.
5392         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
5393         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
5394         * langhooks.c (lhd_expr_size): Remove.
5395         * langhooks.h (struct lang_hooks): Remove expr_size.
5396         * explow.c (expr_size): Use tree_expr_size.
5397         (int_expr_size): Likewise.
5398         * langhooks-def.h (lhd_expr_size): Remove.
5399         (LANG_HOOKS_EXPR_SIZE): Likewise.
5400         (LANG_HOOKS_INITIALIZER): Adjust.
5401
5402 2009-09-01  Richard Guenther  <rguenther@suse.de>
5403
5404         * tree-flow.h (mark_addressable): Move declaration ...
5405         * tree.h (mark_addressable): ... here.
5406         * stmt.c (expand_asm_operands): Use mark_addressable, not
5407         lang_hooks.mark_addressable.
5408         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5409         LANG_HOOKS_MARK_ADDRESSABLE.
5410         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
5411         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
5412
5413 2009-08-31  Chris Demetriou  <cgd@google.com>
5414
5415         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
5416         vectorize if not TARGET_SSE2.
5417
5418 2009-08-31  DJ Delorie  <dj@redhat.com>
5419
5420         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
5421         registers if no coprocessor is enabled.
5422
5423 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
5424
5425         PR debug/30161
5426         * cgraph.h (cgraph_get_node): Declare ...
5427         * cgraph.c (cgraph_get_node): ... new function.
5428         * dwarf2out.c (gen_generic_params_dies,
5429         generic_parameter_die, tree_add_const_value_attribute_for_decl,
5430         make_ith_pack_parameter_name,
5431         append_entry_to_tmpl_value_parm_die_table,
5432         gen_remaining_tmpl_value_param_die_attribute): New functions.
5433         (gen_subprogram_die): Generate debug info for template parameters
5434         if debug info level is higher than DINFO_LEVEL_TERSE.
5435         Use tree_add_const_value_attribute_for_decl instead of
5436         tree_add_const_value_attribute.
5437         (gen_const_die): Use tree_add_const_value_attribute_for_decl
5438         instead of tree_add_const_value_attribute.
5439         (gen_struct_or_union_type_die): Generate debug
5440         info for template parameters if debug info level is higher than
5441         DINFO_LEVEL_TERSE.
5442         (tree_add_const_value_attribute): Handle integral and pointer
5443         constants. Update comment.
5444         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
5445         (dwarf_attr_name): Support DW_AT_GNU_template_name.
5446         (reference_to_unused): Fix thinko. Remove redundant predicates from
5447         tests.
5448         (tree_add_const_value_attribute): Make this work for constant
5449         expressions only.
5450         tree_add_const_value_attribute_for_decl is to be used for variable
5451         DECLs now.
5452         (add_location_or_const_value_attribute): Use
5453         tree_add_const_value_attribute_for_decl now.
5454         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
5455         DW_TAG_template_value_param DIEs after function DIEs have been
5456         emitted.
5457         * langhooks.h (lang_hooks_for_types): Add
5458         get_argument_pack_elems.
5459         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
5460         (lang_hooks): Added get_innermost_generic_parms,
5461         get_innermost_generic_args.
5462         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
5463         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
5464         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
5465         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
5466
5467 2009-08-31  DJ Delorie  <dj@redhat.com>
5468
5469         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
5470         it once we start generating the prologue or epilogue.
5471         (mep_call_saves_register): If the frame is locked, re-use
5472         cached values.
5473         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
5474         (mep_expand_prologue): Call it.
5475         (mep_expand_epilogue): Likewise.
5476         (mep_start_function): Use the same logic as mep_expand_prologue.
5477         (mep_pass_by_reference): Make logic more readable.
5478         (mep_return_in_memory): Zero-sized objects are passed in memory.
5479         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
5480
5481 2009-08-31  Richard Guenther  <rguenther@suse.de>
5482
5483         * builtins.c (fold_builtin_memory_op): Use the alias oracle
5484         to query if the memory regions for memmove overlap.
5485         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5486         asserts on pointers, instead deal with odd trees.
5487         (ptr_derefs_may_alias_p): Likewise.
5488         (refs_may_alias_p_1): Constructor bases also never alias.
5489
5490 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5491
5492         * doc/install.texi (Final install): Adjust reference on where to
5493         order printed manuals.
5494
5495 2009-08-30  Olivier Hainque  <hainque@adacore.com>
5496
5497         * dwarf2out.c (switch_to_frame_table_section): Move
5498         definition prior to first use.
5499
5500 2009-08-30  Richard Guenther  <rguenther@suse.de>
5501
5502         PR tree-optimization/41186
5503         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
5504         (ao_ref_init_from_ptr_and_size): New function.
5505         (ref_maybe_used_by_call_p_1): Be more precise tracking
5506         used ranges for builtin functions.
5507         (ref_maybe_used_by_call_p): Adjust.
5508         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
5509         ranges for builtin functions.
5510         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
5511
5512 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
5513
5514         PR target/41081
5515         * fwprop.c (get_reg_use_in): Delete.
5516         (free_load_extend): New function.
5517         (forward_propagate_subreg): Use it.
5518
5519 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5520
5521         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
5522
5523 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
5524
5525         PR/41184
5526         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
5527         padding.
5528
5529 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
5530
5531         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
5532         fini or fini_array section.
5533
5534 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5535
5536         * graphite-dependences.c (graphite_legal_transform_bb): Call
5537         pbb_remove_duplicate_pdrs.
5538         * graphite-poly.c (can_collapse_pdr): Removed.
5539         (pdr_find_duplicate): Removed.
5540         (can_collapse_pdrs): New.
5541         (pbb_remove_duplicate_pdrs): New.
5542         (new_poly_dr): Do not look for duplicates.
5543         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
5544         (PBB_PDR_DUPLICATES_REMOVED): New.
5545         (pbb_remove_duplicate_pdrs): Declared.
5546
5547 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5548
5549         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
5550         the strides by multiplying by PDR_NB_REFS.
5551         * graphite-poly.c (can_collapse_pdr): New.
5552         (pdr_find_duplicate): New.
5553         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
5554         Initialize PDR_NB_REFS.
5555         * graphite-poly.h (struct poly_dr): Add field nb_refs.
5556         (PDR_NB_REFS): New.
5557         (new_poly_dr): Number of subscripts is a graphite_dim_t.
5558
5559 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5560
5561         PR middle-end/40965
5562         * graphite-poly.c (apply_poly_transforms): Remove legality test before
5563         any transform.
5564
5565 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5566
5567         * graphite-dependences.c (pddr_original_scattering): Return NULL
5568         for read-read dependence relations.
5569         * graphite-poly.h (enum poly_dr_type): Fix comment.
5570         (pdr_read_p): New.
5571         (pdr_write_p): New.
5572         (pdr_may_write_p): New.
5573
5574 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5575
5576         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
5577         (struct poly_dr): Same.
5578         (new_poly_dr): Same.
5579         * graphite-poly.c (new_poly_dr): Same.
5580         * graphite-dependences.c (dot_deps): Disable call to system.
5581
5582 2009-08-28  Cary Coutant  <ccoutant@google.com>
5583
5584         PR debug/41063
5585         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
5586         struct/union/enum types local to a function.
5587
5588 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
5589             Sebastian Pop  <sebastian.pop@amd.com>
5590
5591         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
5592         pbb_strip_mine_time_depth.  Changed the implementation so that
5593         transformation is expressed as a transformation on
5594         time (scatttering) dimensions.  Also, ensures that the 2d+1
5595         scheduling format is preserved.
5596         (pbb_strip_mine_profitable_p): Profitability is based on the
5597         iteration number of a given time (scattering) dimension,
5598         and not on a original loop depth dimension.
5599         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
5600         (pbb_do_strip_mine): Call psct_dynamic_dim.
5601         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
5602         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
5603         (pbb_nb_dynamic_scattering_transform): New.
5604         (psct_dynamic_dim): New.
5605
5606 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
5607
5608         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
5609         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
5610         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
5611         * graphite-interchange.c (build_linearized_memory_access): Same.
5612         (memory_stride_in_loop): Same.
5613
5614 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5615
5616         * graphite-dependences.c (pddr_original_scattering): New.
5617         (graphite_legal_transform_dr): Call pddr_original_scattering.
5618         (dot_deps_1): New.
5619         (dot_deps): New.
5620         * graphite-dependences.h (dot_deps): Declared.
5621         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
5622         (print_pdr): Print PDR_ID.
5623         * graphite-poly.h (struct poly_dr): Add field id.
5624         (PDR_ID): New.
5625         (pbb_index): New.
5626         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
5627
5628 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5629
5630         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
5631         not delete the original dependence relation.
5632
5633 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5634
5635         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
5636         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
5637         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
5638         (free_poly_ddr): New.
5639         (pddr_is_empty): New.
5640         (dependence_polyhedron_1): Now returns a poly_ddr_p.
5641         (dependence_polyhedron): Same.  Remove useless gcc_assert.
5642         Remove fprintfs.
5643         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
5644         (graphite_carried_dependence_level_k): Call pddr_is_empty.
5645         * graphite-dependences.h (enum poly_dependence_kind): New.
5646         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
5647         (PDRP_SOURCE): Renamed PDDR_SOURCE.
5648         (PDRP_SINK): Renamed PDDR_SINK.
5649         (PDRP_DDP): Renamed PDDR_DDP.
5650         (PDDR_KIND): New.
5651         (free_poly_ddr): Declared.
5652         * graphite-poly.c (new_scop): Use the new hash function names.
5653         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
5654         into original_pddrs.
5655         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
5656
5657 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5658
5659         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
5660         bounds with LT_EXPR to make niter analysis more precise on code
5661         generated by Graphite.
5662
5663 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5664
5665         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
5666         (graphite_legal_transform_bb): Same.
5667         (poly_drs_may_alias_p): Same.
5668
5669 2009-08-28  Richard Guenther  <rguenther@suse.de>
5670
5671         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
5672
5673 2009-08-28  Jan Beulich  <jbeulich@novell.com>
5674
5675         * config/i386/netware.c: Include langhooks.h.
5676         (i386_nlm_encode_section_info): Simplify.
5677         (netware_override_options): Delete.
5678         * config/i386/netware.h (netware_override_options): Delete
5679         declaration.
5680         (OVERRIDE_OPTIONS): Delete definition.
5681         (SUBTARGET_OVERRIDE_OPTIONS): Define.
5682         (ASM_COMMENT_START): Define.
5683         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5684
5685 2009-08-28  Jan Beulich  <jbeulich@novell.com>
5686
5687         * configure.ac: For in-tree ld, do a plain version check to
5688         determine whether comdat groups are supported.
5689         * configure: Regenerate.
5690
5691 2009-08-28  Olivier Hainque  <hainque@adacore.com>
5692
5693         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
5694         always defined.  Reflect definition or absence of such for
5695         COLLECT_EXPORT_LIST.  Readability helper.
5696         (scanfilter): New enum, to help control what symbols
5697         are to be considered or ignored by scan_prog_file.
5698         (enum pass): Rename as "scanpass", moved together with scanfilter
5699         prior to scan_prog_file's prototype.
5700         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
5701         Group prototype with the scanpass/scanfilter definitions, factorize
5702         head comments for the several implementations at the prototype.
5703         (main): Reorganize the first pass link control to let AIX
5704         drag only the needed frame tables in executables.  Prevent
5705         frame tables collection during the scan aimed at static ctors.
5706         Pre-link and scan for frame tables later to compensate.
5707         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
5708         A C statement to issue assembly directives that create a reference
5709         to the given DWARF table identifier label from the current function
5710         section.
5711         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
5712         to differentiate first time section entry.  Only emit a .data
5713         tables start identifier label the first time around.
5714         (switch_to_frame_table_section): New function.  Helper for
5715         output_call_frame_info to switch possibly BACK into the eh_frame
5716         or the debug_frame section depending on FOR_EH.
5717         (output_call_frame_info): Use helper to first enter the proper
5718         frame section.
5719         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
5720         emit a link to the frame table start label from each function
5721         section.
5722         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
5723         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
5724         * config/rs6000/rs6000-protos.h: Declare it.
5725         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
5726
5727 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
5728
5729         * config/sh/sh.c (split_branches): Check the result of
5730         next_active_insn.
5731
5732 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
5733
5734         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
5735         using -pthread -fopenmp
5736
5737 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
5738
5739         * doc/service.texi (service directory): Update URL.
5740
5741 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
5742
5743         PR rtl-optimization/40861
5744         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
5745         extract word from a multi-word subreg for negative byte positions.
5746
5747 2009-08-27  Tristan Gingold  <gingold@adacore.com>
5748             Douglas B Rupp  <rupp@gnat.com>
5749
5750         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
5751         (SECTION_VMS_OVERLAY): Define.
5752         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
5753         attribute.
5754         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
5755         for common_object.
5756         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
5757         common_object declarations.
5758         (ia64_section_type_flags): Set section flag for common_object.
5759         * config/ia64/ia64-protos.h
5760         (ia64_vms_output_aligned_decl_common): Declare.
5761         (ia64_vms_elf_asm_named_section): Declare.
5762
5763 2009-08-27  Michael Matz  <matz@suse.de>
5764
5765         * expr.c (expand_expr_real_2): New function taking exploded
5766         unary or binary expression, split out from ...
5767         (expand_expr_real_1): ... here.  Move over all unary/binary
5768         switch parts to above function, in particular these codes:
5769         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
5770         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
5771         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
5772         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
5773         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
5774         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
5775         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
5776         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
5777         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
5778         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
5779         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
5780         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
5781         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
5782         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
5783         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
5784         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
5785         VEC_PACK_FIX_TRUNC_EXPR.
5786         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
5787         full expression.
5788
5789 2009-08-27  Richard Guenther  <rguenther@suse.de>
5790
5791         * gengtype.c (main): Handle uint64_t.
5792         * ipa-utils.c (get_base_var): Indent properly.
5793         * tree-ssa-live.c (debug_scope_block): New function.
5794         * tree-flow.h (debug_scope_block): Declare.
5795         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
5796         * basic-block.h (enum profile_status): Rename to
5797         enum profile_status_d.
5798         (x_profile_status): Adjust type.
5799
5800 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
5801
5802         PR debug/41170
5803         * dwarf2out.c (get_context_die): Declare this static function.
5804         (gen_type_die_with_usage): Make sure a DIE is a generated for
5805         the context of a typedef.
5806
5807 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
5808
5809         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
5810         switch.
5811
5812 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
5813
5814         * config/mips/mips-protos.h (mips_output_sync): Declare.
5815         (mips_sync_loop_insns): Likewise.
5816         (mips_output_sync_loop): Replace first two parameters with an rtx.
5817         * config/mips/mips.c (mips_multi_member): New structure.
5818         (mips_multi_members): New variable.
5819         (mips_multi_start): New function.
5820         (mips_multi_add): Likewise.
5821         (mips_multi_add_insn): Likewise.
5822         (mips_multi_add_label): Likewise.
5823         (mips_multi_last_index): Likewise.
5824         (mips_multi_copy_insn): Likewise.
5825         (mips_multi_set_operand): Likewise.
5826         (mips_multi_write): Likewise.
5827         (mips_print_operand_punctuation): Remove '%|' and '%-'.
5828         (mips_init_print_operand_punct): Update accordingly.
5829         (mips_start_ll_sc_sync_block): New function.
5830         (mips_end_ll_sc_sync_block): Likewise.
5831         (mips_output_sync): Likewise.
5832         (mips_sync_insn1_template): Likewise.
5833         (mips_sync_insn2_template): Likewise.
5834         (mips_get_sync_operand): Likewise.
5835         (mips_process_sync_loop): Likewise.
5836         (mips_output_sync_loop): Use mips_process_sync_loop.
5837         (mips_sync_loop_insns): New function.
5838         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
5839         (MIPS_COMPARE_AND_SWAP_12): Likewise.
5840         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
5841         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
5842         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
5843         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
5844         (MIPS_SYNC_OLD_OP_12): Likewise.
5845         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
5846         (MIPS_SYNC_NEW_OP_12): Likewise.
5847         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
5848         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
5849         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
5850         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
5851         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
5852         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
5853         * config/mips/mips.md (sync_mem): New attribute.
5854         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
5855         (sync_exclusive_mask, sync_required_oldval): Likewise.
5856         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
5857         (sync_release_barrier): Likewise.
5858         (length): Handle sync loops.
5859         (sync): Use mips_output_sync.
5860         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
5861         (sync_compare_and_swap<mode>): Set the new sync_* attributes
5862         and use mips_output_sync_loop.
5863         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
5864         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
5865         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
5866         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
5867         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
5868         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
5869         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
5870         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
5871         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
5872
5873 2009-08-26  Richard Guenther  <rguenther@suse.de>
5874
5875         PR middle-end/41163
5876         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
5877         the types to not match.
5878         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
5879         verification.
5880         * tree-ssa.c (useless_type_conversion_p): Conversions to
5881         pointers to unprototyped functions are useless.
5882
5883 2009-08-26  Richard Guenther  <rguenther@suse.de>
5884
5885         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
5886         whole-program condition, prepare to be called for non-globals.
5887         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
5888         params build a representative with known type and track its fields.
5889
5890 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
5891
5892         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
5893         clearing by a taken branch.
5894         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
5895         effectively after bbro pass.
5896         (sync_nand<mode>): Ditto.
5897         (sync_old_<fetchop_name><mode>): Ditto.
5898         (sync_old_nand<mode>): Ditto.
5899         (sync_new_<fetchop_name><mode>): Dito.
5900         (sync_new_nand<mode>): Ditto.
5901         (sync_compare_and_swap<mode>_1): Ditto.
5902         (*sync_compare_and_swap<mode>): Ditto.
5903         (sync_lock_test_and_set<mode>_1): Ditto.
5904         ("sync_lock_test_and_set<mode>): Ditto.
5905
5906 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
5907
5908         * hwint.h (HOST_LONG_FORMAT): New macro
5909         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
5910         Use HOST_PTR_PRINTF.
5911         * system.h (HOST_PTR_PRINTF): Resurrect old macro
5912         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
5913         (HOST_PTR_PRINTF): Document.
5914
5915 2009-08-25 Jan Hubicka  <jh@suse.cz>
5916
5917         * config/i386/bmmintrin.h: Replace by #error.
5918
5919         Revert:
5920         Michael Meissner  <michael.meissner@amd.com>
5921         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
5922         Tony Linthicum  <tony.linthicum@amd.com>
5923
5924         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
5925         (TARGET_ROUND): New macro for the round/ptest instructions which
5926         are shared between SSE4.1 and SSE5.
5927         (OPTION_MASK_ISA_ROUND): Ditto.
5928         (OPTION_ISA_ROUND): Ditto.
5929         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
5930         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
5931
5932         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
5933         (-mfused-madd): New switch to give users control over whether the
5934         compiler optimizes to use the multiply/add SSE5 instructions.
5935
5936         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
5937         (ix86_handle_option): Turn off 3dnow if -msse5.
5938         (override_options): Add SSE5 support.
5939         (print_operand): %Y prints comparison codes for SSE5 com/pcom
5940         instructions.
5941         (ix86_expand_sse_movcc): Add SSE5 support.
5942         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
5943         vector type to the next largest size.
5944         (ix86_expand_sse5_pack): New function to use pperm to pack a
5945         vector type to the next smallest size.
5946         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
5947         (IX86_BUILTIN_FMADDSD): Ditto.
5948         (IX86_BUILTIN_FMADDPS): Ditto.
5949         (IX86_BUILTIN_FMADDPD): Ditto.
5950         (IX86_BUILTIN_FMSUBSS): Ditto.
5951         (IX86_BUILTIN_FMSUBSD): Ditto.
5952         (IX86_BUILTIN_FMSUBPS): Ditto.
5953         (IX86_BUILTIN_FMSUBPD): Ditto.
5954         (IX86_BUILTIN_FNMADDSS): Ditto.
5955         (IX86_BUILTIN_FNMADDSD): Ditto.
5956         (IX86_BUILTIN_FNMADDPS): Ditto.
5957         (IX86_BUILTIN_FNMADDPD): Ditto.
5958         (IX86_BUILTIN_FNMSUBSS): Ditto.
5959         (IX86_BUILTIN_FNMSUBSD): Ditto.
5960         (IX86_BUILTIN_FNMSUBPS): Ditto.
5961         (IX86_BUILTIN_FNMSUBPD): Ditto.
5962         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
5963         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
5964         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
5965         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
5966         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
5967         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
5968         (IX86_BUILTIN_PPERM): Ditto.
5969         (IX86_BUILTIN_PERMPS): Ditto.
5970         (IX86_BUILTIN_PERMPD): Ditto.
5971         (IX86_BUILTIN_PMACSSWW): Ditto.
5972         (IX86_BUILTIN_PMACSWW): Ditto.
5973         (IX86_BUILTIN_PMACSSWD): Ditto.
5974         (IX86_BUILTIN_PMACSWD): Ditto.
5975         (IX86_BUILTIN_PMACSSDD): Ditto.
5976         (IX86_BUILTIN_PMACSDD): Ditto.
5977         (IX86_BUILTIN_PMACSSDQL): Ditto.
5978         (IX86_BUILTIN_PMACSSDQH): Ditto.
5979         (IX86_BUILTIN_PMACSDQL): Ditto.
5980         (IX86_BUILTIN_PMACSDQH): Ditto.
5981         (IX86_BUILTIN_PMADCSSWD): Ditto.
5982         (IX86_BUILTIN_PMADCSWD): Ditto.
5983         (IX86_BUILTIN_PHADDBW): Ditto.
5984         (IX86_BUILTIN_PHADDBD): Ditto.
5985         (IX86_BUILTIN_PHADDBQ): Ditto.
5986         (IX86_BUILTIN_PHADDWD): Ditto.
5987         (IX86_BUILTIN_PHADDWQ): Ditto.
5988         (IX86_BUILTIN_PHADDDQ): Ditto.
5989         (IX86_BUILTIN_PHADDUBW): Ditto.
5990         (IX86_BUILTIN_PHADDUBD): Ditto.
5991         (IX86_BUILTIN_PHADDUBQ): Ditto.
5992         (IX86_BUILTIN_PHADDUWD): Ditto.
5993         (IX86_BUILTIN_PHADDUWQ): Ditto.
5994         (IX86_BUILTIN_PHADDUDQ): Ditto.
5995         (IX86_BUILTIN_PHSUBBW): Ditto.
5996         (IX86_BUILTIN_PHSUBWD): Ditto.
5997         (IX86_BUILTIN_PHSUBDQ): Ditto.
5998         (IX86_BUILTIN_PROTB): Ditto.
5999         (IX86_BUILTIN_PROTW): Ditto.
6000         (IX86_BUILTIN_PROTD): Ditto.
6001         (IX86_BUILTIN_PROTQ): Ditto.
6002         (IX86_BUILTIN_PROTB_IMM): Ditto.
6003         (IX86_BUILTIN_PROTW_IMM): Ditto.
6004         (IX86_BUILTIN_PROTD_IMM): Ditto.
6005         (IX86_BUILTIN_PROTQ_IMM): Ditto.
6006         (IX86_BUILTIN_PSHLB): Ditto.
6007         (IX86_BUILTIN_PSHLW): Ditto.
6008         (IX86_BUILTIN_PSHLD): Ditto.
6009         (IX86_BUILTIN_PSHLQ): Ditto.
6010         (IX86_BUILTIN_PSHAB): Ditto.
6011         (IX86_BUILTIN_PSHAW): Ditto.
6012         (IX86_BUILTIN_PSHAD): Ditto.
6013         (IX86_BUILTIN_PSHAQ): Ditto.
6014         (IX86_BUILTIN_FRCZSS): Ditto.
6015         (IX86_BUILTIN_FRCZSD): Ditto.
6016         (IX86_BUILTIN_FRCZPS): Ditto.
6017         (IX86_BUILTIN_FRCZPD): Ditto.
6018         (IX86_BUILTIN_CVTPH2PS): Ditto.
6019         (IX86_BUILTIN_CVTPS2PH): Ditto.
6020         (IX86_BUILTIN_COMEQSS): Ditto.
6021         (IX86_BUILTIN_COMNESS): Ditto.
6022         (IX86_BUILTIN_COMLTSS): Ditto.
6023         (IX86_BUILTIN_COMLESS): Ditto.
6024         (IX86_BUILTIN_COMGTSS): Ditto.
6025         (IX86_BUILTIN_COMGESS): Ditto.
6026         (IX86_BUILTIN_COMUEQSS): Ditto.
6027         (IX86_BUILTIN_COMUNESS): Ditto.
6028         (IX86_BUILTIN_COMULTSS): Ditto.
6029         (IX86_BUILTIN_COMULESS): Ditto.
6030         (IX86_BUILTIN_COMUGTSS): Ditto.
6031         (IX86_BUILTIN_COMUGESS): Ditto.
6032         (IX86_BUILTIN_COMORDSS): Ditto.
6033         (IX86_BUILTIN_COMUNORDSS): Ditto.
6034         (IX86_BUILTIN_COMFALSESS): Ditto.
6035         (IX86_BUILTIN_COMTRUESS): Ditto.
6036         (IX86_BUILTIN_COMEQSD): Ditto.
6037         (IX86_BUILTIN_COMNESD): Ditto.
6038         (IX86_BUILTIN_COMLTSD): Ditto.
6039         (IX86_BUILTIN_COMLESD): Ditto.
6040         (IX86_BUILTIN_COMGTSD): Ditto.
6041         (IX86_BUILTIN_COMGESD): Ditto.
6042         (IX86_BUILTIN_COMUEQSD): Ditto.
6043         (IX86_BUILTIN_COMUNESD): Ditto.
6044         (IX86_BUILTIN_COMULTSD): Ditto.
6045         (IX86_BUILTIN_COMULESD): Ditto.
6046         (IX86_BUILTIN_COMUGTSD): Ditto.
6047         (IX86_BUILTIN_COMUGESD): Ditto.
6048         (IX86_BUILTIN_COMORDSD): Ditto.
6049         (IX86_BUILTIN_COMUNORDSD): Ditto.
6050         (IX86_BUILTIN_COMFALSESD): Ditto.
6051         (IX86_BUILTIN_COMTRUESD): Ditto.
6052         (IX86_BUILTIN_COMEQPS): Ditto.
6053         (IX86_BUILTIN_COMNEPS): Ditto.
6054         (IX86_BUILTIN_COMLTPS): Ditto.
6055         (IX86_BUILTIN_COMLEPS): Ditto.
6056         (IX86_BUILTIN_COMGTPS): Ditto.
6057         (IX86_BUILTIN_COMGEPS): Ditto.
6058         (IX86_BUILTIN_COMUEQPS): Ditto.
6059         (IX86_BUILTIN_COMUNEPS): Ditto.
6060         (IX86_BUILTIN_COMULTPS): Ditto.
6061         (IX86_BUILTIN_COMULEPS): Ditto.
6062         (IX86_BUILTIN_COMUGTPS): Ditto.
6063         (IX86_BUILTIN_COMUGEPS): Ditto.
6064         (IX86_BUILTIN_COMORDPS): Ditto.
6065         (IX86_BUILTIN_COMUNORDPS): Ditto.
6066         (IX86_BUILTIN_COMFALSEPS): Ditto.
6067         (IX86_BUILTIN_COMTRUEPS): Ditto.
6068         (IX86_BUILTIN_COMEQPD): Ditto.
6069         (IX86_BUILTIN_COMNEPD): Ditto.
6070         (IX86_BUILTIN_COMLTPD): Ditto.
6071         (IX86_BUILTIN_COMLEPD): Ditto.
6072         (IX86_BUILTIN_COMGTPD): Ditto.
6073         (IX86_BUILTIN_COMGEPD): Ditto.
6074         (IX86_BUILTIN_COMUEQPD): Ditto.
6075         (IX86_BUILTIN_COMUNEPD): Ditto.
6076         (IX86_BUILTIN_COMULTPD): Ditto.
6077         (IX86_BUILTIN_COMULEPD): Ditto.
6078         (IX86_BUILTIN_COMUGTPD): Ditto.
6079         (IX86_BUILTIN_COMUGEPD): Ditto.
6080         (IX86_BUILTIN_COMORDPD): Ditto.
6081         (IX86_BUILTIN_COMUNORDPD): Ditto.
6082         (IX86_BUILTIN_COMFALSEPD): Ditto.
6083         (IX86_BUILTIN_COMTRUEPD): Ditto.
6084         (IX86_BUILTIN_PCOMEQUB): Ditto.
6085         (IX86_BUILTIN_PCOMNEUB): Ditto.
6086         (IX86_BUILTIN_PCOMLTUB): Ditto.
6087         (IX86_BUILTIN_PCOMLEUB): Ditto.
6088         (IX86_BUILTIN_PCOMGTUB): Ditto.
6089         (IX86_BUILTIN_PCOMGEUB): Ditto.
6090         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
6091         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
6092         (IX86_BUILTIN_PCOMEQUW): Ditto.
6093         (IX86_BUILTIN_PCOMNEUW): Ditto.
6094         (IX86_BUILTIN_PCOMLTUW): Ditto.
6095         (IX86_BUILTIN_PCOMLEUW): Ditto.
6096         (IX86_BUILTIN_PCOMGTUW): Ditto.
6097         (IX86_BUILTIN_PCOMGEUW): Ditto.
6098         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
6099         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
6100         (IX86_BUILTIN_PCOMEQUD): Ditto.
6101         (IX86_BUILTIN_PCOMNEUD): Ditto.
6102         (IX86_BUILTIN_PCOMLTUD): Ditto.
6103         (IX86_BUILTIN_PCOMLEUD): Ditto.
6104         (IX86_BUILTIN_PCOMGTUD): Ditto.
6105         (IX86_BUILTIN_PCOMGEUD): Ditto.
6106         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
6107         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
6108         (IX86_BUILTIN_PCOMEQUQ): Ditto.
6109         (IX86_BUILTIN_PCOMNEUQ): Ditto.
6110         (IX86_BUILTIN_PCOMLTUQ): Ditto.
6111         (IX86_BUILTIN_PCOMLEUQ): Ditto.
6112         (IX86_BUILTIN_PCOMGTUQ): Ditto.
6113         (IX86_BUILTIN_PCOMGEUQ): Ditto.
6114         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
6115         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
6116         (IX86_BUILTIN_PCOMEQB): Ditto.
6117         (IX86_BUILTIN_PCOMNEB): Ditto.
6118         (IX86_BUILTIN_PCOMLTB): Ditto.
6119         (IX86_BUILTIN_PCOMLEB): Ditto.
6120         (IX86_BUILTIN_PCOMGTB): Ditto.
6121         (IX86_BUILTIN_PCOMGEB): Ditto.
6122         (IX86_BUILTIN_PCOMFALSEB): Ditto.
6123         (IX86_BUILTIN_PCOMTRUEB): Ditto.
6124         (IX86_BUILTIN_PCOMEQW): Ditto.
6125         (IX86_BUILTIN_PCOMNEW): Ditto.
6126         (IX86_BUILTIN_PCOMLTW): Ditto.
6127         (IX86_BUILTIN_PCOMLEW): Ditto.
6128         (IX86_BUILTIN_PCOMGTW): Ditto.
6129         (IX86_BUILTIN_PCOMGEW): Ditto.
6130         (IX86_BUILTIN_PCOMFALSEW): Ditto.
6131         (IX86_BUILTIN_PCOMTRUEW): Ditto.
6132         (IX86_BUILTIN_PCOMEQD): Ditto.
6133         (IX86_BUILTIN_PCOMNED): Ditto.
6134         (IX86_BUILTIN_PCOMLTD): Ditto.
6135         (IX86_BUILTIN_PCOMLED): Ditto.
6136         (IX86_BUILTIN_PCOMGTD): Ditto.
6137         (IX86_BUILTIN_PCOMGED): Ditto.
6138         (IX86_BUILTIN_PCOMFALSED): Ditto.
6139         (IX86_BUILTIN_PCOMTRUED): Ditto.
6140         (IX86_BUILTIN_PCOMEQQ): Ditto.
6141         (IX86_BUILTIN_PCOMNEQ): Ditto.
6142         (IX86_BUILTIN_PCOMLTQ): Ditto.
6143         (IX86_BUILTIN_PCOMLEQ): Ditto.
6144         (IX86_BUILTIN_PCOMGTQ): Ditto.
6145         (IX86_BUILTIN_PCOMGEQ): Ditto.
6146         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
6147         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
6148         (enum multi_arg_type): New enum for describing the various SSE5
6149         intrinsic argument types.
6150         (bdesc_multi_arg): New table for SSE5 intrinsics.
6151         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
6152         (ix86_expand_multi_arg_builtin): New function for creating SSE5
6153         intrinsics.
6154         (ix86_expand_builtin): Add SSE5 intrinsic support.
6155         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
6156         operand instructions.
6157         (ix86_expand_sse5_multiple_memory): New function to split the
6158         second memory reference from SSE5 instructions.
6159         (type_has_variadic_args_p): Delete in favor of stdarg_p.
6160         (ix86_return_pops_args): Use stdarg_p to determine if the function
6161         has variable arguments.
6162         (ix86_setup_incoming_varargs): Ditto.
6163         (x86_this_parameter): Ditto.
6164
6165         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
6166         declaration.
6167         (ix86_expand_sse5_pack): Ditto.
6168         (ix86_sse5_valid_op_p): Ditto.
6169         (ix86_expand_sse5_multiple_memory): Ditto.
6170
6171         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
6172         constant for SSE5 support.
6173         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
6174         (UNSPEC_SSE5_TRUEFALSE): Ditto.
6175         (UNSPEC_SSE5_PERMUTE): Ditto.
6176         (UNSPEC_SSE5_ASHIFT): Ditto.
6177         (UNSPEC_SSE5_LSHIFT): Ditto.
6178         (UNSPEC_FRCZ): Ditto.
6179         (UNSPEC_CVTPH2PS): Ditto.
6180         (UNSPEC_CVTPS2PH): Ditto.
6181         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
6182         (PCOM_TRUE): Ditto.
6183         (COM_FALSE_S): Ditto.
6184         (COM_FALSE_P): Ditto.
6185         (COM_TRUE_S): Ditto.
6186         (COM_TRUE_P): Ditto.
6187         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
6188         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
6189         types.
6190         (memory attribute): Ditto.
6191         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6192         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
6193         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6194         (floor<mode>2): Ditto.
6195         (ceil<mode>2): Ditto.
6196         (btrunc<mode>2): Ditto.
6197         (nearbyintdf2): Ditto.
6198         (nearbyintsf2): Ditto.
6199         (sse_setccsf): Disable if SSE5.
6200         (sse_setccdf): Ditto.
6201         (sse5_setcc<mode>): New support for SSE5 conditional move.
6202         (sse5_pcmov_<mode>): Ditto.
6203
6204         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
6205         (SSEMODEF4): Ditto.
6206         (SSEMODEF2P): Ditto.
6207         (ssemodesuffixf4): New mode attribute for SSE5.
6208         (ssemodesuffixf2s): Ditto.
6209         (ssemodesuffixf2c): Ditto.
6210         (sserotatemax): Ditto.
6211         (ssescalarmode): Ditto.
6212         (sse_maskcmpv4sf3): Disable if SSE5.
6213         (sse_maskcmpv2df3): Ditto.
6214         (sse_vmmaskcmpv4sf3): Ditto.
6215         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
6216         (sse5_vmfmadd<mode>4): Ditto.
6217         (sse5_fmsub<mode>4): Ditto.
6218         (sse5_vmfmsub<mode>4): Ditto.
6219         (sse5_fnmadd<mode>4): Ditto.
6220         (sse5_vmfnmadd<mode>4): Ditto.
6221         (sse5_fnmsub<mode>4): Ditto.
6222         (sse5_vmfnmsub<mode>4): Ditto.
6223         (sse5i_fmadd<mode>4): Ditto.
6224         (sse5i_fmsub<mode>4): Ditto.
6225         (sse5i_fnmadd<mode>4): Ditto.
6226         (sse5i_fnmsub<mode>4): Ditto.
6227         (sse5i_vmfmadd<mode>4): Ditto.
6228         (sse5i_vmfmsub<mode>4): Ditto.
6229         (sse5i_vmfnmadd<mode>4): Ditto.
6230         (sse5i_vmfnmsub<mode>4): Ditto.
6231         (mulv16qi3): Add SSE5 support.
6232         (mulv4si3): Ditto.
6233         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
6234         (sse2_mulv4si3): Disable if SSE5.
6235         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
6236         (sse4_1_roundps): Ditto.
6237         (sse4_1_roundsd): Ditto.
6238         (sse4_1_roundss): Ditto.
6239         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
6240         be generated.
6241         (sse_maskcmpsf3): Ditto.
6242         (sse_vmmaskcmpv4sf3): Ditto.
6243         (sse2_maskcmpv2df3): Ditto.
6244         (sse2_maskcmpdf3): Ditto.
6245         (sse2_vmmaskcmpv2df3): Ditto.
6246         (sse2_eq<mode>3): Ditto.
6247         (sse2_gt<mode>3): Ditto.
6248         (sse5_pcmov_<mode>): Add SSE5 support.
6249         (vec_unpacku_hi_v16qi): Ditto.
6250         (vec_unpacks_hi_v16qi): Ditto.
6251         (vec_unpacku_lo_v16qi): Ditto.
6252         (vec_unpacks_lo_v16qi): Ditto.
6253         (vec_unpacku_hi_v8hi): Ditto.
6254         (vec_unpacks_hi_v8hi): Ditto.
6255         (vec_unpacku_lo_v8hi): Ditto.
6256         (vec_unpacks_lo_v8hi): Ditto.
6257         (vec_unpacku_hi_v4si): Ditto.
6258         (vec_unpacks_hi_v4si): Ditto.
6259         (vec_unpacku_lo_v4si): Ditto.
6260         (vec_unpacks_lo_v4si): Ditto.
6261         (sse5_pmacsww): New SSE5 intrinsic insn.
6262         (sse5_pmacssww): Ditto.
6263         (sse5_pmacsdd): Ditto.
6264         (sse5_pmacssdd): Ditto.
6265         (sse5_pmacssdql): Ditto.
6266         (sse5_pmacssdqh): Ditto.
6267         (sse5_pmacsdqh): Ditto.
6268         (sse5_pmacsswd): Ditto.
6269         (sse5_pmacswd): Ditto.
6270         (sse5_pmadcsswd): Ditto.
6271         (sse5_pmadcswd): Ditto.
6272         (sse5_pcmov_<move>): Conditional move support on SSE5.
6273         (sse5_phaddbw): New SSE5 intrinsic insn.
6274         (sse5_phaddbd): Ditto.
6275         (sse5_phaddbq): Ditto.
6276         (sse5_phaddwd): Ditto.
6277         (sse5_phaddwq): Ditto.
6278         (sse5_phadddq): Ditto.
6279         (sse5_phaddubw): Ditto.
6280         (sse5_phaddubd): Ditto.
6281         (sse5_phaddubq): Ditto.
6282         (sse5_phadduwd): Ditto.
6283         (sse5_phadduwq): Ditto.
6284         (sse5_phaddudq): Ditto.
6285         (sse5_phsubbw): Ditto.
6286         (sse5_phsubwd): Ditto.
6287         (sse5_phsubdq): Ditto.
6288         (sse5_pperm): Ditto.
6289         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
6290         (sse5_pperm_zero_v16qi_v8hi): Ditto.
6291         (sse5_pperm_sign_v8hi_v4si): Ditto.
6292         (sse5_pperm_zero_v8hi_v4si): Ditto.
6293         (sse5_pperm_sign_v4si_v2di): Ditto.
6294         (sse5_pperm_sign_v4si_v2di): Ditto.
6295         (sse5_pperm_pack_v2di_v4si): Ditto.
6296         (sse5_pperm_pack_v4si_v8hi): Ditto.
6297         (sse5_pperm_pack_v8hi_v16qi): Ditto.
6298         (sse5_perm<mode>): New SSE5 intrinsic insn.
6299         (rotl<mode>3): Ditto.
6300         (sse5_rotl<mode>3): Ditto.
6301         (sse5_ashl<mode>3): Ditto.
6302         (sse5_lshl<mode>3): Ditto.
6303         (sse5_frcz<mode>2): Ditto.
6304         (sse5s_frcz<mode>2): Ditto.
6305         (sse5_cvtph2ps): Ditto.
6306         (sse5_cvtps2ph): Ditto.
6307         (sse5_vmmaskcmp<mode>3): Ditto.
6308         (sse5_com_tf<mode>3): Ditto.
6309         (sse5_maskcmp<mode>3): Ditto.
6310         (sse5_maskcmp_uns<mode>3): Ditto.
6311         (sse5_maskcmp_uns2<mode>3): Ditto.
6312         (sse5_pcom_tf<mode>3): Ditto.
6313
6314         * config/i386/predicates.md (sse5_comparison_float_operator):
6315         New predicate to match the comparison operators supported by
6316         the SSE5 com instruction.
6317         (ix86_comparison_int_operator): New predicate to match just the
6318         signed int comparisons.
6319         (ix86_comparison_uns_operator): New predicate to match just the
6320         unsigned int comparisons.
6321
6322         * doc/invoke.texi (-msse5): Add documentation.
6323         (-mfused-madd): Ditto.
6324
6325         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
6326
6327         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
6328         mmintrin-common.h.
6329         (x86_64-*-*): Ditto.
6330
6331         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
6332
6333         * config/i386/bmmintrin.h: New file, provide common x86 compiler
6334         intrinisics for SSE5.
6335
6336         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
6337         mmintrin-common.h.
6338
6339         * config/i386/mmintrin-common.h: New file, to contain common
6340         instructions between SSE4.1 and SSE5.
6341
6342         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
6343         FOREACH_FUNCTION_ARGS to iterate over the argument list.
6344         (gen_regparm_prefix): Ditto.
6345
6346         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
6347         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
6348         prototype_p to determine if a function is prototyped.
6349
6350 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
6351
6352         * c-common.c (c_common_reswords) add the alignof keyword,
6353         with same RID as __alignof and __alignof__
6354
6355 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
6356
6357         * hooks.h (hook_bool_const_int_const_int_true): Declare.
6358         * hooks.c (hook_bool_const_int_const_int_true): New function.
6359         * target.h (struct gcc_target): Add can_eliminate field.
6360         * target-def.h (TARGET_CAN_ELIMINATE): Define.
6361         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
6362         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
6363         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
6364         (elim_table): Revise comment.
6365         * system.h (CAN_ELIMINATE): Poison.
6366         * defaults.h (CAN_ELIMINATE): Remove.
6367         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
6368
6369         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
6370         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
6371         Define macro.
6372         (alpha_vms_can_eliminate): Declare as static, change return type to
6373         bool.
6374         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
6375
6376         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
6377         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
6378         (arm_can_eliminate): New function.
6379
6380         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
6381         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
6382         (avr_can_eliminate): Declare as static.
6383         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
6384
6385         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
6386         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
6387         (bfin_can_eliminate): New function.
6388
6389         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
6390         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
6391         (crx_can_eliminate): New function.
6392
6393         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
6394         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
6395         (fr30_can_eliminate): New function.
6396
6397         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
6398         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
6399         (frv_can_eliminate): New function.
6400
6401         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
6402         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
6403         (h8300_can_eliminate): New function.
6404
6405         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
6406         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
6407         (i386_can_eliminate): Declare as static, change return type to bool.
6408         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
6409
6410         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
6411         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
6412         (ia64_can_eliminate): New function.
6413
6414         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
6415         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
6416         (iq2000_can_eliminate): New function.
6417
6418         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
6419         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
6420         (m32r_can_eliminate): New function.
6421
6422         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
6423         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
6424         (m68hc11_can_eliminate): New function.
6425
6426         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
6427         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
6428         (m68k_can_eliminate): New function.
6429
6430         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
6431         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
6432         (mep_can_eliminate): New function.
6433
6434         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
6435         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
6436         (mips_can_eliminate): New function.
6437
6438         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
6439         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
6440         (rs6000_can_eliminate): New function.
6441
6442         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
6443         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
6444         (s390_can_eliminate): Declare as static.
6445         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
6446
6447         * config/score/score.h (CAN_ELIMINATE): Remove macro.
6448         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
6449         (score_can_eliminate): New function.
6450
6451         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
6452         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
6453         (sparc_can_eliminate): Declare as static.
6454         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
6455
6456         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
6457         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
6458         (xstormy16_can_eliminate): New function.
6459
6460         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
6461         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
6462         (v850_can_eliminate): New function.
6463
6464 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
6465
6466         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
6467         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
6468         (*movdfcc_ext[1234]): Disable for IEEE mode.
6469
6470 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
6471
6472         * gimplify.c (prepare_gimple_addressable): New static function.
6473         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
6474         it addressable.
6475         (gimplify_addr_expr): Invoke it similarly on the operand instead of
6476         manually fiddling with it.
6477
6478 2009-08-25  Michael Matz  <matz@suse.de>
6479
6480         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
6481         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
6482         full expression.
6483         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
6484         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
6485         (do_jump): Split out code for simple binary comparisons into ...
6486         (do_jump_1): ... this, taking the individual operands and code.
6487         Change callers to helper function above accordingly.
6488         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
6489         comparisons.
6490
6491 2009-08-25  Michael Matz  <matz@suse.de>
6492
6493         * expr.h (struct separate_ops, sepops): New type for passing
6494         around an exploded simple expression.
6495         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
6496         Use this structure instead of expression tree.
6497         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
6498         expression, only its type.
6499         (expand_vec_cond_expr): Take type and individual operands instead
6500         of full expression.
6501         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
6502         expand_vec_shift_expr): Change prototype accordingly.
6503         * tree-vect-stmts.c (vectorizable_condition): Change call of
6504         expand_vec_cond_expr_p to pass only type.
6505         * expr.c (do_store_flags): Change prototype and implementation
6506         to take an exploded expression.
6507         (expand_expr_real_1): New local ops initialized with details
6508         of the full expression.  Use it instead of full
6509         expression in calls to do_store_flags, expand_vec_cond_expr,
6510         expand_widen_pattern_expr and expand_vec_shift_expr.
6511
6512 2009-08-25  Michael Matz  <matz@suse.de>
6513
6514         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
6515         treeop2 initialized with first three operands of the full expression.
6516         Substitute all TREE_OPERAND (exp, [012]) calls with them.
6517
6518 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
6519
6520         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
6521         (__gthread_objc_condition_allocate): Mark arguments as unused.
6522         (__gthread_objc_condition_deallocate): Likewise.
6523         (__gthread_objc_condition_wait): Likewise.
6524         (__gthread_objc_condition_broadcast): Likewise.
6525         (__gthread_objc_condition_signal): Likewise.
6526         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
6527         (__gthread_objc_thread_id): Likewise.
6528
6529 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
6530
6531         PR middle-end/41149
6532         * tree-pretty-print.c (print_call_name): Print the correct call name
6533         for procedure pointer components.
6534
6535 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
6536
6537         * config/ia64/ia64.c (ia64_promote_function_mode): Call
6538         default_promote_function_mode when not VMS.
6539
6540 2009-08-24  Olivier Hainque  <hainque@adacore.com>
6541
6542         * convert.c (convert_to_integer): Don't assume an input pointer is
6543         POINTER_SIZE wide.  Fetch from the type instead.
6544
6545 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6546
6547         * configure.ac (AC_PREREQ): Bump to 2.64.
6548
6549 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
6550
6551         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
6552         (process_command): Don't search standard_exec_prefix_1 and
6553         standard_exec_prefix_2.
6554
6555 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6556
6557         * config/arm/arm.c (output_return_instruction): Handle for
6558         unified syntax.
6559
6560 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6561
6562         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
6563
6564 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6565
6566         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
6567         (*arm_movdf_vfp): Likewise.
6568
6569 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6570
6571         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
6572         (vashr<mode>3): Rename from ashr<mode>3.
6573         (vlshr<mode>3): Rename from lshr<mode>3.
6574
6575 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
6576
6577         PR/40786
6578         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
6579         (check_format_info_main): Use scalar_identify_flag.
6580         (check_format_types): Check for scalar size identity if
6581         scalar_identify_flag is set.
6582         (printf_length_specs): Extend by new field.
6583         (asm_fprintf_length_specs): Likewise.
6584         (gcc_diag_length_specs): Likewise.
6585         (scanf_length_specs): Likewise.
6586         (strfmon_length_specs): Likewise.
6587         (gcc_gfc_length_specs): Likewise.
6588         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
6589         (ms_printf_flag_specs): Likewise.
6590         * c-format.h (format_length_info): Add new member scalar_identity_flag.
6591
6592 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
6593
6594         PR target/40718
6595         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
6596         (*call_value_pop_1): Ditto.
6597         (*sibcall_pop_1): New insn pattern.
6598         (*sibcall_value_pop_1): Ditto.
6599
6600 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
6601
6602         PR target/41081
6603         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
6604         ashrsi3_64): New.
6605
6606 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
6607
6608         PR target/41081
6609         * fwprop.c (try_fwprop_subst): Allow multiple sets.
6610         (get_reg_use_in): New function.
6611         (forward_propagate_subreg): Propagate through subreg of zero_extend
6612         or sign_extend.
6613
6614 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6615
6616         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
6617         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
6618
6619 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6620
6621         * configure.ac: Remove --with-datarootdir, --with-docdir,
6622         --with-htmldir switches.  No need to call AC_SUBST for
6623         datarootdir, docdir, htmldir any more.
6624         * configure: Regenerate.
6625         * doc/install.texi (Configuration): Document --datarootdir,
6626         --docdir, --htmldir, --pdfdir; update documentation for
6627         --infodir, --mandir.
6628         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
6629         M4 to 1.4.6.
6630
6631         * aclocal.m4: Regenerate.
6632         * config.in: Regenerate.
6633         * configure: Regenerate.
6634
6635 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
6636             Olivier Hainque  <hainque@adacore.com>
6637
6638         * config/ia64/ia64.c: Include libfuncs.h.
6639         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
6640         (ia64_expand_call): Use reg 25 on VMS.
6641         (ia64_initialize_trampoline): Fix for VMS ABI.
6642         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
6643         (ia64_function_arg): Initialize reg 25 on VMS.
6644         Fix OpenVMS ABI issues for varargs.
6645         For OpenVMS, emit the Argument Information register set in the
6646         incoming/sibcall case as well.
6647         (ia64_arg_type): New function.
6648         (ia64_function_arg_advance): Keep track of cum->words.
6649         Fix OpenVMS ABI issues for varargs.
6650         (ia64_function_value): On VMS, promote mode of non-aggregate types.
6651         (ia64_override_options): Set flag_no_common on VMS.
6652         (ia64_init_builtins): Disable FWRITE builtin.
6653         (ia64_asm_output_external): Call DO_CRTL_NAMES.
6654         (ia64_vms_init_libfuncs): Add decc$ routines.
6655         (ia64_vms_valid_pointer_mode): New function.
6656         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
6657         (ia64_promote_function_mode): New function
6658         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
6659         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
6660         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
6661         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
6662         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
6663         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
6664         Suppress trailing '#' if VALUE is numeric.
6665         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
6666         ia64_promote_function_mode.
6667         (TARGET_VALID_POINTER_MODE): Define.
6668
6669 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
6670
6671         PR target/40671
6672         * config/rs6000/rs6000.c (rs6000_override_options): Use
6673         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
6674
6675         PR target/41145
6676         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
6677         reporting of vector + decimal/boolean/complex error.
6678
6679 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
6680
6681         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
6682         __vector double TYPE_DECL.
6683
6684 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
6685
6686         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
6687         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
6688         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
6689         to pointer to enum machine_mode.  Update all callers as needed.
6690
6691 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
6692
6693         * config/alpha/alpha.md (exception_receiver): Emit alternative
6694         GP load sequence if flag_reorder_blocks_and_partition is set.
6695         (*exception_receiver_2): Also enable when
6696         flag_reorder_blocks_and_partition is set.
6697
6698 2009-08-20  Matt Rice  <ratmice@gmail.com>
6699             Diego Novillo  <dnovillo@google.com>
6700
6701         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
6702         tree-ssa-sccvn.h.
6703
6704 2009-08-20  Richard Guenther  <rguenther@suse.de>
6705
6706         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
6707         * c-tree.h (c_dup_lang_specific_decl): Remove.
6708         (struct lang_decl, struct lang_type): Move definitions ...
6709         * c-lang.h: ... here.  New file.
6710         * c-decl.c: Include c-lang.h.
6711         (c_dup_lang_specific_decl): Remove.
6712         * c-typeck.c: Include c-lang.h.
6713         * Makefile.in (c-decl.o): Add c-lang.h dependency.
6714         (c-typeck.o): Likewise.
6715         * c-config-lang.in (gtfiles): Add c-lang.h.
6716         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
6717         like c-tree.h.
6718
6719 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
6720
6721         * config/alpha/alpha.c (alpha_end_function): Do not clear
6722         crtl->emit structure and free insn locators if cfun->is_thunk is true,
6723         this is now handled in generic code.
6724
6725 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6726
6727         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
6728         (s390_z10_fix_long_loop_prediction): New function.
6729         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
6730         (s390_reorg): Walk over the INSNs and invoke
6731         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
6732
6733 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
6734
6735         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
6736         "*brx_64bit", "*brx_31bit"): New patterns.
6737         * config/s390/s390.c ('E'): New output modifier.
6738
6739 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6740             Richard Earnshaw  <richard.earnshaw@arm.com>
6741
6742         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
6743         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
6744
6745 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6746
6747         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
6748         patterns.
6749         * pa.c (emit_move_sequence): Check if address of operand1 is valid
6750         for mode mode of operand0 when doing secondary reload for SAR.
6751
6752 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
6753
6754         PR middle-end/41123
6755         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
6756         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
6757
6758 2009-08-19  Jason Merrill  <jason@redhat.com>
6759
6760         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
6761         supported template depth in C++0x.
6762
6763 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
6764
6765         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
6766         free_after_compilation.
6767         * config/score/score7.c (score7_output_mi_thunk): Likewise.
6768         * config/score/score3.c (score3_output_mi_thunk): Likewise.
6769         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6770         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
6771         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6772         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
6773         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6774
6775 2009-08-19  Ian Lance Taylor  <iant@google.com>
6776
6777         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
6778         of (plus (mult (neg B) C) A).
6779
6780 2009-08-18  Michael Matz  <matz@suse.de>
6781
6782         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
6783         instead of comparing TYPE_MAIN_VARIANT for equality.
6784         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
6785         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
6786         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
6787         * gimplify.c (goa_lhs_expr_p): Ditto and use
6788         STRIP_USELESS_TYPE_CONVERSION.
6789
6790 2009-08-18  Michael Matz  <matz@suse.de>
6791
6792         * tree-ssa-structalias.c (create_variable_info_for): Also mark
6793         first field in a struct.
6794         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
6795
6796 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
6797
6798         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
6799         locators before emit_insn is called.  Remove assert that
6800         cfun->is_thunk.
6801         (alpha_end_function): Clear crtl->emit structure and free insn
6802         locators if cfun->is_thunk is true.
6803
6804 2009-08-18  Jason Merrill  <jason@redhat.com>
6805
6806         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
6807         type if available.
6808         * configure.ac: Test for it.
6809         * configure, config.in: Regenerate.
6810         * doc/install.texi: Document --enable-gnu-unique-object.
6811
6812 2009-08-18  Richard Guenther  <rguenther@suse.de>
6813
6814         PR middle-end/41094
6815         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
6816         pow(x,y*z) only if x is nonnegative.
6817
6818 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
6819
6820         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
6821         on jumps.
6822
6823         PR target/40971
6824         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
6825         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
6826
6827 2009-08-17  DJ Delorie  <dj@redhat.com>
6828
6829         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
6830         * config/m32c/prologue.md (epilogue_freit): New.
6831         (fset_b): New.
6832         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
6833         (bank_switch_p): Likewise.
6834         (fast_interrupt_p): Likewise.
6835         (interrupt_p): Likewise.
6836         (m32c_conditional_register_usage): Round memregs size up.
6837         (need_to_save): We only need to save $a0 when we use ENTER.
6838         (interrupt_p): Check for fast_interrupt too.
6839         (bank_switch_p): New.
6840         (fast_interrupt_p): New.
6841         (m32c_attribute_table): Add bank_switch and fast_interrupt.
6842         (m32c_emit_prolog): Support bank switching and fast interrupts.
6843         * doc/extend.texi (Function Attributes): Add bank_switch and
6844         fast_interrupt.
6845
6846 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
6847
6848         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
6849         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
6850
6851 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
6852
6853         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
6854         (menu): Add IA-64/VMS Options.
6855         (IA-64/VMS Options): Likewise.
6856
6857 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
6858
6859         PR target/38599
6860         * config/mips/mips.md (*lwxs): Use :P for pointer values.
6861
6862 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
6863
6864         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
6865         (mips_pop_asm_switch): Likewise.
6866         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
6867         with...
6868         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
6869         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
6870         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
6871         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
6872         instead of set_noreorder.
6873         (mips_output_function_prologue): Use the new functions.
6874         (mips_output_function_epilogue): Likewise.
6875         (mips_need_noat_wrapper_p): New function, split out from...
6876         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
6877         Use mips_push_asm_switch and mips_pop_asm_switch.
6878         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
6879         and mips_pop_asm_switch.
6880         (ASM_OUTPUT_REG_POP): Likewise.
6881         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
6882         Use mips_pop_asm_switch.
6883         (mips_asm_switch): New structure.
6884         (set_noreorder, set_nomacro): Replace with...
6885         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
6886         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
6887         instead of set_nomacro.
6888         (fix_truncsfsi2_macro): Likewise.
6889         (cprestore): Likewise.
6890         (hazard): Use mips_noreorder instead of set_noreorder.
6891         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
6892
6893 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
6894
6895         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
6896         from prev_active_insn.
6897
6898 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
6899
6900         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
6901         * config/avr/avr.c (avr_override_options): Initialize
6902         avr_current_arch variable.
6903         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
6904         __AVR_HAVE_16BIT_SP__ according to the device type.
6905         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
6906         TARGET_TINY_STACK.
6907         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
6908         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
6909
6910 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
6911
6912         PR debug/37801
6913         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
6914         generating inlined subroutine die only. We shouldn't be
6915         called for anything else.
6916         (gen_block_die): Don't generate inline subroutine debug info for
6917         abstract blocks.
6918
6919 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
6920
6921         * graphite-poly.c (print_pbb): Print PBB index.
6922
6923 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
6924
6925         PR middle-end/40981
6926         * graphite-interchange.c (ppl_max_for_le): Moved...
6927         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
6928         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
6929         ppl_Pointset_Powerset_C_Polyhedron_maximize.
6930         * graphite-ppl.h (ppl_max_for_le): Declared.
6931
6932 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
6933
6934         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
6935         supported on all platforms.
6936         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
6937         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
6938         * c-pragma.c: Likewise.
6939         * target-def.h (TARGET_INITIALIZER): Remove
6940         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
6941         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
6942
6943 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
6944
6945         * config/ia64/fde-vms.c: New file.
6946         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
6947         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
6948         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
6949         (uw_frame_state_for): Only register a personality routine if it is
6950         known to be compatible with our expectations.
6951         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
6952         Declare unw_table_entry stack variable and
6953         mod all calls to _Unwind_FindTableEntry to add arg.
6954         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
6955         (_Unwind_FindTableEntry): Add arg to prototype.
6956
6957 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
6958
6959         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
6960         field 'signal_pfs_loc'.
6961         (uw_frame_state_for): Remove duplicate code dealing with leaf
6962         procedures without unwind info.
6963         If in the frame after unwinding through a signal handler, restore
6964         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
6965         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
6966         'pfs_loc' to the AR.PFS location in the signal context; instead
6967         set 'signal_pfs_loc'.
6968         Manually generate the unwind info for the AR.PFS register.
6969         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
6970         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
6971         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
6972         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
6973         instead set 'signal_pfs_loc'.
6974         Remove code preventing the AR.PFS register from being restored
6975         from the signal context.
6976
6977 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
6978             Tristan Gingold  <gingold@adacore.com>
6979
6980         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
6981         * config/ia64/t-vms: New file.
6982         * config/ia64/vms64.h: New file.
6983         * config/ia64/vms.h: New file.
6984         * config/ia64/vms-crtinit.asm: New file.
6985         * config/ia64/vms_symvec_libgcc_s.opt: New file.
6986         * config/ia64/vms-unwind.h: New file.
6987
6988 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
6989
6990         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
6991         TFmode compares.
6992
6993 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6994
6995         PR middle-end/30789
6996         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
6997         Move declaration...
6998         * real.h (do_mpc_arg2): ... here.
6999         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7000         and RDIV_EXPR.
7001
7002 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
7003
7004         * final.c (add_debug_prefix_map): Don't use GC memory for
7005         old_prefix and new_prefix.
7006
7007 2009-08-14  Richard Guenther  <rguenther@suse.de>
7008
7009         * ipa-prop.c (compute_complex_pass_through): If we cannot
7010         compute a non-varying offset for IPA_JF_ANCESTOR punt.
7011
7012 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7013
7014         * c-lex.c (c_lex_with_flags): Increase size of local variable
7015         to avoid memory clobber.
7016
7017 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
7018
7019         PR target/40934
7020         * config/i386/i386.c (ix86_fp_comparison_strategy):
7021         Only enable/disable sahf at function granularity.
7022
7023 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
7024
7025         PR rtl-optimization/41064
7026         * reload1.c (reload_as_needed): Don't call extract_insn
7027         for known invalid replacements after calling
7028         validate_replace_rtx_group and verify_changes.
7029
7030 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
7031
7032         PR target/41019
7033         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
7034         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
7035         ix86_expand_fp_vcond.
7036         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
7037         Assert that operation is supported by ix86_expand_int_vcond.
7038         (vcondu<SSEMODE124C8:mode>): Ditto.
7039
7040 2009-08-13  DJ Delorie  <dj@redhat.com>
7041
7042         * config/i386/djgpp-stdint.h: New.
7043         * config.gcc (djgpp): Use it.
7044
7045 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7046
7047         * config/sh/sh.c (sh_override_options): When flag_exceptions or
7048         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
7049
7050 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
7051
7052         * tree-ssa-loop-prefetch.c
7053         (prune_ref_by_group_reuse): Enhance probabilistic analysis
7054         for long-stride pruning.
7055         (compute_miss_rate): New function to compute the probability
7056         that two memory references access different cache lines.
7057
7058 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
7059
7060         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
7061
7062 2009-08-13  Richard Guenther  <rguenther@suse.de>
7063
7064         PR middle-end/41047
7065         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
7066         use the constant pointer type.
7067         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
7068         of CV qualifiers on the target pointer type.
7069         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
7070         conversion check before restrict check.
7071
7072 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7073
7074         PR target/41029
7075         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
7076
7077 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7078
7079         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
7080
7081 2009-08-12  Richard Guenther  <rguenther@suse.de>
7082
7083         PR tree-optimization/41011
7084         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
7085         and reference constructing.
7086
7087 2009-08-12  Xinliang David Li  <davidxl@google.com>
7088
7089         PR tree-optimization/41012
7090         * tree-flow.h : New external interface.
7091         * gimple-low.c (check_call_arg): Change to public function.
7092         Remove argument mismatch check in lowering.
7093         * tree-inline.h (tree_can_inline_p): Interface change.
7094         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
7095         into this function.
7096         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
7097         Call change to tree_can_inline_p function.
7098         (cgraph_decide_inlining_incrementally): Ditto.
7099
7100 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
7101
7102         PR tree-optimization/41031
7103         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
7104         on the partition variable rather than promote_mode on the source
7105         type.  Assert that the partition variable's type has the same
7106         mode as the source value's.
7107
7108 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
7109
7110         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
7111         for for_return == 2.
7112         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
7113         comments.
7114         * calls.c (expand_call): Fix typo.
7115         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
7116         and PARM_DECL.
7117         * stmt.c (expand_value_return): Use promote_function_mode to copy out
7118         of pseudo.
7119         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
7120         * config/cris/cris.c (cris_promote_function_mode): Likewise.
7121         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
7122         * config/pa/pa.c (pa_promote_function_mode): Likewise.
7123
7124 2009-08-12  Andrew Haley  <aph@redhat.com>
7125
7126         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
7127
7128 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7129
7130         PR bootstrap/40103
7131         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
7132
7133 2009-08-12  Richard Guenther  <rguenther@suse.de>
7134
7135         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
7136         * gimplify.c (gimplify_modify_expr): Do not use
7137         lang_hooks.types_compatible_p.
7138         * tree-ssa.c (useless_type_conversion_p): For aggregates
7139         just return false if the canonical types differ.
7140
7141 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7142
7143         PR middle-end/40980
7144         * sese.c (convert_for_phi_arg): New.
7145         (add_guard_exit_phis): Use convert_for_phi_arg.
7146
7147 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7148
7149         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
7150         unknown subscript upper bounds.
7151
7152 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7153             Pranav Garg  <pranav.garg2107@gmail.com>
7154
7155         * graphite-interchange.c (gather_access_strides): Removed.
7156         (ppl_max_for_le): New.
7157         (build_linearized_memory_access): New.
7158         (memory_stride_in_loop): New.
7159         (pbb_interchange_profitable_p): Reimplemented.
7160         * graphite-ppl.h (ppl_new_id_map): New.
7161         (ppl_interchange): New.
7162
7163 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7164
7165         * graphite-interchange.c (compute_subscript): Removed.
7166         (compute_array_size_cstr): Removed.
7167         (compute_array_size_poly): Removed.
7168         (compute_array_size): Removed.
7169         (gather_access_strides_poly): Removed.
7170         (gather_access_strides): Empty.
7171
7172 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7173
7174         * graphite-dependences.c (dependence_polyhedron_1): Replace
7175         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
7176         (graphite_legal_transform_dr): Same.
7177         (graphite_carried_dependence_level_k): Same.
7178         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
7179         Initialize PDR_NB_SUBSCRIPTS.
7180         (print_pdr_access_layout): Replace pdr_nb_subscripts with
7181         PDR_NB_SUBSCRIPTS.
7182         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
7183         (PDR_NB_SUBSCRIPTS): New.
7184         (pdr_nb_subscripts): Removed.
7185         (pdr_dim): Simplified.
7186         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
7187         with PDR_NB_SUBSCRIPTS.
7188
7189 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7190
7191         * graphite-interchange.c (compute_array_size): Remove use of
7192         PDR_DATA_CONTAINER.
7193         * graphite-poly.c (new_poly_dr): Remove argument data_container.
7194         Do not initialize PDR_DATA_CONTAINER.
7195         (print_pdr): Do not print PDR_DATA_CONTAINER.
7196         * graphite-poly.h (struct poly_dr): Remove data_container field.
7197         (PDR_DATA_CONTAINER): Removed.
7198         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
7199         PDR_DATA_CONTAINER.
7200         (build_poly_dr): Same.
7201
7202 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
7203             Sebastian Pop  <sebastian.pop@amd.com>
7204
7205         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
7206         copy of the dependence polyhedron.  Free the temporary objects.
7207         (graphite_carried_dependence_level_k): Free unused objects before
7208         returning.
7209
7210 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7211
7212         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
7213         Early return without analyzing the data dependences if no
7214         transform has been done.  Call restore_scattering if the transform
7215         is not legal.
7216         (graphite-interchange.c): Same.
7217         * graphite-poly.c (print_scattering_function): Test for
7218         PBB_TRANSFORMED.
7219         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
7220         (apply_poly_transforms): Do not gcc_assert that
7221         the transform is legal.
7222         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
7223         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
7224         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
7225         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
7226         * graphite-poly.h (struct poly_scattering): New.
7227         (struct poly_bb): Add original, transformed, and saved fields.
7228         Remove transformed_scattering, original_scattering,
7229         nb_local_variables and nb_scattering_transform fields.
7230         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
7231         (poly_scattering_new): New.
7232         (poly_scattering_free): New.
7233         (poly_scattering_copy): New.
7234         (store_scattering_pbb): New.
7235         (store_scattering): New.
7236         (restore_scattering_pbb): New.
7237         (restore_scattering): New.
7238         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7239         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
7240
7241 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7242
7243         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
7244         (print_scop): Same.
7245
7246 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7247
7248         * Makefile.in (graphite.o): Depends on PREDICT_H.
7249         * graphite.c: Include predict.h.
7250         (graphite_finalize): Call tree_estimate_probability.
7251         * predict.c (predict_loops): Do not call scev_initialize and
7252         scev_finalize.
7253         (tree_estimate_probability_bb): New.
7254         (tree_estimate_probability): Do not initialize loops: move that
7255         code to the driver.  Call tree_estimate_probability_bb.
7256         (tree_estimate_probability_driver): New.
7257         (pass_profile): Use tree_estimate_probability_driver.
7258         * predict.h (tree_estimate_probability): Declared.
7259
7260 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7261
7262         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
7263         * graphite-dependences.c (graphite_legal_transform): Add time to
7264         TV_GRAPHITE_DATA_DEPS.
7265         (dependency_between_pbbs_p): Same.
7266         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
7267
7268 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
7269
7270         PR rtl-optimization/41033
7271         * alias.c (nonoverlapping_component_refs_p): Punt when strict
7272         aliasing is disabled.
7273
7274 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
7275
7276         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
7277         si_mask_operand, and_load_operand, low_bitmask_operand,
7278         and_reg_operand, and_operand): New predicates.
7279         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
7280         * config/mips/mips.c (and_operands_ok): New function.
7281         * config/mips/mips-protos.h (and_operands_ok): Declare it.
7282         * config/mips/mips.md (move_type): Add ext_ins and logical.
7283         (type): Handle them.
7284         (and<mode>3): Use and_reg_operand as the second operand's predicate.
7285         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
7286         shift_shift.  Remove commutative constraint modifier.
7287         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
7288         shift_shift.
7289         (*clear_upper32_dext): Remove define_insn_and_split.
7290         (*clear_upper32): Turn this define_insn_and_split ...
7291         (splitter for ANDing register with 0xffff_ffff): .. into this.
7292
7293 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
7294
7295         * combine.c (try_widen_shift_mode): Factor out code to check if an
7296         integer constant is a low-order bitmask from here ...
7297         * rtlanal.c (low_bitmask_len): ... to here.
7298         * rtl.h (low_bitmask_len): Declare.
7299
7300 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
7301
7302         PR target/8603
7303         * config/alpha/alpha.md (addsi3): Remove expander.
7304         (addsi3): Rename from *addsi3_internal insn pattern.
7305         (subsi3): Remove expander.
7306         (subsi3): Rename from *subsi3_internal insn pattern.
7307
7308 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
7309
7310         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
7311         FWRITE_UNLOCKED.
7312
7313 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
7314             Eric Botcazou  <botcazou@adacore.com>
7315             Douglas B Rupp  <rupp@gnat.com>
7316
7317         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
7318         that records that fit in 64 bits are returned by immediate value,
7319         as required by OpenVMS Calling Standard.
7320         (function_value): Adjust for above modification.
7321         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
7322         virtual_incoming_args_rtx as base object, not next_arg.
7323         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7324
7325 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7326
7327         * reload.c (find_reloads_subreg_address): Check the original
7328         req_equiv_mem address to detect the case where an address is
7329         not valid in the outer mode.
7330
7331 2009-08-11  Richard Guenther  <rguenther@suse.de>
7332
7333         PR bootstrap/40788
7334         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
7335
7336 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
7337
7338         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
7339         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
7340
7341 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
7342             Douglas B Rupp  <rupp@gnat.com>
7343
7344         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
7345         PT_STACK when frame_pointer_needed on OpenVMS.
7346         (alpha_pv_save_size, alpha_using_fp): Remove.
7347         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
7348         with proper processing for PT_NULL.
7349         (alpha_vms_initial_elimination_offset): New function. Support for
7350         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
7351         (alpha_sa_size): Force procedure type to PT_STACK when
7352         frame_pointer_needed on OpenVMS.
7353         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
7354         (alpha_using_fp): Likewise.
7355         (alpha_vms_can_eliminate): Add prototype.
7356         (alpha_vms_initial_elimination_offset): Likewise.
7357         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
7358         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
7359
7360 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
7361             Douglas B Rupp  <rupp@gnat.com>
7362
7363         * config/alpha/alpha.c (common_object_handler): New function.
7364         (vms_attribute_table): Declare a single attribute "common_object".
7365         (vms_output_aligned_decl_common): New global function.
7366         (SECTION_VMS_OVERLAY): Delete.
7367         (SECTION_VMS_GLOBAL): Likewise.
7368         (SECTION_VMS_INITIALIZE): Likewise.
7369         (vms_asm_named_section): Remove support for above flags.
7370         (vms_section_type_flags): Delete.
7371         (TARGET_SECTION_TYPE_FLAGS): Likewise.
7372         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
7373         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
7374         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
7375
7376 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7377
7378         PR target/41015
7379         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
7380         (sub_ddmmss): Likewise.
7381
7382 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
7383
7384         PR bootstrap/41018
7385         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
7386         year.
7387
7388 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7389
7390         PR target/37053
7391         * reload1.c (reload_as_needed): Use cancel_changes to completely
7392         undo a failed replacement attempt.
7393
7394 2009-08-10  Richard Guenther  <rguenther@suse.de>
7395
7396         PR middle-end/41006
7397         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
7398         (useless_type_conversion_p): ... here.  Require pointer targets
7399         to be compatible.
7400
7401 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
7402
7403         PR c++/40866
7404         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
7405         loose the original type of the statement list.
7406
7407 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7408
7409         * config/alpha/alpha.c: Include libfuncs.h
7410         (avms_asm_output_extern): New function.
7411         (alpha_init_libfuncs): Init some decc libfuncs.
7412         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
7413         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
7414         (DO_CRTL_NAMES): Define.
7415         (LIB_SPEC): Remove.
7416         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
7417         (LONG_TYPE_SIZE): Define.
7418         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
7419         (SUBTARGET_SWITCHES): Define malloc64 switch.
7420         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
7421         (MASK_RETURN_ADDR): Define.
7422         doc/invoke.texi (mmalloc64): Document switch.
7423
7424 2009-08-09  Olivier Hainque  <hainque@adacore.com>
7425             Douglas B Rupp  <rupp@gnat.com>
7426
7427         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
7428         uses_condition_handler.
7429         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
7430         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
7431         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
7432         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
7433         (code_for_builtin): New insn codes for the new alpha_builtins.
7434         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
7435         (alpha_sa_size): Account for uses_condition_handler.
7436         (alpha_expand_prologue): Likewise.
7437         (alpha_start_function): Likewise.
7438         (alpha_expand_epilogue): Likewise.
7439         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
7440         establish/revert expanders.
7441         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
7442         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
7443         New expander, resorting to the alpha.c associated function.
7444         (builtin_revert_vms_condition_handler): Likewise.
7445         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
7446         __gcc_shell_handler, the static VMS condition handler used as
7447         an indirection wrapper to the current dynamically established
7448         handler.
7449         * config/alpha/vms-unwind.h: Complete rewrite.
7450         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
7451         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
7452
7453 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
7454             Douglas B Rupp  <rupp@gnat.com>
7455
7456         * config/alpha/alpha.c (alpha_links): Add 'target' field.
7457         (alpha_need_linkage): Handle aliases.  Return function symbol.
7458         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
7459         Use ultimate alias target for the linkage name.
7460         * config/alpha/alpha.md (movmemdi): Use the symbol returned
7461         by alpha_need_linkage for the function symbol.
7462         (setmemdi): Likewise.
7463
7464 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7465
7466         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
7467         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
7468         (ASM_WEAKEN_LABEL): Define.
7469         (CRT_CALL_STATIC_FUNCTION): Define.
7470         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
7471         (ENDFILE_SPEC): Define.
7472         (INIT_SECTION_ASM_OP): Define.
7473         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
7474         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
7475         crtend.o crtendS.o.
7476         (MULTILIB_OSDIRNAMES): Define.
7477         (shlib_version): Define.
7478         (SHLIB_EXT): Define.
7479         (SHLIB_OBJS): Define.
7480         (SHLIB_NAME): Define.
7481         (SHLIB_MULTILIB): Define.
7482         (SHLIB_INSTALL): Define.
7483         (SHLIB_SYMVEC): Define.
7484         (SHLIB_SYMVECX2): Define.
7485         (SHLIB_LINK): Define.
7486
7487 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7488
7489         * config/alpha/alpha.c (alpha_initialize_trampoline):
7490         Initialize VMS trampoline IAW ABI for bounded procedure calls.
7491         (alpha_start_function): Emit transfer address on nested functions
7492         for VMS trampoline call.
7493         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
7494         since no longer used.
7495         * config/alpha/vms-tramp.asm: Remove.
7496         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
7497         since now only data initialized at runtime.
7498
7499 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7500
7501         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
7502         (LINK_GCC_C_SEQUENCE_SPEC): Define.
7503         (MD_EXEC_PREFIX): Remove, no longer used.
7504         (MD_STARTFILE_PREFIX): Likewise.
7505         (INCLUDE_DEFAULTS): Likewise.
7506         * config/alpha/t-vms:
7507         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
7508
7509 2009-08-09  Richard Guenther  <rguenther@suse.de>
7510
7511         PR tree-optimization/41016
7512         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
7513         (operand_precision): Remove.
7514         (integral_operand_p): Likewise.
7515         (recognize_single_bit_test): Adjust.
7516
7517 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7518
7519         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
7520         operation overflows.  Likewise non-cast unary arithmetic.
7521         If one arm of a conditional expression is always taken,
7522         inhibit evaluation warnings for the other arm.  Likewise inhibit
7523         evaluation warnings for the second && or || operand if the first
7524         operand is enough to determine the result.
7525         * c-typeck.c (build_conditional_expr): Apply the same inhibition
7526         rules here.
7527         (build_binary_op): Prevent duplicate evaluation warnings.
7528
7529 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7530
7531         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
7532         and destination have different modes, Use promote_mode to
7533         determine the signedness of the conversion.  Assert that the
7534         promoted source mode matches the destination mode.  Don't pass
7535         the destination and destination mode to expand_expr if the source
7536         mode is different.  Simplify conversion logic.
7537
7538 2009-08-09  Ira Rosen  <irar@il.ibm.com>
7539
7540         PR tree-optimization/41008
7541         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
7542         from condition only in case it's a comparison. Adjust checks.
7543
7544 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
7545
7546         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
7547         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
7548         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
7549         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
7550         (dump_cand): Handle them.
7551         (struct iv_cand): New members COST_STEP and AINC_USE.
7552         (stmt_after_increment): Likewise.
7553         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
7554         callers changed.  Use gimple_uid comparison instead of scanning.
7555         (add_candidate_1): When looking for identical candidates, take
7556         AINC_USE into account.  Set it for new candidates.
7557         (force_expr_to_var_cost): Cast target_spill_cost to int.
7558         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
7559         All callers changed.  Check for availability of autoinc addressing
7560         modes, both in general for a given mode, and in the specific use case.
7561         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
7562         changed.
7563         (get_computation_cost): Likewise.
7564         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
7565         add_autoinc_candidates): New static functions.
7566         (add_candidate): Call add_autoinc_candidates for candidates based on
7567         a USE_ADDRESS use.
7568         (find_iv_candidates): Call set_autoinc_for_original_candidates.
7569         (determine_use_iv_cost_address): If we have an autoinc candidate at
7570         the matching use, verify autoinc is possible and subtract the cost
7571         of the candidate's step from the cost.
7572         (determine_iv_cost): Record the cost of the increment in the COST_STEP
7573         member of the candidate.
7574         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
7575         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
7576
7577 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7578
7579         * config.build (ia64-hp-*vms*): New target.
7580         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7581         with ia64-hp-*vms*.
7582         * config.gcc (ia64-hp-*vms*): New target.
7583         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7584         with ia64-hp-*vms*.
7585         * config.host (ia64-hp-*vms*): New target.
7586         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7587         with ia64-hp-*vms*.
7588
7589 2009-08-08  Richard Guenther  <rguenther@suse.de>
7590
7591         PR tree-optimization/40991
7592         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
7593
7594 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
7595
7596         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
7597         mode check.  Do truncations in an integer mode.
7598         (force_to_mode): Handle subregs for all mode types.  Only do
7599         arithmetic simplifications on integer modes.
7600
7601 2009-08-07  Richard Guenther  <rguenther@suse.de>
7602
7603         PR tree-optimization/40999
7604         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
7605         (maybe_fold_reference): Lookup constant initializers.
7606         (fold_gimple_assign): Likewise.
7607
7608 2009-08-07  Richard Guenther  <rguenther@suse.de>
7609
7610         * tree-ssa.c (useless_type_conversion_p_1): Only for types
7611         that require structural equality defer to the langhook.
7612
7613 2009-08-07  Martin Jambor  <mjambor@suse.cz>
7614
7615         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
7616         comments.
7617         (struct ipa_pass_through_data): New type.
7618         (struct ipa_ancestor_jf_data): New type.
7619         (union jump_func_value): Removed field formal_id, added fields
7620         pass_through and ancestor.
7621         (struct ipa_param_call_note): Changed type of formal_id to int from
7622         unsigned.
7623         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
7624         operations jump functions and ancestor jump functions.
7625         (compute_complex_pass_through): New function.
7626         (compute_scalar_jump_functions): Call compute_complex_pass_through,
7627         reflect changes in the jump function strucutre.
7628         (update_jump_functions_after_inlining): Ignore complex pass-through
7629         and ancestor jump functions.
7630         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
7631         polynomial pass-through with operation jump functions.
7632
7633 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
7634
7635         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
7636         fde->dw_fde_begin as begin label instead of hot/cold label.
7637         Use LLSDAC label instead of LLSDA for second section lsda.
7638         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
7639         label instead of LLSDA if it is true.
7640         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
7641         callers.
7642         * except.c (add_call_site, dw2_size_of_call_site_table): Add
7643         SECTION argument.  Use it as index into crtl->eh.call_site_record
7644         array.
7645         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
7646         use it to determine how to print table entries instead of using
7647         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
7648         label instead of normal begin label as base.
7649         (sjlj_assign_call_site_values): Adjust add_call_site caller.
7650         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
7651         ensure no EH range spans between sections and that landing pads
7652         are always in the corresponding section.
7653         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
7654         for crtl->eh.call_site_record being an array rather than scalar.
7655         (output_one_function_exception_table): New function, copied
7656         from output_function_exception_table.  Adjust
7657         dw2_size_of_call_site_table, dw2_output_call_site_table
7658         callers.  For SECOND section use *C suffixed labels.
7659         (output_function_exception_table): Call
7660         output_one_function_exception_table and, when doing hot/cold
7661         partitioning, also another time for the second section.
7662         * opts.c: Include except.h.
7663         (decode_options): Allow -freorder-blocks-and-partition with
7664         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
7665         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
7666         * function.h (struct rtl_eh): Change call_site_record from
7667         scalar into array of 2 elements.
7668
7669 2009-08-07  Martin Jambor  <mjambor@suse.cz>
7670
7671         * ipa-prop.c (count_formal_params_1): New function.
7672         (ipa_get_vector_of_formal_parms): New function.
7673         (get_vector_of_formal_parm_types): New function.
7674         (ipa_modify_formal_parameters): New function.
7675         (ipa_modify_call_arguments): New function.
7676         (index_in_adjustments_multiple_times_p): New function.
7677         (ipa_combine_adjustments): New function.
7678         (ipa_dump_param_adjustments): New function.
7679         * ipa-prop.h (struct ipa_parm_adjustment): New type.
7680         (ipa_get_vector_of_formal_parms): Declare.
7681         (ipa_modify_formal_parameters): Declare.
7682         (ipa_modify_call_arguments): Declare.
7683         (ipa_combine_adjustments): Declare.
7684         (ipa_dump_param_adjustments): Declare.
7685         (build_ref_for_offset): Declare.
7686         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
7687         * tree-sra.c: Include ipa-prop.c.
7688         (build_ref_for_offset): Make public.
7689
7690 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
7691
7692         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
7693
7694 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
7695
7696         * gcc/doc/extend.texi (__builtin_extract_return_address)
7697         (__builtin_frob_return_address): Document.
7698
7699 2009-08-06  Paul Brook  <paul@codesourcery.com>
7700
7701         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
7702         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
7703         implementation on ARMv6-M.
7704
7705 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7706
7707         * doc/extend.texi (pcs): Document new attribute for ARM.
7708
7709 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7710
7711         * arm.c (pcs_attribute_args): Comment out unsupported attribute
7712         variants.
7713
7714 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7715
7716         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
7717         warning ().
7718
7719 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7720
7721         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
7722
7723 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
7724
7725         Merge ARM/hard_vfp_branch to trunk.
7726
7727         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
7728
7729         * arm.c (libcall_eq): New function.
7730         (libcall_hash): New function.
7731         (add_libcall): New function.
7732         (arm_libcall_uses_aapcs_base): New function.
7733         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
7734         libcalls using the base PCS.
7735         (arm_init_cumulative_args): Likewise.
7736
7737         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
7738
7739         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
7740         Use base ABI for conversion libfuncs between HFmode and SFmode.
7741
7742         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7743
7744         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
7745         V4SImode as representatives of all 64-bit and 128-bit vector
7746         types.  Allow vector types without vector modes.
7747         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
7748         without vector modes like BLKmode.
7749         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
7750         BLKmode.  Avoid unsupported vector modes or TImode moves for
7751         non-TARGET_NEON.
7752         (aapcs_vfp_allocate_return_reg): Likewise.
7753         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
7754         V8QImode if TARGET_NEON || TARGET_IWMMXT.
7755
7756         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7757
7758         * config/arm/arm.c (arm_handle_pcs_attribute): New.
7759         (arm_get_pcs_model): Pass attribute arguments to
7760         arm_pcs_from_attribute.
7761         (arm_init_cumulative_args): Use base AAPCS for conversions from
7762         floating-point types to DImode.
7763         (arm_attribute_table): Add pcs attribute.
7764         (arm_handle_pcs_attribute): New.
7765         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
7766         conversions from floating-point types to DImode, also declare them
7767         to use base AAPCS and declare functions they call to use base
7768         AAPCS and their RTABI names.
7769
7770         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
7771
7772         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
7773         -mfloat-abi=hard not being supported for VFP.
7774
7775         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
7776
7777         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
7778         SYMBOL_REF to hard_libcall_value.
7779
7780         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
7781             Richard Earnshaw  <rearnsha@arm.com>
7782
7783         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
7784         has been put on the stack, all remaining co-processory arguments for
7785         that co-processor also go on the stack.
7786
7787         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
7788
7789         * config/arm/arm.c (arm_return_in_memory): Handle returning
7790         vectors of suitable size in registers also for AAPCS case.
7791
7792         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
7793
7794         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
7795
7796         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
7797
7798         ARM Hard-VFP calling convention
7799         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
7800         * target.h (gcc_target): Add libcall_value to table of call hooks.
7801         * targhooks.h (default_libcall_value): Default implementation.
7802         * targhooks.c (default_libcall_value): Likewise.
7803         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
7804         * optabs.c (expand_unop): Use it.
7805         * expr.h (hard_libcall_value): Pass the function RTX through.
7806         * calls.c (emit_library_call_value_1): Update call to
7807         hard_libcall_value.
7808         * explow.c (hard_libcall_value): Use new target hook.
7809         * testsuite/lib/target-supports.exp
7810         (check_effective_target_arm_hard_vfp_ok): New hook.
7811         (check_effective_target_arm_neon_ok): Improve test for neon
7812         availability.
7813         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
7814         * config/arm/arm.c: Include cgraph.h
7815         (TARGET_FUNCTION_VALUE): Override default hook.
7816         (arm_pcs_default): New variable.
7817         (arm_override_options): Don't fault hard calling convention with VFP.
7818         Add support for AAPCS variants.
7819         (arm_function_value): Make static.  Handle AAPCS variants.
7820         (arm_libcall_value): New function.
7821         (arm_apply_result_size): Handle VFP registers in results.
7822         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
7823         conventions.
7824         (pcs_attribute_args): New variable.
7825         (arm_pcs_from_attribute): New function.
7826         (arm_get_pcs_model): New function.
7827         (aapcs_vfp_cum_init): New function.
7828         (aapcs_vfp_sub_candidate): New function.
7829         (aapcs_vfp_is_return_candidate): New function.
7830         (aapcs_vfp_is_call_candidate): New function.
7831         (aapcs_vfp_allocate): New function.
7832         (aapcs_vfp_allocate_return_reg): New function.
7833         (aapcs_vfp_advance): New function.
7834         (aapcs_cp_arg_layout): New variable.
7835         (aapcs_select_call_coproc): New function.
7836         (aapcs_select_return_coproc): New function.
7837         (aapcs_allocate_return_reg): New function.
7838         (aapcs_libcall_value): New function.
7839         (aapcs_layout_arg): New function.
7840         (arm_init_cumulative_args): Initialize AAPCS args data.
7841         (arm_function_arg): Handle AAPCS variants using new interface.
7842         (arm_arg_parital_bytes): Likewise.
7843         (arm_function_arg_advance): New function.
7844         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
7845         calling conventions.
7846         (arm_setup_incoming_varargs): Handle new AAPCS args data.
7847         * arm.h (NUM_VFP_ARG_REGS): Define.
7848         (LIBCALL_VALUE): Update.
7849         (FUNCTION_VALUE): Delete.
7850         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
7851         (arm_pcs): New enum.
7852         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
7853         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
7854         (FUNCTION_ARG_REGNO_P): Add VFP regs.
7855         * arm-protos.h (arm_function_arg_advance): Add.
7856         (aapcs_libcall_value): Add.
7857         (arm_function_value): Delete.
7858
7859 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
7860             H.J. Lu  <hongjiu.lu@intel.com>
7861
7862         PR target/40957
7863         * config/i386/i386.c (standard_sse_mode_p): Remove.
7864         (standard_sse_constant_p): Return 2 for integer mode
7865         vector_all_ones_operand when SSE2 is enabled.
7866         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
7867         (ix86_expand_vector_move): Do not check for negative values from
7868         standard_sse_constant_p.
7869
7870 2009-08-06  Richard Guenther  <rguenther@suse.de>
7871
7872         * tree-ssa.c (useless_type_conversion_p_1): Make function and
7873         array type comparisons frontend independent.
7874         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
7875         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
7876         out array reference lower bound and element size operands.
7877         (ao_ref_init_from_vn_reference): Properly compute the offset
7878         for ARRAY_RANGE_REF.
7879         (vn_reference_fold_indirect): Fill out array reference lower
7880         bound and element size operands.
7881         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
7882         a non gimple valued reference operand which can happen for
7883         array reference lower bound or element size.
7884         (create_component_ref_by_pieces_1): Properly generate the
7885         element size operand for array references.
7886
7887 2009-08-06  Richard Guenther  <rguenther@suse.de>
7888
7889         PR tree-optimization/40964
7890         * tree.c (iterative_hash_host_wide_int): Export.
7891         * tree.h (iterative_hash_host_wide_int): Declare.
7892         * tree-ssa-structalias.c (heapvar_map): New struct.
7893         (heapvar_map_eq): New function.
7894         (heapvar_map_hash): Likewise.
7895         (heapvar_lookup): Adjust.
7896         (heapvar_insert): Likewise.
7897         (make_constraint_from_heapvar): Allow multiple heap variables
7898         per decl at different offsets.
7899         (init_alias_heapvars): Adjust.
7900
7901 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
7902
7903         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
7904         * mips_output_sync_loop (mips_output_sync_loop): Only emit
7905         trailing sync if TARGET_SYNC_AFTER_SC.
7906
7907 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
7908
7909         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
7910         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
7911         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
7912         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
7913         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
7914         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
7915         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
7916         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
7917         test_and_set_12): Rewrite calls to mips_output_sync_loop.
7918         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
7919         the prototype declaration match the definition.
7920         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
7921         instructions explicitly.  Add barrier_before and operands
7922         parameters.
7923         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
7924         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
7925         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
7926         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
7927         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
7928         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
7929
7930 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
7931
7932         * tree-ssa-alias.c: Fix intervals to use [) syntax.
7933
7934 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
7935             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
7936
7937         PR target/40906
7938         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
7939         source operand.
7940
7941 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
7942
7943         PR rtl-optimization/40924
7944         * dse.c (canon_address): Before calling cselib_expand_value_rtx
7945         make sure canon_rtx (mem_address) isn't simpler than
7946         canon_rtx (expanded_mem_address).
7947
7948 2009-08-05  Li Feng  <nemokingdom@gmail.com>
7949
7950         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
7951         for each poly_bb_p.
7952         (build_scop_drs): Build alias set for each SCoP.
7953
7954 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
7955
7956         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
7957         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
7958         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
7959         (MIPS_ARCH_FLOAT_SPEC): Likewise.
7960         (BASE_DRIVER_SELF_SPECS): Likewise.
7961
7962 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
7963
7964         * tree-ssa-alias.c: Fix some comment typos.
7965
7966 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
7967
7968         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
7969         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
7970
7971 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
7972
7973         PR c/39902
7974         * simplify-rtx.c (simplify_binary_operation_1): Disable
7975         simplifications for decimal float operations.
7976
7977 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
7978
7979         PR middle-end/40943
7980         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
7981         operand of INDIRECT_REF.
7982
7983 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
7984
7985         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
7986         constants referencing TLS symbols.
7987
7988 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7989
7990         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
7991         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
7992
7993 2009-08-03  Richard Guenther  <rguenther@suse.de>
7994
7995         * tree.c (make_vector_type): Build a main variant first,
7996         get the canonical one and then build the variant.
7997         * tree-ssa.c (useless_type_conversion_p_1): Handle
7998         fixed-point types.
7999         (useless_type_conversion_p): Conversions to pointers to
8000         incomplete record types are useless.
8001
8002 2009-08-03  Richard Guenther  <rguenther@suse.de>
8003
8004         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8005         file will be created.
8006         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8007         * toplev.c (compile_file): Adjust comment.
8008
8009 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8010
8011         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8012         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8013         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8014         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8015         (sh_promote_function_mode): Fix typo.
8016
8017 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
8018
8019         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
8020
8021 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8022
8023         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
8024         declaration arguments.
8025
8026 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
8027
8028         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
8029         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
8030         (ix86_split_ashl): Ditto.
8031         (ix86_expand_vector_init_one_nonzero): Ditto.
8032         (ix86_expand_vector_set): Ditto.
8033         (ix86_expand_reduc_v4sf): Ditto.
8034
8035 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8036
8037         * explow.c (promote_function_mode): Remove assert.
8038         * config/sh/sh.c (sh_promote_function_mode): Declare.
8039
8040 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8041
8042         * config/pa/pa.c (pa_promote_function_mode): Declare.
8043         Change to static.  Fix promote_mode call.
8044
8045         * gthr-dce.h (CONST_CAST2): Define if not defined.
8046         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
8047
8048         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
8049
8050 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
8051
8052         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8053         now write-only variable unsignedp.
8054         (expand_expr_real_1): Use promote_decl_mode.
8055         * expr.h (promote_function_mode, promote_decl_mode): New.
8056         (promote_mode): Remove last argument.
8057         * function.c (assign_temp): Drop last argument of promote_mode.
8058         (assign_parm_find_data_types): Use promote_function_mode.
8059         (assign_parm_setup_reg): Likewise.
8060         (expand_function_end): Use promote_function_mode.
8061         * calls.c (initialize_argument_information): Use promote_function_mode.
8062         (precompute_arguments): Use promote_mode instead of checking if
8063         only PROMOTE_FUNCTION_MODE is defined.
8064         (expand_call): When making sibcall decisions, use promote_function_mode.
8065         Below, remove an if for targetm.calls.promote_function_return and
8066         and use promote_function_mode.
8067         (emit_library_call_value_1): Use promote_function_mode, fix bug
8068         where promote_mode was passed FOR_CALL == 0 for a return value in an
8069         assertion.
8070         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8071         * explow.c (promote_function_mode, promote_decl_mode): New.
8072         (promote_mode): Keep only the FOR_CALL == 0 case.
8073         * combine.c (setup_incoming_promotion): Remove test of
8074         promote_function_args.  Use promote_function_mode.
8075         * stmt.c (expand_value_return): Use promote_decl_mode.
8076         (expand_decl): Use promote_decl_mode.
8077
8078         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8079         now write-only variable unsignedp.
8080         (expand_expr_real_1): Use promote_decl_mode.
8081         * expr.h (promote_function_mode, promote_decl_mode): New.
8082         (promote_mode): Remove last argument.
8083         * function.c (assign_temp): Drop last argument of promote_mode.
8084         (assign_parm_find_data_types): Use promote_function_mode.
8085         (assign_parm_setup_reg): Likewise.
8086         (expand_function_end): Use promote_function_mode.
8087         * calls.c (initialize_argument_information): Use promote_function_mode.
8088         (precompute_arguments): Use promote_mode instead of checking if
8089         only PROMOTE_FUNCTION_MODE is defined.
8090         (expand_call): When making sibcall decisions, use promote_function_mode.
8091         Below, remove an if for targetm.calls.promote_function_return and
8092         and use promote_function_mode.
8093         (emit_library_call_value_1): Use promote_function_mode, fix bug
8094         where promote_mode was passed FOR_CALL == 0 for a return value in an
8095         assertion.
8096         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8097         * explow.c (promote_function_mode, promote_decl_mode): New.
8098         (promote_mode): Keep only the FOR_CALL == 0 case.
8099         * combine.c (setup_incoming_promotion): Remove test of
8100         promote_function_args.  Use promote_function_mode.
8101         * stmt.c (expand_value_return): Use promote_decl_mode.
8102         (expand_decl): Use promote_decl_mode.
8103
8104         * explow.c (promote_function_mode): Just call the target hook.
8105         * targhooks.c (default_promote_function_mode,
8106         default_promote_function_mode_always_promote): New.
8107         * targhooks.h (default_promote_function_mode,
8108         default_promote_function_mode_always_promote): Declare.
8109         * target.h (promote_function_args, promote_function_return): Remove.
8110         (promote_function_mode): New.
8111         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8112         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8113         (TARGET_PROMOTE_FUNCTION_MODE): New.
8114         (TARGET_CALLS): Adjust.
8115         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
8116         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
8117
8118         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
8119         * config/s390/s390.c (s390_promote_function_mode): ... here,
8120         with pointer handling.
8121         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8122         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8123
8124         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
8125         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
8126         with pointer handling.
8127         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8128         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8129
8130         * config/sh/sh-protos.h (sh_promote_function_mode): New.
8131         * config/sh/sh.c (sh_promote_function_mode): New.
8132         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8133         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8134
8135         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
8136         * config/cris/cris.c (cris_promote_function_mode): ... here.
8137         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8138         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8139
8140         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
8141         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
8142         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8143         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8144
8145         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
8146         * config/arm/arm.c (arm_promote_function_mode): ... here, without
8147         complex type handling.
8148         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8149         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8150
8151         * config/pa/pa.c (pa_promote_function_mode): New.
8152         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8153         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8154
8155         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
8156         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8157         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
8158         * config/xtensa/xtensa.c: Likewise.
8159         * config/stormy16/stormy16.c: Likewise.
8160         * config/iq2000/iq2000.c: Likewise.
8161         * config/rs6000/rs6000.c: Likewise.
8162         * config/picochip/picochip.c: Likewise.
8163         * config/arc/arc.c: Likewise.
8164         * config/mcore/mcore.c: Likewise.
8165         * config/score/score.c: Likewise.
8166         * config/mips/mips.c: Likewise.
8167         * config/bfin/bfin.c: Likewise.
8168         * config/ia64/ia64.c: Likewise (disabled though).
8169
8170         * config/frv/frv.h: Remove pointless remark.
8171
8172         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
8173         TARGET_PROMOTE_FUNCTION_ARGS,
8174         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
8175         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
8176
8177 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8178
8179         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
8180         -floop-parallelize-all.
8181         * toplev.c (process_options): Rename flag_graphite_force_parallel to
8182         flag_loop_parallelize_all.
8183         * tree-ssa-loop.c (gate_graphite_transforms): Same.
8184         * graphite.c (graphite_transform_loops): Same.
8185         * common.opt: Same.
8186         * graphite-poly.c (apply_poly_transforms): Same.
8187
8188 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
8189
8190         PR tree-optimization/40914
8191         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
8192         if set, then check the delta field of the PMF record.
8193         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
8194         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
8195         call is stored in the delta.
8196
8197 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
8198
8199         * config/mips/mips.md (*clear_upper32_dext): New pattern.
8200
8201 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
8202
8203         * config/i386/bsd.h (ASM_BYTE): New define.
8204         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
8205         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
8206         .byte.  Use fputs or putc instead of fprintf where appropriate.
8207         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
8208         fputs or putc instead of fprintf where appropriate.
8209         * config/i386/i386elf.h: Ditto.
8210         * config/i386/sysv4.h: Ditto.
8211
8212         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
8213         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
8214         (*tls_global_dynamic_64): Ditto.
8215
8216 2009-07-31  Christian Bruel  <christian.bruel@st.com>
8217
8218         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
8219
8220 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8221
8222         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
8223         Remove dead code for MINUS.
8224
8225 2009-07-31  Anthony Green  <green@moxielogic.com>
8226
8227         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
8228         $r12 in prologue.
8229         (moxie_expand_epilogue): Ditto for epilogue.
8230         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
8231         incoming arguments.
8232         (moxie_function_arg): Ditto.
8233         (moxie_pass_by_reference): Ditto.
8234         (moxie_arg_partial_bytes): Ditto.
8235         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
8236         (FUNCTION_ARG_ADVANCE) Ditto.
8237         (REG_PARM_STACK_SPACE) Ditto.
8238         (FUNCTION_ARG_REGNO_P) Dito.
8239
8240         * config.gcc: Add moxie linux config support.
8241         * gcc/config/moxie/uclinux.h: New file.
8242
8243 2009-07-31  DJ Delorie  <dj@redhat.com>
8244
8245         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8246         (UNSPECV_SP_SWITCH_E): New.
8247         (sp_switch_1): Change to an unspec.
8248         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
8249         replace $r15.
8250         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
8251         reference the new stack's address
8252
8253 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8254
8255         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
8256         graphite-clast-to-gimple.o, graphite-dependences.o,
8257         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8258         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
8259         (graphite-blocking.o,
8260         graphite-clast-to-gimple.o, graphite-dependences.o,
8261         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8262         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
8263         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
8264         * cfgloop.h (struct loop): Add can_be_parallel field.
8265         * common.opt (fgraphite-identity): Moved up.
8266         (fgraphite-force-parallel): New flag.
8267         * graphite.c: Rewrite.
8268         * graphite.h: Rewrite.
8269         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
8270         after Graphite.
8271         * toplev.c (graphite_out_file): New file descriptor.
8272         (graphite_in_file): New.
8273         (process_options): flag_graphite_force_parallel cannot be used without
8274         Graphite.
8275         * tree-ssa-loop.c: Include toplev.h.
8276         (gate_graphite_transforms): Enable flag_graphite for
8277         flag_graphite_force_parallel.
8278
8279 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8280
8281         * ChangeLog.graphite: New.
8282         * graphite-blocking.c: New.
8283         * graphite-clast-to-gimple.c: New.
8284         * graphite-clast-to-gimple.h: New.
8285         * graphite-dependences.c: New.
8286         * graphite-dependences.h: New.
8287         * graphite-interchange.c: New.
8288         * graphite-poly.c: New.
8289         * graphite-poly.h: New.
8290         * graphite-ppl.c: New.
8291         * graphite-ppl.h: New.
8292         * graphite-scop-detection.c: New.
8293         * graphite-scop-detection.h: New.
8294         * graphite-sese-to-poly.c: New.
8295         * graphite-sese-to-poly.h: New.
8296         * sese.c: New.
8297         * sese.h: New.
8298
8299 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8300
8301         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
8302         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
8303
8304 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8305
8306         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
8307         (scev_is_linear_expression): Return false if the evolution is not
8308         affine multivariate.
8309
8310 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8311
8312         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
8313         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
8314
8315 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8316
8317         * tree-data-ref.c (debug_data_references): New.
8318         (debug_data_reference): New.
8319         * tree-data-ref.h (debug_data_references): Declared.
8320         (debug_data_reference): Declared.
8321
8322 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8323
8324         * tree-data-ref.c (stmt_simple_memref_p: Removed.
8325         * tree-data-ref.h (scop_p): Removed.
8326         (struct data_reference): Remove field scop.
8327         (DR_SCOP): Removed.
8328         (stmt_simple_memref_p): Removed.
8329
8330 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8331
8332         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
8333         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
8334         basic block empty.
8335
8336 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8337
8338         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
8339
8340 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8341
8342         * doc/invoke.texi (-fgraphite-identity): Documented.
8343
8344 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8345
8346         * tree-scalar-evolution.c: Fix comment.
8347         (instantiate_scev_1): Return unknow from scev instantiation if the
8348         result is not above instantiate_below.
8349
8350 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8351
8352         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
8353         static anymore.  Instantiate the symbols that may have been introduced
8354         by chrec_apply.
8355         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
8356         Declared.
8357
8358 2009-07-30  DJ Delorie  <dj@redhat.com>
8359
8360         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
8361         .vliw directive to VLIW sections.
8362
8363 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8364
8365         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
8366         New variables.
8367         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
8368         (AUTOHEADER): New variable.
8369         ($(srcdir)/cstamp-h.in): Use it.
8370
8371 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8372             Pat Haugen  <pthaugen@us.ibm.com>
8373             Revital Eres <ERES@il.ibm.com>
8374
8375         * config/rs6000/vector.md (VEC_F): Add VSX support.
8376         (VEC_A): Ditto.
8377         (VEC_N): Ditto.
8378         (mov<mode>): Ditto.
8379         (vector_load_<mode>): Ditto.
8380         (vector_store_<mode>): Ditto.
8381         (vector GPR move split): Ditto.
8382         (vec_reload_and_plus_<mptrsize>): Ditto.
8383         (vec_reload_and_reg_<mptrsize>): Ditto.
8384         (add<mode>3): Ditto.
8385         (sub<mode>3): Ditto.
8386         (mul<mode>3): Ditto.
8387         (neg<mode>2): Ditto.
8388         (abs<mode>2): Ditto.
8389         (smin<mode>3): Ditto.
8390         (smax<mode>3): Ditto.
8391         (vector_eq<mode>): Ditto.
8392         (vector_gt<mode>): Ditto.
8393         (vector_ge<mode>): Ditto.
8394         (vector_gtu<mode>): Ditto.
8395         (vector_select_<mode>_uns): Ditto.
8396         (vector_eq_<mode>_p): Ditto.
8397         (vector_gt_<mode>_p): Ditto.
8398         (vector_ge_<mode>_p): Ditto.
8399         (vector_gtu_<mode>_p): Ditto.
8400         (cr6_test_for_zero): Ditto.
8401         (cr6_test_for_zero_reverse): Ditto.
8402         (cr6_test_for_lt): Ditto.
8403         (cr6_test_for_lt_reverse): Ditto.
8404         (xor<mode>3): Ditto.
8405         (ior<mode>3): Ditto.
8406         (and<mode>3): Ditto.
8407         (one_cmpl<mode>2): Ditto.
8408         (nor<mode>2): Ditto.
8409         (andc<mode>2): Ditto.
8410         (float<VEC_int<mode>2): Ditto.
8411         (unsigned_float<VEC_int><mode>2): Ditto.
8412         (fix_trunc<mode><VEC_int>2): Ditto.
8413         (fixuns_trunc<mode><VEC_int>2): Ditto.
8414         (vec_init<mode>):
8415         (vec_set<mode>): Ditto.
8416         (vec_extract<mode>): Ditto.
8417         (vec_interleave_highv4sf): Ditto.
8418         (vec_interleave_lowv4sf): Ditto.
8419         (vec_realign_load_<mode>): Ditto.
8420         (vec_shl_<mode>): Ditto.
8421         (vec_shr_<mode>): Ditto.
8422         (div<mode>3): New patterns for VSX.
8423         (vec_interleave_highv2df): Ditto.
8424         (vec_interleave_lowv2df): Ditto.
8425         (vec_pack_trunc_v2df): Ditto.
8426         (vec_pack_sfix_trunc_v2df): Ditto.
8427         (vec_pack_ufix_trunc_v2df): Ditto.
8428         (vec_unpacks_hi_v4sf): Ditto.
8429         (vec_unpacks_lo_v4sf): Ditto.
8430         (vec_unpacks_float_hi_v4si): Ditto.
8431         (vec_unpacks_float_lo_v4si): Ditto.
8432         (vec_unpacku_float_hi_v4si): Ditto.
8433         (vec_unpacku_float_lo_v4si): Ditto.
8434         (movmisalign<mode>): Ditto.
8435         (vector_ceil<mode>2): New patterns for vectorizing math library.
8436         (vector_floor<mode>2): Ditto.
8437         (vector_btrunc<mode>2): Ditto.
8438         (vector_copysign<mode>3): Ditto.
8439
8440         * config/rs6000/predicates.md (easy_vector_constant_msb): New
8441         predicate for setting the high bit in each word, used for copysign.
8442
8443         * config/rs6000/ppc-asm.h (f19): Whitespace.
8444         (f32-f63): Define if VSX.
8445         (v0-v31): Define if Altivec.
8446         (vs0-vs63): Define if VSX.
8447
8448         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
8449
8450         * config/rs6000/power7.md: New file, provide tuning parameters for
8451         -mcpu=power7.
8452
8453         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
8454         (rs6000_cpu_cpp_builtins): Ditto.
8455         (altivec_overloaded_builtins): Ditto.
8456         (altivec_resolve_overloaded_builtin): Ditto.
8457
8458         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
8459         debug switch to disable vectorizing simple math builtin
8460         functions.
8461
8462         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8463         Vectorize simple math builtin functions.
8464         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8465         hook to vectorize math builtins.
8466         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
8467         (rs6000_builtin_conversion): Add VSX/power7 support.
8468         (rs6000_builtin_vec_perm): Ditto.
8469         (vsplits_constant): Add support for loading up a vector constant
8470         with just the high bit set in each part.
8471         (rs6000_expand_vector_init): Add VSX/power7 support.
8472         (rs6000_expand_vector_set): Ditto.
8473         (rs6000_expand_vector_extract): Ditto.
8474         (rs6000_emit_move): Ditto.
8475         (bdesc_3arg): Ditto.
8476         (bdesc_2arg): Ditto.
8477         (bdesc_1arg): Ditto.
8478         (rs6000_expand_ternop_builtin): Ditto.
8479         (altivec_expand_builtin): Ditto.
8480         (rs6000_expand_unop_builtin): Ditto.
8481         (rs6000_init_builtins): Ditto.
8482         (altivec_init_builtins): Ditto.
8483         (builtin_function_type): Ditto.
8484         (rs6000_common_init_builtins): Ditto.
8485         (rs6000_handle_altivec_attribute); Ditto.
8486         (rs6000_mangle_type): Ditto.
8487         (rs6000_vector_mode_supported_p): Ditto.
8488         (rs6000_mode_dependent_address): Altivec addresses with AND -16
8489         are mode dependent.
8490
8491         * config/rs6000/vsx.md: New file for VSX support.
8492
8493         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
8494         identifing values with just the most significant bit set.
8495         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
8496         vectorized builtins.
8497
8498         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
8499         (UNSPEC_VRFIM): Delete.
8500         (splitter for loading up vector with most significant bit): New
8501         splitter for vectorizing copysign.
8502         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
8503         vectorizing simple math functions.
8504         (altivec_vrfip): Add support for vectorizing simple math functions.
8505         (altivec_vrfim): Ditto.
8506         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
8507
8508         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
8509         (power7.md, vsx.md): Include for power7 support.
8510         (copysigndf3): Use VSX instructions if -mvsx.
8511         (negdf2_fpr): Ditto.
8512         (absdf2_fpr): Ditto.
8513         (nabsdf2_fpr): Ditto.
8514         (adddf3_fpr): Ditto.
8515         (subdf3_fpr): Ditto.
8516         (muldf3_fpr): Ditto.
8517         (divdf3_fpr): Ditto.
8518         (fix_truncdfdi2_fpr): Ditto.
8519         (cmpdf_internal1): Ditto.
8520         (fred, fred_fpr): Convert into expander/insn to add VSX support.
8521         (btruncdf2, btruncdf2_fpr): Ditto.
8522         (ceildf2, ceildf2_fpr): Ditto.
8523         (floordf2, floordf2_fpr): Ditto.
8524         (floatdidf2, floatdidf2_fpr): Ditto.
8525         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
8526         (fmsubdf4_fpr): Ditto.
8527         (fnmadddf4_fpr_1): Ditto.
8528         (fnmadddf4_fpr_2): Ditto.
8529         (fnmsubdf4_fpr_1): Ditto.
8530         (fnmsubdf4_fpr_2): Ditto.
8531         (fixuns_truncdfdi2): Add expander for VSX support.
8532         (fix_truncdfdi2): Ditto.
8533         (fix_truncdfsi2): Ditto.
8534         (ftruncdf2): Ditto.
8535         (btruncsf2): Whitespace.
8536         (movdf_hardfloat32): Add support for VSX registers.
8537         (movdf_softfloat32): Ditto.
8538         (movdf_hardfloat64): Ditto.
8539         (movdf_hardfloat64_mfpgpr): Ditto.
8540         (movdf_softfloat64): Ditto.
8541         (movti splitters): Add check for vector registers supporting
8542         TImode in the future.
8543         (bpermd): Add power7 bpermd instruction.
8544
8545         * config/rs6000/altivec.h (vec_div): Define if VSX.
8546         (vec_mul): Ditto.
8547         (vec_msub): Ditto.
8548         (vec_nmadd): Ditto.
8549         (vec_nearbyint): Ditto.
8550         (vec_rint): Ditto.
8551         (vec_sqrt): Ditto.
8552         (all predicates): Use the generic builtin function, and not the V4SF
8553         specific function so that the predicates will work with VSX's V2DF.
8554         (vec_all_*): Ditto.
8555         (vec_any_*): Ditto.
8556
8557         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
8558         Document new VSX functions and types.
8559
8560         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
8561         switches.
8562
8563         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
8564         "wa", and "j" constraints.  Modify "v" to talk about Altivec
8565         instead of just vector.
8566
8567 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
8568
8569         PR debug/26475
8570         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
8571         location for phi arguments.
8572         (rewrite_update_phi_arguments): Find locations for reaching defs.
8573         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
8574         Add location to add_phi_arg calls.
8575         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
8576         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
8577         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
8578         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
8579         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
8580         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
8581         * tree-phinodes.c (make_phi_node): Initialize location.
8582         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
8583         (add_phi_arg): Add location parameter.
8584         (remove_phi_arg_num): Move location when moving phi argument.
8585         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
8586         location.
8587         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
8588         slpeel_update_phi_nodes_for_guard1,
8589         slpeel_update_phi_nodes_for_guard2,
8590         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
8591         vect_loop_versioning): Set locations.
8592         * tree-parloops.c (create_phi_for_local_result,
8593         transform_to_exit_first_loop, create_parallel_loop): Add locations.
8594         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
8595         * tree-vect-loop.c (get_initial_def_for_induction,
8596         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
8597         locations.
8598         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
8599         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
8600         (gimple_phi_arg_set_location): New.  Set locus.
8601         (gimple_phi_arg_has_location): New.  Check for locus.
8602         (redirect_edge_var_map_location): New.  Return locus from var_map.
8603         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
8604         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
8605         combining PHI arguments.
8606         (cond_store_replacement): Set location.
8607         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
8608         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
8609         scop_add_exit_phis_edge): Add locations.
8610         * tree-cfgcleanup.c (remove_forwarder_block,
8611         remove_forwarder_block_with_phi): Add locations.
8612         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
8613         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
8614         locations.
8615         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
8616         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
8617         flush_pending_stmts): Add source location.
8618         * lambda-code.c (perfect_nestify): Maintain location stack with argument
8619         stack to preserve locations.
8620         * tree-vect-stmts.c (vectorizable_load): Add location.
8621         * tree-inline.c (copy_phis_for_bb): Copy locus.
8622         (setup_one_parameter): Add call locus to inlined parameter stmts.
8623         (initialize_inlined_parameters): Pass in call location as parameter
8624         assignment locus.
8625         (tree_function_versioning): Pass location to setup_one_parameter.
8626         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
8627         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
8628         copy and edge lists.
8629         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
8630         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
8631         locus parameter and override the stmt default if provided.
8632         (new_elim_graph, clear_elim_graph, delete_elim_graph,
8633         elim_graph_add_edge, elim_graph_remove_succ_edge,
8634         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
8635         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
8636         eliminate_phi):  Add locus info in elimination graph for each edge and
8637         value copy.
8638         (insert_backedge_copies): Copy locus if present.
8639         * tree-flow.h (struct _edge_var_map): Add locus field.
8640         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
8641         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
8642         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
8643         locations.
8644         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
8645
8646 2009-07-30  Martin Jambor  <mjambor@suse.cz>
8647
8648         PR tree-optimization/40570
8649         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
8650         use inlining loops.
8651
8652 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
8653
8654         * ssa-loop-manip.c: Include langhooks.h.
8655         (rewrite_phi_with_iv): New.
8656         (rewrite_all_phi_nodes_with_iv): New.
8657         (canonicalize_loop_ivs): Move here from tree-parloops.c.
8658         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
8659         * tree-parloops.c (loop_parallel_p): Move out all conditions
8660         except dependency check.
8661         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
8662         (gen_parallel_loop): Call canonicalize_loop_ivs without
8663         reduction_list argument.
8664         (build_new_reduction): New.
8665         (gather_scalar_reductions): New.
8666         (try_get_loop_niter): New.
8667         (try_create_reduction_list): New.
8668         (parallleize_loops): Change the parallel conditions check.
8669         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
8670         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
8671
8672 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
8673
8674         * opt-functions.awk (opt_args): Allow argument to be enclosed in
8675         curly braces.
8676         * doc/options.texi (Option properties):  Mention new quoting syntax.
8677
8678 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8679
8680         * config/alpha/alpha.c (alpha_start_function):
8681         Handle VMS_DEBUG_MAIN_POINTER
8682         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
8683         * doc/invoke.texi: Document -mdebug-main switch.
8684
8685 2009-07-29  Richard Henderson  <rth@redhat.com>
8686
8687         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
8688         (cgraph_create_edge_including_clones): Likewise.
8689         * tree-inline.c (copy_bb): Operate on the correct edges
8690         when updating the callgraph.
8691
8692 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8693
8694         * config/alpha/vms-cc.c: Deleted.
8695         * config/alpha/vms-ld.c: Deleted.
8696         * config/alpha/t-vms64: Moved to config/vms
8697         * config/alpha/vms-crt0-64.c: Moved to config/vms
8698         * config/alpha/vms-crt0.c: Moved to config/vms
8699         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
8700         * config/alpha/vms-psxcrt0.c: Moved to config/vms
8701         * config/alpha/xm-vms.h: Moved to config/vms
8702         * config/alpha/x-vms: Moved to config/vms
8703         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
8704         config/vms/t-vms.
8705         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
8706         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
8707         (version): Set.
8708         * config/vms/t-vms64: Moved here from config/alpha
8709         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
8710         (argc,argv,envp): Enforce 32bit malloc'ing.
8711         * config/vms/vms-psxcrt0-64.c: Likewise.
8712         * config/vms/vms-crt0.c: Moved here from config/alpha.
8713         * config/vms/vms-psxcrt0.c: Likewise.
8714         * config/vms/vms-crtl-64.h: New file.
8715         * config/vms/vms-crtl.h: New file.
8716         * config/vms/vms.opt: New file.
8717         * config/vms/xm-vms64.h: New file.
8718         * config/vms/xm-vms.h: Moved here from config/alpha.
8719         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
8720         Set.
8721         * config/vms/x-vms: Moved here from config/alpha.
8722         (version, VMS_EXTRA_PARTS): Moved to t-vms.
8723         (vms-ld.o, vms-cc.o): Removed.
8724         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
8725
8726 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8727
8728         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
8729         correct stack (obvious VMS fix).
8730
8731 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
8732
8733         * dwarf2out.c (output_file_names): Output VMS style file name, size,
8734         date, version info if VMS_DEBUGGING_INFO defined.
8735         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
8736         size, date calculating code moved here.
8737
8738 2009-07-29  Paul Brook  <paul@codesourcery.com>
8739
8740         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
8741         do_push/do_pop.
8742
8743 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
8744
8745         PR target/40577
8746         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
8747         to DImode when generating insq_le insn.
8748
8749 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
8750
8751         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
8752         New macro set for VMS_DEBUGGGING_INFO.
8753         (AT_string_form): Use it.
8754
8755 2009-07-28  DJ Delorie  <dj@redhat.com>
8756
8757         * config/mep/mep.c (vtext_section): New.
8758         (vftext_section): New.
8759         (ftext_section): New.
8760         (mep_select_section): Add support for functions.
8761         (mep_unique_section): Likewise.
8762         (mep_asm_init_sections): Likewise.
8763         (mep_encode_section_info): Remove it from here.
8764
8765         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
8766
8767 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
8768
8769         * tree.h (TREE_DEPRECATED): Document it is used for types too.
8770         (TYPE_VECTOR_OPAQUE): Use default_def_flag
8771
8772 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
8773
8774         * dwarf2out.c (output_file_names): Test new macro
8775         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
8776         (add_comp_dir_attribute): Likewise.
8777
8778 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
8779
8780         * config/i386/mingw-w64.h (LINK_SPEC): Add
8781         separating space between commands.
8782
8783 2009-07-28  Jan Hubicka  <jh@suse.cz>
8784
8785         PR tree-optimization/40759
8786         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
8787         for renaming.
8788
8789 2009-07-27  DJ Delorie  <dj@redhat.com>
8790
8791         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
8792         types are dword-aligned.
8793         (mep_expand_va_start): Likewise.
8794
8795 2009-07-27  Olivier Hainque  <hainque@adacore.com>
8796             Douglas B Rupp  <rupp@gnat.com>
8797
8798         * convert.c (convert_to_pointer): Don't assume the target
8799         pointer type is POINTER_SIZE long. Fetch its precision instead.
8800
8801 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
8802
8803         * system.h (fopen): Undefine if macro.
8804
8805 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
8806
8807         * dwarf2out.c (output_cfi_p): Removed.
8808         (output_cfis): New function.
8809         (output_fde): New function, split from output_call_frame_info.
8810         (output_call_frame_info): Use it.
8811         (dwarf2out_switch_text_section): Use output_cfis.
8812
8813 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
8814
8815         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
8816         TARGET_BI_ARCH is specified without enabling SJLJ.
8817         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
8818         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
8819
8820 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
8821
8822         * arm.md (negdi2): Use DImode if forcing a value into a register.
8823
8824 2009-07-26  Ira Rosen  <irar@il.ibm.com>
8825
8826         PR tree-optimization/40801
8827         * tree-vect-stmts.c (vectorizable_call): Get previous copy
8828         of vector operand from the previous copy of vector statement.
8829         Pass the correct definition type value to
8830         vect_get_vec_def_for_stmt_copy().
8831
8832 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8833
8834         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
8835         const char ** conversion.
8836
8837 2009-07-25 David Daney <ddaney@caviumnetworks.com>
8838
8839         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
8840         fancy_abort() if !ENABLE_ASSERT_CHECKING.
8841         (gcc_unreachable): Invoke __builtin_unreachable() if
8842         !ENABLE_ASSERT_CHECKING.
8843
8844 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
8845
8846         PR rtl-optimization/40445
8847         * emit-rtl.c (next_nonnote_insn_bb): New function.
8848         * rtl.h (next_nonnote_insn_bb): Declare new function.
8849         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
8850         with no successors that is the successor of the ENTRY_BLOCK.
8851         Continue from the top after removing an empty fallthrough block.
8852         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
8853         of next_nonnote_insn.
8854
8855 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
8856
8857         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
8858
8859 2009-07-25  Martin Jambor  <mjambor@suse.cz>
8860
8861         * c-common.c (c_common_attribute_table): New element for noclone.
8862         (handle_noclone_attribute): New function. Forward-declare.
8863         * tree-inline.c (tree_versionable_function_p): Check for noclone
8864         attribute.
8865         * doc/extend.texi (Labels as Values): Document need for noclone.
8866         (Function Attributes): Document noclone attribute.
8867
8868 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
8869
8870         PR rtl-optimization/34999
8871         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
8872         and dw_fde_switched_cold_to_hot fields.
8873         (output_cfi_p): New function.
8874         (output_call_frame_info): If fde->dw_fde_switched_sections,
8875         output 2 FDEs instead of one with corrupted header.
8876         (dwarf2out_do_cfi_startproc): New function.
8877         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
8878         and fde->dw_fde_switched_cold_to_hot.
8879         (dwarf2out_switch_text_section): Compute
8880         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
8881         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
8882         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
8883         Otherwise, compute fde->dw_fde_switch_cfi.
8884
8885 2009-07-24  Cary Coutant  <ccoutant@google.com>
8886
8887         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
8888
8889 2009-07-24  Cary Coutant  <ccoutant@google.com>
8890
8891         * cfghooks.c (split_block): Copy discriminator to new block.
8892         * tree-cfg.c (assign_discriminator): Check location of last
8893         instruction in block as well as first.
8894
8895 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
8896
8897         * config/i386/linux.c: Use fputs or putc instead of fprintf
8898         where appropriate.
8899         * config/i386/gas.h: Ditto.
8900         * config/i386/x86-64.h: Ditto.
8901         * config/i386/att.h: Ditto.
8902
8903 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8904
8905         * expmed.c (emit_store_flag): Use a recursive call to optimize the
8906         xor case.
8907
8908 2009-07-24  Martin Jambor  <mjambor@suse.cz>
8909
8910         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
8911         (ipa_push_func_to_list_1): Declare.
8912         (ipa_push_func_to_list): New function.
8913
8914         * ipa-prop.c (ipa_push_func_to_list_1): New function.
8915         (ipa_init_func_list): Call ipa_push_func_to_list_1.
8916         (ipa_push_func_to_list): Removed.
8917         (ipa_pop_func_from_list): Clear node_enqueued flag.
8918
8919 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8920
8921         * config/s390/s390.c (override_options): Default
8922         max-unrolled-insns to 100 for z10 tuning.
8923
8924 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
8925
8926         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
8927         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
8928         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
8929         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
8930         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
8931         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
8932         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
8933
8934 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
8935
8936         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
8937         use default set in mingw32.h header.
8938         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
8939         64-bit /mingw/include path.
8940         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
8941         path.
8942
8943 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
8944
8945         PR rtl-optimization/40209
8946         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
8947
8948 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
8949
8950         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
8951         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
8952         with the rest of string where appropriate.  Use fputs or putc
8953         instead of fprintf where appropriate.
8954
8955 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
8956             Pat Haugen  <pthaugen@us.ibm.com>
8957             Revital Eres <ERES@il.ibm.com>
8958
8959         * config/rs6000/vector.md: New file.  Move most of the vector
8960         expander support here from altivec.md to allow for the VSX vector
8961         unit in the future.  Add support for secondary_reload patterns.
8962         Rewrite the patterns for vector comparison, and vector comparison
8963         predicate instructions so that the RTL expresses the desired
8964         behavior, instead of using unspec.
8965
8966         * config/rs6000/constraints.md ("f" constraint): Use
8967         rs6000_constraints to hold the precalculated register class.
8968         ("d" constraint): Ditto.
8969         ("wd" constraint): New constraint for VSX.
8970         ("wf" constraint): Ditto.
8971         ("ws" constraint): Ditto.
8972         ("wa" constraint): Ditto.
8973         ("wZ" constraint): Ditto.
8974         ("j" constraint): Ditto.
8975
8976         * config/rs6000/predicates.md (vsx_register_operand): New
8977         predicate for VSX.
8978         (vfloat_operand): New predicate for vector.md.
8979         (vint_operand): Ditto.
8980         (vlogical_operand): Ditto.
8981         (easy_fp_constant): If VSX, 0.0 is an easy constant.
8982         (easy_vector_constant): Add VSX support.
8983         (altivec_indexed_or_indirect_operand): New predicate for
8984         recognizing Altivec style memory references with AND -16.
8985
8986         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
8987         for vector secondary reload support.
8988         (rs6000_vector_reg_class): Delete, replacing it with
8989         rs6000_constraints.
8990         (rs6000_vsx_reg_class): Ditto.
8991         (rs6000_constraints): New array to hold the register classes of
8992         each of the register constraints that can vary at runtime.
8993         (builtin_mode_to_type): New static array for builtin function type
8994         creation.
8995         (builtin_hash_table): New static hash table for builtin function
8996         type creation.
8997         (TARGET_SECONDARY_RELOAD): Define target hook.
8998         (TARGET_IRA_COVER_CLASSES): Ditto.
8999         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9000         registers are 128 bits if VSX memory reference instructions are used.
9001         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9002         unit is being used.
9003         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9004         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9005         Print several of the scheduling related parameters.
9006         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9007         rs6000_constraints instead of rs6000_vector_reg_class.  Move
9008         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
9009         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
9010         Altivec.  Add VSX support.  Setup for secondary reload support on
9011         Altivec/VSX registers.
9012         (rs6000_override_options): Make power7 set the scheduling groups
9013         like the power5.  Add support for new debug switches to override
9014         the scheduling defaults.  Temporarily disable -mcpu=power7 from
9015         setting -mvsx.  Add support for debug switches -malways-hint,
9016         -msched-groups, and -malign-branch-targets.
9017         (rs6000_buitlin_conversion): Add support for returning unsigned
9018         vector conversion functions to fix regressions due to stricter
9019         type checking.
9020         (rs6000_builtin_mul_widen_even): Ditto.
9021         (rs6000_builtin_mul_widen_odd): Ditto.
9022         (rs6000_builtin_vec_perm): Ditto.
9023         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
9024         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
9025         to zero a register.
9026         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
9027         generated upstream.
9028         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
9029         VSX types for bit operations.  Changes to accomidate vector.md.
9030         (bdesc_2arg): Ditto.
9031         (bdesc_1arg): Ditto.
9032         (struct builtin_description_predicates): Rewrite predicate
9033         handling so that RTL describes the operation, instead of passing
9034         the instruction to be used as a string argument.
9035         (bdesc_altivec_preds): Ditto.
9036         (altivec_expand_predicate_builtin): Ditto.
9037         (altivec_expand_builtin): Ditto.
9038         (rs6000_expand_ternop_builtin): Use a switch instead of an if
9039         statement for vsldoi support.
9040         (altivec_expand_ld_builtin): Change to use new names from vector.md.
9041         (altivec_expand_st_builtin): Ditto.
9042         (paired_expand_builtin): Whitespace changes.
9043         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
9044         builtin_mode_to_type table for secondary reload.  Call
9045         builtin_function_type to build random builtin functions.
9046         (altivec_init_builtins): Change to use builtin_function_type to
9047         create builtin function types dynamically as we need them.
9048         (builtin_hash_function): New support for hashing the tree types
9049         for builtin function as we need it, rather than trying to build
9050         all of the trees that we need.  Add initial preliminary VSX support.
9051         (builtin_function_type): Ditto.
9052         (builtin_function_eq): Ditto.
9053         (builtin_hash_struct): Ditto.
9054         (rs6000_init_builtins): Ditto.
9055         (rs6000_common_init_builtins): Ditto.
9056         (altivec_init_builtins): Ditto.
9057         (rs6000_common_init_builtins): Ditto.
9058         (enum reload_reg_type): New enum for simplifing reg classes.
9059         (rs6000_reload_register_type): Simplify register classes into GPR,
9060         Vector, and other registers.  Altivec and VSX addresses in reload.
9061         (rs6000_secondary_reload_inner): Ditto.
9062         (rs6000_ira_cover_classes): New target hook, that returns the
9063         appropriate cover classes, based on -mvsx being used or not.
9064         (rs6000_secondary_reload_class): Add VSX support.
9065         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
9066         (get_vsel_insn): Ditto.
9067         (rs6000_emit_vector_compare): Rewrite vector conditional support
9068         so that where we can, we use RTL operators, instead of blindly use
9069         UNSPEC.
9070         (rs6000_emit_vector_select): Ditto.
9071         (rs6000_emit_vector_cond_expr): Ditto.
9072         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
9073         (create_TOC_reference): Add -mdebug=addr support.
9074         (emit_frame_save): VSX loads/stores need register indexed addressing.
9075
9076         * config/rs6000/rs6000.md: Include vector.md.
9077
9078         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
9079
9080         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9081         support for V2DI, V2DF in logical, permute, select operations.
9082
9083         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
9084         switch for vsx/power7.
9085         (-mvsx-scalar-memory): Ditto.
9086         (-mvsx-align-128): Ditto.
9087         (-mallow-movmisalign): Ditto.
9088         (-mallow-df-permute): Ditto.
9089         (-msched-groups): Ditto.
9090         (-malways-hint): Ditto.
9091         (-malign-branch-targets): Ditto.
9092
9093         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
9094         hook instead.
9095         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
9096         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
9097         (rs6000_vector_reg_class): Delete.
9098         (rs6000_vsx_reg_class): Ditto.
9099         (enum rs6000_reg_class_enum): New enum for the constraints that
9100         vary based on target switches.
9101         (rs6000_constraints): New array to hold the register class for all
9102         of the register constraints that vary based on the switches used.
9103         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
9104         (enum rs6000_builtins): Add unsigned varients for the builtin
9105         declarations returned by target hooks for expanding multiplies,
9106         select, and permute operations.  Add VSX builtins.
9107         (enum rs6000_builtin_type_index): Add entries for VSX.
9108         (V2DI_type_node): Ditto.
9109         (V2DF_type_node): Ditto.
9110         (unsigned_V2DI_type_node): Ditto.
9111         (bool_long_type_node): Ditto.
9112         (intDI_type_internal_node): Ditto.
9113         (uintDI_type_internal_node): Ditto.
9114         (double_type_internal_node): Ditto.
9115
9116         * config/rs6000/altivec.md (whole file): Move all expanders to
9117         vector.md from altivec.md.  Rename insn matching functions to be
9118         altivec_foo.
9119         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
9120         (altivec_vcmp*): Ditto.
9121         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
9122         (VM): New iterator for moves that includes the VSX types.
9123         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
9124         (altivec_vperm_<mode>_uns): New, for unsigned types.
9125         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
9126         (altivec_eq<mode>): Ditto.
9127         (altivec_gt<mode>): Ditto.
9128         (altivec_gtu<mode>): Ditto.
9129         (altivec_eqv4sf): Ditto.
9130         (altivec_gev4sf): Ditto.
9131         (altivec_gtv4sf): Ditto.
9132         (altivec_vcmpbfp_p): Ditto.
9133
9134 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
9135
9136         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
9137         unsigned HWI.
9138
9139 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
9140
9141         PR target/40832
9142         * config/i386/i386.c (output_387_ffreep): Rewrite to use
9143         ASM_SHORT instead of .word.
9144         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
9145         instead of .word in asm template.
9146
9147 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
9148
9149         PR target/37488
9150         * ira-lives.c (bb_has_abnormal_call_pred): New function.
9151         (process_bb_node_lives): Use it.
9152
9153         * ira.c (setup_cover_and_important_classes): Don't setup
9154         ira_important_class_nums.  Add cover classes to the end of
9155         important classes.
9156         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
9157         New.
9158         (find_reg_class_closure): Use reorder_important_classes.
9159
9160         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
9161
9162         * config/i386/i386.c (i386_ira_cover_classes): New function.
9163         (TARGET_IRA_COVER_CLASSES): Redefine.
9164
9165         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
9166         importance of order of cover classes in the array.
9167
9168 2009-07-22  Diego Novillo  <dnovillo@google.com>
9169
9170         * tree-pass.h (TDF_EH): Define.
9171         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
9172         contains TDF_EH, print the EH region number holding GS.
9173         * tree-dump.c (dump_options): Add "eh".
9174         * doc/invoke.texi: Document it.
9175
9176 2009-07-22  Doug Kwan  <dougkwan@google.com>
9177
9178         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
9179
9180 2009-07-22  Michael Matz  <matz@suse.de>
9181
9182         PR tree-optimization/35229
9183         PR tree-optimization/39300
9184
9185         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
9186         (inhibit_phi_insertion): New function.
9187         (insert_into_preds_of_block): Call it for REFERENCEs.
9188         (init_pre): Initialize and finalize scalar evolutions.
9189         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
9190
9191 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
9192
9193         * config/i386/predicates.md (zero_extended_scalar_load_operand):
9194         Use CONST_VECTOR_NUNITS to determine number of elements.
9195
9196 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
9197
9198         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
9199         (U, W): Constraints are now deprecated and will be removed if we
9200         run out of letters.
9201         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
9202         the file.
9203         ("prefetch"): Add the stcmh instruction for prefetching.
9204         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
9205         changes.
9206         (s390_short_displacement): Return always true if compiling for
9207         machines not providing the long displacement facility.
9208         (s390_mem_constraint): Support the new constraint letter Z.
9209         (s390_check_qrst_address): New function.
9210
9211 2009-07-21  DJ Delorie  <dj@redhat.com>
9212
9213         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
9214         alone too.
9215
9216 2009-07-21  Jason Merrill  <jason@redhat.com>
9217
9218         * c-common.c (max_tinst_depth): Increase default to 1024.
9219
9220 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9221
9222         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
9223         (vec_unpacku_float_lo_v4si): Ditto.
9224
9225 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9226
9227         PR target/40811
9228         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
9229         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
9230         (builtin_description): Add __builtin_ia32_cvtudq2ps.
9231         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
9232
9233 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
9234
9235         PR tree-optimization/40813
9236         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
9237         it.
9238
9239 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
9240
9241         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
9242         with a NOP_EXPR if needed.
9243
9244 2009-07-21  Paul Brook <paul@codesourcery.com>
9245
9246         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
9247         Terminate debug dump with newline.
9248
9249 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9250
9251         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
9252         Cast "1" to unsigned HOST_WIDE_INT.
9253         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
9254         deposit length to the maximum length - lsb.  Extend length if
9255         HOST_BITS_PER_WIDE_INT is 32.
9256
9257 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
9258
9259         * cgraph.h (constant_pool_htab): New function.
9260         (constant_descriptor_tree): Move from varasm.c.
9261         * varasm.c (constant_pool_htab): New function.
9262         (constant_descriptor_tree): Move to cgraph.h.
9263
9264 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
9265
9266         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
9267
9268 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
9269
9270         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
9271         $(VARRAY_H).
9272
9273 2009-07-20  Xinliang David Li  <davidxl@google.com>
9274
9275         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
9276
9277 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9278
9279         * config/mips/mips.md (move_type): Add arith.
9280         (type): Handle arith.
9281         (zero_extendsidi2): Rename this into ...
9282         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
9283         (zero_extendsidi2): New expander.
9284         (*zero_extendsidi2_dext): New pattern.
9285
9286 2009-07-20  Nick Clifton  <nickc@redhat.com>
9287
9288         * config.gcc (mips64-*-*): Add definition of tm_defines in order
9289         to set MIPS_ABI_DEFAULT.
9290         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
9291
9292 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
9293
9294         * tree-object-size.c (addr_object_size): Handle unions with
9295         array in it as last field of structs in __bos (, 1) as __bos (, 0).
9296
9297         PR tree-optimization/40792
9298         * tree.c (build_function_type_skip_args): Remove bogus assert.
9299
9300 2009-07-20  Jan Hubicka  <jh@suse.cz>
9301             Martin Jambor  <mjambor@suse.cz>
9302
9303         * cgraph.h (combined_args_to_skip): New field.
9304         * cgraph.c (cgraph_create_virtual_clone): Properly handle
9305         combined_args_to_skip and args_to_skip.
9306         * tree-inline.c (update_clone_info): New function.
9307         (tree_function_versioning): Call update_clone_info.
9308         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
9309         functions.
9310         (cgraph_materialize_all_clones): More extensive dumping, working
9311         with combined_args_to_skip rather than args_to_skip.
9312
9313 2009-07-20  Ira Rosen  <irar@il.ibm.com>
9314
9315         * tree-vectorizer.h (vectorizable_condition): Add parameters.
9316         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
9317         (get_initial_def_for_reduction): Likewise.
9318         (vectorizable_reduction): Skip the check of first operand in case
9319         of COND_EXPR. Add check that it is outer loop vectorization if
9320         nested cycle was detected. Call vectorizable_condition() for
9321         COND_EXPR. If reduction epilogue cannot be created do not fail for
9322         nested cycles (if it is not double reduction). Assert that there
9323         is only one type in the loop in case of COND_EXPR. Call
9324         vectorizable_condition() to vectorize COND_EXPR.
9325         * tree-vect-stmts.c (vectorizable_condition): Update comment.
9326         Add parameters. Allow nested cycles if called from
9327         vectorizable_reduction(). Use reduction vector variable if provided.
9328         (vect_analyze_stmt): Call vectorizable_reduction() before
9329         vectorizable_condition().
9330         (vect_transform_stmt): Update call to vectorizable_condition().
9331
9332 2009-07-20  Christian Bruel  <christian.bruel@st.com>
9333
9334         * config/sh/sh.opt (-mfmovd): Resurrect and document.
9335         * doc/invoke.texi (-mfmovd): Likewise.
9336         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
9337
9338 2009-07-20  Jan Hubicka  <jh@suse.cz>
9339
9340         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
9341         when handling SSA name.
9342
9343 2009-07-19  Jan Hubicka  <jh@suse.cz>
9344
9345         PR tree-optimization/40676
9346         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
9347         virtual PHIs in empty BBs.
9348
9349 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9350
9351         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
9352         re-expanded the compound use gen_lowpart instead to convert to the
9353         desired mode.
9354
9355 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9356
9357         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
9358         OUTER_CONST arguments.
9359         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
9360         the new wider mode will be masked off.
9361         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
9362
9363 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9364
9365         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
9366         high-order bits are zero.
9367
9368 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9369
9370         * combine.c (simplify_shift_const_1): Split code to determine
9371         shift_mode into ...
9372         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
9373         new bits shifted in are identical to the old sign bit.
9374
9375 2009-07-18  Richard Guenther  <rguenther@suse.de>
9376
9377         PR c/40787
9378         * gimplify.c (gimplify_call_expr): Reject code using results from
9379         functions returning void.
9380
9381 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
9382
9383         * doc/md.texi: Document the new PowerPC "es" constraint.
9384         Document that "m" can include automodified addresses on this target,
9385         and explain how %U must be used.  Extend the "Q" and "Z" documentation
9386         to suggest "es" as well as "m".
9387         * config/rs6000/constraints.md (es): New memory constraint.
9388         (Q, Z): Update strings to match new documentation.
9389
9390 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
9391
9392         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
9393         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
9394         * config/rs6000/predicates.md (volatile_mem_operand): Use
9395         offsettable_nonstrict_memref_p.
9396         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
9397         (*floatunssidf2_internal): Likewise.
9398         (*fix_truncdfsi2_internal): Likewise.
9399         (*fix_trunctfsi2_internal): Likewise.
9400
9401 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
9402
9403         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
9404         atmega32u2 devices.
9405         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9406
9407 2009-07-17  Richard Guenther  <rguenther@suse.de>
9408
9409         PR c/40401
9410         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
9411         (pass_warn_unused_result): Likewise.
9412         (TODO_set_props): Remove.
9413         * omp-low.c (diagnose_omp_structured_block_errors): Change to
9414         run as a pass.
9415         (pass_diagnose_omp_blocks): Define.
9416         * c-decl.c (pop_file_scope): Do not finalize the CU here.
9417         (c_gimple_diagnostics_recursively): Remove.
9418         (finish_function): Do not call it.
9419         (c_write_global_declarations): Continue after errors.
9420         Finalize the CU here.
9421         * c-gimplify.c (c_genericize): Do not gimplify here.
9422         * c-common.c (c_warn_unused_result): Move ...
9423         * tree-cfg.c (do_warn_unused_result): ... here.
9424         (run_warn_unused_result): New function.
9425         (gate_warn_unused_result): New function.
9426         (pass_warn_unused_result): New pass.
9427         * c-common.h (c_warn_unused_result): Remove.
9428         * flags.h (flag_warn_unused_result): Declare.
9429         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
9430         * opts.c (flag_warn_unused_result): Initialize to false.
9431         * toplev.c (compile_file): Add comment.
9432         * omp-low.c (create_omp_child_function): Do not register
9433         the function with the frontend.
9434         (diagnose_omp_structured_block_errors): Prepare to be
9435         called as optimization pass.
9436         (gate_diagnose_omp_blocks): New function.
9437         (pass_diagnose_omp_blocks): New pass.
9438         * cgraph.h (cgraph_optimize): Remove.
9439         (cgraph_analyze_function): Likewise.
9440         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
9441         * cgraphunit.c (cgraph_lower_function): Lower nested functions
9442         before their parents here.
9443         (cgraph_finalize_function): Not here.
9444         (cgraph_analyze_function): Gimplify functions here.
9445         (cgraph_finalize_compilation_unit): Continue after errors.
9446         Optimize the callgraph from here.
9447         (cgraph_optimize): Make static.
9448         * langhooks.c (write_global_declarations): Finalize the CU.
9449         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
9450         (gimplify_function_tree): Assert we gimplify only once.
9451         Set PROP_gimple_any property.
9452         * tree-nested.c (gimplify_all_functions): New function.
9453         (lower_nested_functions): Gimplify all nested functions.
9454         * gimple.h (diagnose_omp_structured_block_errors): Remove.
9455         * passes.c (init_optimization_passes): Add pass_warn_unused_result
9456         and pass_diagnose_omp_blocks after gimplification.  Do not
9457         set TODO_set_props on all_lowering_passes.
9458         (execute_one_pass): Do not handle TODO_set_props.
9459         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
9460         (gimplify.o): Add tree-pass.h dependency.
9461         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
9462         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
9463         (unsave_r): Likewise.
9464         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
9465         temporary variable.
9466
9467 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
9468
9469         * doc/service.texi (Service): Restore previously removed link,
9470         which isn't broken after all.
9471
9472 2009-07-17  Richard Guenther  <rguenther@suse.de>
9473
9474         PR tree-optimization/40321
9475         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
9476         PHI nodes to the maximal set.
9477         (make_values_for_phi): Add PHI arguments to the maximal set.
9478         (execute_pre): Dump PHI_GEN and the maximal set.
9479
9480 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
9481
9482         PR c++/40780
9483         * gimplify.c (gimplify_conversion): Don't change non-conversions into
9484         VIEW_CONVERT_EXPR.
9485
9486 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
9487
9488         * doc/extend.texi (Nested Functions): Replace broken link with
9489         textual reference.
9490         * doc/service.texi (Service): Remove broken link.
9491
9492 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
9493
9494         PR bootstrap/40781
9495         * builtins.c (expand_builtin_memcmp): Use loc instead of
9496         EXPR_LOCATION (exp).
9497         (expand_builtin_strncmp): Likewise.
9498
9499 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
9500             Manuel López-Ibáñez  <manu@gcc.gnu.org>
9501
9502         PR 40435
9503         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
9504         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
9505         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
9506         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
9507         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
9508         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
9509         tree-inline.c, c-common.c, c-common.h, gimple.c,
9510         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
9511         convert.c: Add location argument to fold_{unary,binary,ternary},
9512         fold_build[123], build_call_expr, build_size_arg,
9513         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
9514         fold_build1_initializer, fold_build2_initializer,
9515         fold_build3_initializer, fold_build_call_array,
9516         fold_build_call_array_initializer, fold_single_bit_test,
9517         omit_one_operand, omit_two_operands, invert_truthvalue,
9518         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
9519         combine_comparisons, fold_builtin_*, fold_call_expr,
9520         build_range_check, maybe_fold_offset_to_address, round_up,
9521         round_down.
9522
9523 2009-07-16  Jason Merrill  <jason@redhat.com>
9524
9525         PR libstdc++/37907
9526         * c-common.c (c_common_reswords): Add __is_standard_layout
9527         and __is_trivial.
9528         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
9529         * doc/implement-cxx.texi: New.
9530         * doc/gcc.texi: Include it.
9531
9532 2009-07-16  DJ Delorie  <dj@redhat.com>
9533
9534         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
9535         compares that may be indirectly affected by previous instructions.
9536
9537 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9538
9539         * builtins.c (do_mpc_arg2): New.
9540         (fold_builtin_2): Fold builtin cpow.
9541         * real.h (HAVE_mpc_pow): New.
9542
9543 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
9544
9545         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
9546         comparison to skip unprofitable schedule
9547
9548 2009-07-16  Simon Baldwin  <simonb@google.com>
9549
9550         * gcc.c (option_map): New flag -no-canonical-prefixes.
9551         * (display_help): Print help text for new flag.
9552         * (process_command): Move options translation and language specifics
9553         and handle new flag early.  Use it to set a function pointer to a
9554         prefix builder.  Replace make_relative_prefix calls with calls to
9555         the function pointed to.  Ignore new flag in regular options handling.
9556         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
9557
9558 2009-07-15  DJ Delorie  <dj@redhat.com>
9559
9560         * config/mep/mep.md (sibcall_internal): Change register to avoid
9561         argument registers.
9562         (sibcall_value_internal): Likewise.
9563
9564 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
9565
9566         PR rtl-optimization/40710
9567         * resource.c (mark_target_live_regs): Reset DF problem to LR.
9568
9569 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
9570
9571         * config/mips/mips.md (*extenddi_truncate<mode>,
9572         *extendsi_truncate<mode>): Change type attribute to move_type
9573         with shift_shift.  Split out code handling exts from here ...
9574         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
9575         pattern.
9576         (*extendhi_truncateqi): Change type attribute to move_type with
9577         shift_shift.  Split out code handling exts from here ...
9578         (*extendhi_truncateqi_exts): ... to this new pattern.
9579
9580 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
9581
9582         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
9583         instead of "and" with inverted sign bit mask value.  Use
9584         "nonimmediate_operand" for operand 1 and operand 2 predicate.
9585         Allocate registers only for operand 4 and operand 5.
9586
9587 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
9588
9589         PR middle-end/40747
9590         * fold-const.c (fold_cond_expr_with_comparison): When folding
9591         < and <= to MIN, make sure the MIN uses the same type as the
9592         comparison's operands.
9593
9594 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
9595
9596         * arm.md (ior_xor): New code iterator.
9597         (split for ior/xor with shift and zero-extend): New split pattern.
9598         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
9599
9600 2009-07-15  Richard Guenther  <rguenther@suse.de>
9601
9602         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
9603         offset member.
9604
9605 2009-07-15  Richard Guenther  <rguenther@suse.de>
9606
9607         PR middle-end/40753
9608         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
9609
9610 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
9611
9612         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
9613         handle 2.6.30 kernel.
9614
9615 2009-07-15  DJ Delorie  <dj@redhat.com>
9616
9617         * config/mep/mep.md (sibcall_internal): Change register to allow
9618         for 24-bit addresses.
9619         (sibcall_value_internal): Likewise.
9620
9621 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9622
9623         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
9624         that are enabled/disabled by the flags introduced by a previous patch.
9625
9626 2009-07-14  DJ Delorie  <dj@redhat.com>
9627
9628         * config/mep/mep.md (sibcall_internal): Include non-toggling
9629         non-jmp case.
9630         (sibcall_value_internal): Likewise.
9631
9632 2009-07-14  Taras Glek  <tglek@mozilla.com>
9633             Rafael Espindola  <espindola@google.com>
9634
9635         * doc/sourcebuild.texi: Document install-plugin target.
9636         * configure.ac: Added install-plugin target to language makefiles.
9637         * configure: Regenerate.
9638         * Makefile.in: (install-plugin): Install more headers,
9639         depend on lang.install-plugin.
9640
9641 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9642
9643         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
9644         translation.
9645
9646 2009-07-14  DJ Delorie  <dj@redhat.com>
9647
9648         * config/mep/mep.c (mep_vliw_jmp_match): New function.
9649         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
9650         * config/mep/mep.md (sibcall_internal): Change test from
9651         mep_vliw_mode_match to mep_vliw_jmp_match.
9652         (sibcall_value_internal): Likewise.
9653
9654 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
9655
9656         * config/i386/sse.md (copysign<mode>3): New expander.
9657         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
9658         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
9659         Use ix86_build_const_vector.
9660         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
9661         IX86_BUILTIN_CPYSGNPD.
9662         (builtin_description): Add __builtin_ia32_copysignps and
9663         __builtin_ia32_copysignpd.
9664         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
9665         and BUILT_IN_COPYSIGNF.
9666
9667 2009-07-13  Jason Merrill  <jason@redhat.com>
9668
9669         * builtins.c (can_trust_pointer_alignment): New fn.
9670         (get_pointer_alignment): Factor it out from here.
9671         * tree.h: Declare it.
9672
9673 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
9674
9675         * config/rs6000/predicates.md (offsettable_mem_operand): Test
9676         RTX_AUTOINC class.
9677
9678 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
9679
9680         PR debug/40705
9681         PR c++/403057
9682         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
9683
9684 2009-07-14  Richard Guenther  <rguenther@suse.de>
9685             Andrey Belevantsev <abel@ispras.ru>
9686
9687         PR middle-end/40745
9688         * cfgexpand.c (partition_stack_vars): Do not bother to update
9689         alias information when not optimizing.
9690
9691 2009-07-14  Richard Guenther  <rguenther@suse.de>
9692             Andrey Belevantsev <abel@ispras.ru>
9693
9694         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
9695         (pt_solution_set): Likewise.
9696         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
9697         * tree-ssa-structalias.c (pt_solution_set): New function.
9698         * final.c (rest_of_clean_state): Free SSA data structures.
9699         * print-rtl.c (print_decl_name): Remove.
9700         (print_mem_expr): Implement in terms of print_generic_expr.
9701         * alias.c (ao_ref_from_mem): New function.
9702         (rtx_refs_may_alias_p): Likewise.
9703         (true_dependence): Query alias-export info.
9704         (canon_true_dependence): Likewise.
9705         (write_dependence_p): Likewise.
9706         * tree-dfa.c (get_ref_base_and_extent): For void types leave
9707         size unknown.
9708         * emit-rtl.c (component_ref_for_mem_expr): Remove.
9709         (mem_expr_equal_p): Use operand_equal_p.
9710         (set_mem_attributes_minus_bitpos): Do not use
9711         component_ref_for_mem_expr.
9712         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
9713         (update_alias_info_with_stack_vars): Likewise.
9714         (partition_stack_vars): Call update_alias_info_with_stack_vars.
9715         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
9716         explicitly nor clear stmt operands.
9717         Free the decl-to-pointer map.
9718         * tree-optimize.c (execute_free_datastructures): Do not free
9719         SSA data structures here.
9720         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
9721         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
9722         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
9723         dependencies.
9724         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
9725
9726 2009-07-13  DJ Delorie  <dj@redhat.com>
9727
9728         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
9729         unrolling at the right iteration count.
9730
9731         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
9732         calculations.
9733
9734 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
9735
9736         * haifa-sched.c (rank_for_schedule): Introduced flags to
9737         enable/disable individual scheduling heuristics.
9738         * common.opt: Introduced flags to enable/disable individual
9739         heuristics in the scheduler.
9740         * doc/invoke.texi: Introduced flags to enable/disable individual
9741         heuristics in the scheduler.
9742
9743 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
9744
9745         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
9746         config/i386/mingw-tls.c.
9747         * config/i386/mingw-tls.c: Removed.
9748
9749 2009-07-13  Ira Rosen  <irar@il.ibm.com>
9750
9751         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
9752         checks access only relevant statements.
9753         (vectorizable_reduction): Likewise.
9754
9755 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
9756
9757         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
9758         just for 32-bit case.
9759
9760 2009-07-12  Jan Hubicka  <jh@suse.cz>
9761
9762         PR tree-optimization/40585
9763         * except.c (expand_resx_expr): When there already is resume
9764         instruction, produce linked list.
9765         (build_post_landing_pads): Assert that resume is empty.
9766         (connect_post_landing_pads): Handle resume lists.
9767         (dump_eh_tree): Dump resume list.
9768
9769 2009-07-12  Ira Rosen  <irar@il.ibm.com>
9770
9771         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
9772         with additional argument.
9773         * tree-vectorizer.h (enum vect_def_type): Add
9774         vect_double_reduction_def.
9775         (vect_is_simple_reduction): Add argument.
9776         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
9777         indentation.
9778         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
9779         vect_is_simple_reduction with additional argument.
9780         (vect_analyze_loop_operations): Handle exit phi nodes in case of
9781         double reduction.
9782         (reduction_code_for_scalar_code): Handle additional codes by
9783         returning ERROR_MARK for them. Fix comment and indentation.
9784         (vect_is_simple_reduction): Fix comment, add argument to specify
9785         double reduction. Detect double reduction.
9786         (get_initial_def_for_induction): Fix indentation.
9787         (get_initial_def_for_reduction): Fix comment and indentation.
9788         Handle double reduction. Create initial definitions that do not
9789         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
9790         (vect_create_epilog_for_reduction): Fix comment, add argument to
9791         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
9792         epilogue result extraction. Create double reduction phi node and
9793         replace relevant uses.
9794         (vectorizable_reduction): Call vect_is_simple_reduction with
9795         additional argument. Fix indentation. Update epilogue code treatment
9796         according to the changes in reduction_code_for_scalar_code. Check
9797         for double reduction. Call vect_create_epilog_for_reduction with
9798         additional argument.
9799         * tree-vect-stmts.c (process_use): Handle double reduction, update
9800         documentation.
9801         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
9802         (vect_get_vec_def_for_operand): Likewise.
9803
9804 2009-07-12  Danny Smith  <dansmister@gmail.com>
9805
9806         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
9807         dllexport if !TREE_PUBLIC.
9808         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
9809
9810 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
9811
9812         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
9813         (avr_extra_arch_macro) Remove declatation.
9814         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
9815         (avr_extra_arch_macro) Declare as static.
9816         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
9817
9818 2009-07-11  Jan Hubicka  <jh@suse.cz>
9819
9820         PR middle-end/48388
9821         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
9822
9823 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
9824
9825         PR debug/40713
9826         * dwarf2out.c (dw_fde_struct): Add in_std_section and
9827         cold_in_std_section bits.
9828         (dwarf2out_begin_prologue): Initialize them.
9829         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
9830         if already covered by text_section or cold_text_section range.
9831
9832         PR rtl-optimization/40667
9833         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
9834         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
9835         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
9836         * config/i386/i386.c (ix86_minimum_alignment): New function.
9837         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
9838         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
9839         * emit-rtl.c (gen_reg_rtx): Likewise.
9840         * function.c (assign_parms): Likewise.  If nominal_type needs
9841         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
9842         rather than passed_type's alignment.
9843
9844         PR target/40668
9845         * function.c (assign_parm_setup_stack): Adjust
9846         MEM_OFFSET (data->stack_parm) if promoted_mode is different
9847         from nominal_mode on big endian.
9848
9849 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
9850
9851         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
9852
9853 2009-07-10  DJ Delorie  <dj@redhat.com>
9854
9855         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
9856
9857 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
9858
9859         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
9860         attribute.
9861         (thumb2_cbnz): Likewise.
9862
9863 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
9864
9865         PR target/39079
9866         * config.gcc (supported_defaults): Add synci.
9867         (with_synci): Add validation.
9868         (all_defaults): Add synci.
9869         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
9870         ISA_HAS_SYNCI.
9871         (synci): Same.
9872         * config/mips/mips.opt (msynci): New option.
9873         * config/mips/mips.c (mips_override_options): Warn on use of
9874         -msynci for targets that do now support it.
9875         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
9876         msynci.
9877         * gcc/doc/invoke.texi (-msynci): Document the new option.
9878         * doc/install.texi (--with-synci): Document the new option.
9879
9880 2009-07-10  Richard Guenther  <rguenther@suse.de>
9881
9882         PR tree-optimization/40496
9883         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
9884         the PHI result with a compatible type.
9885
9886 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9887
9888         PR 25509
9889         PR 40614
9890         * c.opt (Wunused-result): New.
9891         * doc/invoke.texi: Document it.
9892         * c-common.c (c_warn_unused_result): Use it.
9893
9894 2009-07-09  DJ Delorie  <dj@redhat.com>
9895
9896         * targhooks.c (default_target_can_inline_p): Rename from
9897         default_target_option_can_inline_p.
9898         * targhooks.h (default_target_can_inline_p): Likewise.
9899         * target-def.h (TARGET_CAN_INLINE_P): Rename from
9900         TARGET_OPTION_CAN_INLINE_P.
9901         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
9902         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
9903         (mep_target_can_inline_p): Rename from
9904         mep_target_option_can_inline_p.
9905
9906         PR target/40626
9907         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
9908         registers used to pass vectors.
9909
9910         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
9911
9912 2009-07-09  Tom Tromey  <tromey@redhat.com>
9913
9914         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
9915         * config/mmix/mmix.c: Include dwarf2.h.
9916         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
9917         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
9918         * config/sh/sh.c: Include dwarf2.h.
9919         * config/i386/i386.c: Include dwarf2.h.
9920         * Makefile.in (DWARF2_H): Remove 'elf'.
9921         * except.c: Include dwarf2.h.
9922         * unwind-dw2.c: Include dwarf2.h.
9923         * dwarf2out.c: Include dwarf2.h.
9924         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
9925         * unwind-dw2-fde.c: Include dwarf2.h.
9926         * dwarf2asm.c: Include dwarf2.h.
9927
9928 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9929
9930         * haifa-sched.c (insn_finishes_cycle_p): New static function.
9931         (max_issue): Use it.
9932         * sched-int.h (struct sched_info: insn_finishes_block_p): New
9933         scheduler hook.
9934         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
9935         (region_sched_info): Update.
9936         * sched-ebb.c (ebb_sched_info): Update.
9937         * modulo-sched.c (sms_sched_info): Update.
9938         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
9939
9940 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
9941
9942         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
9943
9944 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
9945
9946         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
9947
9948 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
9949
9950         PR middle-end/40692
9951         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
9952         arg1 with arg01 if arg1 is already INTEGER_CST.
9953
9954 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
9955
9956         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
9957         Transform (and (truncate)) into (truncate (and)).
9958
9959 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
9960
9961         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
9962         creating LHS paradoxical subregs.  Fix surrounding returns to
9963         use NULL_RTX rather than 0.
9964
9965 2009-07-08  DJ Delorie  <dj@redhat.com>
9966
9967         * config/mep/mep.c: (mep_option_can_inline_p): New.
9968         (TARGET_OPTION_CAN_INLINE_P): Define.
9969
9970 2009-07-08  Mark Wielaard  <mjw@redhat.com>
9971
9972         PR debug/40659
9973         * dwarf2out.c (add_data_member_location_attribute): When we have
9974         only a constant offset don't emit a new location description using
9975         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
9976         dwarf_version > 2.
9977
9978 2009-07-08  Richard Henderson  <rth@redhat.com>
9979
9980         PR target/38900
9981         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
9982         (enum reg_class): Add CLOBBERED_REGS.
9983         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
9984         * config/i386/i386.c (ix86_conditional_register_usage): Moved
9985         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
9986         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
9987         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
9988         force 64-bit sibcalls into R11.
9989         * config/i386/constraints.md (U): New constraint.
9990         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
9991         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
9992         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
9993
9994 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
9995
9996         * basic-block.h (dump_regset, debug_regset): Remove duplicate
9997         prototypes.
9998         * c-objc-common.h (c_initialize_diagnostics): Ditto.
9999         * ebitmap.h (dump_ebitmap): Ditto.
10000         * optabs.h (optab_libfunc): Ditto.
10001         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10002         * tree-flow.h (vect_can_force_dr_alignment_p,
10003         get_vectype_for_scalar_type): Ditto.
10004         (vectorize_loops): Move prototype to ...
10005         * tree-vectorizer.h: ... here. Also, adjust comment.
10006         (vect_set_verbosity_level): Remove duplicate prototype.
10007         * tree-ssa-loop.c: Include tree-vectorizer.h.
10008         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10009
10010 2009-07-08  Nick Clifton  <nickc@redhat.com>
10011
10012         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10013         forward slash.
10014
10015 2009-07-08  DJ Delorie  <dj@redhat.com>
10016
10017         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10018         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
10019         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
10020         written to.
10021         * config/mep/intrinsics.md: Regenerated.
10022         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
10023         registers when asm() or calls are detected.
10024
10025 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10026
10027         PR c++/31246
10028         * gimplify.c (gimplify_expr): Propagate no_warning flag when
10029         gimplifying.
10030         * gimple (gimple_build_call_from_tree): Likewise.
10031         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
10032         no_warning flag before warning.
10033
10034 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10035
10036         * tree.c (set_expr_locus): Remove.
10037         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
10038         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
10039         EXPR_LOCATION.
10040         * gimplify.c (internal_get_tmp_var): Likewise.
10041         (gimplify_call_expr): Likewise.
10042         (gimplify_one_sizepos): Likewise.
10043
10044 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
10045
10046         PR debug/40666
10047         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
10048         to variables for debugging purposes.
10049
10050 2009-06-23  Mark Loeser  <mark@halcy0n.com>
10051
10052         PR build/40010
10053         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
10054
10055 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10056
10057         * pretty-print.c (pp_base_format): Remove %J.
10058         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10059         gcc_cxxdiag_char_table): Likewise.
10060         (init_dynamic_diag_info): Likewise.
10061
10062 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10063
10064         * pretty-print.c (pp_base_format): Remove %H.
10065         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10066         gcc_cxxdiag_char_table): Likewise.
10067         (init_dynamic_diag_info): Likewise.
10068         * config/mep/mep.c (mep_select_section): Likewise.
10069
10070 2009-07-07  Duncan Sands  <baldrick@free.fr>
10071
10072         * final.c (pass_clean_state): Give the pass a name.
10073         * passes.c (pass_rest_of_compilation): Likewise.
10074         * tree-optimize.c (pass_all_optimizations): Likewise.
10075
10076 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10077
10078         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
10079         an extra 'decl' for error_at.
10080
10081 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
10082
10083         PR middle-end/40669
10084         * tree-tailcall.c (adjust_return_value_with_ops,
10085         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
10086         if it has complex or vector type.
10087
10088 2009-07-07  Olivier Hainque  <hainque@adacore.com>
10089
10090         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
10091         pthread symbols.
10092
10093 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
10094
10095         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
10096
10097 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10098
10099         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
10100         * c-decl.c: Likewise.
10101         * function.c: Likewise.
10102         * varasm.c: Likewise.
10103         * tree-ssa.c: Likewise.
10104         * c-common.c: Likewise.
10105         * tree-cfg.c: Likewise.
10106         * config/spu/spu.c: Likewise.
10107         * config/ia64/ia64.c: Likewise.
10108         * config/v850/v850.c: Likewise.
10109
10110 2009-07-06  DJ Delorie  <dj@redhat.com>
10111
10112         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
10113         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
10114         unspecified accesses to control registers.
10115         * config/mep/intrinsics.md: Regenerate.
10116         * config/mep/intrinsics.h: Regenerate.
10117         * config/mep/mep-intrin.h: Regenerate.
10118
10119 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10120
10121         * c-lex.c: Replace %H by an explicit location. Update all calls.
10122         * c-common.c: Likewise.
10123         * c-decl.c: Likewise.
10124         * c-typeck.c: Likewise.
10125         * fold-const.c: Likewise.
10126         * gimplify.c: Likewise.
10127         * stmt.c: Likewise.
10128         * tree-cfg.c: Likewise.
10129         * tree-ssa-loop-niter.c: Likewise.
10130         * tree-vrp.c: Likewise.
10131         * value-prof.c: Likewise.
10132
10133 2009-07-06  Diego Novillo  <dnovillo@google.com>
10134
10135         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
10136         if it has one.  Handle cases where VAR does not have an
10137         annotation or cfun is NULL.
10138
10139 2009-07-06  Diego Novillo  <dnovillo@google.com>
10140
10141         * tree.c: Include debug.h.
10142         (initialize_tree_contains_struct): New.
10143         (init_ttree): Call it.
10144         (tree_node_structure_for_code): Factor out of ...
10145         (tree_node_structure): ... here.
10146         * treestruct.def (TS_PHI_NODE): Remove.
10147         (TS_GIMPLE_STATEMENT): Remove.
10148
10149 2009-07-06  Diego Novillo  <dnovillo@google.com>
10150
10151         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
10152         (debug_tree_chain): Handle cycles.
10153
10154 2009-07-06  Nick Clifton  <nickc@redhat.com>
10155             DJ Delorie  <dj@redhat.com>
10156
10157         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10158         __FMOVD_ENABLED__ is defined.
10159         * config/sh/sh.h
10160         (TARGET_FMOVD): Provide a default definition.
10161         (MASK_FMOVD): Likewise.
10162         (TARGET_CPU_CPP_BUILTINS): Define
10163         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10164         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10165         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
10166         (split for DF load from memory into register): Also handle
10167         MEMs which consist of REG+DISP addressing.
10168         (split for DF store from register to memory): Likewise.
10169         (movsf_ie): Always use single fp_mode.
10170         * config/sh/sh.c (sh_override_options): Do not automatically
10171         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10172         that to the -mfmovd command line switch.
10173         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
10174         (fldi_ok): Always allow.
10175         * config/sh/sh.opt (mfmovd): Remove this switch.
10176         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10177
10178 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
10179             Kaz Kojima  <kkojima@gcc.gnu.org>
10180
10181         PR rtl-optimization/30807
10182         * postreload.c (reload_combine): For every new use of REG_SUM,
10183         record the use of BASE.
10184
10185 2009-07-06  Jan Hubicka  <jh@suse.cz>
10186
10187         * params.def: Revert my accidental commit at 2009-06-30.
10188
10189 2009-07-04  Ian Lance Taylor  <iant@google.com>
10190
10191         PR target/40636
10192         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
10193         EXPORTED_CONST.
10194         (mingw_format_attribute_overrides): Likewise.
10195
10196 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
10197
10198         PR debug/40596
10199         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
10200         don't check cfa.reg.  Instead of cfa.indirect use
10201         fde && fde->drap_reg != INVALID_REGNUM test.
10202
10203 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
10204
10205         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
10206
10207 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
10208
10209         PR target/40587
10210         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
10211
10212 2009-07-03  Richard Guenther  <rguenther@suse.de>
10213
10214         PR tree-optimization/40640
10215         * tree-switch-conversion.c (build_arrays): Perform arithmetic
10216         in original type.
10217
10218 2009-07-03  Jan Hubicka  <jh@suse.cz>
10219
10220         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
10221         for size, reduce amount of inlining.
10222
10223 2009-07-03  Richard Guenther  <rguenther@suse.de>
10224
10225         PR middle-end/34163
10226         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
10227         if t +- x is known to not overflow and the conversion widens the
10228         operation.
10229         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
10230
10231 2009-07-03  Jan Hubicka  <jh@suse.cz>
10232
10233         * ipa-pure-const.c (analyze): Update loop optimizer init.
10234         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
10235         try_remove_empty_loop, remove_empty_loops): Remove.
10236         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
10237         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
10238         to mark regular loops as neccesary.
10239         (degenerate_phi_p): New function.
10240         (propagate_necessity, remove_dead_phis): Use it.
10241         (forward_edge_to_pdom): Likewise.
10242         (eliminate_unnecessary_stmts): Take care to remove uses of results of
10243         virtual PHI nodes that became unreachable.
10244         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
10245         * tree-flow.h (remove_empty_loops): Remove.
10246         * passes.c (init_optimization_passes): Remove.
10247
10248 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
10249
10250         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
10251         can_create_pseudo_p.
10252         (*fix_trunc<mode>_i387_1): Ditto.
10253         (*floathi<mode>2_1): Ditto.
10254         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
10255         (*fistdi2_1): Ditto.
10256         (*fist<mode>2_1): Ditto.
10257         (frndintxf2_floor): Ditto.
10258         (*fist<mode>2_floor_1): Ditto.
10259         (frndintxf2_ceil): Ditto.
10260         (*fist<mode>2_ceil_1): Ditto.
10261         (frndintxf2_trunc): Ditto.
10262         (frndintxf2_mask_pm): Ditto.
10263         (fxam<mode>2_i387_with_temp): Ditto.
10264         * config/i386/sse.md (mulv16qi3): Ditto.
10265         (*sse2_mulv4si3): Ditto.
10266         (mulv2di3): Ditto.
10267         (sse4_2_pcmpestr): Ditto.
10268         (sse4_2_pcmpistr): Ditto.
10269
10270 2009-07-03  Jan Hubicka  <jh@suse.cz>
10271
10272         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
10273         (mark_stmt_necessary): Set it.
10274         (mark_operand_necessary): Set it.
10275         (mark_control_dependent_edges_necessary): Set it.
10276         (mark_virtual_phi_result_for_renaming): New function.
10277         (get_live_post_dom): New function.
10278         (forward_edge_to_pdom): New function.
10279         (remove_dead_stmt): Fix handling of control dependences.
10280         (tree_dce_init): Init new bitmap.
10281         (tree_dce_done): Free it.
10282
10283 2009-07-02  Richard Guenther  <rguenther@suse.de>
10284
10285         PR bootstrap/40617
10286         * tree-ssa-structalias.c (new_var_info): Initialize
10287         is_restrict_var.
10288
10289 2009-07-02  Jan Hubicka  <jh@suse.cz>
10290
10291         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
10292         local.
10293
10294 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
10295
10296         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
10297         instead of recomputing it.  Adjust calls.
10298         (emit_store_flag): Adjust recursive calls.
10299
10300 2009-07-02  Richard Guenther  <rguenther@suse.de>
10301
10302         * tree-ssa-live.c (remove_unused_locals): Do not remove
10303         heap variables.
10304         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
10305         of DECL_EXTERNAL for HEAP variables.
10306         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
10307         HEAP variables.  Do not adjust RESTRICT vars.
10308         (find_what_var_points_to): Nobody cares if something
10309         points to READONLY.
10310
10311 2009-07-02  Ben Elliston  <bje@au.ibm.com>
10312
10313         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
10314         pc_low and pc_high declarations to the top of the function.
10315
10316 2009-07-01  DJ Delorie  <dj@redhat.com>
10317
10318         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
10319         registers as fixed.
10320         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
10321         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
10322         unspecified accesses to control registers.
10323         * config/mep/intrinsics.md: Regenerate.
10324         * config/mep/intrinsics.h: Regenerate.
10325         * config/mep/mep-intrin.h: Regenerate.
10326
10327 2009-07-01  Anthony Green  <green@moxielogic.com>
10328
10329         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10330         instruction when possible.
10331         (moxie_expand_prologue): Ditto.  Also, save an instruction and
10332         some complexity by popping off of $r12 instead of $sp.
10333         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
10334         operands.
10335
10336 2009-07-01  Richard Henderson  <rth@redhat.com>
10337
10338         PR bootstrap/40347
10339         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
10340         contained no insns, reposition note before last insn.
10341
10342 2009-07-01  Richard Henderson  <rth@redhat.com>
10343
10344         PR debug/40431
10345         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
10346         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
10347
10348 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
10349
10350         PR bootstrap/40558
10351         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
10352         darwin9 for printing reg addresses with %y.
10353
10354 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
10355
10356         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
10357         truncation from operands in binary operations.
10358
10359 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
10360
10361         Revert:
10362         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
10363         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
10364         subreg of op0 to the original op0.
10365
10366         * expmed.c (store_bit_field_1): Use a temporary as the destination
10367         instead of a paradoxical subreg when we need to truncate the result.
10368
10369 2009-07-01  DJ Delorie  <dj@redhat.com>
10370
10371         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
10372         names to VLIW variants.
10373         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
10374         * config/mep/intrinsics.md: Regenerate.
10375         * config/mep/intrinsics.h: Regenerate.
10376         * config/mep/mep-intrin.h: Regenerate.
10377
10378 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
10379
10380         PR debug/40462
10381         * jump.c (returnjump_p): Revert last patch.
10382         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
10383
10384 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10385
10386         PR target/40575
10387         * pa.md (casesi32p): Use jump table label to determine the offset
10388         of the jump table.
10389         (casesi64p): Likewise.
10390
10391         * pa.c (forward_branch_p): Return bool type.  Use instruction
10392         addresses when available.  Assert that INSN has a jump label.
10393         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
10394         have a jump label.
10395
10396 2009-07-01  Richard Guenther  <rguenther@suse.de>
10397
10398         PR tree-optimization/19831
10399         * tree-ssa-dce.c (propagate_necessity): Calls to functions
10400         that only act as barriers do not make any previous stores necessary.
10401         * tree-ssa-structalias.c (handle_lhs_call): Delay making
10402         HEAP variables global, do not add a constraint from nonlocal.
10403         (find_func_aliases): Handle escapes through return statements.
10404         (compute_points_to_sets): Make escaped HEAP variables global.
10405
10406 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
10407
10408         PR bootstrap/40597
10409         * expmed.c (emit_store_flag): Perform a conversion if necessary,
10410         after reducing a DImode cstore to SImode.
10411
10412 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
10413
10414         * expr.c (expand_expr_real_1): Reinstate fallthrough to
10415         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
10416
10417 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
10418
10419         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
10420         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
10421         to 0.
10422         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
10423         and umod_optab if TARGET_BSD_DIVMOD.
10424         * config/vax/lib1funcs.asm: New file.
10425         * config/vax/t-linux: New file.
10426         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
10427
10428 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
10429
10430         PR c++/40566
10431         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
10432         to type arguments that have void type.
10433
10434         PR debug/40573
10435         * dwarf2out.c (gen_formal_parameter_die): Call
10436         equate_decl_number_to_die if node is different from origin.
10437
10438 2009-06-30  Anthony Green  <green@moxielogic.com>
10439
10440         Clean up moxie port for --enable-build-with-cxx.
10441         * config/moxie/moxie.c (moxie_function_value): First two
10442         parameters are const_tree, not tree.
10443         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
10444         (REG_CLASS_NAMES): Ditto.
10445         (REGNO_REG_CLASS): Ditto.
10446         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
10447         (moxie_function_value): Fix constyness of arguments.
10448
10449 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10450
10451         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
10452         finalize_size_functions before further processing.
10453         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
10454         (variable_size): Call self_referential_size on size expressions
10455         that contain a PLACEHOLDER_EXPR.
10456         (size_functions): New static variable.
10457         (copy_self_referential_tree_r): New static function.
10458         (self_referential_size): Likewise.
10459         (finalize_size_functions): New global function.
10460         * tree.c: Include tree-inline.h.
10461         (push_without_duplicates): New static function.
10462         (find_placeholder_in_expr): New global function.
10463         (substitute_in_expr) <tcc_declaration>: Return the replacement object
10464         on equality.
10465         <tcc_expression>: Likewise.
10466         <tcc_vl_exp>: If the replacement object is a constant, try to inline
10467         the call in the expression.
10468         * tree.h (finalize_size_functions): Declare.
10469         (find_placeholder_in_expr): Likewise.
10470         (FIND_PLACEHOLDER_IN_EXPR): New macro.
10471         (substitute_placeholder_in_expr): Update comment.
10472         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
10473         is true.
10474         (copy_tree_body_r): Likewise.
10475         (copy_tree_body): New static function.
10476         (maybe_inline_call_in_expr): New global function.
10477         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
10478         (maybe_inline_call_in_expr): Declare.
10479         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
10480         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
10481         GIMPLE_H.
10482
10483 2009-06-30  Richard Guenther  <rguenther@suse.de>
10484
10485         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
10486         continue walking.
10487         (propagate_necessity): Do not mark reaching defs of stores
10488         as necessary.
10489
10490 2009-06-30  Jan Hubicka  <jh@suse.cz>
10491
10492         * cfgloopanal.c (check_irred): Move into ...
10493         (mark_irreducible_loops): ... here; return true if ireducible
10494         loops was found.
10495         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
10496         (analyze_function): Try to prove loop finiteness.
10497         * cfgloop.h (mark_irreducible_loops): Update prototype.
10498         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
10499
10500 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
10501
10502         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
10503
10504 2009-06-30  Ira Rosen  <irar@il.ibm.com>
10505
10506         PR tree-optimization/40542
10507         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
10508         types.
10509
10510 2009-06-30  Martin Jambor  <mjambor@suse.cz>
10511
10512         PR tree-optimization/40582
10513         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
10514         than useless_type_conversion_p.
10515         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
10516         proper place.
10517
10518 2009-06-30  Martin Jambor  <mjambor@suse.cz>
10519
10520         PR middle-end/40554
10521         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
10522
10523 2009-06-30  Richard Guenther  <rguenther@suse.de>
10524
10525         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
10526         use ao_ref references.
10527         (walk_aliased_vdefs): Likewise.
10528         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
10529         * tree-ssa-dce.c (struct ref_data): Remove.
10530         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
10531         (mark_aliased_reaching_defs_necessary): Adjust.
10532         (mark_all_reaching_defs_necessary_1): Likewise.
10533
10534 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
10535
10536         PR boostrap/40597
10537         * expmed.c (emit_cstore): New name of emit_store_flag_1.
10538         (emit_store_flag_1): Extract from emit_store_flag, adjust
10539         calls to (what now is) emit_cstore.
10540         (emit_store_flag): Call emit_store_flag_1 and also use it
10541         for what used to be recursive calls.
10542
10543 2009-06-30  Wei Guozhi  <carrot@google.com>
10544
10545         PR/40416
10546         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
10547         if the target bb post dominates from bb.
10548         * config/i386/i386.c (memory_address_length): Check existence of base
10549         register before using it.
10550
10551 2009-06-30  Nick Clifton  <nickc@redhat.com>
10552             DJ Delorie  <dj@redhat.com>
10553
10554         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10555         __FMOVD_ENABLED__ is defined.
10556         * config/sh/sh.h
10557         (TARGET_FMOVD): Provide a default definition.
10558         (MASK_FMOVD): Likewise.
10559         (TARGET_CPU_CPP_BUILTINS): Define
10560         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10561         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10562         two fmov instructions depending upon whether TARGET_FMOVD is
10563         enabled.
10564         (split for DF load from memory into register): Also handle
10565         MEMs which consist of REG+DISP addressing.
10566         (split for DF store from register to memory): Likewise.
10567         * config/sh/sh.opt (mfmovd): Remove this switch.
10568         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10569         * config/sh/sh.c (sh_override_options): Do not automatically
10570         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10571         that to the -mfmovd command line switch.
10572
10573         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
10574         the SH4 and SH4A.
10575         (fldi_ok): Always allow.
10576         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
10577
10578 2009-06-29  DJ Delorie  <dj@redhat.com>
10579
10580         * doc/install.texi (mep-x-elf): Correct chip's full name.
10581
10582 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
10583
10584         * doc/extend.texi: Fix typo.
10585
10586 2009-06-29  Tom Tromey  <tromey@redhat.com>
10587
10588         * dwarf2.h: Remove.
10589         * Makefile.in (DWARF2_H): New variable.
10590         (except.o): Use it.
10591         (dwarf2out.o): Likewise.
10592         (dwarf2asm.o): Likewise.
10593         * config/i386/t-i386: Use DWARF2_H.
10594         * except.c: Include elf/dwarf2.h.
10595         * unwind-dw2.c: Include elf/dwarf2.h.
10596         * dwarf2out.c: Include elf/dwarf2.h.
10597         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
10598         <dtprel>: New field.
10599         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
10600         (size_of_loc_descr): Likewise.
10601         (output_loc_operands_raw): Likewise.
10602         (output_loc_operands): Handle new dtprel field.
10603         (loc_checksum): Update.
10604         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
10605         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
10606         * unwind-dw2-fde.c: Include elf/dwarf2.h.
10607         * dwarf2asm.c: Include elf/dwarf2.h.
10608         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
10609         * config/mmix/mmix.c: Include elf/dwarf2.h.
10610         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
10611         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
10612         * config/sh/sh.c: Include elf/dwarf2.h.
10613         * config/i386/i386.c: Include elf/dwarf2.h.
10614
10615 2009-06-29  DJ Delorie  <dj@redhat.com>
10616
10617         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
10618
10619         * doc/extend.texi: Add MeP attributes and pragmas.
10620         * doc/invoke.text: Add MeP Options.
10621         * doc/contrib.texi: Add MeP contribution.
10622         * doc/md.texi: Add MeP constraints.
10623         * doc/install.texi: Add MeP target.
10624
10625 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
10626
10627         * target.h (struct gcc_target): Add frame_pointer_required field.
10628         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
10629         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
10630         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
10631         hook.
10632         * reload1.c (update_eliminables): (Ditto.).
10633         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
10634         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
10635         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
10636
10637         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
10638
10639         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
10640         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10641         (arm_frame_pointer_required): New function.
10642
10643         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
10644         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10645         (avr_frame_pointer_required_p): Declare as static.
10646         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
10647
10648         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
10649         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10650         (bfin_frame_pointer_required): Make as static, change return type
10651         to bool.
10652         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
10653
10654         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
10655         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10656         (cris_frame_pointer_required): New function.
10657
10658         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
10659
10660         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
10661         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10662         (fr30_frame_pointer_required): New function.
10663
10664         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
10665         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10666         (frv_frame_pointer_required): Make as static, change return type
10667         to bool.
10668         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
10669
10670         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
10671         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10672         (ix86_frame_pointer_required): Make as static, change return type to
10673         bool.
10674         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
10675
10676         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
10677         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10678
10679         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
10680
10681         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
10682
10683         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
10684
10685         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
10686         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10687         (mips_frame_pointer_required): Make as static.
10688         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
10689
10690         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
10691         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10692         (mmix_frame_pointer_required): Mew function.
10693
10694         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
10695         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10696
10697         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
10698
10699         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
10700
10701         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
10702
10703         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
10704         (CAN_ELIMINATE): Redefine.
10705         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
10706         (sparc_frame_pointer_required): New function.
10707         (sparc_can_eliminate): New function.
10708         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
10709
10710         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
10711         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10712
10713         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
10714         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
10715         (xtensa_frame_pointer_required): Make as static, change return type
10716         to bool.
10717         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
10718         Remove.
10719
10720 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
10721
10722         * doc/plugins.texi: Document PLUGIN_START_UNIT.
10723         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
10724         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
10725         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
10726         (register_callback): Handle PLUGIN_START_UNIT.
10727         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
10728
10729 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10730
10731         * tree.c (process_call_operands): Propagate TREE_READONLY from the
10732         operands.
10733         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
10734         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
10735
10736 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
10737
10738         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
10739         move cost.
10740
10741 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
10742
10743         * doc/extend.texi (Additional Floating Types): __float128 is also
10744         supported on i386 targets.
10745
10746 2009-06-29  Richard Guenther  <rguenther@suse.de>
10747
10748         PR middle-end/14187
10749         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
10750         flag.
10751         (pt_solutions_same_restrict_base): Declare.
10752         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
10753         flag.
10754         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
10755         (make_constraint_from, make_copy_constraint): Move earlier.
10756         (make_constraint_from_heapvar): New function.
10757         (make_constraint_from_restrict): Likewise.
10758         (handle_lhs_call): Use it.
10759         (find_func_aliases): Use it to track conversions to restrict
10760         qualified pointers.
10761         (struct fieldoff): Add only_restrict_pointers flag.
10762         (push_fields_onto_fieldstack): Initialize it.
10763         (create_variable_info_for): Track global restrict qualified pointers.
10764         (intra_create_variable_infos): Use make_constraint_from_heapvar.
10765         Track restrict qualified pointer arguments.
10766         (set_uids_in_ptset): Use varinfo is_global_var flag.
10767         (find_what_var_points_to): Set the vars_contains_restrict flag.
10768         Always create the points-to solution for sets including restrict tags.
10769         (pt_solutions_same_restrict_base): New function.
10770         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
10771         qualified pointers use pt_solutions_same_restrict_base as
10772         additional source for disambiguation.
10773
10774 2009-06-29  Richard Guenther  <rguenther@suse.de>
10775
10776         PR middle-end/38212
10777         * alias.c (find_base_decl): Remove.
10778         (get_deref_alias_set_1): Remove restrict handling.
10779         * c-common.c (c_apply_type_quals_to_decl): Do not set
10780         DECL_POINTER_ALIAS_SET.
10781         * gimplify.c (find_single_pointer_decl_1): Remove.
10782         (find_single_pointer_decl): Likewise.
10783         (internal_get_tmp_var): Remove restrict handling.
10784         (gimple_regimplify_operands): Likewise.
10785         * omp-low.c (expand_omp_atomic_pipeline): Do not set
10786         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
10787         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
10788         * tree.c (restrict_base_for_decl): Remove.
10789         (init_ttree): Do not allocate it.
10790         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
10791         LABEL_DECL_UID for label decls.
10792         (copy_node_stat): Do not copy restrict information.
10793         (decl_restrict_base_lookup): Remove.
10794         (decl_restrict_base_insert): Likewise.
10795         (print_restrict_base_statistics): Likewise.
10796         (dump_tree_statistics): Do not call print_restrict_base_statistics.
10797         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
10798         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
10799         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
10800         (LABEL_DECL_UID): Adjust.
10801         (DECL_BASED_ON_RESTRICT_P): Remove.
10802         (DECL_GET_RESTRICT_BASE): Likewise.
10803         (SET_DECL_RESTRICT_BASE): Likewise.
10804         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
10805
10806         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
10807         instead of DECL_POINTER_ALIAS_SET.
10808         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
10809         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
10810         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
10811
10812 2009-06-29  Richard Guenther  <rguenther@suse.de>
10813
10814         PR tree-optimization/40579
10815         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
10816         the IL to simplify has constants that overflowed.
10817
10818 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
10819
10820         PR tree-optimization/40550
10821         * tree-vect-generic.c (expand_vector_operations_1): Compute in
10822         vector_compute_type only when the size of vector_compute_type is
10823         less than the size of type.
10824
10825 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
10826
10827         * fold-const.c (contains_label_1): Fix comments.
10828         (contains_label_p): Do not walk trees multiple time.
10829
10830 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10831
10832         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
10833         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
10834         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
10835         ix86_fp_comparison_operator.
10836         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
10837         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
10838         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
10839         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
10840         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
10841         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
10842         (related splits): Change predicate to ix86_fp_comparison_operator.
10843         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
10844         instead of ix86_fp_comparison_codes.
10845         (ix86_trivial_fp_comparison_operator,
10846         ix86_fp_comparison_operator): New.
10847         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
10848         (ix86_expand_compare): Eliminate last two parameters.
10849         (ix86_fp_jump_nontrivial_p): Kill.
10850         * config/i386/i386.c (put_condition_code): Eliminate call to
10851         ix86_fp_comparison_codes and subsequent assertion.
10852         (ix86_fp_comparison_codes): Eliminate.
10853         (ix86_fp_swap_condition): New.
10854         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
10855         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
10856         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
10857         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
10858         and ix86_fp_swap_condition.
10859         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
10860         Use ix86_fp_comparison_strategy.
10861         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
10862         (ix86_fp_jump_nontrivial_p): Eliminate.
10863         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
10864         call to ix86_expand_compare.
10865         (ix86_split_fp_branch, ix86_expand_setcc,
10866         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
10867         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
10868
10869 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10870
10871         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
10872         related to jump_clobbers.
10873         * config/arm/arm.md (conds): Remove jump_clob case.
10874         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
10875         splits): Change comparison_operator to arm_comparison_operator.
10876         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
10877         Eliminate.
10878
10879 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10880
10881         * dojump.c (do_compare_rtx_and_jump): Try swapping the
10882         condition for floating point modes.
10883         * expmed.c (emit_store_flag_1): Move here a bigger part
10884         of emit_store_flag.
10885         (emit_store_flag): Try swapping the condition for floating point
10886         modes.
10887         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
10888
10889 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10890
10891         * expr.c (expand_expr_real_1): Just use do_store_flag.
10892         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
10893         emit_store_flag_force.
10894         * expmed.c (emit_store_flag_force): Copy here trick
10895         previously in expand_expr_real_1.  Try reversing the comparison.
10896         (emit_store_flag_1): Work if target is NULL.
10897         (emit_store_flag): Work if target is NULL, using the result mode
10898         from the comparison.  Use split_comparison, restructure final part
10899         to simplify conditionals.
10900
10901 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
10902
10903         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
10904         * dojump.c (do_jump): Change handling of floating-point
10905         ops to use just do_compare_and_jump.
10906         (split_comparison): New.
10907         (do_compare_rtx_and_jump): Add here logic coming previously
10908         in do_jump, using split_comparison.
10909
10910 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
10911
10912         PR target/40489
10913         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
10914
10915 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10916
10917         * tree-ssa-alias.c: Fix unintentional commit.
10918
10919 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10920
10921         * passes.c (execute_one_pass): Fix unintentional commit.
10922
10923 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10924
10925         * df-problems.c (df_set_seen, df_unset_seen): Delete.
10926         (df_rd_local_compute, df_md_local_compute): Inline them.
10927
10928         (df_md_scratch): New.
10929         (df_md_alloc, df_md_free): Allocate/free it.
10930         (df_md_local_compute): Only include live registers in init.
10931         (df_md_transfer_function): Prune the in-set computed by
10932         the confluence function, and the gen-set too.
10933
10934 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10935
10936         PR rtl-optimization/26854
10937         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
10938         * df-problems.c (df_rd_add_problem): Fix comment.
10939         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
10940         df_md_simulate_artificial_defs_at_top,
10941         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
10942         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
10943         df_md_transfer_function, df_md_init, df_md_confluence_0,
10944         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
10945         problem_MD, df_md_add_problem): New.
10946         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
10947         df_md_get_bb_info): New.
10948         (DF_LAST_PROBLEM_PLUS1): Adjust.
10949
10950         * Makefile.in (fwprop.o): Include domwalk.h.
10951         * fwprop.c: Include domwalk.h.
10952         (reg_defs, reg_defs_stack): New.
10953         (bitmap_only_bit_between): Remove.
10954         (process_defs): New.
10955         (process_uses): Use reg_defs and local_md instead of
10956         bitmap_only_bit_between and local_rd.
10957         (single_def_use_enter_block): New, from build_single_def_use_links.
10958         (single_def_use_leave_block): New.
10959         (build_single_def_use_links): Remove code moved to
10960         single_def_use_enter_block, invoke domwalk.
10961         (use_killed_between): Adjust comment.
10962
10963 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10964
10965         * bitmap.h (bitmap_ior_and_into): New.
10966         * bitmap.c (bitmap_ior_and_into): New.
10967
10968 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
10969
10970         * domwalk.h (struct dom_walk_data): Remove all callbacks except
10971         before_dom_children_before_stmts and after_dom_children_after_stmts.
10972         Rename the two remaining callbacks to just before_dom_children and
10973         after_dom_children. Remove other GIMPLE statement walking bits.
10974         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
10975         * graphite.c: Do not include domwalk.h.
10976         * tree-into-ssa.c (interesting_blocks): New global.
10977         (struct mark_def_sites_global_data): Remove it and names_to_rename.
10978         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
10979         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
10980         now that they're not domwalk callbacks.
10981         (rewrite_initialize_block): Rename to...
10982         (rewrite_enter_block): ... this, place after called functions.  Test
10983         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
10984         (rewrite_finalize_block): Rename to...
10985         (rewrite_leave_block): ... this, place after called functions.
10986         (rewrite_update_init_block): Rename to...
10987         (rewrite_update_enter_block): ... this, place after called functions.
10988         Test interesting_blocks, call rewrite_update_stmt and
10989         rewrite_update_phi_arguments.
10990         (rewrite_update_fini_block): Rename to...
10991         (rewrite_leave_block): ... this, place after called functions.
10992         (rewrite_blocks): Remove last argument, simplify initialization of
10993         walk_data.
10994         (mark_def_sites_initialize_block): Rename to...
10995         (mark_def_sites_block): ... this, call mark_def_sites.
10996         (mark_def_sites_blocks): Remove argument, simplify initialization of
10997         walk_data.
10998         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
10999         (update_ssa): Likewise.
11000         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11001         callback.
11002         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11003         (dom_opt_initialize_block): Rename to...
11004         (dom_opt_enter_block): ... this, place after called functions.  Walk
11005         statements here, inline propagate_to_outgoing_edges.
11006         (dom_opt_finalize_block): Rename to...
11007         (dom_opt_leave_block): ... this, place after called functions.
11008         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11009         domwalk callback.
11010         (dse_enter_block, dse_record_phi): New.
11011         (dse_record_phis): Delete.
11012         (dse_finalize_block): Rename to...
11013         (dse_leave_block): ... this.
11014         (tree_ssa_dse): Simplify initialization of walk_data.
11015         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11016         Adjust initialization of walk_data.
11017         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11018         * tree-ssa-loop-phiopt.c (get_non_trapping):
11019         Adjust initialization of walk_data.
11020         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
11021         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
11022         it's not a domwalk callback.
11023         (uncprop_initialize_block): Rename to...
11024         (dse_enter_block): ... this, call uncprop_into_successor_phis.
11025         (dse_finalize_block): Rename to...
11026         (dse_leave_block): ... this.
11027         (tree_ssa_uncprop): Simplify initialization of walk_data.
11028         * Makefile.in: Adjust dependencies.
11029
11030 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
11031
11032         * arm.md (casesi): Fix test for Thumb1.
11033         (thumb1_casesi_internal_pic): Likewise.
11034         (thumb1_casesi_dispatch): Likewise.
11035
11036 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
11037
11038         * config/arm/arm-cores.def: Added core cortex-m0.
11039         * config/arm/arm-tune.md: Regenerated.
11040         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
11041
11042 2009-06-26  DJ Delorie  <dj@redhat.com>
11043
11044         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
11045
11046         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
11047         the scheduler doesn't tag jump insns.
11048
11049 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11050
11051         * c-decl.c (merge_decls): Re-indent.
11052
11053 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
11054
11055         PR c/39902
11056         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
11057         Special-case decimal float constants.
11058
11059 2009-06-26  Richard Henderson  <rth@redhat.com>
11060
11061         * function.h (struct function): Add cannot_be_copied_reason,
11062         and cannot_be_copied_set.
11063         * tree-inline.c (has_label_address_in_static_1): Rename from
11064         inline_forbidden_p_2; don't set inline_forbidden_reason here.
11065         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
11066         don't set inline_forbidden_reason.
11067         (copy_forbidden): New function, split out of inline_forbidden_p.
11068         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
11069         (inline_forbidden_p): Use copy_forbidden.
11070         (tree_versionable_function_p): Likewise.
11071         (inlinable_function_p): Merge into tree_inlinable_function_p.
11072         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
11073         * ipa-cp.c (ipcp_versionable_function_p): New function.
11074         (ipcp_cloning_candidate_p): Use it.
11075         (ipcp_node_modifiable_p): Likewise.
11076
11077 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
11078
11079         * builtins.c (expand_builtin_alloca): Handle builtin alloca
11080         that is marked not to be inlined. Remove flag_mudflap use.
11081         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
11082         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
11083
11084 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
11085
11086         PR bootstrap/40338
11087         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
11088         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
11089
11090 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
11091
11092         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
11093         shared libgcc.
11094         (__mingwthr_remove_key_dtor): Likewise.
11095
11096 2009-06-26  Richard Guenther  <rguenther@suse.de>
11097
11098         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
11099
11100 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11101
11102         PR middle-end/40525
11103         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
11104         try the non-cond_exec path also.
11105
11106 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11107
11108         PR target/40468
11109         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
11110         (output_cbranch): Use new functions.
11111         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
11112         Likewise.
11113
11114 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11115             Pat Haugen  <pthaugen@us.ibm.com>
11116             Revital Eres <ERES@il.ibm.com>
11117
11118         * config/rs6000/rs6000.c (print_operand): Correct lossage message
11119         for %c error.  Add %x support to print VSX registers as a unified
11120         register set, instead of separate float and altivec registers.
11121         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
11122         %y case, and add support for VSX pre-modify addresses.
11123         (output_toc): Add assert for CONST containing an integer constant
11124         in the PLUS case.
11125         (rs6000_adjust_cost): Add POWER7 support.
11126         (insn_must_be_first_in_group): Ditto.
11127         (insn_must_be_last_in_group): Ditto.
11128         (rs6000_emit_popcount): Ditto.
11129         (rs6000_vector_mode_supported_p): Ditto.
11130
11131         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
11132         Change some of the functions called by macros to being called
11133         through a pointer, so debug functions can be inserted if
11134         -mdebug=addr or -mdebug=cost.
11135         (rs6000_preferred_reload_class_ptr): Ditto.
11136         (rs6000_secondary_reload_class_ptr): Ditto.
11137         (rs6000_secondary_memory_needed_ptr): Ditto.
11138         (rs6000_cannot_change_mode_class_ptr): Ditto.
11139         (rs6000_secondary_reload_inner): Ditto.
11140         (rs6000_legitimize_reload_address): Ditto.
11141         (rs6000_legitimize_reload_address_ptr): Ditto.
11142         (rs6000_mode_dependent_address): Ditto.
11143         (rs6000_mode_dependent_address_ptr): Ditto.
11144
11145         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
11146         function to return true if the mode allows reg + integer
11147         addresses.
11148         (virtual_stack_registers_memory_p): New function to return true if
11149         the address refers to a virtual stack register.
11150         (rs6000_legitimate_offset_address_p): Move code to say whether a
11151         mode supports reg+int addressing to reg_offset_addressing_ok_p and
11152         call it.
11153         (rs6000_legitimate_address_p): Add checks for modes that only can
11154         do reg+reg addressing.  Start adding VSX support.
11155         (rs6000_legitimize_reload_address): Ditto.
11156         (rs6000_legitimize_address): Ditto.
11157         (rs6000_debug_legitimate_address_p): New debug functions for
11158         -mdebug=addr and -mdebug=cost.
11159         (rs6000_debug_rtx_costs): Ditto.
11160         (rs6000_debug_address_costs): Ditto.
11161         (rs6000_debug_adjust_cost): Ditto.
11162         (rs6000_debug_legitimize_address): Ditto.
11163         (rs6000_legitimize_reload_address_ptr): Point to call normal
11164         function or debug function.  Make functions called via pointer
11165         static.
11166         (rs6000_mode_dependent_address_ptr): Ditto.
11167         (rs6000_secondary_reload_class_ptr): Ditto.
11168         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
11169         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
11170         into a friendlier error.
11171         (rs6000_init_builtins): Add initial VSX support.
11172         (rs6000_adjust_cost): Fix some spacing issues.
11173
11174         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
11175         (REG_CLASS_NAMES): Ditto.
11176         (REG_CLASS_CONTENTS): Ditto.
11177         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
11178         pointer, to add -mdebug=addr support.
11179         (CANNOT_CHANGE_MODE_CLASS): Ditto.
11180         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
11181         -mdebug=addr support.
11182         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
11183         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
11184         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
11185
11186         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
11187         16-bit values.
11188         (bswapsi*): Set attribute types for load/store.  Add combiner
11189         patterns to eliminate zero extend on 64-bit.
11190         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
11191         stdbrx if the hardware supports those instructions.
11192
11193 2009-06-25  Ian Lance Taylor  <iant@google.com>
11194
11195         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
11196         (Link Options): Document -static-libstdc++.
11197
11198 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11199
11200         PR target/38731
11201         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
11202         DATA_ALIGNMENT instead.
11203
11204 2009-06-25  Richard Guenther  <rguenther@suse.de>
11205
11206         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
11207         indirect references against the callused/escaped solutions.
11208         (call_may_clobber_ref_p_1): Likewise.
11209
11210 2009-06-25  Martin Jambor  <mjambor@suse.cz>
11211
11212         PR tree-optimization/40493
11213         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
11214         (enum unscalarized_data_handling): New type.
11215         (handle_unscalarized_data_in_subtree): Return what has been done.
11216         (load_assign_lhs_subreplacements): Handle left flushes differently.
11217         (sra_modify_assign): Use unscalarized_data_handling, simplified
11218         condition determining whether to remove the statement.
11219
11220 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11221
11222         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
11223         excerpt - @ should be doubled for texinfo.
11224
11225 2009-06-24  Ian Lance Taylor  <iant@google.com>
11226
11227         * config/arc/arc.c: Include "df.h".
11228         (arc_attribute_table): Make static.  Move higher in file.
11229         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
11230         (output_shift): Initialize n later to avoid warning.
11231         * config/arm/arm.c (arm_attribute_table): Make static.  Move
11232         higher in file.
11233         * config/avr/avr.c (avr_attribute_table): Make static.  Move
11234         higher in file.
11235         (reg_class_tab): Change array type from int to enum reg_class.
11236         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
11237         LABEL_REF.
11238         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
11239         (lshrhi3_out): Likewise.
11240         (class_likely_spilled_p): Change return type to bool.
11241         (avr_rtx_costs): Use local code variable with enum type.
11242         * config/avr/avr.md (movmemhi): Use add_reg_note.
11243         (andhi3, andsi3): Don't use AS2 with "and".
11244         (iorhi3, iorsi3): Don't use AS2 with "or".
11245         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
11246         * config/crx/crx.c: Include "df.h".
11247         (crx_attribute_table): Make static.
11248         * config/m32r/m32r.c: Include "df.h".
11249         (m32r_attribute_table): Make static.  Move higher in file.
11250         (pop): Use add_reg_note.
11251         (block_move_call): Change 0 to LCT_NORMAL in function call.
11252         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
11253         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
11254         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
11255         declare, not just when TREE_CODE is defined.
11256         * config/m68hc11/m68hc11.c: Include "expr.h".
11257         (m68hc11_attribute_table): Make static.  Move higher in file.
11258         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
11259         function call.
11260         (m68hc11_register_indirect_p): Likewise.
11261         (m68hc11_function_arg_padding): Change return type to enum
11262         direction.
11263         (emit_move_after_reload): Use add_reg_note.
11264         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
11265         (m68hc11_split_logical): Likewise.
11266         (m68hc11_rtx_costs): Add local code_and outer_code variables with
11267         enum type.
11268         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
11269         to VOIDmode in function call.
11270         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
11271         tree is defined.
11272         (m68hc11_split_logical): Update declaration.
11273         (m68hc11_function_arg_padding): Update declaration.
11274         * config/mcore/mcore.c (regno_reg_class): Change form array of int
11275         to array of enum reg_class.
11276         (mcore_attribute_table): Make static.  Move higher in file.
11277         (mcore_rtx_costs): Add cast to enum type.
11278         * config/mcore/mcore.h (regno_reg_class): Update declaration.
11279         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
11280         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
11281         in file.
11282         * config/sh/predicates.md (trapping_target_operand): Rename and to
11283         and_expr.
11284         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
11285         higher in file.
11286         * config/spu/spu.c (spu_attribute_table): Make static.  Move
11287         higher in file.
11288         * config/v850/v850.c (v850_attribute_table): Make static.  Move
11289         higher in file.
11290         (v850_rtx_costs): Use local code with enum type.
11291         (expand_epilogue): Add cast.
11292         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
11293
11294 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
11295
11296         PR target/40515
11297         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
11298         -m2a-single-only and -m2a-nofpu.
11299         * config/sh/sh.opt: Document m2a generates FPU code.
11300
11301 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
11302
11303         * defaults.h (CAN_ELIMINATE): Provide default.
11304         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11305         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
11306         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
11307         * config/spu/spu.h (CAN_ELIMINATE): Delete.
11308         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
11309         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
11310         * config/cris/cris.h (CAN_ELIMINATE): Delete.
11311         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
11312         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
11313         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
11314
11315 2009-06-24  DJ Delorie  <dj@redhat.com>
11316
11317         * mep-ext-cop.cpu: Fix copyright notice.
11318         * mep-default: Fix copyright notice.
11319         * mep-core: Fix copyright notice.
11320         * mep: Fix copyright notice.
11321         * mep-ivc2: Fix copyright notice.
11322         * mep-c5: Fix copyright notice.
11323
11324 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
11325
11326         * doc/contrib.texi (Contributors):
11327
11328 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11329
11330         PR middle-end/40501
11331         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
11332         src and dst operands if necessary.
11333
11334 2009-06-23  DJ Delorie  <dj@redhat.com>
11335
11336         Add MeP port.
11337         * config.gcc: Add mep support.
11338         * recog.c: Resurrect validate_replace_rtx_subexp().
11339         * recog.h: Likewise.
11340         * config/mep/: Add new port:
11341         * config/mep/constraints.md: New file.
11342         * config/mep/default.h: New file.
11343         * config/mep/intrinsics.h: New file.
11344         * config/mep/intrinsics.md: New file.
11345         * config/mep/ivc2-template.h: New file.
11346         * config/mep/mep-c5.cpu: New file.
11347         * config/mep/mep-core.cpu: New file.
11348         * config/mep/mep-default.cpu: New file.
11349         * config/mep/mep-ext-cop.cpu: New file.
11350         * config/mep/mep-intrin.h: New file.
11351         * config/mep/mep-ivc2.cpu: New file.
11352         * config/mep/mep-lib1.asm: New file.
11353         * config/mep/mep-lib2.c: New file.
11354         * config/mep/mep-pragma.c: New file.
11355         * config/mep/mep-protos.h: New file.
11356         * config/mep/mep-tramp.c: New file.
11357         * config/mep/mep.c: New file.
11358         * config/mep/mep.cpu: New file.
11359         * config/mep/mep.h: New file.
11360         * config/mep/mep.md: New file.
11361         * config/mep/mep.opt: New file.
11362         * config/mep/predicates.md: New file.
11363         * config/mep/t-mep: New file.
11364
11365 2009-06-23  Ian Lance Taylor  <iant@google.com>
11366
11367         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
11368         from loose_warn into c_loose_warn and from strict_warn into
11369         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
11370         --enable-build-with-cxx.  Set and substitute
11371         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
11372         * Makefile.in (CXXFLAGS): New variable.
11373         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
11374         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
11375         the default is the same as $(STRICT_WARN).
11376         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
11377         (CXX): New variable.
11378         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
11379         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
11380         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
11381         (HOST_LIBS): New variable.
11382         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
11383         (ALL_CXXFLAGS): New variable.
11384         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
11385         * doc/install.texi (Configuration): Document
11386         --enable-build-with-cxx, --with-stage1-ldflags,
11387         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
11388         * configure: Rebuild.
11389
11390 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11391
11392         * config/arm/arm.c (arm_override_options): Fix braces and formatting
11393         from previous commit.
11394
11395 2009-06-23  Ian Lance Taylor  <iant@google.com>
11396
11397         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
11398
11399 2009-06-23  Ian Lance Taylor  <iant@google.com>
11400
11401         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
11402         with ATTRIBUTE_UNUSED.
11403
11404 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11405             Pat Haugen  <pthaugen@us.ibm.com>
11406             Revital Eres  <eres@il.ibm.com>
11407
11408         * config.in (HAVE_AS_POPCNTD): Add default definition.
11409         (HAVE_AS_LWSYNC): Ditto.
11410
11411         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
11412         release number.
11413         (gcc_cv_as_powerpc_cmpb): Ditto.
11414         (gcc_cv_as_powerpc_dfp): Ditto.
11415         (gcc_cv_as_powerpc_vsx): Ditto.
11416         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
11417         supporting the popcntd/lwsync instructions.
11418         (gcc_cv_as_powerpc_lwsync): Ditto.
11419         * configure: Regenerate.
11420
11421         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
11422         -mcpu=native and -mcpu=power7.
11423         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
11424
11425         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
11426         a variable instead of a mask to reduce the number of mask bits.
11427         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
11428         (-mbit-word): Ditto.
11429         (-mregnames): Ditto.
11430         * config/rs6000/rs6000.opt (-mupdate): Ditto.
11431         (-mfused-madd): Ditto.
11432
11433         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
11434         2.06 instructions.
11435         (-mvsx): New switch for VSX instructions.
11436         (-misel): Move from a variable to a mask to allow it to be set by
11437         -mcpu=.
11438
11439         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
11440         function declaration to an array declaration.
11441         (rs6000_hard_regno_nregs): New external array declaration.
11442
11443         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
11444         files included by rs6000.md.
11445
11446         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11447         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
11448
11449         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
11450         a target mask.
11451         (rs6000_debug_reg): New -mdebug= variables.
11452         (rs6000_debug_addr): Ditto.
11453         (rs6000_debug_cost): Ditto.
11454         (rs6000_pmode): New variable to hold Pmode.
11455         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
11456         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
11457         calculated at compiler start.
11458         (rs6000_hard_regno_nregs): Change function to an array which holds
11459         HARD_REGNO_NREGS calculated at compiler start.
11460         (rs6000_explicit_options): Delete isel field.
11461         (rs6000_vector_unit): New array to hold which vector unit
11462         supports arithmetic options for a given type.
11463         (rs6000_vector_mem): New array to hold which vector unit supports
11464         memory reference operations for a given type.
11465         (rs6000_vector_align): New array to given the alignment of each
11466         vector type.
11467         (power7_cost): New basic costs for power7.
11468         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
11469         (rs6000_hard_regno_nregs_internal): New function, moved from
11470         HARD_REGNO_NREGS, to calculate the number of registers each hard
11471         register takes for each type.
11472         (rs6000_debug_reg_print): New function for -mdebug=reg support.
11473         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
11474         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
11475         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
11476         unit information here so it is calculated once at compiler startup
11477         time.
11478         (rs6000_override_options): Make -misel a target mask.  Add more
11479         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
11480         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
11481         -mdebug=cost.
11482         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
11483         (rs6000_handle_option): Move -misel from variable to target mask.
11484         (rs6000_builtin_mask_for_load): Add VSX support.
11485         (rs6000_conditional_register_usage): Ditto.
11486         (USE_ALTIVEC_FOR_ARG_P): Ditto.
11487         (function_arg_boundary): Ditto.
11488         (rs6000_expand_builtin): Ditto.
11489         (def_builtin): Make abort message a little friendlier.
11490         (rs6000_emit_int_cmove): Add support for 64-bit isel.
11491
11492         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
11493         assembler support the popcntd instruction instead of a vsx
11494         instruction to enable power7 support.
11495         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
11496         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
11497         option to the assembler if -mcpu=native.
11498         (ASM_CPU_NATIVE_SPEC): Ditto.
11499         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
11500         ISA 2.06 features.
11501         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
11502         the lwsync instruction.
11503         (enum processor_type): Add PROCESSOR_POWER7.
11504         (rs6000_debug_reg): New -mdebug= options.
11505         (rs6000_debug_addr): Ditto.
11506         (rs6000_debug_cost): Ditto.
11507         (rs6000_isel): Delete.
11508         (enum rs6000_vector): New enum to say what vector unit we have.
11509         (VECTOR_UNIT_*): New macros to say which vector unit has
11510         arithmetic operations for a given type.
11511         (VECTOR_MEM_*): New macros to say which vector unit has memory
11512         operations for a given type.
11513         (TARGET_LDBRX): Whether the machine supports the ldbrx
11514         instruction.
11515         (TARGET_ISEL): Delete, -misel moved to be a mask.
11516         (TARGET_ISEL64): New macro for 64-bit isel support.
11517         (UNITS_PER_VSX_WORD): New macro.
11518         (POINTER_SIZE): Move to be an external variable, rather than
11519         calculating whether we are generating 32 ot 64-bit code.
11520         (Pmode): Ditto.
11521         (STACK_BOUNDARY): Add VSX support.
11522         (LOCAL_ALIGNMENT): Ditto.
11523         (SLOW_UNALIGNED_ACCESS): Ditto.
11524         (VSX_REGNO_P): New macro for VSX support.
11525         (VFLOAT_REGNO_P): Ditto.
11526         (VINT_REGNO_P): Ditto.
11527         (VLOGICAL_REGNO_P): Ditto.
11528         (VSX_VECTOR_MODE): Ditto.
11529         (VSX_SCALAR_MODE): Ditto.
11530         (VSX_MODE): Ditto.
11531         (VSX_MOVE_MODE): Ditto.
11532         (VSX_REG_CLASS_P): Ditto.
11533         (HARD_REGNO_NREGS): Instead of calling a function, use an array
11534         lookup.
11535         (UNITS_PER_SIMD_WORD): Add VSX support.
11536         (MODES_TIEABLE_P): Ditto.
11537         (STARTING_FRAME_OFFSET): Ditto.
11538         (STACK_DYNAMIC_OFFSET): Ditto.
11539         (EPILOGUE_USES): Ditto.
11540         (REGNO_REG_CLASS): Move to array lookup.
11541         (CLASS_MAX_NREGS): Ditto.
11542         (rs6000_vector_reg_class): Add declaration.
11543         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
11544         overlap with the floating point and Altivec registers.
11545
11546         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
11547
11548         * config/rs6000/driver-rs6000.c (asm_names): New static array to
11549         give the appropriate asm switches if -mcpu=native.
11550         (host_detect_local_cpu): Add support for "asm".
11551         (host_detect_local_cpu): Follow GNU code guidelines for name.
11552
11553         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
11554         -mbit-word to a variable instead of being a target mask.
11555
11556         * config/rs6000/sync.md (lwsync): If the assembler supports it,
11557         emit the lwsync instruction instead of emitting the instruction as
11558         an integer constant.
11559
11560         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
11561         fixuns_trundfsi2, move expander into rs6000.md.
11562
11563         * config/rs6000/rs6000.md (cpu): Add power7.
11564         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
11565         (logical predicate patterns): Change the single instruction
11566         primitives that set CR0 to be fast_compare instead of compare.
11567         (norsi*): Ditto.
11568         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
11569         (popcntddi2): Ditto.
11570         (popcount<mode>): Ditto.
11571         (floating multiply/add insns): Name the floating point
11572         multiply/add insns.
11573         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
11574         (isel_unsigned_<mode>): Ditto.
11575         (fixuns_trundfsi2): Move expander here from spe.md.
11576         (smindi3): Define if we have -misel on 64-bit systems.
11577         (smaxdi3): Ditto.
11578         (umindi3): Ditto.
11579         (umaxdi3): Ditto.
11580
11581 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
11582
11583         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
11584         extra_objs.
11585         * config/avr/avr.c (avr_current_device): New variable.
11586         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
11587         (avr_arch, mcu_type_s): Move to avr.h.
11588         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
11589         default_data_section_start fields.
11590         (avr_arch): Moved from avr.c.
11591         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
11592         library_name fields.
11593         (avr_current_device, avr_mcu_types, avr_arch_types,
11594         avr_device_to_arch, avr_device_to_data_start,
11595         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
11596         (EXTRA_SPEC_FUNCTIONS): Define.
11597         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
11598         options mapping. Use device_to_arch and device_to_data_start insted.
11599         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
11600         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
11601         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
11602         * config/avr/driver-avr.c: New file.
11603         * config/avr/avr-devices.c: New file.
11604
11605 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
11606
11607         * var-tracking.c (unshare_variable): Force initialized to
11608         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
11609         (set_variable_part): Likewise.
11610         (struct variable_union_info): Remove pos_src field.
11611         (vui_vec, vui_allocated): New variables.
11612         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
11613         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
11614         == 1 use a simpler sorting algorithm.  Compute pos field right
11615         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
11616         Avoid quadratic comparison if !flag_var_tracking_uninit.
11617         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
11618         unshare_variable unconditionally.
11619         (dataflow_set_different_2): Removed.
11620         (dataflow_set_different): Don't traverse second hash table.
11621         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
11622         unconditionally to var_reg_set or var_mem_set.
11623         (emit_notes_in_bb): Likewise.
11624         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
11625         unshare_variable.
11626         (emit_note_insn_var_location): Don't set initialized to
11627         VAR_INIT_STATUS_INITIALIZED early.
11628         (vt_finalize): Free vui_vec if needed, clear vui_vec and
11629         vui_allocated.
11630         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
11631
11632         * tree-object-size.c (addr_object_size): Instead of checking
11633         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
11634         are no FIELD_DECLs following it.
11635
11636 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
11637
11638         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
11639         order to match bswaps with signed source operands.
11640
11641 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11642
11643         * sdbout.c (sdbout_one_type): Fix braces in switch.
11644
11645 2009-06-23  Richard Guenther  <rguenther@suse.de>
11646
11647         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
11648         member.
11649         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
11650         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
11651         var_callused, callused_tree, var_storedanything, storedanything_tree,
11652         var_integer, integer_tree): Remove global variables.
11653         (new_var_info): Do not pass new id, append the new var to the
11654         global variable vector.
11655         (do_ds_constraint): Use is_global_var member of the variable-info.
11656         (new_scalar_tmp_constraint_exp): Adjust.
11657         (create_function_info_for): Likewise.
11658         (create_variable_info_for): Likewise.
11659         (find_what_var_points_to): Remove dead code.
11660         (init_base_vars): Simplify.
11661         (compute_points_to_sets): Adjust.
11662
11663 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
11664
11665         * combine.c (try_combine): Dump information about the insns we're
11666         combining.
11667
11668 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
11669
11670         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
11671         check when calling force_to_mode on TRUNCATE's operand.
11672
11673 2009-06-22  Ian Lance Taylor  <iant@google.com>
11674
11675         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
11676
11677 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
11678
11679         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
11680
11681 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11682
11683         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
11684         override library linkage flags such as -static-libgcc or
11685         -shared-libgcc.
11686
11687 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
11688
11689         * config/m68k/m68k-devices.def: Add line for MCF5221x.
11690
11691 2009-06-22  Ian Lance Taylor  <iant@google.com>
11692
11693         * config/linux.opt: Put mglibc ahead of muclibc.
11694
11695         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
11696         for duplicate decls.
11697
11698 2009-06-22  Matthias Klose  <doko@ubuntu.com>
11699
11700         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
11701
11702 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
11703
11704         PR objc/28050
11705         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
11706         instead of NULL if a parser error occurs.
11707
11708 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11709
11710         * dwarf2out.c (dwarf2_debug_hooks): Initialize
11711         non-DWARF2_DEBUGGING_INFO version.
11712
11713 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
11714
11715         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
11716         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
11717
11718         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
11719         (LIBGCC2_TF_CEXT): Define.
11720         (TF_SIZE): Define.
11721
11722 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11723
11724         PR target/40463
11725         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
11726
11727 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11728
11729         * config/arm/arm.c (arm_override_options): Disable
11730         -mcaller-super-interworking and -mcallee-super-interworking.
11731         * doc/invoke.texi (ARM Options): Document this.
11732
11733 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
11734
11735         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
11736         * config/arm/constraints.md (j): New constraint for movw operands.
11737         (N): Remove thumb2 meaning.
11738         * config/arm/arm.md (*arm_movw): Delete.
11739         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
11740         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
11741         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
11742
11743 2009-06-22  Martin Jambor  <mjambor@suse.cz>
11744
11745         PR tree-optimization/40492
11746         * tree-sra.c (sra_modify_assign): Pass zero offsets to
11747         build_ref_for_offset.
11748
11749 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
11750
11751         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
11752         JUMP_TABLE_DATA_P predicates where applicable.
11753         * auto-inc-dec.c: Ditto.
11754         * builtins.c: Ditto.
11755         * caller-save.c: Ditto.
11756         * calls.c: Ditto.
11757         * cfgcleanup.c: Ditto.
11758         * cfglayout.c: Ditto.
11759         * cfgrtl.c: Ditto.
11760         * combine.c: Ditto.
11761         * combine-stack-adj.c: Ditto.
11762         * cse.c: Ditto.
11763         * cselib.c: Ditto.
11764         * dbxout.c: Ditto.
11765         * df-scan.c: Ditto.
11766         * dse.c: Ditto.
11767         * dwarf2asm.c: Ditto.
11768         * dwarf2out.c: Ditto.
11769         * emit-rtl.c: Ditto.
11770         * except.c: Ditto.
11771         * explow.c: Ditto.
11772         * expmed.c: Ditto.
11773         * expr.c: Ditto.
11774         * final.c: Ditto.
11775         * function.c: Ditto.
11776         * fwprop.c: Ditto.
11777         * gcse.c: Ditto.
11778         * genpreds.c: Ditto.
11779         * genrecog.c: Ditto.
11780         * ifcvt.c: Ditto.
11781         * ira-costs.c: Ditto.
11782         * ira-lives.c: Ditto.
11783         * jump.c: Ditto.
11784         * loop-iv.c: Ditto.
11785         * lower-subreg.c: Ditto.
11786         * modulo-sched.c: Ditto.
11787         * optabs.c: Ditto.
11788         * postreload.c: Ditto.
11789         * print-rtl.c: Ditto.
11790         * recog.c: Ditto.
11791         * reginfo.c: Ditto.
11792         * regmove.c: Ditto.
11793         * reload1.c: Ditto.
11794         * reload.c: Ditto.
11795         * reorg.c: Ditto.
11796         * rtlanal.c: Ditto.
11797         * rtl.c: Ditto.
11798         * sched-vis.c: Ditto.
11799         * sdbout.c: Ditto.
11800         * sel-sched-ir.c: Ditto.
11801         * simplify-rtx.c: Ditto.
11802         * targhooks.c: Ditto.
11803         * var-tracking.c: Ditto.
11804         * vmsdbgout.c: Ditto.
11805
11806 2009-06-22  Matthias Klose  <doko@ubuntu.com>
11807
11808         * Makefile.in (install-plugin): Always use DESTDIR.
11809
11810 2009-06-22  Olivier Hainque  <hainque@adacore.com>
11811
11812         * config/pa/pa.c (output_call): Don't optimize post call jumps
11813         into return address adjustments if the call may throw.
11814
11815 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
11816
11817         * arm.c (thumb1_output_casesi): New function.
11818         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
11819         optimizing for size or PIC.
11820         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
11821         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
11822         (casesi): Handle Thumb-1 when optimizing for size or PIC.
11823         (thumb1_casesi_internal_pic): New expand rule.
11824         (thumb1_casesi_dispatch): New pattern.
11825         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
11826         thumb-1 mode.
11827         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
11828         in the text seciton when PIC or optimizing for size.
11829         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
11830         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
11831         preservation properties of code.
11832         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
11833         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
11834         (__gnu_thumb1_case_si): New function.
11835         * t-arm (LIB1ASMSRC): Define here.
11836         (LIB1ASMFUNCS): Add some common functions.
11837         * t-arm-elf (LIB1ASMSRC): Delete.
11838         (LIB1ASMFUNCS): Append to existing set.
11839         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11840         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11841         * t-symbian (LIB1ASMFUNCS): Likewise.
11842         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11843         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
11844
11845 2009-06-21  Richard Guenther  <rguenther@suse.de>
11846
11847         PR tree-optimization/38729
11848         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
11849         to loops with a single exit if -fno-expensive-optimizations.
11850
11851 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
11852
11853         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
11854         (dataflow_set): Change vars type from htab_t to shared_hash.
11855         (shared_hash_pool, empty_shared_hash): New variables.
11856         (vars_clear): Removed.
11857         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
11858         shared_hash_find_slot_unshare, shared_hash_find_slot,
11859         shared_hash_find_slot_noinsert, shared_hash_find): New
11860         static inlines.
11861         (shared_hash_unshare, shared_hash_destroy): New functions.
11862         (unshare_variable): Unshare set->vars if shared, use
11863         shared_hash_htab.
11864         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
11865         (get_init_value, find_src_set_src, dump_dataflow_set,
11866         clobber_variable_part, emit_notes_for_differences): Use
11867         shared_hash_htab.
11868         (dataflow_set_init): Remove second argument, set vars to
11869         empty_shared_hash instead of creating a new htab.
11870         (dataflow_set_clear): Call shared_hash_destroy and set vars
11871         to empty_shared_hash instead of calling vars_clear.
11872         (dataflow_set_copy): Don't call vars_copy, instead just share
11873         the src htab with dst.
11874         (variable_union): Use shared_hash_*, use initially NO_INSERT
11875         lookup if set->vars is shared.  Don't keep slot cleared before
11876         calling unshare_variable.  Unshare set->vars if needed.
11877         Even ->refcount == 1 vars must be unshared if set->vars is shared
11878         and var needs to be modified.
11879         (variable_canonicalize): New function.
11880         (dataflow_set_union): If dst->vars is empty, just share src->vars
11881         with dst->vars and traverse with variable_canonicalize to canonicalize
11882         and unshare what is needed.
11883         (dataflow_set_different): If old_set and new_set use the same shared
11884         htab, they aren't different.  If number of htab elements is different,
11885         htabs are different.  Use shared_hash_*.
11886         (dataflow_set_destroy): Call shared_hash_destroy instead of
11887         htab_delete.
11888         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
11889         second argument to dataflow_set_init.
11890         (vt_initialize): Likewise.  Initialize shared_hash_pool and
11891         empty_shared_hash, move bb in/out initialization afterwards.
11892         Use variable_htab_free instead of NULL as changed_variables del hook.
11893         (variable_was_changed): Change type of second argument to pointer to
11894         dataflow_set.  When inserting var into changed_variables, bump
11895         refcount.  Unshare set->vars if set is shared htab and slot needs to
11896         be cleared.
11897         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
11898         lookup if set->vars is shared.  Unshare set->vars if needed.
11899         Even ->refcount == 1 vars must be unshared if set->vars is shared
11900         and var needs to be modified.  Adjust variable_was_changed caller.
11901         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
11902         vars must be unshared if set->vars is shared and var needs to be
11903         modified.  Adjust variable_was_changed caller.
11904         (emit_note_insn_var_location): Don't pool_free var.
11905         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
11906         instead of 1.
11907         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
11908         free_alloc_pool on shared_hash_pool.
11909
11910 2009-06-20  Anthony Green  <green@moxielogic.com>
11911
11912         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
11913         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
11914
11915 2009-06-20  Richard Guenther  <rguenther@suse.de>
11916
11917         * tree-ssa-structalias.c (find_func_aliases): For memset use
11918         a constraint from NULL if we memset to zero.
11919         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
11920         we explicitly handle that do not read from memory.
11921         (call_may_clobber_ref_p_1): Properly handle builtins that may
11922         set errno.
11923
11924 2009-06-20  Richard Guenther  <rguenther@suse.de>
11925
11926         PR tree-optimization/40495
11927         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
11928         (new_scalar_tmp_constraint_exp): New function.
11929         (process_constraint): Do not create temporary decls.
11930         (process_all_all_constraints): Likewise.
11931         (handle_const_call): Likewise.
11932         (create_function_info_for): Do not set decl.
11933
11934 2009-06-19  Ian Lance Taylor  <iant@google.com>
11935
11936         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
11937         (rs6000_attribute_table): Make static; move before use.
11938
11939 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
11940
11941         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
11942         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
11943         Propagate the TREE_READONLY flag without overwriting it.
11944         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
11945         Propagate the TREE_READONLY flag onto the result.
11946         (process_call_operands): Move around.  Use correct constant value.
11947
11948 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11949
11950         PR target/40482
11951         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
11952         * config/arm/arm.md: Likewise.
11953
11954 2009-06-19  Ian Lance Taylor  <iant@google.com>
11955
11956         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
11957         to GIMPLE_ERROR_MARK.
11958
11959         * c-typeck.c (build_conditional_expr): Add op1_original_type and
11960         op2_original_type parameters.  Warn about using different enum types.
11961         * c-parser.c (c_parser_conditional_expression): Pass original
11962         types to build_conditional_expr.
11963         * c-tree.h (build_conditional_expr): Update declaration.
11964
11965 2009-06-19  Ian Lance Taylor  <iant@google.com>
11966
11967         * config/i386/i386.c (ix86_function_specific_save): Test that
11968         fields match values, rather than testing the values are in a
11969         certain range.
11970
11971 2009-06-19  Richard Guenther  <rguenther@suse.de>
11972
11973         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11974         ADDR_EXPR pointers.
11975         (ptr_derefs_may_alias_p): Likewise.
11976         (ptr_deref_may_alias_ref_p_1): New function.
11977         (ptr_deref_may_alias_ref_p): Likewise.
11978         (ref_maybe_used_by_call_p_1): Handle builtins that are not
11979         covered by looking at the ESCAPED solution.
11980         (call_may_clobber_ref_p_1): Likewise.
11981         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
11982         Handle NULL_TREE offset.  Do not produce redundant constraints.
11983         (process_all_all_constraints): New helper function.
11984         (do_structure_copy): Use it.
11985         (handle_lhs_call): Likewise.
11986         (find_func_aliases): Handle some builtins with pointer arguments
11987         and/or return values explicitly.
11988
11989 2009-06-19  Ian Lance Taylor  <iant@google.com>
11990
11991         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
11992
11993 2009-06-19  Ian Lance Taylor  <iant@google.com>
11994
11995         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
11996
11997 2009-06-19  Ian Lance Taylor  <iant@google.com>
11998
11999         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12000         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12001         version.
12002
12003         * c-decl.c (finish_decl): If -Wc++-compat, warn about
12004         uninitialized const.
12005
12006 2009-06-19  Ian Lance Taylor  <iant@google.com>
12007
12008         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
12009         all uses.
12010
12011         * c-decl.c (in_struct, struct_types): Remove.
12012         (struct c_binding): Add in_struct field.
12013         (c_binding_ptr): Define type, along with VEC.
12014         (struct c_struct_parse_info): Define.
12015         (struct_parse_info): New static variable.
12016         (bind): Initialize in_struct field.
12017         (start_struct): Remove enclosing_in_struct and
12018         enclosing_struct_types parameters.  Add
12019         enclosing_struct_parse_info parameter.  Change all callers.  Set
12020         struct_parse_info rather than in_struct and struct_types.
12021         (grokfield): If -Wc++-compat and there is a symbol binding for the
12022         field name, set the in_struct flag and push it on the
12023         struct_parse_info->fields vector.
12024         (warn_cxx_compat_finish_struct): New static function.
12025         (finish_struct): Remove enclosing_in_struct and
12026         enclosing_struct_types parameters.  Add
12027         enclosing_struct_parse_info parameter.  Change all callers.  Don't
12028         set C_TYPE_DEFINED_IN_STRUCT here.  Call
12029         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
12030         parameter.  Only push on struct_types if warn_cxx_compat.
12031         (finish_enum): Only push on struct_types if warn_cxx_compat.
12032         (declspecs_add_type): Add loc parameter.  Change all callers.
12033         Change all error calls to error_at.  Pass loc, not input_location,
12034         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
12035         defined in a struct.  If -Wc++-compat and parsing a struct, record
12036         that a typedef name was used.
12037         * c-parser.c (c_parser_declspecs): Get location to pass to
12038         declspecs_add_type.
12039         (c_parser_struct_or_union_specifier): Update calls to start_struct
12040         and finish_struct.
12041         * c-tree.h (struct c_struct_parse_info): Declare.
12042         (finish_struct, start_struct): Update declarations.
12043         (declspecs_add_type): Update declaration.
12044
12045 2009-06-19  Ian Lance Taylor  <iant@google.com>
12046
12047         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
12048         variable with an anonymous type.
12049
12050 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12051
12052         * see.c: Remove for real.
12053
12054 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12055
12056         * optabs.h (enum optab_index): Add new OTI_significand.
12057         (significand_optab): Define corresponding macro.
12058         * optabs.c (init_optabs): Initialize significand_optab.
12059         * genopinit.c (optabs): Implement significand_optab using
12060         significand?f2 patterns.
12061         * builtins.c (expand_builtin_mathfn): Handle
12062         BUILT_IN_SIGNIFICAND{,F,L}.
12063         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
12064         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12065
12066         * config/i386/i386.md (significandxf2, significand<mode>2): New
12067         expanders to implement significandf, significand and significandl
12068         built-ins as inline x87 intrinsics.
12069
12070 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
12071
12072         * config/avr/avr.c (avr_override_options): Remove setting value of
12073         PARAM_INLINE_CALL_COST.
12074
12075 2009-06-18  Richard Henderson  <rth@redhat.com>
12076
12077         PR 40488
12078         * tree-pass.h (TDF_ASMNAME): New.
12079         * tree-dump.c (dump_options): Add asmname.
12080         * doc/invoke.texi: Document it.
12081
12082         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
12083         (dump_decl_name): ...here.
12084         (dump_function_name): New flags arg; mind TDF_ASMNAME.
12085         (dump_generic_node): Update dump_function_name calls.
12086         (print_call_name): New flags arg; update all dump calls.
12087         * diagnostic.h (print_call_name): Update.
12088         * gimple-pretty-print.c (dump_gimple_call): Update.
12089
12090 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12091
12092         PR target/40470
12093         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
12094
12095 2009-06-18  Diego Novillo  <dnovillo@google.com>
12096
12097         * doc/plugins.texi: Document plugin_is_GPL_compatible.
12098         * plugin.c (str_license): Declare.
12099         (try_init_one_plugin): Assert that the symbol
12100         'plugin_is_GPL_compatible' exists.
12101
12102 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
12103
12104         * see.c: Remove.
12105         * Makefile.in (OBJS-common): Remove see.o.
12106         (see.o): Remove.
12107         * common.opt (fsee): Mark as preserved for backward compatibility.
12108         * opts.c (common_handle_option): Add OPT_fsee to the backward
12109         compatibility section.
12110         * passes.c (init_optimization_passes, pass_see): Remove pass.
12111         * timevar.def (TV_SEE): Remove.
12112         * tree-pass.h (pass_see): Remove declaration.
12113         * doc/invoke.texi (-fsee): Remove documentation.
12114
12115 2009-06-18  Martin Jambor  <mjambor@suse.cz>
12116
12117         * tree-sra.c: Include statistics.h
12118         (sra_stats): New variable.
12119         (sra_initialize): Clear sra_stats.
12120         (create_access_replacement): Increment sra_stats.replacements.
12121         (get_access_replacement): Do not return twice.
12122         (analyze_all_variable_accesses): Increment statistics counter by the
12123         number of scalarized aggregates.
12124         (generate_subtree_copies): Increment sra_stats.subtree_copies.
12125         (sra_modify_expr): Increment sra_stats.exprs.
12126         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
12127         (sra_modify_assign): Increment sra_stats.exprs,
12128         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
12129         (perform_intra_sra): Update statistics counters.
12130         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
12131
12132 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12133
12134         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
12135         (arm_scalar_mode_supported_p): New function.
12136
12137 2009-06-18  Paul Brook  <paul@codesourcery.com>
12138             Sandra Loosemore  <sandra@codesourcery.com>
12139
12140         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
12141         (__extendhfsf2, __truncsfhf2): Define.
12142         * config/arm/fp16.c: New file.
12143         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12144         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
12145
12146 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12147
12148         * doc/extend.texi (Half-Precision): New section.
12149         * doc/invoke.texi (Option Summary): List -mfp16-format.
12150         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
12151         * config/arm/arm.opt (mfp16-format=): New.
12152         * config/arm/arm.c: Include intl.h.
12153         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
12154         (TARGET_INVALID_RETURN_TYPE): Redefine.
12155         (TARGET_PROMOTED_TYPE): Redefine.
12156         (TARGET_CONVERT_TO_TYPE): Redefine.
12157         (arm_fp16_format): Define.
12158         (all_fpus): Add entry for neon-fp16.
12159         (fp_model_for_fpu): Likewise.
12160         (struct fp16_format): Declare.
12161         (all_fp16_formats): Define.
12162         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
12163         functions.
12164         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
12165         and no ldrh.
12166         (arm_legitimate_index_p): Treat HFmode like HImode.
12167         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
12168         (coproc_secondary_reload_class): Special-case HFmode.
12169         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
12170         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
12171         (arm_init_fp16_builtins): New.
12172         (arm_init_builtins): Call it.
12173         (arm_invalid_parameter_type): New.
12174         (arm_invalid_return_type): New.
12175         (arm_promoted_type): New.
12176         (arm_convert_to_type).
12177         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
12178         format.
12179         (arm_emit_fp16_const): New function.
12180         (arm_mangle_type): Mangle __fp16 as "Dh".
12181         * config/arm/arm.h (TARGET_VFPD32): Make it know about
12182         FPUTYPE_NEON_FP16.
12183         (TARGET_NEON_FP16): New.
12184         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
12185         (enum fputype): Add FPUTYPE_NEON_FP16.
12186         (enum arm_fp16_format_type): Declare.
12187         (arm_fp16_format): Declare.
12188         (LARGEST_EXPONENT_IS_NORMAL): Define.
12189         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
12190         * config/arm/arm-modes.def (HFmode): Define.
12191         * config/arm/vfp.md: (*movhf_vfp): New.
12192         (extendhfsf2): New.
12193         (truncsfhf2): New.
12194         * config/arm/arm.md: (fpu): Add neon_fp16.
12195         (floatsihf2, floatdihf2): New.
12196         (fix_trunchfsi2, fix_trunchfdi2): New.
12197         (truncdfhf2): New.
12198         (extendhfdf2): New.
12199         (movhf): New.
12200         (*arm32_movhf): New.
12201         (*thumb1_movhf): New.
12202         (consttable_2): Add check for HFmode constants.
12203         (consttable_4): Handle HFmode constants.
12204
12205 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
12206
12207         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
12208
12209 2009-06-17  Olivier Hainque  <hainque@adacore.com>
12210
12211         * collect2.c (main): Use CONST_CAST2 to perform char ** to
12212         const char ** conversion in AIX specific section.
12213
12214 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
12215
12216         * config/i386/i386.c (ix86_special_builtin_type): Remove
12217         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
12218         (bdesc_special_args): Updated.
12219         (ix86_init_mmx_sse_builtins): Likewise.
12220         (ix86_expand_special_args_builtin): Likewise.
12221
12222 2009-06-17  Richard Henderson  <rth@redhat.com>
12223
12224         * tree-pretty-print.c (maybe_dump_asm_name): New.
12225         (dump_decl_name): Use it.
12226         (PRINT_FUNCTION_NAME): Merge into...
12227         (dump_function_name): ... here.  Use maybe_dump_asm_name.
12228
12229 2009-06-17  Cary Coutant  <ccoutant@google.com>
12230
12231         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
12232         Change caller.
12233         * debug.c (struct gcc_debug_hooks): Change placeholder for
12234         source_line hook.
12235         (debug_nothing_int_charstar_int): Replaced by...
12236         (debug_nothing_int_charstar_int_bool): ...this.
12237         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
12238         source_line prototype.
12239         (debug_nothing_int_charstar_int): Replaced by...
12240         (debug_nothing_int_charstar_int_bool): ...this.
12241         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
12242         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
12243         Output is_stmt operand when necessary.
12244         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
12245         (notice_source_line): Add is_stmt parameter.
12246         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
12247         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
12248         Change callers.
12249         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
12250         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
12251
12252 2009-06-17  Ian Lance Taylor  <iant@google.com>
12253
12254         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
12255         Change all uses.
12256         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
12257         call uses.
12258
12259 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
12260
12261         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
12262         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
12263         tree_strip_sign_nop_conversions and
12264         tree_ssa_strip_useless_type_conversions rather than stripping
12265         the operations here.
12266         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
12267         Declare them.
12268         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
12269         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
12270         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
12271         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
12272         functions.
12273
12274 2009-06-17  Michael Eager  <eager@eagercon.com>
12275
12276         * config/rs6000/constraints.md (register_constraint "d"): New.
12277         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
12278         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12279         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
12280         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
12281         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12282         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
12283         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
12284         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
12285         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
12286         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
12287         __fctiwz): Same.
12288         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
12289         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
12290         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
12291         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
12292         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
12293         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
12294         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
12295         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
12296         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
12297         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
12298         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
12299         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
12300         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
12301         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
12302
12303 2009-06-16  Ian Lance Taylor  <iant@google.com>
12304
12305         * profile.c (total_num_never_executed): Don't define.
12306         (compute_branch_probabilities): Don't count or print
12307         num_never_executed.
12308         (init_branch_prob): Don't set total_num_never_executed.
12309         (end_branch_prob): Don't print total_num_never_executed.
12310
12311 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
12312
12313         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
12314
12315 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
12316
12317         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
12318         (nabstd2_fpr): Same.
12319
12320 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
12321
12322         * expr.c (expand_assignment): Change complex type check.
12323
12324 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
12325
12326         * doc/plugins.texi (Building GCC plugins): Added new section.
12327
12328 2009-06-17  Ian Lance Taylor  <iant@google.com>
12329
12330         * c-pch.c (get_ident): Don't set size of templ array.
12331         (pch_init): Don't set size of partial_pch array.
12332
12333         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
12334         string constant to intialize an array whose size is the length of
12335         the string.
12336
12337 2009-06-17  Richard Guenther  <rguenther@suse.de>
12338
12339         PR tree-optimization/40389
12340         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
12341         to addressable types.
12342         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
12343
12344 2009-06-17  Richard Guenther  <rguenther@suse.de>
12345
12346         PR middle-end/40460
12347         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
12348         if there is no evolution of left in the loop bail out.
12349         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
12350         chrec_fold_multiply.
12351
12352 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
12353             Janis Johnson  <janis187@us.ibm.com>
12354
12355         PR target/39254
12356         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
12357         for the symbol ref of a constant that is the source of a move
12358         - nor for any other not-obvious-label-ref constants.
12359
12360 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
12361
12362         * plugin.c (position_pass): Skip newly inserted pass during list
12363         traversal to avoid repeated insertion.
12364
12365 2009-06-16  Ian Lance Taylor  <iant@google.com>
12366
12367         * vec.h (VEC_stack_alloc): Define different version if
12368         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
12369         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
12370         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
12371         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12372
12373 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
12374
12375         * config.gcc (extra_headers): Add ia32intrin.h for x86.
12376
12377         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
12378         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
12379         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
12380         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
12381         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
12382         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12383         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12384         (bdesc_special_args): Add __builtin_ia32_rdtsc and
12385         __builtin_ia32_rdtscp.
12386         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
12387         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
12388         and __builtin_ia32_rorhi.
12389         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
12390         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12391         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12392         (ix86_expand_args_builtin): Likewise.
12393         (ix86_expand_special_args_builtin): Likewise.
12394
12395         * config/i386/i386.md (UNSPECV_RDTSCP): New.
12396         (UNSPECV_RDTSC): Likewise.
12397         (UNSPECV_RDPMC): Likewise.
12398         (*bsr): Renamed to ...
12399         (bsr): This
12400         (*bsr_rex64): Renamed to ...
12401         (bsr_rex64): This.
12402         (rdpmc): New.
12403         (*rdpmc): Likewise.
12404         (*rdpmc_rex64): Likewise.
12405         (rdtsc): Likewise.
12406         (*rdtsc): Likewise.
12407         (*rdtsc_rex64): Likewise.
12408         (rdtscp): Likewise.
12409         (*rdtscp): Likewise.
12410         (*rdtscp_rex64): Likewise.
12411
12412         * config/i386/ia32intrin.h: New.
12413
12414         * config/i386/x86intrin.h: Include <ia32intrin.h>.
12415
12416 2009-06-16  Ian Lance Taylor  <iant@google.com>
12417
12418         * ira-build.c (copy_info_to_removed_store_destinations):
12419         Initialize parent_a.
12420
12421 2009-06-16  Ian Lance Taylor  <iant@google.com>
12422
12423         * c-decl.c (grokdeclarator): Change size_varies to bool.
12424
12425 2009-06-16  Ian Lance Taylor  <iant@google.com>
12426
12427         * sel-sched.c: Make forward declarations of move_op_hooks and
12428         fur_hooks explicitly extern.
12429
12430 2009-06-16  Ian Lance Taylor  <iant@google.com>
12431
12432         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
12433         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
12434
12435 2009-06-16  Ian Lance Taylor  <iant@google.com>
12436
12437         * resource.c (mark_referenced_resources): Change
12438         include_delayed_effects parameter to bool.  Change all callers.
12439         (mark_end_of_function_resources): Likewise.
12440         * reorg.c (insn_references_resource_p): Likewise.
12441         (insn_sets_resource_p): Likewise.
12442         * resource.h (mark_referenced_resources): Update declaration.
12443         (mark_end_of_function_resources): Update declaration.
12444
12445 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
12446
12447         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
12448
12449 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
12450
12451         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
12452         GCC can bootstrap on AIX with GNU Binutils 2.20.
12453
12454 2009-06-16  Ian Lance Taylor  <iant@google.com>
12455
12456         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
12457
12458 2009-06-16  Ian Lance Taylor  <iant@google.com>
12459
12460         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
12461         inline, not extern inline.
12462         (exact_log2): Likewise.
12463         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
12464         test CLZ_HWI.
12465         (exact_log2): Likewise, but don't test CTZ_HWI.
12466
12467 2009-06-16  Ian Lance Taylor  <iant@google.com>
12468
12469         * bitmap.c (bitmap_clear): Don't declare as inline.
12470         * gimple.c (gimplify_assign): Likewise.
12471         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12472         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
12473         (sched_scan_info): Remove duplicate definition.
12474
12475 2009-06-16  Ian Lance Taylor  <iant@google.com>
12476
12477         * c-common.c (skip_evaluation): Don't define.
12478         (c_inhibit_evaluation_warnings): Define global variable.
12479         (overflow_warning): Check c_inhibit_evaluation_warnings rather
12480         than skip_evaluation.
12481         (convert_and_check, warn_for_div_by_zero): Likewise.
12482         * c-common.h (skip_evaluation): Don't declare.
12483         (c_inhibit_evaluation_warnings): Declare.
12484         * c-parser.c (c_parser_typeof_specifier): Set
12485         c_inhibit_evaluation_warnings rather than skip_evaluation.
12486         (c_parser_conditional_expression): Likewise.
12487         (c_parser_binary_expression): Likewise.
12488         (c_parser_sizeof_expression): Likewise.
12489         (c_parser_alignof_expression): Likewise.
12490         * c-typeck.c (build_indirect_ref): Check
12491         c_inhibit_evaluation_warnings rather than skip_evaluation.
12492         (build_conditional_expr, build_binary_op): Likewise.
12493
12494 2009-06-16  Richard Guenther  <rguenther@suse.de>
12495
12496         * tree-ssa-alias.c (is_escape_site): Remove.
12497         * tree-ssa-alias.h (enum escape_type): Remove.
12498         (is_escape_site): Likewise.
12499         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
12500         via casts and asms without deferring to is_escape_site.
12501
12502 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
12503
12504         PR middle-end/40446
12505         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
12506         use gen_lowpart if op0 has complex mode.
12507
12508 2009-06-16  Richard Guenther  <rguenther@suse.de>
12509
12510         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
12511         variables add them to ESCAPED.
12512         (find_func_aliases): Do not make all indirectly stored values escaped.
12513
12514 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
12515
12516         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
12517         make_decl_one_only.
12518
12519 2009-06-16  Martin Jambor  <mjambor@suse.cz>
12520
12521         PR tree-optimization/40432
12522         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
12523         check whether we need to force gimple register operand.
12524
12525 2009-06-16  Martin Jambor  <mjambor@suse.cz>
12526
12527         PR tree-optimization/40413
12528         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
12529         build_ref_for_offset.
12530         (propagate_subacesses_accross_link): Fix a typo in a comment.
12531
12532 2009-06-16  Ira Rosen  <irar@il.ibm.com>
12533
12534         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12535         with additional parameter.
12536         * tree-vectorizer.h (enum vect_def_type): Add new value
12537         vect_nested_cycle.
12538         (enum vect_relevant): Add comments.
12539         (vect_is_simple_reduction): Add new argument.
12540         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
12541         Detect nested cycles.
12542         (vect_is_simple_reduction): Update documentation, add an argument to
12543         distinguish inner-loop reduction from nested cycle, detect nested
12544         cycles, fix printings and indentation, don't swap operands in case
12545         of nested cycle.
12546         (get_initial_def_for_reduction): Handle subtraction.
12547         (vect_create_epilog_for_reduction): Add new argument to specify
12548         reduction variable.
12549         (vect_finalize_reduction): Handle subtraction, fix comments.
12550         (vectorizable_reduction): Handle nested cycles. In case of nested
12551         cycle keep track of the reduction variable position. Call
12552         vect_is_simple_reduction with additional parameter. Use original
12553         statement code in reduction epilogue for nested cycle. Call
12554         vect_create_epilog_for_reduction with additional parameter.
12555         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
12556         inner-loop vectorization.
12557         (vect_recog_widen_sum_pattern): Likewise.
12558         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
12559         and reductions.
12560         (vect_mark_stmts_to_be_vectorized): Likewise.
12561         (vect_get_vec_def_for_operand): Handle nested cycles.
12562
12563 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12564
12565         * doc/invoke.texi (Debugging Options): Fix option index entries
12566         for -fdump-statistics, -frandom-seed add entries for
12567         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
12568         (FRV Options): Fix entries for -mTLS, -mtls.
12569         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
12570         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
12571         (M68hc1x Options): Fix @itemx for -mnominmax.
12572         (MCore Options): Fix entry for -mno-lsim.
12573         (MMIX Options): Fix entry for -mabi=mmixware.
12574         (PDP-11 Options): Fix entry for -mbcopy-builtin.
12575
12576 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
12577
12578         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
12579         Mention the plugin mode of gengtype.
12580         * doc/gty.texi (Source Files Containing Type Information): Likewise.
12581         * gengtype.c: Updated copyright.
12582         (plugin_files, nb_plugin_files) Added new static variables.
12583         (measure_input_list) Care about plugin_files.
12584         (write_rtx_next): Added early return in plugin mode.
12585         (create_file): Updated copyright year in generated file. Added
12586         asserts.
12587         (oprintf): Added early return if NULL outf.
12588         (get_output_file_with_visibility): Care of plugin_files.
12589         (get_output_file_name): May return null.
12590         (write_local): Added early return.
12591         (put_mangled_filename): Ditto.
12592         (finish_root_table): Added check for base_files.
12593         (write_roots): Care about null when plugins.
12594         (main): Added plugin mode.
12595
12596 2009-06-15  Ian Lance Taylor  <iant@google.com>
12597
12598         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
12599         * gcov.c (read_count_file): Add braces around variables declared
12600         before label.
12601
12602         * c.opt (Wjump-misses-init): New warning.
12603         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
12604         -Wall and -Wc++-compat if not already set.
12605         (c_common_post_options): Clear warn_jump_misses_init if it was not
12606         set.
12607         * c-decl.c (struct c_binding): Change type field to a union with
12608         new label field.  Make it the first field in the struct.  Update
12609         references to type to use u.type instead.
12610         (struct c_spot_bindings): Define.
12611         (struct c_goto_bindings): Define.
12612         (c_goto_bindings_p): Define, along with VECs.
12613         (struct c_label_vars): Define.
12614         (struct c_scope): Add has_label_bindings field.
12615         (bind_label, set_spot_bindings): New static functions.
12616         (decl_jump_unsafe, update_spot_bindings): New static functions.
12617         (update_label_decls): New static function.
12618         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
12619         Update binding u.label field to shadowed field.
12620         (c_binding_start_stmt_expr): New function.
12621         (c_binding_end_stmt_expr): New function.
12622         (pushdecl): Don't call c_begin_vm_scope.
12623         (make_label): Add defining and p_label_vars parameters.  Change
12624         all callers.
12625         (lookup_label): Correct test for whether a label has not yet been
12626         defined.  Call bind_label rather than bind.
12627         (warn_about_goto): New static function.
12628         (lookup_label_for_goto): New function.
12629         (declare_label): Call bind_label rather than bind.
12630         (check_earlier_gotos): New static function.
12631         (define_label): Don't give errors about jumping into statement
12632         expressions or scopes of variably modified types.  Call
12633         set_spot_bindings and check_earlier_gotos.  Call bind_label
12634         instead of bind.  Don't set label_context_stack_se or
12635         label_context_stack_vm.
12636         (c_get_switch_bindings): New function.
12637         (c_release_switch_bindings): New function.
12638         (c_check_switch_jump_warnings): New function.
12639         (start_function): Don't set label_context_stack_se or
12640         label_context_stack_vm.
12641         (finish_function): Likewise.
12642         * c-typeck.c (label_context_stack_se): Don't define.
12643         (label_context_stack_vm): Don't define.
12644         (c_finish_goto_label): Call lookup_label_for_goto rather than
12645         lookup_label.  Don't give errors about jumping into a statement
12646         expression or the scope of a variably modified type.  Don't set
12647         label_context_stack_se or label_context_stack_vm.
12648         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
12649         fields.  Add bindings field.
12650         (c_start_case): Don't set deleted fields.  Set bindings field.
12651         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
12652         or blocked_vm.  Call c_check_switch_jump_warnings.
12653         (c_finish_case): Don't test blocked_stmt_expr field.  Call
12654         c_release_switch_bindings.
12655         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
12656         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
12657         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
12658         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
12659         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
12660         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
12661         (c_begin_vm_scope, c_end_vm_scope): Don't define.
12662         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
12663         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
12664         (C_DECL_UNJUMPABLE_VM): Don't define.
12665         (C_DECL_UNDEFINABLE_VM): Don't define.
12666         (struct c_label_list): Don't define.
12667         (struct c_label_context_se): Don't define.
12668         (struct c_label_context_vm): Don't define.
12669         (struct c_spot_bindings): Declare.
12670         (c_bindings_start_stmt_expr): Declare.
12671         (c_bindings_end_stmt_expr): Declare.
12672         (lookup_label_for_goto): Declare.
12673         (c_get_switch_bindings, c_release_switch_bindings): Declare.
12674         (c_check_switch_jump_warnings): Declare.
12675         (label_context_stack_se, label_context_stack_vm): Don't declare.
12676         (c_finish_goto_label): Update declaration.
12677         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
12678         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
12679         (Warning Options): Document -Wjump-misses-init.
12680
12681 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
12682
12683         * tree-object-size.c (addr_object_size): Fix a pasto in the last
12684         change.
12685
12686 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
12687
12688         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
12689
12690 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
12691
12692         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
12693
12694 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
12695
12696         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
12697
12698 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
12699
12700         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
12701         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
12702         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
12703         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
12704         * dwarf2asm.c (dw2_force_const_mem): Update call to
12705         make_decl_one_only.
12706         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
12707         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
12708         * langhooks.c (lhd_comdat_group): Remove.
12709         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
12710         * tree.h (DECL_COMDAT_GROUP): New.
12711         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
12712         (tree_decl_with_vis): Add comdat_group. Remove one_only.
12713         (make_decl_one_only): Change signature.
12714         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
12715         make_decl_one_only.
12716         (make_decl_one_only): Change signature.
12717         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
12718
12719 2009-06-15  Richard Guenther  <rguenther@suse.de>
12720
12721         PR middle-end/40439
12722         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
12723
12724 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12725
12726         * tree-ssa-math-opts.c: Remove extra divide.
12727
12728 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12729
12730         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
12731
12732 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12733
12734         * passes.c: Add bswap pass.
12735         * tree-pass.h: Add pass_optimize_bswap declaration.
12736         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
12737         Include rtl.h, expr.h and optabs.h for optab_handler check.
12738         (struct symbolic_number, pass_optimize_bswap): New definition.
12739         (do_shift_rotate, verify_symbolic_number_p): New functions.
12740         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
12741         (gate_optimize_bswap): New function.
12742         * tree.c (widest_int_cst_value): New function.
12743         * tree.h (widest_int_cst_value): Prototype added.
12744
12745 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
12746
12747         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
12748         REG_EQUAL/REG_EQUIV notes.
12749
12750 2009-06-14  Richard Guenther  <rguenther@suse.de>
12751
12752         PR middle-end/40389
12753         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
12754         has its address taken if NRV was applied and it is addressable.
12755         * tree-ssa-structalias.c (get_constraint_for_address_of): New
12756         function split out from ...
12757         (get_constraint_for_1): ... here.
12758         (handle_rhs_call): Use it to mark the return slot escaped if
12759         it is addressable and NRV was applied.
12760
12761 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
12762
12763         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
12764         Change first argument type to location_t.
12765         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
12766         Do not set input_location.
12767         Use loc instead of input_location throughout.
12768
12769 2009-06-13  Richard Guenther  <rguenther@suse.de>
12770
12771         PR tree-optimization/40421
12772         * tree-predcom.c (should_unroll_loop_p): Remove.
12773         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
12774
12775 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
12776
12777         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12778         Add location argument.
12779
12780 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
12781
12782         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
12783         build_decl.
12784         * config/s390/s390.c (s390_build_builtin_va_list): Same.
12785         (s390_gimplify_va_arg): Pass location to create_artificial_label.
12786         * config/spu/spu-protos.h: Add location to
12787         spu_resolve_overloaded_builtin.
12788         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
12789         spu_build_builtin_va_list.
12790         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
12791         argument.  Pass location to build_function_call_vec.
12792         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
12793         build_decl.
12794         (emit_fpu_switch): Same.
12795         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
12796         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
12797         to build_decl and create_artificial_label.
12798         (xtensa_gimplify_va_arg_expr): Same.
12799         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
12800         (xstormy16_gimplify_va_arg_expr): Same.
12801         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
12802         * config/arm/arm.c (arm_build_builtin_va_list): Same.
12803         * config/mips/mips.c (mips_build_builtin_va_list): Same.
12804         (mips16_build_function_stub): Same.
12805         (mips16_build_call_stub): Same.
12806
12807 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
12808
12809         PR target/40327
12810         * arm/constraints.md (Pa, Pb): New constraints.
12811         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
12812         split pattern to deal with them.
12813
12814 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
12815
12816         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
12817         fix index entry for -Xpreprocessor.
12818
12819 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
12820
12821         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12822         Add location argument to build_decl call.
12823         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
12824         (rs6000_init_builtins): Same.
12825         (spe_init_builtins): Same.
12826         (rs6000_gimplify_va_arg): Add location argument to
12827         create_artificial_label call.
12828
12829 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
12830
12831         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
12832         * combine-stack-adj.c (pass_stack_adjustments): Use it.
12833         * Makefile.in: Fix GGC dependency for gcse.o.
12834
12835 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
12836
12837         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
12838         * gimple-pretty-print.c (dump_gimple_stmt): Same.
12839         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
12840         created.
12841         * c-parser.c (c_parser_binary_expression): Use current column while
12842         building binary operations.
12843         * common.opt (fshow-column): Enable by default.
12844         * tree-vrp.c (check_array_ref): Use warning_at.
12845         (check_array_bounds): Use location from call back if expr has no
12846         location.
12847         * tree.h: Add location argument to maybe_fold_*.
12848         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
12849         (maybe_fold_offset_to_array_ref): Add location argument and use it.
12850         (maybe_fold_offset_to_component_ref): Same.
12851         (maybe_fold_offset_to_reference): Same.
12852         (maybe_fold_offset_to_address): Same.
12853         (maybe_fold_stmt_indirect): Same.
12854         (maybe_fold_stmt_addition): Same.
12855         (fold_stmt_r): Pass location to maybe_fold_*.
12856         (fold_gimple_assign): Same.
12857         * c-tree.h: Add location argument to finish_decl,
12858         default_function_array_conversion, store_init_value.
12859         * c-decl.c (define_label): Use error_at.
12860         (c_make_fname_decl): Pass location to finish_decl.
12861         (finish_decl): New location argument.
12862         (build_compound_literal): Pass location to store_init_value.
12863         (grokdeclarator): Pass location to finish_decl.
12864         (grokfield): Same.
12865         * c-typeck.c (array_to_pointer_conversion): New location argument.
12866         (function_to_pointer_conversion): Same.
12867         (default_function_array_conversion): Same.
12868         (parser_build_unary_op): Pass location to overflow_warning.
12869         (parser_build_binary_op): Same.  Use warning_at.
12870         (build_unary_op): Pass location to array_to_pointer_conversion.
12871         (build_c_cast): Pass location to digest_init.
12872         (build_modify_expr): New location argument.
12873         (convert_for_assignment): Same.
12874         (store_init_value): Same.
12875         (digest_init): Same.
12876         (output_init_element): Pass location to digest_init and
12877         array_to_pointer_conversion.
12878         (c_finish_return): Pass location to convert_for_assignment.
12879         * gimplify.c (gimplify_conversion): Pass location to
12880         maybe_fold_offset_to_address.
12881         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
12882         to maybe_fold_stmt_addition.
12883         * c-omp.c (c_finish_omp_atomic): Pass new location to
12884         build_modify_expr.
12885         (c_finish_omp_for): Same.
12886         * c-common.c (overflow_warning): New argument.
12887         * c-common.h: New argument to build_modify_expr, overflow_warning.
12888         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
12889         finish_decl.
12890         (c_parser_initializer): Pass location to
12891         default_function_array_conversion.
12892         (c_parser_initelt): Same.
12893         (c_parser_initval): Same.
12894         (c_parser_asm_operands): Same.
12895         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
12896         (c_parser_conditional_expression): Same.
12897         (c_parser_binary_expression): Add location info to stack.  Use it.
12898         (c_parser_unary_expression): Pass location to
12899         default_function_array_conversion, parser_build_unary_op,
12900         build_indirect_ref, c_parser_postfix_expression_after_primary.
12901         (c_parser_postfix_expression_after_primary): New location argument.
12902         Use it.
12903         (c_parser_expression_conv): Pass location to
12904         default_function_array_conversion.
12905         (c_parser_expr_list): Same.
12906         (c_parser_omp_atomic): Same.
12907         (c_parser_omp_for_loop): Same.
12908         * c-tree.h: (struct c_declarator): Add comment to id_loc.
12909         (build_array_declarator): New argument.
12910         * c-decl.c (build_array_declarator): Add location argument.
12911         (grokdeclarator): Set id_loc for cdk_array.
12912         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
12913         build_array_declarator.
12914         * tree.c (build_omp_clause): Add location argument.
12915         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
12916         (OMP_CLAUSE_LOCATION): New macro.
12917         (struct tree_omp_clause): Add location field.
12918         (build_omp_clause): Add argument.
12919         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
12920         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
12921         build_omp_clause.
12922         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
12923         (cp_parser_omp_clause_collapse): Same.
12924         (cp_parser_omp_clause_default): Same.
12925         (cp_parser_omp_clause_if): Same.
12926         (cp_parser_omp_clause_nowait): Same.
12927         (cp_parser_omp_clause_num_threads): Same.
12928         (cp_parser_omp_clause_ordered): Same.
12929         (cp_parser_omp_clause_schedule): Same.
12930         (cp_parser_omp_clause_untied): Same.
12931         (cp_parser_omp_for_loop): Same.
12932         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
12933         * c-tree.h (c_start_case): Add location argument.
12934         (c_process_expr_stmt): Same.
12935         (c_finish_goto_*): Same.
12936         * tree-parloops.c (initialize_reductions): Pass location to
12937         build_omp_clause.
12938         (create_parallel_loop): Same.
12939         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
12940         (gfc_trans_omp_reduction_list): Same.
12941         (gfc_trans_omp_clauses): Same.
12942         (gfc_trans_omp_do): Same.
12943         * c-typeck.c (c_finish_goto_label): Same.
12944         (c_finish_goto_ptr): New location argument.
12945         (c_start_case): Same.
12946         (emit_side_effect_warnings): Same.
12947         (c_process_expr_stmt): Same.
12948         (c_finish_stmt_expr): Same.
12949         (c_finish_omp_clauses): Use error_at instead of error.
12950         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
12951         build_omp_clause.
12952         * c-omp.c (c_split_parallel_clauses): New location argument.
12953         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
12954         to build_omp_clause.
12955         (convert_local_reference_stmt): Same.
12956         (convert_gimple_call): Same.
12957         * c-common.h (c_split_parallel_clauses): New argument.
12958         * c-parser.c (c_parser_statement_after_labels): Pass location to
12959         c_finish_goto_label.
12960         (c_parser_switch_statement): Pass location to c_start_case.
12961         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
12962         and c_process_expr_stmt.
12963         (c_parser_omp_variable_list): Add location argument.
12964         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
12965         (c_parser_omp_clause_default): Same.
12966         (c_parser_omp_clause_if): Same.
12967         (c_parser_omp_clause_num_threads): Same.
12968         (-c_parser_omp_clause_ordered): Same.
12969         (c_parser_omp_clause_reduction): Pass location to
12970         c_parser_omp_variable_list.
12971         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
12972         (c_parser_omp_clause_untied): Same.
12973         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
12974         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
12975
12976         * c-tree.h (check_for_loop_decls, undeclared_variable,
12977         build_component_ref, build_array_ref, build_external_ref,
12978         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
12979         build_conditional_expr, build_compound_expr, c_cast_expr,
12980         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
12981         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
12982         argument.
12983         * c-semantics.c (build_stmt): Same.
12984         (build_case_label): Same.
12985         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
12986         (undeclared_variable): New argument.
12987         (make_label): Same.
12988         (lookup_label): Pass location on down.
12989         (define_label): Same.
12990         (finish_decl): Same.
12991         (build_compound_literal): Same.
12992         (finish_struct): Same.
12993         (finish_function): Do not set location here.
12994         (check_for_loop_decls): New argument.
12995         * tree.c (save_expr): Set location.
12996         (build_empty_stmt): New argument.
12997         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
12998         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
12999         * builtins.c (gimplify_va_arg_expr): Use locations.
13000         (expand_builtin_sync_operation): Same.
13001         * c-typeck.c (build_component_ref): New argument.
13002         (build_array_ref): Same.
13003         (build_external_ref): Same.
13004         (c_expr_sizeof_expr): Same.
13005         (c_expr_sizeof_type): Same.
13006         (parser_build_unary_op): Same.
13007         (build_conditional_expr): Same.
13008         (build_compound_expr): Pass location on down.
13009         (build_compound_expr): New argument.
13010         (build_c_cast): Same.
13011         (c_cast_expr): Same.
13012         (build_asm_expr): Same.
13013         (c_finish_return): Same.
13014         (c_process_expr_stmt): Pass location on down.
13015         (c_finish_stmt_expr): New argument.
13016         (push_clenaup): Same.
13017         (c_finish_omp_parallel): Same.
13018         (c_finish_omp_task): Same.
13019         * gimplify.c (gimplify_call_expr): Pass location on down.
13020         * c-omp.c (c_finish_omp_master): New argument.
13021         (c_finish_omp_critical): Same.
13022         (c_finish_omp_ordered): Same.
13023         (c_finish_omp_barrier): Same.
13024         (-c_finish_omp_taskwait): Same.
13025         (c_finish_omp_atomic): Same.
13026         (c_finish_omp_flush): Same.
13027         * tree-inline.c (copy_tree_body_r): Pass location on down.
13028         (inline_forbidden_p): Remove use of input_location.
13029         * c-gimplify.c (c_build_bind_expr): New argument.
13030         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
13031         (c_sizeof_or_alignof_type): New argument.
13032         (c_alignof_expr): Same.
13033         (build_va_arg): Same.
13034         (c_add_case_label): Same.
13035         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
13036         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
13037         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
13038         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
13039         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
13040         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
13041         New argument.
13042         * stub-objc.c (objc_build_selector_expr): Same.
13043         (objc_build_throw_stmt): Same.
13044         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
13045         (c_parser_initelt): Same.
13046         (c_parser_compound_statement): Same.
13047         (c_parser_compound_statement_nostart): Same.
13048         (c_parser_label): Same.
13049         (c_parser_statement_after_labels): Same.
13050         (c_parser_if_body): Same.
13051         (c_parser_else_body): Same.
13052         (c_parser_if_statement): Same.
13053         (c_parser_switch_statement): Same.
13054         (c_parser_while_statement): Same.
13055         (c_parser_do_statement): Same.
13056         (c_parser_for_statement): Same.
13057         (c_parser_asm_statement): Same.
13058         (c_parser_conditional_expression): Same.
13059         (c_parser_binary_expression): Same.
13060         (c_parser_cast_expression): Same.
13061         (c_parser_unary_expression): Same.
13062         (c_parser_sizeof_expression): Same.
13063         (c_parser_alignof_expression): Same.
13064         (c_parser_postfix_expression): Same.
13065         (c_parser_expression): Same.
13066         (c_parser_objc_receiver): Same.
13067         (c_parser_omp_variable_list): Same.
13068         (c_parser_omp_structured_block): Same.
13069         (c_parser_omp_atomic): New argument.
13070         (c_parser_omp_barrier): Same.
13071         (c_parser_omp_critical): Same.
13072         (c_parser_omp_flush): Pass location on down.
13073         (c_parser_omp_for_loop): New argument.
13074         (c_parser_omp_for): Same.
13075         (c_parser_omp_master): Same.
13076         (c_parser_omp_ordered): Same.
13077         (c_parser_omp_sections_scope): Same.
13078         (c_parser_omp_sections): Same.
13079         (c_parser_omp_parallel): Same.
13080         (c_parser_omp_single): Same.
13081         (c_parser_omp_task): Same.
13082         (c_parser_omp_taskwait): Pass location on down.
13083         (c_parser_omp_construct): Same.
13084         (c_parser_omp_threadprivate): Same.
13085         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
13086         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
13087         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
13088         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
13089         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
13090         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
13091         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
13092         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
13093         config/i386/i386.c, stmt.c:
13094         Add location argument to the following function definitions and/or
13095         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
13096         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
13097         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
13098         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
13099         do_case, c_finish_bc_stmt, build_compound_literal,
13100         build_function_call.
13101         * c-decl.c (build_compound_literal): Add location argument.
13102         Make all diagnostic calls use location.
13103         (start_struct): Same.
13104         (finish_struct): Same.
13105         (start_enum): Same.
13106         (build_enumerator): Same.
13107         (start_function): Same.
13108         (grokdeclarator): Make all diagnostic calls use location.
13109         (store_parm_decls_oldstyle): Same.
13110         * c-typeck.c (build_function_call): Add location argument.
13111         Make all diagnostic calls use location.
13112         (do_case): Same.
13113         (c_finish_bc_stmt): Same.
13114         * tree-nested.c (get_trampoline_type): Add argument.
13115         Pass location to build_decl.
13116         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
13117         * rtl.h (RTL_LOCATION): New.
13118         * c-common.c (c_add_case_label): Add location argument.
13119         Make all diagnostic calls use location.
13120         * c-common.h: Add location argument to make_fname_decl, do_case,
13121         c_add_case_label, build_function_call, resolve_overloaded_builtin.
13122         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
13123         Set it appropriately for every case.  Pass enum_loc to start_enum
13124         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
13125         parser_xref_tag.
13126         (c_parser_struct_or_union_specifier): Save location.  Use it for
13127         start_struct, finish_struct, and parser_xref_tag.
13128
13129 2009-06-12  Ian Lance Taylor  <iant@google.com>
13130
13131         * fold-const.c (fold_unary): Rename local variable and to and_expr.
13132
13133         * c-opts.c (c_common_handle_option): For -Wc++-compat set
13134         cpp_opts->warn_cxx_operator_names.
13135
13136 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13137
13138         PR tree-opt/38865
13139         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
13140         is returns NULL and OP is a VCE, look through the VCE.
13141
13142 2009-06-12  Ian Lance Taylor  <iant@google.com>
13143
13144         PR bootstrap/40430
13145         * collect2.c (main): Use CONST_CAST2 in code inside #if
13146         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
13147
13148 2009-06-12  Joey Ye  <joey.ye@intel.com>
13149
13150         PR middle-end/39146
13151         * cfgexpand.c (get_decl_align_unit): Update
13152         max_used_stack_slot_alignment with align instead of
13153         stack_alignment_needed.
13154
13155         * function.c (assign_stack_local_1): Update
13156         max_used_stack_slot_alignment with alignment_in_bits instead
13157         of stack_alignment_needed.
13158         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
13159         here.
13160
13161 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
13162
13163         * dwarf2out.c (last_var_location_insn): New variable.
13164         (dwarf2out_end_epilogue): Clear last_var_location_insn.
13165         (dwarf2out_var_location): Don't record anything after last real
13166         insn.  Only change labels if there were any real instructions
13167         in between last note and this one, or if changed sections.
13168
13169 2009-06-11  Richard Henderson  <rth@redhat.com>
13170
13171         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
13172         note when storing the frame pointer in a register.
13173         (FRP): Don't redefine to nothing for epilogue.
13174         (alpha_expand_epilogue): Mark register and sp restores.
13175         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
13176
13177         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
13178         when gen_lowpart is needed.
13179
13180 2009-06-11  Richard Henderson  <rth@redhat.com>
13181
13182         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
13183
13184         * dwarf2out.c (need_data_align_sf_opcode): New.
13185         (div_data_align): Move earlier.
13186         (def_cfa_1, reg_save): Use it.
13187
13188 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
13189
13190         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
13191         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
13192         (ix86_handle_option): Handle OPT_mcrc32.
13193         (ix86_target_string): Add -mcrc32.
13194         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
13195
13196         * config/i386/i386.h (TARGET_CRC32): New.
13197
13198         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
13199         (sse4_2_crc32di): Likewise.
13200
13201         * config/i386/i386.opt (mcrc32): New.
13202
13203         * doc/invoke.texi: Document -mcrc32.
13204
13205 2009-06-11  Richard Henderson  <rth@redhat.com>
13206
13207         * common.opt (gdwarf-): Accept a version number.
13208         * doc/invoke.texi (gdwarf-): Update docs.
13209         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
13210         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
13211         version level, and record it.
13212
13213         * dwarf2.h (DW_CIE_VERSION): Remove.
13214         * dwarf2out.c (DWARF_VERSION): Remove.
13215         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
13216         (output_call_frame_info): Use CIE version 3 for dwarf3,
13217         or if the return register column is out of range for version 1.
13218         (dwarf_stack_op_name): Add all dwarf3 values.
13219         (DEBUG_PUBTYPES_SECTION): New.
13220         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
13221         encoding change for dwarf3.
13222         (output_die) [dw_val_class_die_ref]: Likewise.
13223         (output_compilation_unit_header): Emit correct version for dwarf3.
13224         (output_line_info): Likewise.
13225         (output_pubnames): Update for DWARF_VERSION removal.
13226         (output_aranges): Likewise.
13227         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
13228         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
13229         (dwarf2out_finish): Likewise.
13230
13231 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13232
13233         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
13234         in r148403.
13235
13236 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13237
13238         PR c/39252
13239         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
13240         * builtins.c (expand_builtin_unreachable): New function.
13241         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
13242         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
13243         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
13244         successors.
13245         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
13246         searching for missing barriers.
13247
13248 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13249
13250         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
13251         when -fprofile-generate* was passed.
13252         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
13253
13254 2009-06-11  Anthony Green  <green@moxielogic.com>
13255
13256         * config/moxie/moxie.md: Define length attribute for all instructions.
13257         (rCC): Define.
13258         (*b<cond:code>): Support limited branch ranges for new PC-relative
13259         branch instructions.
13260         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
13261
13262 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
13263
13264         * config/i386/i386.c (min_insn_size): Use get_attr_length
13265         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
13266         For __asm return 0.
13267
13268         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
13269         instead of emit_insn_before.
13270
13271 2009-06-10  Ian Lance Taylor  <iant@google.com>
13272
13273         PR bootstrap/40408
13274         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
13275         GIMPLE_SWITCH.
13276
13277 2009-06-10  Revital Eres  <eres@il.ibm.com>
13278
13279         * passes.c (init_optimization_passes): Reschedule
13280         predictive-commoning pass before complete unroll pass.
13281
13282 2009-06-10  Martin Jambor  <mjambor@suse.cz>
13283
13284         * cgraph.c (cgraph_node_can_be_local_p): New function.
13285         (cgraph_make_node_local): New function.
13286         * cgraph.h (cgraph_node_can_be_local_p): Declare.
13287         (cgraph_make_node_local): Declare.
13288
13289 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
13290
13291         * tree.h (tree_base): Add packed_flag and user_align fields.
13292         Decrease size of spare field.
13293         (TYPE_USER_ALIGN): Use user_align from tree_base.
13294         (DECL_USER_ALIGN): Likewise.
13295         (TYPE_PACKED): Use packed_flag from tree_base.
13296         (DECL_PACKED): Likewise.
13297         (tree_type): Delete packed_flag and user_align fields.  Widen
13298         precision field.  Widen mode field and shuffle fields to align
13299         mode on an 8-bit boundary.
13300         (tree_decl_common): Delete decl_flag_1 and user_align fields.
13301         Renumber decl_flag_* fields.  Fix comments.  Widen
13302         decl_common_unused field.
13303         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
13304         (DECL_EXTERNAL): Likewise.
13305         (DECL_BIT_FIELD): Likewise.
13306         (DECL_NONADDRESSABLE_P): Likewise.
13307         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
13308         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
13309
13310 2009-06-10  Ian Lance Taylor  <iant@google.com>
13311
13312         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
13313         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
13314         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
13315         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
13316         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
13317         DEF_VEC_ALLOC_FUNC_P.
13318         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
13319         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
13320         DEF_VEC_ALLOC_FUNC_O.
13321         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
13322         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
13323         DEF_VEC_ALLOC_FUNC_I.
13324         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
13325         (vec_stack_p_reserve_exact_1): Declare.
13326         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
13327         (vec_stack_free): Declare.
13328         (VEC_stack_alloc): Define.
13329         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
13330         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
13331         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
13332         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
13333         for void_p.
13334         (stack_vecs): New static variable.
13335         (vec_stack_p_reserve_exact_1): New function.
13336         (vec_stack_o_reserve_1): New static function.
13337         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
13338         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
13339         (vec_stack_free): New function.
13340         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
13341         (VEC_df_ref_stack_alloc): Define.
13342         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
13343         DEF_VEC_ALLOC_P_STACK.
13344         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
13345         (struct df_collection_rec): Change _vec fields to VEC.  Remove
13346         _use fields.
13347         (df_free_collection_rec): Adjust for new fields.
13348         (df_insn_rescan): Use new df_collection_rec fields.
13349         (df_notes_rescan, df_canonize_collection_rec): Likewise.
13350         (df_ref_create_structure, df_ref_record): Likewise.
13351         (df_get_conditional_uses, df_get_call_refs): Likewise.
13352         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
13353         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
13354         (df_record_exit_block_uses, df_bb_verify): Likewise.
13355         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
13356         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
13357         Remove count parameter.  Change return type to void.  Change all
13358         callers.
13359         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
13360         Remove count parameter.  Change return type to void.  Change all
13361         callers.
13362         (df_install_refs): Change old_vec parameter to VEC.  Remove count
13363         parameter.  Change all callers.
13364         (df_install_mws): Change old_vec parameter to VEC.  Remove count
13365         parameter.  Change all callers.
13366         (df_refs_verify): Change new_rec parameter to VEC.  Change call
13367         callers.
13368         (df_mws_verify): Likewise.
13369
13370 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
13371
13372         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
13373
13374 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
13375
13376         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
13377
13378 2009-06-10  Anthony Green  <green@moxielogic.com>
13379
13380         * config/moxie/crti.asm: New file.
13381         * config/moxie/crtn.asm: New file.
13382         * config/moxie/moxie.c: New file.
13383         * config/moxie/moxie.h: New file.
13384         * config/moxie/sfp-machine.h: New file.
13385         * config/moxie/moxie-protos.h: New file.
13386         * config/moxie/t-moxie: Created.
13387         * config/moxie/t-moxie-softfp: Created.
13388         * config/moxie/moxie.md: Created.
13389         * config/moxie/constraints.md: Created.
13390         * config.gcc: Add moxie support.
13391         * doc/md.texi (Machine Constraints): Add moxie constraints.
13392         * doc/contrib.texi (Contributors): Mention moxie port.
13393         * doc/install.texi (Specific): Mention the moxie port.
13394
13395 2009-06-09  Ian Lance Taylor  <iant@google.com>
13396
13397         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
13398         compiling with C++.
13399         * optabs.c (optab_table): Only use designated initializers if
13400         HAVE_DESIGNATED_INITIALIZERS is defined.
13401         (convert_optab_table): Likewise.
13402         (init_optabs): Always call init_insn_codes if
13403         HAVE_DESIGNATED_INITIALIZERS is not defined.
13404
13405 2009-06-09  Ian Lance Taylor  <iant@google.com>
13406
13407         * targhooks.c (default_builtin_vectorized_function): Change fn
13408         parameter to unsigned int.
13409         (default_builtin_vectorized_conversion): Change code parameter to
13410         unsigned int.
13411         (default_builtin_reciprocal): Change fn parameter to unsigned int.
13412         * targhooks.h: Update declarations.
13413         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
13414         parameter to unsigned int.
13415
13416         * c-typeck.c (comptypes_check_enum_int): New static function.
13417         (comptypes_internal): Add enum_and_int_p parameter.  Change all
13418         callers.
13419         (comp_target_types): Add location parameter.  Change all callers.
13420         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
13421         Change all callers.
13422         (function_types_compatible_p, type_lists_compatible_p): Likewise.
13423         (build_conditional_expr): Add colon_loc parameter.  Change all
13424         callers.
13425         (convert_for_assignment): Add location parameter.  Change all callers.
13426         * c-parser.c (c_parser_conditional_expression): Pass location of
13427         colon to build_conditional_expr.
13428         * c-tree.h (build_conditional_expr): Update declaration.
13429
13430 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13431
13432         * graphite.c: Revert previous patch.
13433
13434 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13435
13436         PR bootstrap/40103
13437         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13438
13439 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13440
13441         * tree-ssa-loop-prefetch.c
13442         (loop_prefetch_arrays): Fixed a portability problem in printf format
13443         string.
13444
13445 2009-06-09  Martin Jambor  <mjambor@suse.cz>
13446
13447         PR tree-optimization/40351
13448         * tree-sra.c (propagate_subacesses_accross_link): Check that a
13449         refrence to a potential artifical subaccess can be constructed.
13450
13451 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13452
13453         * config/sh/sh-protos.h (sh_optimization_options): Declare.
13454         (sh_override_options): Likewise.
13455         * config/sh/sh.c: Include params.h.
13456         (sh_optimization_options): New.
13457         (sh_override_options): Likewise.
13458         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
13459         (OVERRIDE_OPTIONS): Use sh_override_options.
13460
13461 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
13462
13463         * dwarf2out.c (emit_cfa_remember): New variable.
13464         (add_fde_cfi): If emit_cfa_remember, recurse to add
13465         DW_CFA_remember_state first.
13466         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
13467         instead just set emit_cfa_remember.
13468
13469 2009-06-08  Jan Hubicka  <jh@suse.cz>
13470
13471         PR debug/40126
13472         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
13473
13474 2009-06-08  Jan Hubicka  <jh@suse.cz>
13475
13476         PR middle-end/39834
13477         * cgraphunit.c (save_inline_function_body): Do not copy transform
13478         hooks for saved inline bodies.
13479         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
13480         for given function.
13481
13482 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
13483
13484         * jump.c (returnjump_p): Handle delayed branches.  Add missing
13485         function comment.
13486
13487 2009-06-08  Jan Hubicka  <jh@suse.cz>
13488
13489         PR middle-end/40102
13490         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
13491         original node might've been modified.
13492         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
13493
13494 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
13495
13496         * tree-object-size.c (addr_object_size): Add OSI argument.
13497         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
13498         (compute_builtin_object_size, expr_object_size): Adjust callers.
13499         (plus_stmt_object_size): Call addr_object_size instead of
13500         compute_builtin_object_size.
13501
13502 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13503             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13504
13505         * tree-ssa-loop-prefetch.c
13506         (gather_memory_references): Introduced a counter for the number of
13507         memory references.
13508         (anything_to_prefetch_p): Introduced a counter for the number of
13509         prefetches.
13510         (is_loop_prefetching_profitable): New function with a cost model
13511         for prefetching.
13512         (loop_prefetch_arrays): Use the new cost model to determine if
13513         prefetching is profitable.
13514         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
13515         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13516         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
13517         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13518         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
13519         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13520
13521 2009-06-08  Michael Matz  <matz@suse.de>
13522
13523         PR debug/40012
13524         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
13525         partitions use the same.
13526         (expand_one_var): Deal with DECL_RTL sometimes begin set also
13527         for basevars of SSA_NAMEs.
13528         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
13529         to not expand them twice.
13530         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
13531         multiple places.
13532
13533 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
13534
13535         * common.opt (fcompare-debug=, fcompare-debug-second): New.
13536         (fdump-final-insns=, gtoggle): New.
13537         * doc/invoke.texi: Document them.
13538         * final.c (rest_of_clean_state): Dump final insn stream.
13539         * gcc.c (invoke_as): Hook in -fcompare-debug.
13540         (static_spec_functions): Add compare-debug-dump-opt,
13541         compare-debug-self-opt and compare-debug-auxbase-opt.
13542         (compare_debug, compare_debug_second, compare_debug_opt): New.
13543         (switches_debug_check, n_switches_debug_check): New.
13544         (debug_auxbase_opt, debug_check_temp_file): New.
13545         (process_command): Handle -fno-compare-debug, -fcompare-debug and
13546         -fcompare-debug=*.
13547         (do_self_spec): Handle arguments after switches.
13548         (do_spec_1): Add .gk extension to temp file basenames for compare.
13549         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
13550         (cc1_options): Use it instead of normal auxbase computation for
13551         the second compare-debug compilation.
13552         (compare_files): New.
13553         (main): Set up and implement compare debug mode.
13554         (compare_debug_dump_opt_spec_function): New.
13555         (compare_debug_self_opt_spec_function): New.
13556         (compare_debug_auxbase_opt_spec_function): New.
13557         * toplev.c (process_options): Handle flag_gtoggle,
13558         flag_dump_final_insns.
13559         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
13560         during -fcompare-debug-second compilation.
13561
13562 2009-06-07  Ian Lance Taylor  <iant@google.com>
13563
13564         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
13565         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
13566
13567         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
13568         with no default node.  Change warning with %H to warning_at.
13569         Don't clear warn_switch around case checking.
13570         * doc/invoke.texi (Warning Options): Clarify distinction between
13571         -Wswitch and -Wswitch-enum.
13572
13573 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13574
13575         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
13576
13577 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13578
13579         * gbl-ctors.h: Add header guard.
13580
13581 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13582
13583         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
13584         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
13585         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
13586         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
13587         prototypes for removed functions.
13588         (expressions_equal_p): Move to ...
13589         * tree-ssa-sccvn.h: ... here and ...
13590         * matrix-reorg.c: ... adjust includes.
13591
13592 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13593
13594         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
13595
13596 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13597
13598         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
13599         (finish_function): Remove erroneous whitespace.
13600
13601 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13602
13603         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
13604         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
13605
13606 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13607
13608         * errors.c (internal_error): Commentary typo fix.
13609         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
13610         * tree-ssa-pre.c: Ditto.
13611
13612 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13613
13614         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
13615         them is supposed to hold actual statements.
13616
13617 2009-06-06  Ian Lance Taylor  <iant@google.com>
13618
13619         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
13620         empty statements can now have attributes.
13621
13622 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
13623
13624         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
13625         * config/mips/mips.md: Ditto.
13626
13627 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
13628
13629         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
13630         _RELOCATABLE.
13631         (__eabi_uconvert): Likewise.
13632
13633 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
13634
13635         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
13636         CFI_* definitions with IN_GCC.
13637
13638 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
13639
13640         * xcoffout.h (xcoffout_source_line): Update prototype.
13641
13642 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13643
13644         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
13645         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
13646
13647 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
13648
13649         PR middle-end/40340
13650         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
13651         inlined_function_outer_scope_p blocks for artificial inlines
13652         even at -g0/-g1.
13653         * tree.c (tree_nonartificial_location): Rewrite using
13654         block_nonartificial_location.
13655
13656 2009-06-05  Revital Eres  <eres@il.ibm.com>
13657             Leehod Baruch  <leehod@il.ibm.com>
13658
13659         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
13660         (expand_expr_real_1): Remove comment.
13661         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
13662         Vectorize misaligned access when the target supports it.
13663         (vect_supportable_dr_alignment): Check for unaligned access support.
13664         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
13665         and remove asset.
13666
13667 2009-06-05  Julian Brown  <julian@codesourcery.com>
13668
13669         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
13670         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
13671
13672 2009-06-05  Richard Guenther  <rguenther@suse.de>
13673
13674         PR bootstrap/40350
13675         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
13676         as possibly unused.
13677
13678 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
13679
13680         * config/s390/s390.c (global_not_special_regno_p): New static inline.
13681         (save_gprs): Don't tell unwinder when a global register is saved.
13682         (s390_emit_epilogue): Emit needed epilogue unwind info.
13683
13684 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
13685
13686         * dwarf2out.c (deferred_asm_name): New.
13687         (add_name_and_src_coords_attributes): Defer creation of
13688         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
13689         computed yet.
13690         (move_linkage_attr): New.
13691         (dwarf2out_finish): Revisit deferrals and emit attributes at the
13692         right place.
13693
13694 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
13695
13696         * tree-nested.c (finalize_nesting_tree_1): Declare the
13697         frame_decl in the binding tree.
13698
13699 2009-06-04  Cary Coutant  <ccoutant@google.com>
13700
13701         * basic-block.h (struct basic_block_def): Add discriminator field.
13702         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
13703         callers.
13704         * debug.c (do_nothing_debug_hooks): Add additional entry.
13705         (debug_nothing_int_charstar_int): New function.
13706         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
13707         (debug_nothing_int_charstar_int): New declaration.
13708         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
13709         discriminator value in .loc directive.
13710         * final.c (last_discriminator): New variable.
13711         (discriminator): New variable.
13712         (final_start_function): Initialize above variables, pass current
13713         discriminator to debug hook.
13714         (notice_source_line): Check for discriminator change.
13715         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
13716         * sdbout.c (sdbout_source_line): New parameter.
13717         * tree-cfg.c (struct locus_discrim_map): New structure type.
13718         (discriminator_per_locus): New hash table.
13719         (build_gimple_cfg): Allocate and free discriminator hash table.
13720         (make_edges): Call assign_discriminator.
13721         (locus_map_hash): New function.
13722         (locus_map_eq): New function.
13723         (next_discriminator_for_locus): New function.
13724         (same_line_p): New function.
13725         (assign_discriminator): New function.
13726         (make_cond_expr_edges): Call assign_discriminator.
13727         (make_gimple_switch_edges): Likewise.
13728         (first_non_label_stmt): New function.
13729         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
13730         all callers.
13731         * xcoffout.c (xcoffout_source_line): Add new parameter.
13732
13733         * configure.ac (gcc_cv_as_discriminator): New configury check for
13734         gas support for discriminator.
13735         * configure: Regenerate.
13736         * config.in: Regenerate.
13737
13738 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13739
13740         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
13741         val after checking for integers.
13742
13743 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
13744
13745         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
13746         X64_REGPARM_MAX.
13747         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
13748         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
13749         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
13750         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
13751         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
13752         X64_SSE_REGPARM_MAX.
13753         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
13754         X64_SSE_REGPARM_MAX.
13755
13756 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13757
13758         * gcc.c (report_times_to_file): New.
13759         (execute): Implement it.
13760         (process_command): Support -time=.
13761         * doc/invoke.texi: Document it.
13762
13763 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13764
13765         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
13766         that have value exprs.
13767
13768 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
13769
13770         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
13771         declarations for constants until...
13772         (dw2_output_indirect_constant_1): ... this point.
13773
13774 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
13775
13776         PR target/10242
13777         * arm.md (arm_addsi3): Don't try to split an add with an
13778         eliminable register until after reload has completed.
13779
13780 2009-06-03  Ian Lance Taylor  <iant@google.com>
13781
13782         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
13783         * genattrtab.c (write_length_unit_log): Likewise.
13784         * genchecksum.c (dosum): Likewise.
13785         * gengtype.c (write_rtx_next): Likewise.
13786         (finish_root_table, write_roots): Likewise.
13787         * gimple.c (gimple_ops_offset_): Likewise.
13788         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
13789         * config/arc/arc.c (arc_attribute_table): Likewise.
13790         * config/arm/arm.c (arm_attribute_table): Likewise.
13791         * config/avr/avr.c (avr_attribute_table): Likewise.
13792         * config/crx/crx.c (crx_attribute_table): Likewise.
13793         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
13794         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
13795         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
13796         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
13797         * config/sh/sh.c (sh_attribute_table): Likewise.
13798         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
13799         * config/spu/spu.c (spu_attribute_table): Likewise.
13800         * config/v850/v850.c (v850_attribute_table): Likewise.
13801
13802         * config/alpha/alpha.c (vms_attribute_table): Make static.
13803         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
13804         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
13805         * config/mips/mips.c (mips_attribute_table): Likewise.
13806
13807         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
13808         $(SYSTEM_H).
13809         (cc1-checksum.o): Likewise.
13810
13811 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
13812
13813         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
13814
13815 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
13816
13817         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
13818         insn if it is changing sp.  Use gen_add3_insn instead of
13819         conditionally gen_addsi3 and gen_adddi3.
13820         (offset_below_red_zone_p): New static inline function.
13821         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
13822         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
13823         * config/rs6000/ppc-asm.h: Include auto-host.h.
13824         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
13825         CFI_RESTORE): Define.
13826         * config/rs6000/crtresxgpr.asm: Add unwind info.
13827         * config/rs6000/crtresxfpr.asm: Likewise.
13828         * config/rs6000/crtresgpr.asm: Likewise.
13829         * config/rs6000/crtresfpr.asm: Likewise.
13830         * config/rs6000/crtsavgpr.asm: Likewise.
13831         * config/rs6000/crtsavfpr.asm: Likewise.
13832
13833         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
13834         argument of DWARF2_FRAME_REG_OUT macros.
13835
13836 2009-06-03  Julian Brown  <julian@codesourcery.com>
13837
13838         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
13839         words or less (including TImode) in core registers.
13840
13841 2009-06-03  Richard Guenther  <rguenther@suse.de>
13842
13843         PR middle-end/40328
13844         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
13845
13846 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
13847
13848         * statistics.c (statistics_counter_event): Do not record event
13849         in pass dump if its number == -1.
13850         (curr_statistics_hash): Add assert that we never get passes
13851         with static number == -1.
13852
13853 2009-06-03  Richard Guenther  <rguenther@suse.de>
13854             Andrey Belevantsev  <abel@ispras.ru>
13855
13856         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
13857         non-BLKmode arrays addressable.
13858
13859 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
13860
13861         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
13862         * config/m68k/m68k.h: ... here.
13863
13864 2009-06-03  Martin Jambor  <mjambor@suse.cz>
13865
13866         PR tree-optimization/40323
13867         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
13868         assignment.
13869
13870 2009-06-03  Richard Guenther  <rguenther@suse.de>
13871
13872         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
13873         consistently.
13874
13875 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
13876
13877         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
13878         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
13879         JUMP_TABLE_DATA_P where applicable.
13880         * config/sh/sh.c: Ditto.
13881         * config/sh/sh.h: Ditto.
13882         * config/sh/sh.md: Ditto.
13883         * config/sh/symbian.c: Ditto.
13884
13885 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
13886
13887         * config/i386/driver-i386.c (describe_cache): Optimize
13888         concatenation of strings.  Use snprintf instead of sprintf.
13889         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
13890         target when not compiling with GCC.
13891
13892 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
13893
13894         * config/sh/sh.c: Revert last change.
13895         (sh_expand_epilogue): Emit a blockage insn before the frame
13896         pointer adjustment unconditionally.
13897
13898 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13899
13900         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
13901         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
13902         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
13903         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
13904         to COLLECT_GCC_OPTIONS.
13905
13906 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13907
13908         * collect2.c (target_system_root): New variable.
13909         (main): Handle --sysroot=.
13910         (ignore_library): Strip the sysroot from the library path.
13911
13912 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13913
13914         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
13915         (collect2.o): Depend on collect2-aix.h.
13916         (collect2-aix.o): New rule.
13917         * collect2-aix.h: New file.
13918         * collect2-aix.c: Likewise.
13919         * collect2.c: Include collect2-aix.h.  Don't undefine
13920         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
13921         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
13922         Use TARGET_AIX_VERSION instead of _AIX51.
13923         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
13924         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
13925         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
13926         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
13927         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
13928
13929 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13930
13931         * collect2.c (ignore_library): Avoid premature post-increment
13932         and null deference.
13933
13934 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13935
13936         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
13937         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
13938         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
13939         CROSS_DIRECTORY_STRUCTURE too.
13940         (LINK_LIBG_SPEC): Likewise.
13941         (LIB_SPEC): Add %R to sysroot paths.
13942         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
13943         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
13944         * config/rs6000/aix51.h: As for aix43.h.
13945         * config/rs6000/aix52.h: Likewise.
13946         * config/rs6000/aix53.h: Likewise.
13947         * config/rs6000/aix61.h: Likewise.
13948         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
13949         to the beginning of sysroot paths.
13950
13951 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13952
13953         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
13954         INSN_LISTs that are out of the REG_NOTE range.
13955
13956 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13957
13958         * loop-unroll.c (struct iv_to_split): Add pointer to next.
13959         (struct var_to_expand): Likewise.
13960         (struct opt_info): Add head and tail for linked lists of the above.
13961         (analyze_insn_to_expand_var): Initialize next.
13962         (analyze_iv_to_split_insn): Likewise.
13963         (analyze_insns_in_loop): Create linked lists.
13964         (allocate_basic_variable): Simplify for use without hash table.
13965         (insert_var_expansion_initialization): Likewise, make it type-safer.
13966         (combine_var_copies_in_loop_exit): Likewise.
13967         (apply_opt_in_copies): Walk lists rather than hash tables.
13968         (release_var_copies): Simplified and inlined by hand into...
13969         (free_opt_info): ... this function.
13970
13971 2009-06-02  Richard Guenther  <rguenther@suse.de>
13972
13973         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
13974         for field decls.
13975
13976 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13977
13978         * cfgexpand.c (gimple_expand_cfg): Discard the source location
13979         only for builtins that are not overridden.
13980
13981 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13982
13983         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
13984         label string.
13985
13986 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13987
13988         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
13989
13990 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13991
13992         * combine.c (move_deaths): Compare LUIDs within the same BB only.
13993
13994 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
13995
13996         * common.opt (fdump-unnumbered-links): New.
13997         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
13998         * print-rtl.c (flag_dump_unnumbered_links): New.
13999         (print_rtx): Test it.
14000
14001 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
14002
14003         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14004         push/pop multiple to 8-byte alignment.
14005
14006 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
14007
14008         * config/i386/i386.c (queued_cfa_restores): New static variable.
14009         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14010         functions.
14011         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14012         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14013         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14014         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14015         note unconditionally.
14016         (ix86_emit_restore_regs_using_mov): Likewise.
14017         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14018         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
14019         it through to ix86_emit_restore_reg_using_pop.
14020         (ix86_emit_leave): Add RED_OFFSET argument.  Call
14021         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
14022         instead of adding REG_CFA_OFFSET note unconditionally.
14023         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
14024         the above functions.  Call ix86_add_queued_cfa_restore_notes when
14025         needed.
14026
14027         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
14028         force output of the label even for dwarf2out_do_cfi_asm.
14029         (add_fde_cfi): If -g2 and above and cfi might change CFA,
14030         force creation of CFI label and chain DW_CFA_set_loc jumping to it
14031         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
14032         caller.
14033         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14034         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
14035         dwarf2out_cfi_label callers.
14036         * tree.h (dwarf2out_cfi_label): Adjust prototype.
14037         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
14038         Adjust dwarf2out_cfi_label callers.
14039         * config/vax/vax.c (vax_output_function_prologue): Likewise.
14040
14041         * config/i386/i386.h (struct machine_cfa_state,
14042         struct machine_function): Guard with ifndef USED_FOR_TARGET
14043         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
14044
14045         PR other/40024
14046         * emutls.c (__emutls_get_address): Change arr->size to mean number
14047         of allocated arr->data entries instead of # of slots + 1.
14048
14049         PR middle-end/40316
14050         * recog.c (peep2_reinit_state): New function.
14051         (peephole2_init_state): Use it at the end of a basic block and also
14052         when seeing a RTX_FRAME_RELATED_P insn.
14053
14054 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
14055
14056         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
14057         fixuns_truncrfdi2): New.
14058         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
14059         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
14060         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
14061         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
14062         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
14063         *recip_approx): Remove.
14064         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
14065         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
14066         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
14067         move to div.md.
14068         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
14069         setf_exp_rf): New.
14070
14071 2009-06-01  Ian Lance Taylor  <iant@google.com>
14072
14073         * attribs.c (register_attribute): Use CONST_CAST.
14074         * collect2.c (main): Use CONST_CAST2.
14075         (scan_prog_file): Likewise.
14076         * gcc.c (process_command, main): Likewise.
14077         * toplev.c (toplev_main): Likewise.
14078
14079         * c-typeck.c (handle_warn_cast_qual): New static function,
14080         partially broken out of build_c_cast.
14081         (build_c_cast): Call handle_warn_cast_qual.
14082         * doc/invoke.texi (Warning Options): Document new effect of
14083         -Wcast-qual.
14084
14085 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
14086
14087         * diagnostic.c (diagnostic_build_prefix): Always print columns.
14088         (diagnostic_report_current_module): Print columns.
14089         * common.opt (flag_show_column): Enable by default.
14090
14091 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
14092
14093         * alias.c (find_base_term): Check for NULL term before returning.
14094
14095 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14096
14097         Revert due to PR40320:
14098         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14099         * calls.c (emit_library_call_value_1): Don't force_operand for move
14100         and push insns.
14101
14102 2009-06-01  Olivier Hainque  <hainque@adacore.com>
14103             Eric Botcazou  <ebotcazou@adacore.com>
14104
14105         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
14106         to be processed as a bitfield for constructor output purposes.
14107         * output.h (initializer_constant_valid_for_bitfield_p): Declare
14108         new function.
14109         * varasm.c (oc_local_state): New type, output_constructor
14110         local state to support communication with helpers.
14111         (oc_outer_state): New type, output_constructor outer state of
14112         relevance in recursive calls.
14113         (output_constructor_array_range): New output_constructor helper,
14114         extracted code for an array range element.
14115         (output_constructor_regular_field): New output_constructor helper,
14116         extracted code for an element that is not a bitfield.
14117         (output_constructor_bitfield): New output_constructor helper,
14118         extracted code for a bitfield element.  Accept an OUTER state
14119         argument for recursive processing.  Recurse on record or array
14120         CONSTRUCTOR values, possibly past noop conversions.
14121         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
14122         VALUE is a valid constant-valued expression for use in a static
14123         bit-field initializer.
14124         (output_constructor): Rework to use helpers.  Accept and honor an
14125         OUTER state argument for recursive calls.  Return total size.  Be
14126         prepared for nested constructors initializing bitfields.
14127         (output_constant): Feed OUTER in calls to output_constructor.
14128
14129 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14130
14131         * calls.c (emit_library_call_value_1): Don't force_operand for move
14132         and push insns.
14133
14134 2009-06-01  Nick Clifton  <nickc@redhat.com>
14135
14136         * doc/invoke.texi (IA-64 Options): Fix typo.
14137
14138 2009-06-01  Ira Rosen  <irar@il.ibm.com>
14139
14140         PR tree-optimization/39129
14141         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
14142         printed message.
14143         (vect_do_peeling_for_loop_bound): Use
14144         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14145         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14146         (vect_loop_versioning): Likewise.
14147         (vect_create_cond_for_alias_checks): Fix indentation.
14148         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
14149         macros.
14150         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
14151         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
14152         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
14153         "control flow in loop".
14154         (vect_estimate_min_profitable_iters): Use
14155         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14156         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14157         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14158         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
14159         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
14160         statement belongs to a group of strided accesses with the exact code
14161         check.
14162         (vectorizable_load): Likewise.
14163         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
14164         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14165
14166 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
14167
14168         * config/freebsd-stdint.h: New file.
14169         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
14170         Add freebsd-stdint.h to tm_file.
14171
14172 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
14173
14174         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
14175         (thumb2_extendhidi2): Likewise.
14176
14177 2009-05-31  Ian Lance Taylor  <iant@google.com>
14178
14179         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
14180
14181 2009-05-31  Ian Lance Taylor  <iant@google.com>
14182
14183         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
14184         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
14185         (ipa-reference.o): Depend upon gt-ipa-reference.h.
14186
14187 2009-05-31  Jason Merrill  <jason@redhat.com>
14188
14189         * tree-pretty-print.c (print_call_name): Take the callee, not the
14190         call itself.  Make non-static.  Use dump_function_name for functions.
14191         (dump_generic_node): Adjust.
14192         * diagnostic.h: Declare print_call_name.
14193         * gimple-pretty-print.c (dump_gimple_call): Use it.
14194
14195 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14196
14197         * config/sh/sh.md (ashldi3_std): New define_expand.
14198         (ashldi3): Use it.
14199
14200 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14201
14202         PR target/40313
14203         * config/sh/sh.c: Include debug.h.
14204         (sh_expand_epilogue): Emit a blockage insn before the frame
14205         pointer adjustment also when dwarf2out_do_frame returns true.
14206
14207 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
14208
14209         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
14210         (thumb2_extendqidi2): New pattern.
14211
14212 2009-05-31  Ira Rosen  <irar@il.ibm.com>
14213
14214         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
14215         mark phis for renaming.
14216         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
14217         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
14218         Call mark_sym_for_renaming.
14219         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
14220         * tree-vect-loop.c (vect_transform_loop): Remove
14221         vect_memsyms_to_rename initialization and a call to
14222         mark_set_for_renaming.
14223
14224 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
14225
14226         PR middle-end/40304
14227         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
14228         frame related even if !set_cfa && style < 0.
14229
14230 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
14231
14232         * config/i386/mingw-tls.c: New file.
14233         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
14234         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
14235         defining _WIN32 but not __CYGWIN__.
14236
14237 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14238
14239         * configure.ac: Add MPC support.
14240
14241         * config.in, configure: Regenerate.
14242
14243 2009-05-29  Richard Henderson  <rth@redhat.com>
14244
14245         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
14246         NOTE_INSN_BASIC_BLOCK.
14247         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
14248         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
14249         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
14250         to be deleted.
14251         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
14252         add in_use field.
14253         (add_cfi): Disable check redefining cfa away from drap.
14254         (lookup_cfa_1): Add remember argument; handle remember/restore.
14255         (lookup_cfa): Pass remember argument.
14256         (cfa_remember): New.
14257         (compute_barrier_args_size_1): Remove sibcall check.
14258         (dwarf2out_frame_debug_def_cfa): New.
14259         (dwarf2out_frame_debug_adjust_cfa): New.
14260         (dwarf2out_frame_debug_cfa_offset): New.
14261         (dwarf2out_frame_debug_cfa_register): New.
14262         (dwarf2out_frame_debug_cfa_restore): New.
14263         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
14264         (dwarf2out_begin_epilogue): New.
14265         (dwarf2out_frame_debug_restore_state): New.
14266         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
14267         DW_CFA_restore_state.
14268         (output_cfi_directive): Likewise.
14269         (convert_cfa_to_fb_loc_list): Likewise.
14270         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
14271         * dwarf2out.h: Update.
14272         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
14273         (copy_insn_1): Early out for null.
14274         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
14275         and dwarf2out_frame_debug_restore_state.
14276         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
14277         (prologue_insn_hash, epilogue_insn_hash): New.
14278         (free_after_compilation): Adjust freeing accordingly.
14279         (record_insns): Create hash table if needed; push insns into
14280         hash instead of array.
14281         (maybe_copy_epilogue_insn): New.
14282         (contains): Search hash table instead of array.
14283         (sibcall_epilogue_contains): Remove.
14284         (thread_prologue_and_epilogue_insns): Split eh_return insns
14285         and mark them as epilogues.
14286         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
14287         scanning in terms of basic blocks.
14288         * insn-notes.def (CFA_RESTORE_STATE): New.
14289         * jump.c (returnjump_p_1): Accept EH_RETURN.
14290         (eh_returnjump_p_1, eh_returnjump_p): New.
14291         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
14292         CFA_REGISTER, CFA_RESTORE): New.
14293         * rtl.def (EH_RETURN): New.
14294         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
14295
14296         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
14297         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
14298
14299         * config/i386/i386.c (gen_push): Update cfa state.
14300         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
14301         add a CFA_ADJUST_CFA note.
14302         (ix86_dwarf_handle_frame_unspec): Remove.
14303         (ix86_expand_prologue): Update cfa state.
14304         (ix86_emit_restore_reg_using_pop): New.
14305         (ix86_emit_restore_regs_using_pop): New.
14306         (ix86_emit_leave): New.
14307         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
14308         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
14309         * config/i386/i386.h (struct machine_cfa_state): New.
14310         (ix86_cfa_state): New.
14311         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
14312         (eh_return_internal): Merge from eh_return_<mode>,
14313         use eh_return rtx, split w/ epilogue.
14314
14315 2009-05-29  Ian Lance Taylor  <iant@google.com>
14316
14317         * builtins.c (validate_gimple_arglist): Don't use va_arg with
14318         enum type.
14319         * calls.c (emit_library_call_value_1): Likewise.
14320
14321         * c-typeck.c (c_build_va_arg): New function.
14322         * c-tree.h (c_build_va_arg): Declare.
14323         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
14324         instead of build_va_arg.
14325
14326 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14327
14328         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
14329         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
14330         (ptr_difference_cost): Use affine combinations to compute it.
14331         (difference_cost): Likewise.
14332         (get_computation_cost_at): Compute more accurate cost for addresses
14333         if the ratio is a multiplier allowed in addresses.
14334         For non-addresses, consider that an additional offset or symbol is
14335         added only once.
14336
14337 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14338
14339         * config/i386/i386.c (ix86_decompose_address): Avoid useless
14340         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
14341
14342         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
14343         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
14344         (prefix_rex): For UNIT_MMX don't imply the prefix by default
14345         if MODE_DI.
14346         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
14347         to 1 for TYPE_SSE{IADD1,CVT1}.
14348         (prefix_vex_imm8): Removed.
14349         (length_vex): Only pass 1 as second argument to
14350         ix86_attr_length_vex_default if prefix_extra is 0.
14351         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
14352         (length): For prefix vex computation use length_immediate
14353         attribute instead of prefix_vex_imm8.
14354         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
14355         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
14356         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
14357         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
14358         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
14359         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
14360         a space in between the operands.
14361         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
14362         if one operand is 0xff and the other one si, di, bp or sp.
14363         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
14364         other one si, di, bp or sp.
14365         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
14366         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
14367         type and mode attributes.
14368         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
14369         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
14370         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
14371         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
14372         prefix_data16 attribute iff MODE_DF.
14373         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
14374         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
14375         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
14376         constm128_operand in length_immediate computation.
14377         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
14378         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
14379         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
14380         length_immediate attribute to 1.
14381         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
14382         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
14383         for certain alternatives.
14384         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
14385         prefix_data16 attribute if MODE_V1DF.
14386         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
14387         length_immediate to 1.
14388         (set_got_rex64, set_rip_rex64): Remove length attribute, set
14389         length_address to 4, set mode attribute to MODE_DI.
14390         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
14391         (fxam<mode>2_i387): Set length attribute to 4.
14392         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
14393         *prefetch_3dnow_rex): Override length_address attribute.
14394         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
14395         attributes.
14396         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
14397         (constm128_operand): Removed.
14398         * config/i386/i386.c (memory_address_length): For
14399         disp && !index && !base in 64-bit mode account for SIB byte if
14400         print_operand_address can't optimize disp32 into disp32(%rip)
14401         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
14402         for fs: or gs: segment.
14403         (ix86_attr_length_immediate_default): When checking if shortform
14404         is possible, truncate immediate to the length of the non-shortened
14405         immediate.
14406         (ix86_attr_length_address_default): Ignore MEM_P operands
14407         with X constraint.
14408         (ix86_attr_length_vex_default): Only check for DImode on
14409         GENERAL_REG_P operands.
14410         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
14411         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
14412         (sse_cvttps2pi): Clear prefix_rep attribute.
14413         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
14414         attribute.
14415         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
14416         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
14417         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
14418         iff operand 2 is const_int_operand.
14419         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
14420         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
14421         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
14422         instead of vex.
14423         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
14424         prefix_data16.
14425         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
14426         prefix_data16 attribute for movlpd and movhpd instructions.
14427         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
14428         length_immediate for shufpd instruction.
14429         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
14430         (avx_cmpp<avxmodesuffixf2c><mode>3,
14431         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
14432         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
14433         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
14434         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
14435         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
14436         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
14437         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
14438         prefix_data16 attribute for the first alternative to 1.
14439         (*avx_loadlps): Override length_immediate for the first alternative.
14440         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
14441         attributes for second alternative.
14442         (*vec_concatv2sf_sse4_1): Override length_immediate and
14443         prefix_data16 attributes for second alternative.
14444         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
14445         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
14446         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
14447         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
14448         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
14449         prefix_data16 and length_immediate to 1.
14450         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
14451         to 1.
14452         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
14453         prefix_extra attribute for variants that don't have 0f prefix alone.
14454         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
14455         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
14456         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
14457         *sse4_1_pextrd): Set length_immediate to 1.
14458         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
14459         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
14460         to 1.
14461         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
14462         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
14463         length_immediate to 1 for second alternative.
14464         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
14465         prefix_extra and length_immediate attributes for the first
14466         alternative.
14467         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
14468         first alternative.
14469         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
14470         to 1 for the first and third alternative.
14471         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
14472         alternative.
14473         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
14474         attribute.
14475         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
14476         attribute to 0.
14477         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
14478         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
14479         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
14480         *avx_psign<mode>3): Set prefix_extra attribute to 1.
14481         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
14482         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
14483         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
14484         ssse3_psign<mode>3): Override prefix_rex attribute.
14485         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
14486         (ssse3_palignrti): Override length_immediate to 1.
14487         (ssse3_palignrdi): Override length_immediate to 1, override
14488         prefix_rex attribute.
14489         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
14490         (sse4a_extrqi): Override length_immediate to 2.
14491         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
14492         (sse4a_insertq): Override prefix_data16 to 0.
14493         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
14494         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
14495         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
14496         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
14497         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
14498         and length_immediate to 1.
14499         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
14500         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
14501         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
14502         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
14503         and length_immediate to 1.
14504         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
14505         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
14506         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
14507         avx_ptest256): Override prefix_extra to 1.
14508         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
14509         Override prefix_data16 and length_immediate to 1.
14510         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
14511         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
14512         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
14513         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
14514         prefix_data16 to 0 and prefix_extra to 2.
14515         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
14516         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
14517         attribute.
14518         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
14519         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
14520         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
14521         and prefix_extra to 2.
14522         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
14523         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
14524         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
14525         avx_vpermilvar<mode>3,
14526         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
14527         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
14528         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
14529         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
14530         Override prefix_extra to 1.
14531         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
14532         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
14533         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
14534         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
14535         prefix_extra and length_immediate to 1.
14536         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
14537         modrm to 0.
14538         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
14539         to 1 for the first alternative.
14540         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
14541         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
14542         cases.
14543         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
14544         *movv2sf_internal_avx, *movv2sf_internal): Override
14545         prefix_rep attribute for certain alternatives.
14546         (*mov<mode>_internal): Override prefix_rep or prefix_data16
14547         attributes for certain alternatives.
14548         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
14549         attributes for certain alternatives.
14550         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
14551         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
14552         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
14553         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
14554         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
14555         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
14556         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
14557         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
14558         length_immediate to 1 if operand 2 is const_int_operand.
14559         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
14560         *vec_extractv2si_1): Set length_immediate attribute to 1.
14561         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
14562         using old 3DNOW insn rather than SSE/3DNOW_A.
14563         (mmx_emms, mmx_femms): Clear modrm attribute.
14564
14565 2009-05-29  Martin Jambor  <mjambor@suse.cz>
14566
14567         * tree-sra.c:  New implementation of SRA.
14568
14569         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
14570         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
14571         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
14572         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
14573         (SRA_MAX_STRUCTURE_COUNT): Removed.
14574         (SRA_FIELD_STRUCTURE_RATIO): Removed.
14575         * doc/invoke.texi (sra-max-structure-size): Removed.
14576         (sra-field-structure-ratio): Removed.
14577
14578 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14579
14580         PR middle-end/40291
14581         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
14582         before expansion.
14583
14584 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
14585
14586         PR rtl-optimization/40101
14587         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
14588         seqno.  Adjust comment.
14589         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
14590         inserting bookkeeping before a jump, the jump is not scheduled.
14591         When no positive seqno found, provide a value.  Add comment.
14592
14593 2009-05-29  Richard Guenther  <rguenther@suse.de>
14594
14595         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
14596         short-cutting on the first component.
14597
14598 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14599
14600         PR middle-end/39958
14601         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
14602         for trees other than decls/types.
14603
14604 2009-05-29  Richard Guenther  <rguenther@suse.de>
14605
14606         * tree-ssa-operands.c (get_expr_operands): Do not handle
14607         INDIRECT_REFs in the handled-component case.  Remove
14608         unused get_ref_base_and_extent case.
14609         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
14610         tree_low_cst and host_integerp where possible.
14611         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
14612         codes for equivalence.
14613         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
14614
14615 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
14616
14617         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
14618         to tmake_file for i[34567]86-*-cygwin*.
14619
14620 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14621
14622         PR target/40017
14623         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
14624         (altivec_categorize_keyword, init_vector_keywords,
14625         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
14626         similar to bool.
14627
14628 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
14629
14630         * tree.c (handle_dll_attribute): Check if node is
14631         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
14632
14633 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
14634
14635         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
14636         component.
14637         (thumb2_zero_extendqidi2): Likewise.
14638
14639 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
14640
14641         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
14642         instead of gen_movrt.
14643         * config/sh/sh.md (movrt): Remove.
14644
14645 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
14646
14647         * doc/invoke.texi (IA-64 Options):
14648         Add -msdata, -mfused-madd, -mno-inline-float-divide,
14649         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
14650         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
14651         -msched-prefer-non-control-spec-insns,
14652         -msched-stop-bits-after-every-cycle,
14653         -msched-count-spec-in-critical-path,
14654         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
14655         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
14656         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
14657         and -msched-spec-verbose.
14658
14659 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
14660
14661         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
14662         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
14663         error if used.
14664         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
14665
14666 2009-05-28  Richard Guenther  <rguenther@suse.de>
14667
14668         * tree-ssa-alias.c (ao_ref_init): New function.
14669         (ao_ref_base): Likewise.
14670         (ao_ref_base_alias_set): Likewise.
14671         (ao_ref_alias_set): Likewise.
14672         (refs_may_alias_p_1): Change signature.
14673         (refs_may_alias_p): Adjust.
14674         (refs_anti_dependent_p): Likewise.
14675         (refs_output_dependent_p): Likewise.
14676         (call_may_clobber_ref_p_1): Change signature.
14677         (call_may_clobber_ref_p): Adjust.
14678         (stmt_may_clobber_ref_p_1): New function split out from ...
14679         (stmt_may_clobber_ref_p): ... here.
14680         (maybe_skip_until): Adjust signature.
14681         (get_continuation_for_phi): Likewise.
14682         (walk_non_aliased_vuses): Likewise.
14683         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
14684         (ao_ref_init): Declare.
14685         (ao_ref_base): Likewise.
14686         (ao_ref_alias_set): Likewise.
14687         (stmt_may_clobber_ref_p_1): Likewise.
14688         (walk_non_aliased_vuses): Adjust.
14689         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
14690         (get_ref_from_reference_ops): remove.
14691         (vn_reference_lookup_2): Adjust signature.
14692         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
14693         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
14694         (vn_reference_lookup): Adjust.
14695         (vn_reference_insert): Likewise.
14696         (vn_reference_insert_pieces): Adjust signature.
14697         (visit_reference_op_call): Adjust.
14698         * tree-ssa-pre.c (get_expr_type): Simplify.
14699         (phi_translate_1): Adjust.
14700         (compute_avail): Likewise.
14701         (translate_vuse_through_block): Do not re-build trees.
14702         (value_dies_in_block_x): Likewise.
14703         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
14704         fields.
14705         (vn_reference_lookup_pieces): Adjust declaration.
14706         (vn_reference_insert_pieces): Likewise.
14707
14708 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
14709
14710         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
14711         with checking disabled.
14712
14713 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
14714
14715         PR target/37216
14716
14717         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
14718         macro definition for support of three-operand format aligned
14719         .comm directive in assembler on cygwin/pe/mingw target OS.
14720         * configure:  Regenerate.
14721         * config.h:  Regenerate.
14722
14723         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
14724         aligned form of .comm directive if -mpe-aligned-commons is in effect.
14725         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
14726
14727         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
14728         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
14729
14730 2009-05-28  Ira Rosen  <irar@il.ibm.com>
14731
14732         PR tree-optimization/40254
14733         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
14734         in analysis of basic blocks.
14735
14736 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
14737
14738         PR middle-end/33699
14739         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
14740         * target-def.h (TARGET_CONST_ANCHOR): New macro.
14741         (TARGET_INITIALIZER): Use it.
14742         * cse.c (CHEAPER): Move it up to the other macros.
14743         (insert): Rename this ...
14744         (insert_with_costs): ... to this.  Add cost parameters.  Update
14745         function comment.
14746         (insert): New function.  Call insert_with_costs.
14747         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
14748         find_reg_offset_for_const, try_const_anchors): New functions.
14749         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
14750         when using a const-anchor.  Call insert_const_anchors.
14751         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
14752         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
14753
14754 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
14755
14756         * tree-inline.c (remap_decls): Enable nonlocalized variables
14757         when not optimizing.
14758
14759 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
14760
14761         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
14762         Simplify other tests involving optimize.
14763
14764 2009-05-27  Tom Tromey  <tromey@redhat.com>
14765
14766         * unwind-dw2.c (_Unwind_DebugHook): New function.
14767         (uw_install_context): Call _Unwind_DebugHook.
14768
14769 2009-05-27  Tom Tromey  <tromey@redhat.com>
14770
14771         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
14772
14773 2009-05-27  Ian Lance Taylor  <iant@google.com>
14774
14775         * Makefile.in (LINKER, LINKER_FLAGS): Define.
14776         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
14777         (ALL_LINKERFLAGS): Define.
14778         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
14779         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
14780         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
14781         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
14782         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
14783         $(LINKER_FOR_BUILD).
14784         (build/gcov-iov$(build_exeext)): Likewise.
14785
14786 2009-05-27  Julian Brown  <julian@codesourcery.com>
14787
14788         * gcse.c (target.h): Include.
14789         (can_assign_to_reg_without_clobbers_p): Check that the target allows
14790         copy of argument to a pseudo register.
14791
14792 2009-05-27  Diego Novillo  <dnovillo@google.com>
14793
14794         * tree-ssa-live.c (dump_scope_block): Document arguments.
14795         (dump_scope_blocks): Document.
14796         (debug_scope_blocks): New.
14797         * tree-flow.h (debug_scope_blocks): Declare.
14798
14799 2009-05-21  Denis Chertykov  <denisc@overta.ru>
14800
14801         * doc/contrib.texi (Contributors): Add myself to the list.
14802
14803 2009-05-27  Olivier Hainque  <hainque@adacore.com>
14804
14805         * expr.c (target_align): New function.  Alignment the TARGET of an
14806         assignment may be assume to have.
14807         (highest_pow2_factor_for_target): Use it instead of relying on
14808         immediate tree attributes of TARGET, not necessarily honored when
14809         intermediate bitfields are involved.
14810
14811 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
14812
14813         PR target/40266
14814         * config/i386/driver-i386.c (host_detect_local_cpu): Support
14815         AVX, SSE4, AES, PCLMUL and POPCNT.
14816
14817 2009-05-27  Diego Novillo  <dnovillo@google.com>
14818
14819         * tree-pretty-print.c (dump_location): New.
14820         (dump_generic_node): Call it.
14821         Factor code to handle BLOCK nodes ...
14822         (dump_block_node): ... here.
14823
14824 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
14825
14826         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
14827         with it.
14828         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
14829         included.
14830         * gcc-plugin.h: Include config.h and system.h.
14831         (IN_GCC): Define if not defined.
14832
14833 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
14834
14835         PR middle-end/40249
14836         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
14837         with -fno-inline.
14838
14839 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
14840
14841         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
14842         applicable.
14843         * config/m32r/m32r.h: Ditto.
14844         * config/m32r/m32r.md: Ditto.
14845         * config/m32r/predicates.md: Ditto.
14846
14847 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
14848
14849         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
14850
14851 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
14852
14853         * doc/plugins.texi
14854         (Loading plugins): typo.
14855         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
14856         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
14857         (Interacting with the GCC Garbage Collector): Added new section.
14858         (Giving information about a plugin): Added new section for
14859         PLUGIN_INFO.
14860         * ggc.h (ggc_register_root_tab): Added declaration.
14861         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
14862         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
14863         (register_callback): Improved comment in declaration.
14864         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
14865         (extra_root_vec) Added static variable for dynamic roots registration.
14866         (ggc_register_root_tab) Added new routine.
14867         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
14868         PLUGIN_GGC_MARKING event.
14869         * ggc-zone.c: Include plugin.h.
14870         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
14871         * ggc-page.c: Include plugin.h.
14872         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
14873         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
14874         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
14875         (register_callback): check lack of callbacks for
14876         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
14877         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
14878         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
14879         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
14880         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
14881         dependency on plugin.h.
14882         (plugin.o): Added dependency on ggc.h...
14883
14884 2009-05-26  Richard Guenther  <rguenther@suse.de>
14885
14886         PR middle-end/40248
14887         Revert
14888         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
14889         with mismatched comparison modes.
14890
14891         * expr.c (expand_expr_real_1): Expand the operand of a
14892         VIEW_CONVERT_EXPR in its natural mode.
14893
14894 2009-05-26  Ian Lance Taylor  <iant@google.com>
14895
14896         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
14897         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
14898         (ALL_COMPILERFLAGS): Define.
14899         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
14900         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
14901         (collect2$(exeext), collect2.o): Likewise.
14902         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
14903         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
14904         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
14905         (libbackend.o, intl.o, cppdefault.o): Likewise.
14906         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
14907         (build/%.o): Use $(COMPILER_FOR_BUILD).
14908         (build/gen%$(build_exeext)): Likewise.
14909         (build/gcov-iov$(build_exeext)): LIkewise.
14910         * config/t-darwin (darwin.o): Use $(COMPILER).
14911         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
14912         * config/t-sol2 (sol2-c.o): Likewise.
14913         (sol2.o): Likewise.
14914         * config/t-vxworks (vxworks.o): Likewise.
14915         * config/x-darwin (host-darwin.o): Likewise.
14916         * config/x-hpux (host-hpux.o): Likewise.
14917         * config/x-linux (host-linux.o): Likewise.
14918         * config/x-solaris (host-solaris.o): Likewise.
14919         * config/alpha/x-alpha (driver-alpha.o): Likewise.
14920         * config/arm/t-arm (arm-c.o): Likewise.
14921         * config/arm/t-pe (pe.o): Likewise.
14922         * config/arm/t-wince-pe (pe.o): Likewise.
14923         * config/i386/t-cygming (winnt.o): Likewise.
14924         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
14925         * config/i386/t-cygwin (cygwin1.o): Likewise.
14926         (cygwin2.o): Likewise.
14927         * config/i386/t-i386 (i386-c.o): Likewise.
14928         * config/i386/t-interix (winnt.o): Likewise.
14929         * config/i386/t-netware (netware.o): Likewise.
14930         * config/i386/t-nwld (nwld.o): Likewise.
14931         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
14932         * config/i386/x-i386 (driver-i386.o): Likewise.
14933         * config/i386/x-cygwin (host-cygwin.o): Likewise.
14934         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
14935         * config/ia64/t-ia64 (ia64-c.o): Likewise.
14936         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
14937         * config/mips/x-native (driver-native.o): Likewise.
14938         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
14939         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
14940         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
14941         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
14942         * config/score/t-score-elf (score7.o): Likewise.
14943         (score3.o): Likewise.
14944         * config/sh/t-sh (sh-c.o): Likewise.
14945         * config/sh/t-symbian (sh-c.o): Likewise.
14946         (symbian.o): Likewise.
14947         * config/spu/t-spu-elf (spu-c.o): Likewise.
14948         * config/v850/t-v850 (v850-c.o): Likewise.
14949         * config/v850/t-v850e (v850-c.o): Likewise.
14950
14951 2009-05-26  Richard Guenther  <rguenther@suse.de>
14952
14953         PR tree-optimization/40122
14954         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
14955         VECTOR_CSTs if possible.
14956         (fold_gimple_assign): Likewise.
14957
14958 2009-05-26  Richard Guenther  <rguenther@suse.de>
14959
14960         PR middle-end/40252
14961         * fold-const.c (fold_binary): Use the correct types for building
14962         rotates.
14963
14964 2009-05-26  Richard Guenther  <rguenther@suse.de>
14965
14966         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
14967         redundant calls to merge_alias_info.
14968         (bump_vector_ptr): Likewise.
14969         * tree-ssa-copy.c (merge_alias_info): Remove.
14970         (replace_exp_1): Remove call to merge_alias_info.
14971         (propagate_tree_value): Likewise.
14972         (fini_copy_prop): Propagate points-to info.
14973         * tree-flow.h (merge_alias_info): Remove.
14974
14975 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
14976
14977         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
14978
14979 2009-05-25  Jan Hubicka  <jh@suse.cz>
14980
14981         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
14982         * cgraph.h (struct inline_summary): New filed self_wize,
14983         size_inlining_benefit, self_time and time_inlining_benefit.
14984         (struct cgraph_global_info): Replace insns by time ans size fields.
14985         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
14986         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
14987         (ipcp_update_callgraph): Do not touch function bodies.
14988         * ipa-inline.c: Include except.h
14989         (MAX_TIME): New constant.
14990         (overall_insns): Remove.
14991         (leaf_node_p): New.
14992         (overall_size, max_benefit): New static variables.
14993         (cgraph_estimate_time_after_inlining): New function.
14994         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
14995         (cgraph_clone_inlined_nodes): Update size.
14996         (cgraph_mark_inline_edge): Update size.
14997         (cgraph_estimate_growth): Use size info.
14998         (cgraph_check_inline_limits): Check size.
14999         (cgraph_default_inline_p): Likewise.
15000         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15001         (cgraph_decide_recursive_inlining): Check size.
15002         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15003         and times.
15004         (cgraph_decide_inlining): Likewise.
15005         (cgraph_decide_inlining_incrementally): Likewise; honor
15006         PARAM_EARLY_INLINING_INSNS.
15007         (likely_eliminated_by_inlining_p): New predicate.
15008         (estimate_function_body_sizes): New function.
15009         (compute_inline_parameters): Use it.
15010         * except.c (must_not_throw_labels): New function.
15011         * except.h (must_not_throw_labels): Declare.
15012         * tree-inline.c (init_inline_once): Kill inlining_weigths
15013         * tree-ssa-structalias.c: Avoid uninitialized warning.
15014         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15015         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15016         (PARAM_INLINE_CALL_COST): Remove.
15017         (PARAM_EARLY_INLINING_INSNS): New.
15018
15019 2009-05-25  Richard Guenther  <rguenther@suse.de>
15020
15021         PR tree-optimization/36327
15022         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
15023         callback for reference translation or lookup at the point of may-defs.
15024         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
15025         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
15026         for union COMPONENT_REFs.
15027         (vn_reference_lookup_3): New callback.  Lookup from memset
15028         and CONSTRUCTOR assignment, translate through struct copies.
15029         (vn_reference_lookup_pieces): Make sure to not free the
15030         passed operands array.  Adjust walk_non_aliased_vuses call.
15031         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
15032         make sure we do not leak memory.
15033
15034 2009-05-25  Richard Guenther  <rguenther@suse.de>
15035
15036         * tree-ssa-alias.h (dump_points_to_solution): Declare.
15037         * tree-inline.c (expand_call_inline): Reset the escaped and
15038         callused solutions.
15039         * tree-ssa-structalias.c (pass_build_ealias): New.
15040         * tree-pass.h (pass_build_ealias): Declare.
15041         * passes.c (init_optimization_passes): Add PTA during
15042         early optimizations.
15043         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
15044         and CALLUSED solutions.
15045         (dump_points_to_solution): New function, split out from ...
15046         (dump_points_to_info_for): ... here.
15047         * tree-parloops.c (parallelize_loops): Reset the escaped and
15048         callused solutions.
15049
15050 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15051
15052         PR bootstrap/40027
15053         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
15054         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
15055
15056 2009-05-25  Ira Rosen  <irar@il.ibm.com>
15057
15058         PR tree-optimization/40238
15059         * tree-vect-stmts.c (vect_init_vector): Insert initialization
15060         statements after basic block's labels.
15061         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
15062         to free the allocated memory.
15063
15064 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15065
15066         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
15067         return address with a USE.
15068
15069 2009-05-24  Richard Guenther  <rguenther@suse.de>
15070
15071         PR middle-end/40233
15072         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
15073         array type from the main variant of the inner type.
15074
15075 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15076
15077         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
15078         definition to bool (from int) to un-break build.
15079         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
15080
15081 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
15082
15083         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
15084         discard_stmt_changes): Delete.
15085         * tree-ssa-operands.c (scb_stack): Delete.
15086         (init_ssa_operands): Do not initialize it.
15087         (fini_ssa_operands): Do not free it.
15088         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
15089
15090         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
15091         update_stmt, remove the others.  Fix comments.
15092         * tree-dfa.c (optimize_stack_restore): Likewise.
15093         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
15094         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
15095         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15096         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
15097         Likewise.
15098         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
15099         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
15100         (dom_opt_finalize_block): Likewise, adjusting access to
15101         stmts_to_rescan.
15102         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
15103         (stmts_to_rescan): Change item type to gimple.
15104         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
15105
15106 2009-05-24  Ira Rosen  <irar@il.ibm.com>
15107
15108         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
15109         * tree-pass.h (pass_slp_vectorize): New pass.
15110         * params.h (SLP_MAX_INSNS_IN_BB): Define.
15111         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
15112         * tree-vectorizer.c (timevar.h): Include.
15113         (user_vect_verbosity_level): Declare.
15114         (vect_location): Fix comment.
15115         (vect_set_verbosity_level): Update user_vect_verbosity_level
15116         instead of vect_verbosity_level.
15117         (vect_set_dump_settings): Add an argument. Ignore user defined
15118         verbosity if dump flags require higher level of verbosity. Print to
15119         stderr only for loop vectorization.
15120         (vectorize_loops): Update call to vect_set_dump_settings.
15121         (execute_vect_slp): New function.
15122         (gate_vect_slp): Likewise.
15123         (struct gimple_opt_pass pass_slp_vectorize): New.
15124         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
15125         access its members.
15126         (vec_info_for_bb): New function.
15127         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
15128         (VECTORIZATION_ENABLED): New macro.
15129         (SLP_ENABLED, SLP_DISABLED): Likewise.
15130         (vect_is_simple_use): Add bb_vec_info argument.
15131         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
15132         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
15133         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
15134         vect_schedule_slp, vect_analyze_slp): Likewise.
15135         (vect_analyze_stmt): Add slp_tree argument.
15136         (find_bb_location): Declare.
15137         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15138         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
15139         (vect_analyze_loop_operations, vect_analyze_loop,
15140         get_initial_def_for_induction, vect_create_epilog_for_reduction,
15141         vect_finalize_reduction, vectorizable_reduction,
15142         vectorizable_live_operation, vect_transform_loop): Likewise.
15143         * tree-data-ref.c (dr_analyze_innermost): Update comment,
15144         skip evolution analysis if analyzing a basic block.
15145         (dr_analyze_indices): Likewise.
15146         (initialize_data_dependence_relation): Skip the test whether the
15147         object is invariant for basic blocks.
15148         (compute_all_dependences): Skip dependence analysis for data
15149         references in basic blocks.
15150         (find_data_references_in_stmt): Don't fail in case of invariant
15151         access in basic block.
15152         (find_data_references_in_bb): New function.
15153         (find_data_references_in_loop): Move code to
15154         find_data_references_in_bb and add a call to it.
15155         (compute_data_dependences_for_bb): New function.
15156         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
15157         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
15158         that STEP is 0.
15159         (vect_analyze_data_ref_dependence): Check for interleaving in case of
15160         unknown dependence in basic block and fail in case of dependence in
15161         basic block.
15162         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
15163         dependence instances from either loop or basic block vectorization
15164         info.
15165         (vect_compute_data_ref_alignment): Check if it is loop vectorization
15166         before calling nested_in_vect_loop_p.
15167         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
15168         dependence instances from either loop or basic block vectorization
15169         info.
15170         (vect_verify_datarefs_alignment): Likewise.
15171         (vect_enhance_data_refs_alignment): Adjust function calls.
15172         (vect_analyze_data_refs_alignment): Likewise.
15173         (vect_analyze_group_access): Fix printing. Skip different checks if
15174         DR_STEP is 0. Keep strided stores either in loop or basic block
15175         vectorization data structure. Fix indentation.
15176         (vect_analyze_data_ref_access): Fix comments, allow zero step in
15177         basic blocks.
15178         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
15179         dependence instances from either loop or basic block vectorization
15180         info.
15181         (vect_analyze_data_refs): Update comment. Call
15182         compute_data_dependences_for_bb to analyze basic blocks.
15183         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
15184         case of loop vectorization. In case of basic block vectorization use
15185         data-ref itself as a base.
15186         (vect_create_data_ref_ptr): In case of basic block vectorization:
15187         don't advance the pointer, add new statements before the current
15188         statement.  Adjust function calls.
15189         (vect_supportable_dr_alignment): Support only aligned accesses in
15190         basic block vectorization.
15191         * common.opt (ftree-slp-vectorize): New flag.
15192         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
15193         (vect_pattern_recog_1): Likewise.
15194         * tree-vect-stmts.c (process_use): Likewise.
15195         (vect_init_vector): Add new statements in the beginning of the basic
15196         block in case of basic block SLP.
15197         (vect_get_vec_def_for_operand): Adjust function calls.
15198         (vect_finish_stmt_generation): Likewise.
15199         (vectorizable_call): Add assert that it is loop vectorization, adjust
15200         function calls.
15201         (vectorizable_conversion, vectorizable_assignment): Likewise.
15202         (vectorizable_operation): In case of basic block SLP, take
15203         vectorization factor from statement's type and skip the relevance
15204         check. Adjust function calls.
15205         (vectorizable_type_demotion): Add assert that it is loop
15206         vectorization, adjust function calls.
15207         (vectorizable_type_promotion): Likewise.
15208         (vectorizable_store): Check for outer loop only in case of loop
15209         vectorization. Adjust function calls. For basic blocks, skip the
15210         relevance check and don't advance pointers.
15211         (vectorizable_load): Likewise.
15212         (vectorizable_condition): Add assert that it is loop vectorization,
15213         adjust function calls.
15214         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
15215         that it is not reduction, get vector type, call only supported
15216         functions, skip loop specific parts.
15217         (vect_transform_stmt): Check for outer loop only in case of loop
15218         vectorization.
15219         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
15220         (vect_is_simple_use): Fix comment, add new argument, fix conditions
15221         for external definition.
15222         * passes.c (pass_slp_vectorize): New pass.
15223         * tree-vect-slp.c (find_bb_location): New function.
15224         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
15225         check for patterns only in loops.
15226         (vect_build_slp_tree): Add argument, adjust function calls, fail in
15227         case of multiple types in basic block SLP.
15228         (vect_mark_slp_stmts_relevant): New function.
15229         (vect_supported_load_permutation_p): Fix comment.
15230         (vect_analyze_slp_instance): Add argument. In case of basic block
15231         SLP, take vectorization factor from statement's type, check that
15232         unrolling factor is 1. Adjust function call. Save SLP instance in
15233         either loop or basic block vectorization structure. Return FALSE,
15234         if SLP failed.
15235         (vect_analyze_slp): Add argument. Get strided stores groups from
15236         either loop or basic block vectorization structure. Return FALSE
15237         if basic block SLP failed.
15238         (new_bb_vec_info): New function.
15239         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
15240         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
15241         (vect_schedule_slp): Add argument. Get SLP instances from either
15242         loop or basic block vectorization structure. Set vectorization factor
15243         to be 1 for basic block SLP.
15244         (vect_slp_transform_bb): New function.
15245         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
15246
15247 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
15248
15249         * final.c (shorten_branches): Do not align labels for jump tables.
15250         (final_scan_insn): Use JUMP_TABLE_DATA_P.
15251
15252 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
15253
15254         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
15255         Remove outdated reference to flow.c and fix nits.
15256         * doc/gccint.texi: Tweak RTL description.
15257         * doc/rtl.texi: Likewise.
15258
15259 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
15260
15261         * config/avr/avr.c: Change my email address.
15262         * config/avr/avr.h: Likewise.
15263         * config/avr/avr.md: Likewise.
15264         * config/avr/avr-protos.h: Likewise.
15265         * config/avr/libgcc.S: Likewise.
15266
15267 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
15268
15269         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
15270         (spu_split_load, spu_split_store): Change return type to int.
15271         (spu_split_convert): Declare.
15272         * config/spu/predicates.md (spu_mem_operand): Remove.
15273         (spu_mov_operand): Update.
15274         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
15275         * config/spu/spu.c (regno_aligned_for_load): Remove.
15276         (reg_aligned_for_addr, spu_expand_load): Define.
15277         (spu_expand_extv): Reimplement and handle MEM.
15278         (spu_expand_insv): Handle MEM.
15279         (spu_sched_reorder): Handle insn's with length 0.
15280         (spu_legitimate_address_p): Reimplement.
15281         (store_with_one_insn_p): Return TRUE for any mode with size
15282         larger than 16 bytes.
15283         (address_needs_split): Define.
15284         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
15285         operands.
15286         (spu_convert_move): Define.
15287         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
15288         (spu_split_store): Change all MEM's to TImode.
15289         (spu_init_expanders): Preallocate registers that correspond to
15290         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
15291         mark_reg_pointer.
15292         (spu_split_convert): Define.
15293         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
15294         (_move<mode>, _movdi, _movti): Update predicate and condition.
15295         (load, store): Change to define_split.
15296         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
15297         extend<mode>ti2.
15298         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
15299         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
15300         define_insn_and_split of lshr<mode>3.
15301         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
15302         (<v>ashr<mode>3_imm): Define.
15303         (extv, extzv, insv): Allow MEM operands.
15304         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
15305         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
15306         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
15307         (_spu_convert2): Change to define_insn_and_split and remove the
15308         corresponding define_peephole2.
15309         (stack_protect_set, stack_protect_test, stack_protect_test_si):
15310         Change predicates to memory_operand.
15311
15312 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
15313
15314         * config/arm/thumb2.md: Add 16-bit multiply instructions.
15315
15316 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
15317
15318         PR tree-optimization/40219
15319         * tree.c (iterative_hash_expr): Make sure the builtin function is
15320         a normal builtin function and not a front end or back end builtin
15321         before indexing into the built_in_decls array.
15322
15323 2009-05-22  Richard Guenther  <rguenther@suse.de>
15324
15325         PR middle-end/38964
15326         * alias.c (write_dependence_p): Do not use TBAA for answering
15327         anti-dependence or output-dependence.
15328         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
15329         (emit_pointer_definition): Remove.
15330         (emit_alias_warning): Likewise.
15331         (find_what_var_points_to): Remove TBAA pruning code.
15332         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
15333         violations.
15334         (compute_points_to_sets): Remove code computing the set of
15335         dereferenced pointers.
15336         * tree-data-ref.c (dr_may_alias_p): Properly use the split
15337         oracle for querying anti and output dependencies.
15338         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
15339         if TBAA may be applied.
15340         (refs_anti_dependent_p): New function.
15341         (refs_output_dependent_p): Likewise.
15342         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
15343         (refs_output_dependent_p): Likewise.
15344         * doc/tree-ssa.texi (Memory model): New section.
15345         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15346         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15347         * cfgexpand.c (expand_gimple_basic_block): Do not handle
15348         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
15349         * expr.c (expand_expr_real_1): Likewise.
15350         * gimple-low.c (lower_stmt): Likewise.
15351         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
15352         (dump_gimple_cdt): Remove.
15353         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15354         (gimple_size): Likewise.
15355         (walk_gimple_op): Likewise.
15356         (is_gimple_stmt): Likewise.
15357         (walk_stmt_load_store_addr_ops): Likewise.
15358         (gimple_build_cdt): Remove.
15359         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15360         * gimple.h (gimple_cdt_new_type): Remove.
15361         (gimple_cdt_new_type_ptr): Likewise.
15362         (gimple_cdt_set_new_type): Likewise.
15363         (gimple_cdt_location): Likewise.
15364         (gimple_cdt_location_ptr): Likewise.
15365         (gimple_cdt_set_location): Likewise.
15366         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15367         * tree-cfg.c (remove_useless_stmts_1): Do not handle
15368         GIMPLE_CHANGE_DYNAMIC_TYPE.
15369         (verify_types_in_gimple_stmt): Likewise.
15370         * tree-inline.c (estimate_num_insns): Likewise.
15371         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
15372         (copy_decl_to_var): Likewise.
15373         (copy_result_decl_to_var): Likewise.
15374         * tree-pretty-print.c (dump_generic_node): Do not handle
15375         CHANGE_DYNAMIC_TYPE_EXPR.
15376         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15377         * tree-ssa-operands.c (get_expr_operands): Likewise.
15378         * tree-ssa-structalias.c (struct variable_info): Remove
15379         no_tbaa_pruning member.
15380         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
15381         (unify_nodes): Do not copy it.
15382         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15383         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
15384         (set_uids_in_ptset): Do not check it.
15385         (find_what_var_points_to): Likewise.
15386         (compute_tbaa_pruning): Remove.
15387         (compute_points_to_sets): Do not call it.
15388         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15389         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15390         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
15391         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
15392         (DECL_NO_TBAA_P): Likewise.
15393         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
15394         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
15395         (expand_omp_atomic_pipeline): Do not set it.
15396         * print-tree.c (print_node): Do not dump it.
15397         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15398         redundant check.
15399
15400 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
15401
15402         PR target/39856
15403         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
15404         for clobber.
15405
15406 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
15407
15408         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
15409         non-external.
15410
15411 2009-05-22  Ben Elliston  <bje@au.ibm.com>
15412
15413         * Makefile.in (bversion.h, s-bversion): New targets.
15414         (TOPLEV_H): Add bversion.h.
15415         * toplev.h: Include "bversion.h".
15416         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
15417         the __format__ attribute only if compiling with the same version
15418         of GCC as the sources (the "build version").
15419
15420 2009-05-22  Ben Elliston  <bje@au.ibm.com>
15421
15422         * c-format.c (handle_format_attribute): Fix comment typo.
15423
15424 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
15425
15426         PR target/37846
15427         * config/ia64/ia64.opt (mfused-madd): New.
15428         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
15429         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
15430         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
15431         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
15432         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
15433         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
15434         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
15435         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
15436         instruction if !TARGET_FUSED_MADD.
15437         (fpma, fpms): Remove colon from name.
15438
15439 2009-05-22  Richard Guenther  <rguenther@suse.de>
15440
15441         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
15442         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
15443         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
15444         TARGET_MEM_REF.
15445         (create_expression_by_pieces): Only convert if necessary.
15446         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
15447         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
15448
15449 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
15450
15451         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
15452         regular pattern from a template and rename it ...
15453         (*extzv_truncsi_exts): ... to this.
15454
15455 2009-05-21  Richard Guenther  <rguenther@suse.de>
15456
15457         * cgraph.h (struct cgraph_node): Remove inline_decl member.
15458         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
15459         (cgraph_default_inline_p): Likewise.
15460         (cgraph_decide_inlining_incrementally): Likewise.
15461
15462 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15463             Uros Bizjak  <ubizjak@gmail.com>
15464
15465         * config/i386/cpuid.h (bit_MOVBE): New.
15466
15467         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
15468
15469         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
15470         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
15471         (ix86_handle_option): Handle OPT_mmovbe.
15472         (ix86_target_string): Add -mmovbe.
15473         (pta_flags): Add PTA_MOVBE.
15474         (processor_alias_table): Add PTA_MOVBE to "atom".
15475         (override_options): Handle PTA_MOVBE.
15476
15477         * config/i386/i386.h (TARGET_MOVBE): New.
15478
15479         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
15480         (*bswapsi_movbe): New.
15481         (*bswapdi_movbe): Likewise.
15482         (bswapdi2): Renamed to ...
15483         (*bswapdi_1): This.
15484         (bswapdi2): New expander.
15485
15486         * config/i386/i386.opt (mmovbe): New.
15487
15488         * doc/invoke.texi: Document -mmovbe.
15489
15490 2009-05-21  Taras Glek  <tglek@mozilla.com>
15491
15492         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
15493         * gcc-plugin.h (plugin_init): Updated signature.
15494         * gcc-plugin.h (plugin_name_args): Moved to this header.
15495         * doc/plugins.texi (plugin_init): Updated documention to reflect
15496         API change.
15497         * doc/plugins.texi (plugin_name_args): Added to documention.
15498
15499 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
15500
15501         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
15502         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
15503
15504 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
15505
15506         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
15507         JUMP_TABLE_DATA_P predicates where applicable.
15508         * config/i386/predicates.md: Ditto.
15509         * config/i386/sse.md: Ditto.
15510
15511 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
15512
15513         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
15514         operand2 -128 override length_immediate attribute to 1.
15515         * config/i386/predicates.md (constm128_operand): New predicate.
15516
15517         * config/i386/i386.c (memory_address_length): Handle %r12
15518         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
15519         also check REGNO.
15520         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
15521         mode look through optional ZERO_EXTEND and SUBREG.
15522         * config/i386/i386.md (R12_REG): New define_constant.
15523         (prefix_data16): For sse unit set also for MODE_TI insns.
15524         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
15525         insns set if operand 1 is ext_QIreg_operand.
15526         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
15527         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
15528         immediate.
15529         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
15530         mode from MODE_DI to MODE_SI.
15531         (movdi_1_rex64): Override modrm and length_immediate attributes
15532         only for movabs (TYPE_IMOV, alternative 2).
15533         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
15534         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15535         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15536         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15537         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
15538         prefix_rex attribute if DImode.
15539         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
15540         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
15541         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
15542         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
15543         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
15544         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
15545         Likewise.  For TYPE_IMOV clear length_immediate attribute.
15546         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
15547         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
15548         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
15549         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
15550         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
15551         or one operand TYPE_ISHIFT.
15552         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
15553         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
15554         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
15555         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
15556         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
15557         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
15558         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
15559         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
15560         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
15561         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
15562         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
15563         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
15564         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
15565         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
15566         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
15567         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
15568         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
15569         set mode attribute, don't override length attribute.
15570         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
15571         to 1.
15572         (return_internal_long): Set length attribute to 2 instead of 1.
15573         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
15574         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
15575         prefix_rex attribute.
15576         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
15577         New predicates.
15578         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
15579
15580 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15581
15582         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
15583
15584 2009-05-20  Ian Lance Taylor  <iant@google.com>
15585
15586         * tree.c (build_tree_list_vec_stat): New function.
15587         (ctor_to_vec): New function.
15588         (build_nt_call_vec): New function.
15589         (build_call_array): Change args to be a const pointer.
15590         (build_call_vec): New function.
15591         * tree.h (build_nt_call_vec): Declare.
15592         (build_tree_list_vec_stat): Declare.
15593         (build_tree_list_vec): Define.
15594         (build_call_array): Update declaration.
15595         (build_call_vec): Declare.
15596         (ctor_to_vec): Declare.
15597         * c-common.c (tree_vector_cache): New static variable.
15598         (make_tree_vector): New function.
15599         (release_tree_vector): New function.
15600         (make_tree_vector_single): New function.
15601         (make_tree_vector_copy): New function.
15602         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
15603         (make_tree_vector_single, make_tree_vector_copy): Declare.
15604         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
15605         (c_parser_expr_list): Don't manage cache here, instead call
15606         make_tree_vector.
15607         (c_parser_release_expr_list): Remove static function.
15608         (c_parser_vec_to_tree_list): Remove static function.
15609         (c_parser_attributes): Call build_tree_list_vec instead of
15610         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
15611         c_parser_release_expr_list.
15612         (c_parser_postfix_expression_after_primary): Likewise.
15613         (c_parser_objc_keywordexpr): Likewise.
15614
15615 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
15616
15617         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
15618         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
15619         TARGET_CONVERT_TO_TYPE.
15620         * hooks.c (hook_tree_const_tree_null): Define.
15621         * hooks.h (hook_tree_const_tree_null): Declare.
15622         * target.h (struct gcc_target):  Add invalid_parameter_type,
15623         invalid_return_type, promoted_type, and convert_to_type fields.
15624         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
15625         (TARGET_INVALID_RETURN_TYPE): Define.
15626         (TARGET_PROMOTED_TYPE): Define.
15627         (TARGET_CONVERT_TO_TYPE): Define.
15628         (TARGET_INITIALIZER): Update for new fields.
15629         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
15630         (grokparms): Check targetm.invalid_parameter_type.
15631         * c-typeck.c (default_conversion): Check targetm.promoted_type.
15632         * c-convert.c (convert): Check targetm.convert_to_type.
15633
15634 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
15635
15636         * config/mips/mips.md (*extenddi_truncate<mode>,
15637         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
15638         defintions.
15639         (*extendhi_truncateqi): New define_insn_and_sptit.
15640
15641 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
15642
15643         PR middle-end/40204
15644         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
15645         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
15646
15647 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
15648
15649         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
15650         the operand of VIEW_CONVERT_EXPR.
15651
15652 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
15653
15654         * config/i386/driver-i386.c (host_detect_local_cpu): Check
15655         extended family and model for Intel processors.  Support Intel Atom.
15656
15657 2009-05-20  Olivier Hainque  <hainque@adacore.com>
15658
15659         * gstab.h (stab_code_type): Define, to be used instead of the
15660         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
15661         notice.
15662         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
15663         occurrences by stab_code_type.
15664         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
15665
15666 2009-05-20  Martin Jambor  <mjambor@suse.cz>
15667
15668         * tree-flow.h (insert_edge_copies_seq): Undeclare.
15669         (sra_insert_before): Likewise.
15670         (sra_insert_after): Likewise.
15671         (sra_init_cache): Likewise.
15672         (sra_type_can_be_decomposed_p): Likewise.
15673         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
15674         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
15675         (sra_insert_before): Likewise.
15676         (sra_insert_after): Likewise.
15677         (sra_init_cache): Likewise.
15678         (insert_edge_copies_seq): Made static and moved upwards.
15679
15680         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
15681         case.
15682
15683         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
15684
15685         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
15686         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
15687         simple copies.
15688
15689 2009-05-20  Richard Guenther  <rguenther@suse.de>
15690
15691         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15692         with mismatched comparison modes.
15693
15694 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15695
15696         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
15697         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
15698         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
15699         with shifts for Thumb2.
15700         (orsi_notsi): New for orn.
15701         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
15702         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
15703         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
15704         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
15705         Don't invert remainder for IOR.
15706
15707 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
15708
15709         PR tree-optimization/40087
15710         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
15711         number_of_iterations_ne): Rename never_infinite argument.
15712         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
15713         number_of_iterations_le): Handle pointer-type ivs when
15714         exit_must_be_taken is false.
15715         (number_of_iterations_cond):  Do not always assume that
15716         exit_must_be_taken if the control variable is a pointer.
15717
15718 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
15719
15720         * c-typeck.c (build_binary_op): Allow % on integal vectors.
15721         * doc/extend.texi (Vector Extension): Document that % is allowed too.
15722
15723 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
15724
15725         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
15726         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
15727
15728 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15729
15730         PR c/40172
15731         * c.opt (Wlogical-op): Disabled by default.
15732         * c-opt (c_common_post_options): Do not enable Wlogical-op with
15733         Wextra.
15734         * doc/invoke.texi (Wlogical-op): Likewise.
15735
15736 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15737
15738         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
15739         into CASE_CONVERT.
15740         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
15741         Propagate the type of the first operand.
15742         <ASSERT_EXPR>: Simplify.
15743         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
15744         Rewrite using the RHS code as discriminant.
15745         <NOP_EXPR>: Turn into CASE_CONVERT.
15746         <PLUS_EXPR>: Propagate the type of the first operand.
15747
15748 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
15749
15750         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
15751         (ia64_dconst_0_375): New.
15752         * config/ia64/ia64.c (ia64_override_options): Remove
15753         -minline-sqrt-min-latency warning.
15754         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
15755         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
15756         * config/ia64/ia64.md (*sqrt_approx): Remove.
15757         (sqrtsf2): Remove #if 0.
15758         (sqrtsf2_internal_thr): Rewrite and move to div.md.
15759         (sqrtdf): Remove assert.
15760         (sqrtdf2_internal_thr): Rewrite and move to div.md.
15761         (sqrtxf2): Remove #if 0.
15762         (sqrtxf2_internal_thr): Rewrite and move to div.md.
15763         * div.md (sqrt_approx_rf): New.
15764         (sqrtsf2_internal_thr): New implementation.
15765         (sqrtsf2_internal_lat): New.
15766         (sqrtdf2_internal_thr: New implementation.
15767         (sqrtxf2_internal): New implementation.
15768
15769 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
15770             Hans-Peter Nilsson  <hp@axis.com>
15771
15772         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
15773         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
15774         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
15775         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
15776         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
15777         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
15778         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
15779         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
15780         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
15781         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
15782         * c-common.c: ...from here.
15783
15784 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15785
15786         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
15787
15788 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15789
15790         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
15791
15792 2009-05-19  Ben Elliston  <bje@au.ibm.com>
15793
15794         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
15795         assignments with memcpy calls.
15796         (add_fdes): Likewise.
15797         (binary_search_unencoded_fdes): Likewise.
15798         (linear_search_fdes): Eliminate type puns.
15799
15800 2009-05-19  Richard Guenther  <rguenther@suse.de>
15801
15802         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
15803         not falsely claim to have propagated into all uses.
15804
15805 2009-05-19  Ben Elliston  <bje@au.ibm.com>
15806
15807         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
15808         version to v3.0.
15809
15810 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15811
15812         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
15813         * config/sh/sh.c (sh_legitimate_address_p): Make static.
15814         (TARGET_LEGITIMATE_ADDRESS_P): New.
15815         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
15816         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
15817
15818 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
15819
15820         PR debug/40109
15821         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
15822         child of the containing namespace's DIE.
15823
15824 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
15825
15826         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
15827         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
15828         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
15829         extend patterns.
15830
15831 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
15832
15833         PR target/39942
15834         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
15835         gen_align with gen_pad.
15836         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
15837         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
15838
15839         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
15840         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
15841
15842         * config/i386/i386.md (align): Renamed to ...
15843         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
15844         ASM_OUTPUT_MAX_SKIP_PAD.
15845
15846 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
15847
15848         * config.gcc: Fix variable syntax.
15849
15850         PR target/39531
15851         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
15852         before calling exact_log2.
15853         (output_iorsi3): Likewise.
15854         (output_xorsi3): Likewise.
15855
15856 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
15857
15858         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
15859         for the none zero constant operand except for EQ and NE
15860         comprisons even when the first operand is R0.
15861
15862 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
15863
15864         * config/s390/2064.md: Remove trailing whitespaces.
15865         * config/s390/2084.md: Likewise.
15866         * config/s390/constraints.md: Likewise.
15867         * config/s390/fixdfdi.h: Likewise.
15868         * config/s390/libgcc-glibc.ver: Likewise.
15869         * config/s390/s390-modes.def: Likewise.
15870         * config/s390/s390-protos.h: Likewise.
15871         * config/s390/s390.c: Likewise.
15872         * config/s390/s390.h: Likewise.
15873         * config/s390/s390.md: Likewise.
15874         * config/s390/tpf-unwind.h: Likewise.
15875
15876 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15877
15878         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
15879
15880 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15881
15882         M68K TLS support.
15883         * configure.ac (m68k-*-*): Check if binutils support TLS.
15884         * configure: Regenerate.
15885         * config/m68k/predicates.md (symbolic_operand): Extend comment.
15886         * config/m68k/constraints.md (Cu): New constraint.
15887         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
15888         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
15889         (movsi): Handle TLS symbols.
15890         (addsi3_5200): Handle XTLS symbols, indent.
15891         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
15892         (m68k_tls_reference_p): Declare.
15893         (m68k_legitimize_address): Declare.
15894         (m68k_unwrap_symbol): Declare.
15895         * config/m68k/m68k.opt (mxtls): New option.
15896         * config/m68k/m68k.c (ggc.h): Include.
15897         (m68k_output_dwarf_dtprel): Implement hook.
15898         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
15899         (m68k_expand_prologue): Load GOT pointer when function needs it.
15900         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
15901         (m68k_legitimate_constant_address_p): Same.
15902         (m68k_decompose_address): Handle TLS references.
15903         (m68k_get_gp): New static function.
15904         (enum m68k_reloc): New contants.
15905         (TLS_RELOC_P): New macro.
15906         (m68k_wrap_symbol): New static function.
15907         (m68k_unwrap_symbol): New function.
15908         (m68k_final_prescan_insn_1): New static function.
15909         (m68k_final_prescan_insn): New function.
15910         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
15911         functions.
15912         (legitimize_pic_address): Handle TLS references..
15913         (m68k_tls_get_addr, m68k_get_tls_get_addr)
15914         (m68k_libcall_value_in_a0_p)
15915         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
15916         (m68k_call_m68k_read_tp): Helper variables and functions for ...
15917         (m68k_legitimize_tls_address): Handle TLS references.
15918         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
15919         New functions.
15920         (m68k_legitimize_address): Handle TLS symbols.
15921         (m68k_get_reloc_decoration): New static function.
15922         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
15923         UNSPEC_RELOC32.
15924         (m68k_output_dwarf_dtprel): Implement hook.
15925         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
15926         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
15927         m68k_call_* routines.
15928         (sched_attr_op_type): Handle TLS symbols.
15929         (gt-m68k.h): Include.
15930         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
15931         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
15932
15933 2009-05-18  Martin Jambor  <mjambor@suse.cz>
15934
15935         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
15936         (visit_store_addr_for_mod_analysis): New function.
15937         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
15938         (determine_cst_member_ptr): Use gimple_assign_single_p.
15939         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
15940         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
15941         operands.  Don't check number of operands of a NOP_EXPR.
15942
15943 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
15944
15945         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
15946
15947 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15948
15949         PR c/40172
15950         * c-common.c (warn_logical_operator): Don't warn if one of
15951         expression isn't always true or false.
15952
15953 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
15954
15955         * config/i386/biarch32.h: New file.
15956         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
15957
15958 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
15959
15960         * config/mips/mips.md (*zero_extend<mode>_trunchi,
15961         *zero_extend<mode>_truncqi): Merge these into ...
15962         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
15963         Name the pattern following this as *zero_extendhi_truncqi.
15964
15965 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
15966
15967         PR middle-end/39301
15968         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
15969         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
15970         (output_info): Make field HOST_WIDEST_INT.
15971         (print_statistics): Use HOST_WIDEST_INT_PRINT.
15972         (dump_bitmat_statistics): Same.
15973
15974 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
15975
15976         * config.gcc (use_gcc_stdint):  Set to wrap.
15977         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
15978         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
15979         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15980         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
15981         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
15982         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
15983         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15984         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
15985
15986 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
15987
15988         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
15989         tune_64.
15990         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
15991         Move definitions earlier.
15992         (OPT_ARCH64, OPT_ARCH32): Define.
15993         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
15994         and tune_64.
15995
15996 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
15997
15998         PR target/40153
15999         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16000         implies.
16001
16002 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16003
16004         * arm.md (movdi2): Copy non-reg values to DImode registers.
16005
16006 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
16007
16008         PR target/39942
16009         * final.c (label_to_max_skip): New function.
16010         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16011         CODE_LABEL_NUMBER <= max_labelno.
16012         * output.h (label_to_max_skip): New prototype.
16013         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16014         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
16015         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
16016         Handle CODE_LABELs with >= 16 byte alignment or with
16017         max_skip == (1 << align) - 1.
16018         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
16019         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
16020
16021         PR target/39942
16022         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
16023         .p2align 3 if MAX_SKIP is smaller than 7.
16024         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16025
16026 2009-05-15  Ian Lance Taylor  <iant@google.com>
16027
16028         * alias.c (struct alias_set_entry_d): Rename from struct
16029         alias_set_entry.  Change all uses.
16030         * except.c (struct call_site_record_d): Rename from struct
16031         call_site_record.  Change all uses.
16032         * except.h (struct eh_region_d): Rename from struct eh_region.
16033         Change all uses.
16034         * gcse.c (struct hash_table_d): Rename from struct hash_table.
16035         Change all uses.
16036         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
16037         ivtype_map_elt.  Change all uses.
16038         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
16039         Change all uses.
16040         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
16041         * graphite.h (struct name_tree_d): Rename from struct name_tree.
16042         Change all uses.
16043         (struct sese_d): Rename from struct sese.  Change all uses.
16044         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
16045         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
16046         * optabs.h (struct optab_d): Rename from struct optab.  Change all
16047         uses.
16048         (struct convert_optab_d): Rename from struct convert_optab.
16049         Change all uses.
16050         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
16051         ipa_opt_pass.  Change all uses.
16052         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
16053         all uses.
16054
16055         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
16056         defined as a typedef.
16057         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
16058         defined as a tag.
16059
16060 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16061
16062         PR 16302
16063         * fold-const.c (make_range,build_range_check,merge_ranges): Move
16064         declaration to...
16065         (merge_ranges): Returns bool.
16066         * tree.h (make_range): .. to here.
16067         (build_range_check): Likewise.
16068         (merge_ranges): Likewise. Renamed from merge_ranges.
16069         * c-typeck.c (parser_build_binary_op): Update calls to
16070         warn_logical_operator.
16071         * c-common.c (warn_logical_operator): Add new warning.
16072         * c-common.h (warn_logical_operator): Update declaration.
16073
16074 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16075
16076         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
16077
16078 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16079
16080         * doc/install.texi: Document MPC requirements, flags etc.
16081
16082         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
16083         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
16084         Evaluate constant arguments.
16085         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
16086         (fold_builtin_1): Likewise, also evaluate constant arguments.
16087         Remove superfluous break.
16088         (do_mpc_ckconv): New.
16089         * real.h: Include mpc.h.
16090         * toplev.c (print_version): Output MPC version info if available.
16091
16092 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16093
16094         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
16095
16096 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16097
16098         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
16099         only once.
16100
16101 2009-05-15  Jan Hubicka  <jh@suse.cz>
16102
16103         * doc/invoke.texi (max-early-inliner-iterations): New flag.
16104         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
16105         (try_inline): Fix return value.
16106         (cgraph_decide_inlining_incrementally): Honor new value.
16107         (cgraph_early_inlining): Handle indirect inlining.
16108         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
16109
16110 2009-05-15  Jan Hubicka  <jh@suse.cz>
16111
16112         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
16113         * cgraphunit.c (cgraph_finalize_function): Set it.
16114         (cgraph_expand_function): Use it.
16115
16116 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16117
16118         * real.c (encode_ieee_half): Define.
16119         (decode_ieee_half): Define.
16120         (ieee_half_format): Define.
16121         (arm_half_format): Define.
16122         * real.h (ieee_half_format): Declare.
16123         (arm_half_format): Declare.
16124
16125 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16126
16127         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
16128         swapped, and reversed optabs exist before trying to use them.
16129
16130 2009-05-15  Paul Brook  <paul@codesourcery.com>
16131             Sandra Loosemore  <sandra@codesourcery.com>
16132
16133         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
16134         loads.  Allow PRE_DEC.
16135         (output_move_neon): Handle PRE_DEC.
16136         (arm_print_operand): Add 'A' for neon structure loads.
16137         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
16138         * config/arm/neon.md (neon_mov): Update comment.
16139         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
16140         calls.
16141         (Um): New constraint.
16142
16143 2009-05-15  Jan Hubicka  <jh@suse.cz>
16144
16145         Revert the following patch until testsuite fallout is fixed:
16146         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16147         * cgraph.h (struct inline_summary): New filed self_wize,
16148         size_inlining_benefit, self_time and time_inlining_benefit.
16149         (struct cgraph_global_info): Replace insns by time ans size fields.
16150         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16151         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16152         (ipcp_update_callgraph): Do not touch function bodies.
16153         * ipa-inline.c: Include except.h
16154         (MAX_TIME): New constant.
16155         (overall_insns): Remove
16156         (overall_size, max_benefit): New static variables.
16157         (cgraph_estimate_time_after_inlining): New function.
16158         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16159         (cgraph_clone_inlined_nodes): Update size.
16160         (cgraph_mark_inline_edge): Update size.
16161         (cgraph_estimate_growth): Use size info.
16162         (cgraph_check_inline_limits): Check size.
16163         (cgraph_default_inline_p): Likewise.
16164         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16165         (cgraph_decide_recursive_inlining): Check size.
16166         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16167         and times.
16168         (cgraph_decide_inlining): Likewise.
16169         (cgraph_decide_inlining_incrementally): Likewise; honor
16170         PARAM_EARLY_INLINING_INSNS.
16171         (likely_eliminated_by_inlining_p): New predicate.
16172         (estimate_function_body_sizes): New function.
16173         (compute_inline_parameters): Use it.
16174         * except.c (must_not_throw_labels): New function.
16175         * except.h (must_not_throw_labels): Declare.
16176         * tree-inline.c (init_inline_once): Kill inlining_weigths
16177         * tree-ssa-structalias.c: Avoid uninitialized warning.
16178         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16179         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16180         (PARAM_INLINE_CALL_COST): Remove.
16181         (PARAM_EARLY_INLINING_INSNS): New.
16182
16183 2009-05-15  Richard Guenther  <rguenther@suse.de>
16184
16185         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
16186         not TODO_update_ssa.
16187
16188 2009-05-15  Richard Guenther  <rguenther@suse.de>
16189
16190         PR tree-optimization/39999
16191         * gimple.h (gimple_expr_type): Use the expression type looking
16192         through useless conversions.
16193         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
16194         (vn_nary_op_insert_stmt): Likewise.
16195         (simplify_binary_expression): Likewise.
16196
16197 2009-05-15  Richard Guenther  <rguenther@suse.de>
16198
16199         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16200         New options, enabled by default.
16201         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16202         Document.
16203         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
16204         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
16205         * tree-ssa-structalias.c (gate_tree_pta): New function.
16206         (pass_build_alias): Use it.
16207
16208 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
16209
16210         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16211         recurse on an invariant address if a conversion from a pointer
16212         type to a wider integer type is involved.
16213
16214 2009-05-15  Jan Hubicka  <jh@suse.cz>
16215
16216         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16217         * cgraph.h (struct inline_summary): New filed self_wize,
16218         size_inlining_benefit, self_time and time_inlining_benefit.
16219         (struct cgraph_global_info): Replace insns by time ans size fields.
16220         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16221         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16222         (ipcp_update_callgraph): Do not touch function bodies.
16223         * ipa-inline.c: Include except.h
16224         (MAX_TIME): New constant.
16225         (overall_insns): Remove
16226         (overall_size, max_benefit): New static variables.
16227         (cgraph_estimate_time_after_inlining): New function.
16228         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16229         (cgraph_clone_inlined_nodes): Update size.
16230         (cgraph_mark_inline_edge): Update size.
16231         (cgraph_estimate_growth): Use size info.
16232         (cgraph_check_inline_limits): Check size.
16233         (cgraph_default_inline_p): Likewise.
16234         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16235         (cgraph_decide_recursive_inlining): Check size.
16236         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16237         and times.
16238         (cgraph_decide_inlining): Likewise.
16239         (cgraph_decide_inlining_incrementally): Likewise; honor
16240         PARAM_EARLY_INLINING_INSNS.
16241         (likely_eliminated_by_inlining_p): New predicate.
16242         (estimate_function_body_sizes): New function.
16243         (compute_inline_parameters): Use it.
16244         * except.c (must_not_throw_labels): New function.
16245         * except.h (must_not_throw_labels): Declare.
16246         * tree-inline.c (init_inline_once): Kill inlining_weigths
16247         * tree-ssa-structalias.c: Avoid uninitialized warning.
16248         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16249         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16250         (PARAM_INLINE_CALL_COST): Remove.
16251         (PARAM_EARLY_INLINING_INSNS): New.
16252         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
16253         (inline-call-cost): Remove.
16254         (early-inlining-insns): New.
16255
16256 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
16257
16258         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
16259         for bounds.
16260         (print_int_cst_bounds_in_octal_p): Likewise.
16261         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
16262         with subtypes.
16263         * dwarf2out.c (base_type_die): Likewise.
16264         (is_subrange_type): Delete.
16265         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
16266         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
16267         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
16268         if the destination type is boolean.
16269         (build_range_check): Do not special-case subtypes.
16270         (fold_sign_changed_comparison): Likewise.
16271         (fold_unary): Likewise.
16272         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
16273         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
16274         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
16275         * tree.c (subrange_type_for_debug_p): New predicate based on the
16276         former is_subrange_type.
16277         * tree.h (subrange_type_for_debug_p): Declare.
16278         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
16279         (convert_affine_scev): Remove call to above function.
16280         (chrec_convert_aggressive): Likewise.
16281         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
16282         false for conversions involving subtypes.
16283         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
16284         (vrp_val_min): Likewise.
16285         (needs_overflow_infinity): Likewise.
16286         (extract_range_from_unary_expr): Likewise.
16287
16288 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
16289
16290         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16291         * config/frv/frv.c: Likewise.
16292         * config/s390/s390.c: Likewise.
16293         * config/sparc/sparc.h: Likewise.
16294         * config/i386/i386.h: Likewise.
16295         * config/i386/i386.c: Likewise.
16296         * config/crx/crx.c: Likewise.
16297         * config/m68hc11/m68hc11.h: Likewise.
16298         * config/iq2000/iq2000.c: Likewise.
16299         * config/mn10300/mn10300.h: Likewise.
16300         * config/mn10300/mn10300.c: Likewise.
16301         * config/m68k/m68k.c: Likewise.
16302         * config/rs6000/rs6000.c: Likewise.
16303         * config/rs6000/xcoff.h: Likewise.
16304         * config/rs6000/linux64.h: Likewise.
16305         * config/rs6000/sysv4.h: Likewise.
16306         * config/score/score3.c: Likewise.
16307         * config/score/score7.c: Likewise.
16308         * config/score/score.c: Likewise.
16309         * config/arm/arm.md: Likewise.
16310         * config/mips/mips.c: Likewise.
16311         * config/mips/mips.md: Likewise.
16312         * config/bfin/bfin.h: Likewise.
16313         * config/pa/pa.c: Likewise.
16314         * config/pa/constraints.md: Likewise.
16315
16316         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
16317         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
16318         * config/pdp11/pdp11.h: Use memory_address_p instead.
16319
16320 2009-05-14  Ian Lance Taylor  <iant@google.com>
16321
16322         * passes.c (finish_optimization_passes): Change i to int.
16323         * plugin.c (plugins_active_p): Change event to int.
16324         (dump_active_plugins): Likewise.
16325         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
16326         Add cast.
16327         * tree.c (tree_range_check_failed): Change c to unsigned int.
16328         (omp_clause_range_check_failed): Likewise.
16329         (build_common_builtin_nodes): Change mode to int.  Add cast.
16330         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
16331         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
16332
16333         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
16334         ++ or -- with a variable of enum type.
16335
16336 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16337
16338         PR driver/40144
16339         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
16340
16341 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16342
16343         * store-motion.c: Do not include params.h
16344         * Makefile.in: Fix dependencies for various files.
16345
16346 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16347
16348         * auto-inc-dec.c: Fix pass description, remove apparent
16349         accidental duplication.
16350
16351 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16352
16353         PR middle-end/40147
16354         * ipa-utils.h (memory_identifier_string): Moved to ...
16355         * tree.h (memory_identifier_string): Here.  Add GTY(()).
16356
16357 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
16358
16359         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
16360         in the former documentation of...
16361         (GO_IF_LEGITIMATE_ADDRESS): ... this.
16362         * ira-conflicts.c (get_dup_num): Use address_operand.
16363         * targhooks.c (default_legitimate_address_p): New.
16364         * targhooks.h (default_legitimate_address_p): New.
16365         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
16366         Call hook.
16367         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
16368         * target.h (struct target): Add legitimate_address_p.
16369         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
16370         (TARGET_INITIALIZER): Include it.
16371
16372         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16373         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
16374         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
16375         (TARGET_LEGITIMATE_ADDRESS_P): New.
16376
16377         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16378         (REG_OK_STRICT_P): Delete.
16379         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
16380         (frv_legitimate_address_p_1): ... this.
16381         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
16382         (frv_legitimate_address_p_1): ... the renamed old
16383         frv_legitimate_address_p.
16384         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
16385         (TARGET_LEGITIMATE_ADDRESS_P): New.
16386
16387         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16388         * config/s390/s390-protos.h (legitimate_address_p): Remove.
16389         * config/s390/s390.c (legitimate_address_p): Rename to...
16390         (s390_legitimate_address_p): ... this, make static.
16391         (legitimize_address): Adjust call.
16392         (TARGET_LEGITIMATE_ADDRESS_P): New.
16393         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
16394
16395         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16396         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
16397         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
16398         (TARGET_LEGITIMATE_ADDRESS_P): New.
16399
16400         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16401         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
16402         * config/spu/spu.c (spu_legitimate_address): Rename to...
16403         (spu_legitimate_address_p): ... this, make static.
16404         (TARGET_LEGITIMATE_ADDRESS_P): New.
16405
16406         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16407         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
16408         * config/sparc/sparc.c (legitimate_address_p): Rename to...
16409         (sparc_legitimate_address_p): ... this, make static and return bool.
16410         (legitimize_address): Adjust call.
16411         (TARGET_LEGITIMATE_ADDRESS_P): New.
16412
16413         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16414         * config/i386/i386-protos.h (legitimate_address_p): Remove.
16415         * config/i386/i386.c (legitimate_address_p): Rename to...
16416         (ix86_legitimate_address_p): ... this, make static.
16417         (constant_address_p): Move after it, adjust call.
16418         (TARGET_LEGITIMATE_ADDRESS_P): New.
16419
16420         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16421         * config/avr/avr-protos.h (legitimate_address_p): Remove.
16422         * config/avr/avr.c (legitimate_address_p): Rename to...
16423         (avr_legitimate_address_p): ... this, make static.
16424         (legitimize_address): Adjust call.
16425         (TARGET_LEGITIMATE_ADDRESS_P): New.
16426
16427         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16428         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
16429         * config/crx/crx.c (crx_legitimate_address_p): Make static.
16430         (TARGET_LEGITIMATE_ADDRESS_P): New.
16431
16432         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16433         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
16434         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
16435         (TARGET_LEGITIMATE_ADDRESS_P): New.
16436
16437         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16438         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
16439         Remove.
16440         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16441         Make static.
16442         (TARGET_LEGITIMATE_ADDRESS_P): New.
16443
16444         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16445         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
16446         Remove.
16447         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
16448         Rename to...
16449         (m68hc11_legitimate_address_p): ... this, make static.
16450         (go_if_legitimate_address_internal): Rename to...
16451         (m68hc11_legitimate_address_p_1): ... this.
16452         (legitimize_address): Adjust call.
16453         (TARGET_LEGITIMATE_ADDRESS_P): New.
16454
16455         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16456         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
16457         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
16458         (TARGET_LEGITIMATE_ADDRESS_P): New.
16459
16460         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16461         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
16462         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
16463         (mn10300_legitimate_address_p): ... this, make static.
16464         (TARGET_LEGITIMATE_ADDRESS_P): New.
16465
16466         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16467         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
16468         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
16469         (TARGET_LEGITIMATE_ADDRESS_P): New.
16470
16471         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16472         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
16473         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
16474         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16475         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
16476         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
16477         (rs6000_legitimate_address_p): ... this, make static.
16478         (TARGET_LEGITIMATE_ADDRESS_P): New.
16479         (REG_MODE_OK_FOR_BASE_P): Delete.
16480         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
16481
16482         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16483         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
16484         Delete.
16485         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
16486         static, adjust types.
16487         (TARGET_LEGITIMATE_ADDRESS_P): New.
16488
16489         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16490         * config/score/score.c (score_address_p): Rename to...
16491         (score_legitimate_address_p): ... this.
16492         (TARGET_LEGITIMATE_ADDRESS_P): New.
16493         * config/score/score3.c (score3_address_p): Rename to...
16494         (score3_legitimate_address_p): ... this.
16495         * config/score/score7.c (score7_address_p): Rename to...
16496         (score7_legitimate_address_p): ... this.
16497
16498         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
16499         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
16500         GO_IF_LEGITIMATE_ADDRESS): Delete.
16501         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
16502         thumb2_legitimate_address_p): Delete.
16503         (arm_legitimate_address_p): Rename to...
16504         (arm_legitimate_address_outer_p): ... this.
16505         * config/arm/constraints.md ("Uq"): Adjust call.
16506         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
16507         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
16508         to...
16509         (arm_legitimate_address_outer_p): ... this.
16510         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
16511         static.
16512         (TARGET_LEGITIMATE_ADDRESS_P): New.
16513
16514         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16515         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
16516         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
16517         (TARGET_LEGITIMATE_ADDRESS_P): New.
16518
16519         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16520         * config/vax/vax-protos.h (legitimate_address_p): Remove.
16521         * config/vax/vax.c (legitimate_address_p): Rename to...
16522         (vax_legitimate_address_p): ... this, make static.
16523         (TARGET_LEGITIMATE_ADDRESS_P): New.
16524
16525         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16526         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
16527         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
16528         (TARGET_LEGITIMATE_ADDRESS_P): New.
16529
16530         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16531         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
16532         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
16533         (mmix_legitimate_address_p): ... this, make static.
16534         (TARGET_LEGITIMATE_ADDRESS_P): New.
16535
16536         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16537         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
16538         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
16539         (TARGET_LEGITIMATE_ADDRESS_P): New.
16540
16541 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
16542
16543         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
16544         of MODE_COMPLEX_INT.
16545
16546 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16547
16548         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
16549         LCT_NORMAL in function call.
16550         * mips-tdump.c (print_file_desc): Add cast to enum type.
16551         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
16552         (mark_stabs): Add casts to enum types.
16553         (parse_stabs_common): Add casts to enum types.
16554
16555 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
16556
16557         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
16558         Check for invalid values of LETTER.
16559
16560 2009-05-13  Taras Glek  <tglek@mozilla.com>
16561
16562         * attribs.c (register_attribute): moved out attribute registration
16563         into register_attribute.
16564         * doc/plugins.texi: Documented register_attribute and
16565         PLUGIN_ATTRIBUTES.
16566         * gcc-plugin.h: Added forward decl for register_attribute.
16567         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
16568         * plugin.c (register_callback, invoke_plugin_callbacks): Added
16569         PLUGIN_ATTRIBUTES boilerplate.
16570
16571 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
16572
16573         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
16574         values even in sentinel and empty entries.
16575         (ms_printf_flag_specs):  Likewise.
16576         (ms_scanf_flag_specs):  Likewise.
16577         (ms_strftime_flag_specs):  Likewise.
16578         (ms_print_char_table):  Likewise.
16579         (ms_scan_char_table):  Likewise.
16580         (ms_time_char_table):  Likewise.
16581
16582 2009-05-13  Doug Kwan  <dougkwan@google.com>
16583
16584         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
16585
16586 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
16587
16588         * config/mips/mips.md (store): Add attributes for QI and HI.
16589         Update comment.
16590         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
16591         (truncdi<mode>2): ... this new pattern.
16592
16593 2009-05-13  Brad Hards  <bradh@kde.org>
16594
16595         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
16596
16597 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
16598             Ben Elliston <bje@au.ibm.com>
16599
16600         PR middle-end/40035
16601         * dse.c (check_mem_read_rtx): Guard against width == -1.
16602
16603 2009-05-13  Michael Matz  <matz@suse.de>
16604
16605         PR middle-end/39976
16606         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
16607         (trivially_conflicts_p): New function.
16608         (insert_backedge_copies): Use it.
16609
16610 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
16611
16612         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
16613         (handle_stdc_pragma): Use new enum constant names.
16614         (handle_pragma_float_const_decimal64): Ditto.
16615
16616 2009-05-13  Ian Lance Taylor  <iant@google.com>
16617
16618         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
16619         tree.def.
16620
16621 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
16622
16623         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
16624         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
16625         multilibs.
16626         * config/m68k/m68k.h (FL_UCLINUX): Define.
16627
16628 2009-05-13  Jan Hubicka  <jh@suse.cz>
16629
16630         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
16631
16632 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16633
16634         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
16635         unless -fschedule-insns is specified.
16636
16637 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16638
16639         PR target/39561
16640         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
16641         TARGET_EXPAND_CBRANCHDI4.
16642         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
16643         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
16644         (cmpeqdi): Fix comment.
16645
16646 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
16647
16648         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
16649         (sh_legitimate_address_p): Likewise.
16650         * config/sh/sh.c (sh_legitimate_index_p): New.
16651         (sh_legitimate_address_p): Likewise.
16652         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
16653         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
16654         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
16655         (MAYBE_BASE_REGISTER_RTX_P): New macro.
16656         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
16657         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
16658         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
16659         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
16660         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
16661
16662 2009-05-12  Jan Hubicka  <jh@suse.cz>
16663
16664         * tree-inline.c (estimate_operator_cost): Add operands;
16665         when division happens by constant, it is cheap.
16666         (estimate_num_insns): Loads and stores are not having cost of 0;
16667         EH magic stuff is cheap; when computing runtime cost of switch,
16668         use log2 base of amount of its cases; builtin_expect has cost of 0;
16669         compute cost for moving return value of call.
16670         (init_inline_once): Initialize time_based flags.
16671         * tree-inline.h (eni_weights_d): Add time_based flag.
16672
16673 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16674
16675         * df-core.c: Update head documentation.
16676
16677 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
16678
16679         PR bootstrap/40118
16680         * rs6000.c (rs6000_generate_compare): Use op1b instead of
16681         shadowing exisiting variable op1.
16682
16683 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
16684
16685         PR target/37179
16686         * config/i386/driver-i386.c (processor_signatures): New enum.
16687         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
16688         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
16689         processor signature to detect geode processor.
16690
16691 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16692
16693         Revert:
16694
16695         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16696
16697         * optabs.c (prepare_cmp_insn): Temporarily disable test that
16698         causes spurious differences between trunk and cond-optab branch.
16699
16700 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
16701
16702         * dojump.c (compare_from_rtx): Delete.
16703         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
16704         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
16705         if the comparison does not satisfy the predicate; test predicates for
16706         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
16707         further if one existing pattern fails.
16708         * expr.h (compare_from_rtx): Delete.
16709         (prepare_operand): Declare it.
16710         * optabs.c: Change "lib call" to "libcall" throughout.
16711         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
16712         HAVE_conditional_trap, emit_cmp_insn): Delete.
16713         (can_compare_p): Delete cmp_optab case.
16714         (prepare_float_lib_cmp): Return an rtx and a machine mode.
16715         Accept other parameters by value.
16716         (prepare_operand): Make non-static.
16717         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
16718         other parameters by value.  Try to widen operands here based on
16719         an optab_methods argument and looking at cbranch_optab.
16720         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
16721         loop.  Use cbranch_optab directly.
16722         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
16723         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
16724         assertion.
16725         (emit_conditional_move, emit_conditional_add): Inline what's needed
16726         of compare_from_rtx, using new prepare_cmp_insn for the rest.
16727         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
16728         with COMPARE.  Move cmov_optab and cstore_optab above
16729         with cbranch_optab, move cmp_optab down with ucmp_optab,
16730         remove tst_otpab.  Do not initialize trap_rtx.
16731         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
16732         for trap code.  Do not check HAVE_conditional_trap.  Use
16733         prepare_cmp_insn.  Accept no predicate for operand 3.
16734         * optabs.h (OTI_cmp): Mark as used only for libcalls.
16735         (OTI_ctrap, ctrap_optab): New.
16736         (tst_optab): Delete.
16737         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
16738         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
16739         with lookup of ctrap_optab.
16740         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
16741         Delete.
16742         (ctrap_optab): New.
16743
16744         * combine.c (combine_simplify_rtx, simplify_set): Do not
16745         special case comparing against zero for cc0 machines.
16746         * simplify-rtx.c (simplify_binary_operation_1): Never remove
16747         COMPARE on cc0 machines.
16748         (simplify_relational_operation): Return a new expression when
16749         a COMPARE could be removed.
16750         * final.c (final_scan_insn): Compare cc_status values
16751         against LHS of a (compare FOO (const_int 0)) cc0 source.
16752         Also check if cc_status.value is the full compare.
16753
16754         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
16755         (cstoreMM4): Document.
16756         (conditional_trap): Document ctrapMM4 instead.
16757         (sync_compare_and_swapMM): Refer to cbranchcc4.
16758         (Dependent Patterns): Eliminate obsolete information referring to
16759         the old jump optimization phase.
16760         (Canonicalization): Include cbranchcc4 case, omit canonicalization
16761         of compares with 0 on cc0 machines.
16762         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
16763         avoiding references to cc0.  Remove text about storing operands
16764         in cmpMM.
16765         * doc/tm.texi (Condition Codes): Include blurb on different
16766         condition code representations, separate into subsections for
16767         CC0, MODE_CC and conditional execution.
16768
16769         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
16770         alpha_emit_setcc): Accept operands and a machine mode.
16771         * config/alpha/alpha.c (alpha_emit_conditional_branch):
16772         Get code/op0/op1 from operands, use machine mode argument
16773         instead of alpha_compare.fp_p.  Emit the branch here.
16774         (alpha_emit_setcc): Likewise, and return boolean.
16775         (alpha_emit_conditional_move): Likewise.  Assert that
16776         cmp_op_mode == cmp_mode, and simplify accordingly.
16777         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
16778         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
16779         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
16780         Delete.
16781         (stack probe test): Use cbranchdi4.
16782         * config/alpha/predicates.md (alpha_cbranch_operator): New.
16783
16784         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
16785         * config/arc/arc.h (movsicc, movsfcc): Use it.
16786         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
16787         (cbranchsi4, cstoresi4): New.
16788         (cmpsi, bCC and sCC expanders): Remove.
16789
16790         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
16791         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
16792         * config/arm/predicates.md (arm_comparison_operator): Only include
16793         floating-point operators if there is a hardware floating-point unit.
16794         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
16795         deferring to cbranch_cc and cstore_cc respectively.
16796         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
16797         cbranch_cc, cstore_cc): New.
16798         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
16799         arm_compare_op1.
16800         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
16801
16802         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
16803         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
16804         as an argument.
16805         (adjust_insn_length): Adjust calls.
16806         (avr_reorg): Handle (compare (foo) (const_int 0)).
16807         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
16808         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
16809         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
16810         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
16811         (bCC): Remove.
16812         (cbranchqi4, cbranchhi4, cbranchsi4): New.
16813         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
16814
16815         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
16816         (cbranchsi4, cstorebi4, cstoresi4): New.
16817         (movbisi): This insn is duplicate, split it to zero_extend.
16818         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
16819         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
16820         (bfin_optimize_loop): Use cbranch expander.
16821         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
16822         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
16823         (bfin_bimode_comparison_operator): ... this.
16824         (bfin_direct_comparison_operator): New.
16825
16826         * config/cris/cris.c (cris_normal_notice_update_cc): Look
16827         inside (compare FOO (const_int 0)).
16828         (cris_rtx_costs): Handle ZERO_EXTRACT.
16829         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
16830         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
16831         (*tstdi_v32): Delete.
16832         (*cmpdi_non_v32): Add M alternative for operand 1.
16833         (cmpsi, cmp<mode>): Make private.
16834         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
16835         with COMPARE.
16836         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
16837
16838         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
16839         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
16840         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
16841         (cc_reg_operand): New.
16842         (any_cond): Delete.
16843         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
16844         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
16845         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
16846         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
16847         crx_expand_scond): Delete.
16848
16849         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
16850         (cbranchsi4): New.
16851         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
16852         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
16853
16854         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
16855         cstoresi4, cstoresf4, cstoredf4): New.
16856         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
16857         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
16858         Receive the entire operands array.
16859         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
16860         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
16861         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
16862         Get test/op0/op1 from the operands array.
16863         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
16864
16865         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
16866         (h8300_expand_store): New.
16867         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
16868         (const_int 0)).
16869         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
16870         (h8300_expand_store): New.
16871         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
16872         or do not try to produce (set (cc0) REG).
16873         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
16874         change a compare into a move to a scratch register.  Disable some
16875         peepholes when comparing with zero.
16876         (tstsi, tsthi, tstsi, cmpqi): Make private.
16877         (cmphi): Delete.
16878         (bCC, sCC): Delete.
16879         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
16880         cstoresi4): New.
16881
16882         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
16883         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
16884         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
16885         (ix86_emit_i387_log1p): Use cbranchxf2.
16886         (ix86_expand_setcc): Return void.
16887         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
16888         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
16889         cmp<MODEF>, cmpcc): Remove.
16890         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
16891         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
16892         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
16893         (sCC and bCC expanders): Remove.
16894         (stack_protect_test): Use cbranchcc4.
16895
16896         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
16897         Delete.
16898         (ia64_expand_compare): Accept three rtx by reference and return void.
16899         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
16900         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
16901         from *expr.  Update *expr with the BImode comparison to do.
16902         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
16903         cmptf, bCC, sCC, conditional_trap): Delete.
16904         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
16905         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
16906         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
16907         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
16908         * config/ia64/predicates.md (ia64_cbranch_operator): New.
16909
16910         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
16911         type of last argument.
16912         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
16913         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
16914         use machine mode argument instead of branch_type.  Remove dead
16915         code for floating-point comparisons.
16916         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
16917         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
16918         Remove.
16919         (cbranchsi4, cstoresi4): New.
16920         * config/iq2000/predicates.md (reg_or_const_operand): New.
16921
16922         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
16923         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
16924         (b<code>_op): Rewrite to...
16925         (bcc_op): ... this, using match_operator.
16926         (s<code>_op): Rewrite to...
16927         (scc_op): ... this, using match_operator.
16928         (s<code>_24_op): Rewrite to...
16929         (scc_op_24): ... this, using match_operator.
16930         (s<code>_<mode>): Rewrite to...
16931         (cstore<mode>4): ... this, using match_operator.
16932         (s<code>_<mode>_24): Rewrite to...
16933         (cstore<mode>4_24): ... this, using match_operator.
16934         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
16935         m32c_unpend_compare, m32c_expand_scc): Delete.
16936         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
16937         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
16938         (m32c_expand_movcc): Change NE to EQ if necessary.
16939         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
16940
16941         * config/m32r/m32r-protos.h (gen_cond_store): New.
16942         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
16943         (gen_cond_store): New, from sCC patterns.
16944         (m32r_expand_block_move): Use cbranchsi4.
16945         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
16946         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
16947         (cbranchsi4, cstoresi4): New.
16948
16949         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
16950         Delete.
16951         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
16952         (m68hc11_notice_update_cc): Look into a compare with 0.
16953         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
16954         Delete.
16955         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
16956         cmphi, cmpqi, bCC): Delete.
16957         (cbranchsi4, cbranchhi4, cbranchqi4): New.
16958         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
16959         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
16960         sets with COMPARE.
16961
16962         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
16963         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
16964         * config/m68k/constraints.md (H): New.
16965         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
16966         the define_insn below.
16967         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
16968         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
16969         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
16970         patterns): Wrap RHS with COMPARE.
16971         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
16972         (*cmpdi_internal): Name this pattern.
16973         (cmpdi): Change to define_insn.
16974         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
16975         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
16976         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
16977         predicate.
16978         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
16979         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
16980         (conditional_trap): Change to...
16981         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
16982         (*conditional_trap): Use the ordered_comparison_operator and
16983         const1_operand predicates.
16984         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
16985         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
16986         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
16987         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
16988
16989         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
16990         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
16991         (mcore_gen_compare): New.
16992         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
16993         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
16994         (mcore_gen_compare): ... this.
16995         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
16996         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
16997         (stack probe pattern): Use cbranchsi4.
16998
16999         * config/mips/predicates.md (mips_cstore_operator): New.
17000         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17001         * config/mips/mips.md (any_cond): Delete.
17002         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
17003         always succeed.
17004         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17005         fixuns_truncsfdi2): Use cbranch patterns.
17006         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17007         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17008         Adjust call to mips_expand_conditional_branch.
17009         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17010         cstore<GPR:mode>4.
17011         * config/mips/mips-protos.h (mips_expand_conditional_branch,
17012         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17013         * config/mips/mips.c (cmp_operands): Delete.
17014         (mips_emit_compare): Get comparison operands from *op0/*op1.
17015         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
17016         that it succeeds.  Use op0/op1 instead of cmp_operands.
17017         (mips_expand_conditional_branch, mips_expand_conditional_move,
17018         mips_expand_conditional_trap): Likewise.
17019         (mips_block_move_loop): Use cbranch patterns.
17020         * config/mips/mips.h (cmp_operands): Delete.
17021
17022         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
17023         (mmix_gen_compare_reg): Just return a register in the right CC mode.
17024         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
17025         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
17026         (*cmpcc_folded): Rename to...
17027         (*cmpdi_folded): this.
17028         (*cmpcc): Rename to...
17029         (*cmps): ... this.
17030         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
17031         (bCC): Remove.
17032         (cbranchdi4): New.
17033         (cbranchdf4): New.  Handle invalid comparisons here.
17034         * config/mmix/predicates.md (float_comparison_operator): New.
17035
17036         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
17037         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
17038         * config/mn10300/mn10300.md (tst): Delete.
17039         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
17040         Name these patterns and wrap RHS in a compare.
17041         (*cmpsi): Make this pattern private.  Include tst.
17042         (*cmpsf): Make this pattern private.
17043         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
17044         (compare with zero peepholes): Likewise.
17045         (bCC): Remove.
17046         (cbranchsi4, cbranchsf4): New.
17047         (casesi): Use cbranchsi4.
17048
17049         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
17050         hppa_branch_type): Delete.
17051         (return_addr_rtx): Use cbranchsi4.
17052         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
17053         Emit CCFPmode comparison here.
17054         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
17055         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
17056         hppa_branch_type): Delete.
17057         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
17058         (movsicc, movdicc): Remove references to hppa_compare_op0,
17059         hppa_compare_op1 and compare_from_rtx.
17060         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
17061         (casesi): Use cbranchsi4.
17062
17063         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
17064         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
17065         * config/pdp11/pdp11.md (register_or_const0_operand): New.
17066         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
17067         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
17068         (bCC): Delete.
17069         (cbranchdf4, cbranchhi4, cbranchqi4): New.
17070         (*branch, *branch_inverted): New.
17071
17072         * config/picochip/picochip.md (cbranchhi4): Use
17073         ordered_comparison_operator.
17074         (cmphi, bCC): Remove.
17075
17076         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
17077         (trap_comparison_operator): Delete.
17078         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
17079         rs6000_emit_cbranch): Accept mode and operands.
17080         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
17081         rs6000_compare_fp_p): Delete.
17082         (rs6000_generate_compare): Accept mode and comparison.  Extract code
17083         and op0/op1 from there.  Replace references to rs6000_compare_op0
17084         and rs6000_compare_op1.
17085         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
17086         extract result from passed operands.
17087         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
17088         extract loc from passed operands.
17089         (rs6000_emit_cmove): Likewise.
17090         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
17091         rs6000_compare_fp_p): Delete.
17092         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
17093         (cbranch<GPR>4, cbranch<FP>4): New.
17094         (cstore<mode>4): New.  Consolidate here all choices about when to use
17095         portable or specialized sCC sequences.
17096         (stack_protect_test): Use cbranchsi4.
17097         (conditional_trap): Replace with ctrap<GPR>4.
17098         (conditional trap insn): Replace trap_comparison_operator with
17099         ordered_comparison_operator.
17100
17101         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
17102         (s390_emit_prologue): Use ctrap.
17103         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
17104         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
17105         New predicates replacing...
17106         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
17107         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
17108         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
17109         (add<mode>cc): Do not use s390_compare_op0/op1.
17110         (s<code>): Change to...
17111         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
17112         (seq): Change to...
17113         (cstorecc4): ... this.  Handle EQ or NE equally.
17114         (*sne): Un-privatize for use in cstorecc4.
17115         (b<code>): Change to...
17116         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
17117         (conditional_trap): Replace with...
17118         (ctrap<GPR>4, ctrap<FP>4): ... these.
17119         (stack_protect): Use cbranchcc4.
17120
17121         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
17122         * config/score/score-protos.h (score_gen_cmp): Delete.
17123         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
17124         (score_block_move-loop): Use cbranchsi4.
17125         * config/score/score.md (cbranchsi4): New.
17126         (cmpsi, bCC): Delete.
17127         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
17128         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17129         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
17130         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17131         * config/score/score3.h (score3_gen_cmp): Delete.
17132         * config/score/score7.h (score7_gen_cmp): Delete.
17133
17134         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
17135         (sh_emit_scc_to_t): ... this.  Return void.
17136         (from_compare): Rename to...
17137         (sh_emit_compare_and_branch): ... this.
17138         (sh_emit_compare_and_set): New.
17139         (sh_expand_t_scc): Accept operands.
17140         * config/sh/predicates.md (sh_float_comparison_operator): New.
17141         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
17142         (prepare_scc_operands): Rename to...
17143         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
17144         arguments.
17145         (sh_emit_cheap_store_flag): New.
17146         (sh_emit_set_t_insn): New.
17147         (from_compare): Rename to...
17148         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
17149         handling of TARGET_SH2E floating point to avoid recursive call.
17150         Generate branch here.
17151         (sh_emit_compare_and_set): New.
17152         (sh_expand_t_scc): Get op0/op1 from arguments.
17153         (sh_emit_cheap_store_flag): New.
17154         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
17155         cases.
17156         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
17157         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
17158         (movsicc, movdicc): Do nothing when it recreated operands from
17159         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
17160         prepare_scc_operands (now sh_emit_scc_to_t).
17161         (udivdi3): Use cstoresi4.
17162         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
17163         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
17164         (cbranchint4_media, cbranchfp4_media): New.
17165         (casesi): Use cbranchdi4.
17166         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
17167         Delete.
17168         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
17169         (movnegt): Remove second operand.
17170         (cbranchsf4, cbranchdf4): New.
17171         (stack_protect): Use cbranchdi4/cbranchsi4.
17172
17173         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
17174         (gen_compare_reg): Accept comparison, extract part of it to...
17175         (gen_compare_reg_1): ... this.
17176         (gen_compare_operator): Delete.
17177         (gen_v9_scc): Accept separate destination, comparison code and arms.
17178         Do not use sparc_compare_op0/sparc_compare_op1.
17179         (emit_scc_insn, emit_conditional_branch_insn): New.
17180         (emit_v9_brxx): Make static.  Remove useless assertion.
17181         (sparc_emit_float_lib_cmp): Return RTL instead of calling
17182         emit_cmp_insn.
17183         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
17184         * config/sparc/sparc-protos.h (gen_compare_reg,
17185         sparc_emit_float_lib_cmp): Adjust prototype.
17186         (emit_scc_insn, emit_conditional_branch_insn): New.
17187         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
17188         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
17189         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
17190         iterators to the top.
17191         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
17192         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
17193         snedi_special_trunc): Delete.
17194         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
17195         and snedi_special_trunc.
17196         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
17197         cbranchdi4, cbranch<F:mode>4): New.
17198         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
17199         here.  Use gen_compare_reg instead of gen_compare_operator.
17200         (conditional_trap): Replace with...
17201         (ctrapsi4, ctrapdi4): ... this.
17202         (stack_protect_test): Use cbranchcc4.
17203
17204         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
17205         argument to rtx.
17206         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
17207         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
17208         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
17209         from operands[0] or operands[3] depending on is_set.
17210         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
17211         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
17212         cmpdf, bCC), sCC: Remove.
17213         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
17214         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
17215         cstoredf4): New.
17216         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
17217         spu_emit_branch_or_set.
17218
17219         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
17220         Add two arguments.
17221         * config/stormy16/stormy16.h (xstormy16_compare_op0,
17222         xstormy16_compare_op1): Delete.
17223         * config/stormy16/stormy16.c (xstormy16_compare_op0,
17224         xstormy16_compare_op1): Delete.
17225         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
17226         Adjust calls.
17227         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
17228         (cmphi, cmpsi, bCC): Remove.
17229
17230         * config/v850/v850.md (tstsi, cmpsi): Fold into...
17231         (*cmpsi): ... this one.
17232         (cbranchsi4, cstoresi4): New.
17233         (bCC expanders): Delete.
17234         (sCC insns): Fold into...
17235         (*setcc): ... this one.
17236         (casesi): Do not use gen_cmpsi and gen_bgtu.
17237         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
17238         (movsicc): Simplify.
17239         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
17240
17241         * config/vax/vax-protos.h (cond_name): New.
17242         (vax_output_conditional_branch): Remove.
17243         * config/vax/vax.c (cond_name): New.
17244         (vax_output_conditional_branch): Remove.
17245         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
17246         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
17247         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
17248         (bit<VAXint>): Wrap source with (compare).
17249         (b<code> and following unnamed pattern): Rename to *branch and
17250         *branch_reversed.  Change macroization to match_operator.
17251         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
17252
17253         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
17254         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
17255         Change last argument to machine_mode.
17256         (xtensa_expand_scc): Add machine_mode argument.
17257         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
17258         (gen_conditional_move, xtensa_expand_conditional_branch,
17259         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
17260         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
17261         Adjust operand numbers.
17262         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
17263         Delete.
17264         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
17265         (cmpsi, cmpsf, b<code>, s<code>): Delete.
17266         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
17267
17268 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17269
17270         * optabs.c (prepare_cmp_insn): Temporarily disable test that
17271         causes spurious differences between trunk and cond-optab branch.
17272
17273 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
17274
17275         PR target/37137
17276         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
17277
17278 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
17279
17280         * tree.c (iterative_hash_pointer): Delete.
17281         (iterative_hash_expr): Short-circuit handling of NULL pointer.
17282         Hash UIDs and versions of SSA names.  Don't special-case built-in
17283         function declarations.
17284
17285 2009-05-11  Ian Lance Taylor  <iant@google.com>
17286
17287         PR bootstrap/40103
17288         * graphite.c: Force -Wc++-compat to only be a warning before
17289         #including "cloog/cloog.h".
17290
17291 2009-05-11  Martin Jambor  <mjambor@suse.cz>
17292
17293         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
17294
17295 2009-05-11  Jan Hubicka  <jh@suse.cz>
17296
17297         * tree-ssa-loop-ivcanon.c: Include target.h
17298         (struct loop_size): new structure.
17299         (constant_after_peeling): New predicate.
17300         (tree_estimate_loop_size): New function.
17301         (estimated_unrolled_size): Rewrite for new estimates.
17302         (try_unroll_loop_completely): Use new estimates.
17303         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
17304
17305 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17306
17307         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
17308         libcpp interface change.
17309         (spu_macro_to_expand): Likewise.
17310
17311 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
17312
17313         PR tree-optimization/40026
17314         * gimplify.c (gimplify_init_constructor): Change initial conditional
17315         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
17316         optimize_compound_literals_in_ctor.
17317
17318 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
17319
17320         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
17321         New devices.
17322         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
17323
17324 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
17325
17326         * tree-vect-data-refs.c (vect_analyze_group_access): Use
17327         HOST_WIDE_INT for gap.
17328
17329 2009-05-11  Ira Rosen  <irar@il.ibm.com>
17330
17331         PR tree-optimization/40074
17332         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
17333         account in group size and step comparison.
17334
17335 2009-05-11  Richard Guenther  <rguenther@suse.de>
17336
17337         * passes.c (init_optimization_passes): Strip now incorrect comment.
17338         (execute_function_todo): Do not set PROP_alias.
17339         * tree-pass.h (PROP_alias): Remove.
17340         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
17341         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
17342         * tree-nrv.c (pass_return_slot): Likewise.
17343         * tree-object-size.c (pass_object_sizes): Likewise.
17344         * tree-ssa-dom.c (pass_dominator): Likewise.
17345         (pass_phi_only_cprop): Likewise.
17346         * tree-ssa-dse.c (pass_dse): Likewise.
17347         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
17348         (pass_cselim): Likewise.
17349         * tree-ssa-pre.c (pass_pre): Likewise.
17350         (pass_fre): Likewise.
17351         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17352         * tree-ssa-sink.c (pass_sink_code): Likewise.
17353         * tree-stdarg.c (pass_stdarg): Likewise.
17354         * tree-tailcall.c (pass_tail_calls): Likewise.
17355         * tree-vrp.c (pass_vrp): Likewise.
17356
17357 2009-05-10  Ian Lance Taylor  <iant@google.com>
17358
17359         * basic-block.h (enum profile_status): Break out of struct
17360         control_flow_graph.
17361         * cgraph.h (struct inline_summary): Break out of struct
17362         cgraph_local_info.
17363         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
17364         of struct cgraph_order_sort.
17365         * combine.c (enum undo_kind): New enum, broken out of struct undo.
17366         * cse.c (struct branch_path): Break out of struct
17367         cse_basic_block_data.
17368         * except.h (enum eh_region_type): Break out of struct eh_region.
17369         * gcc.c (enum add_del): Break out of struct modify_target.
17370         * genrecog.c (enum decision_type): Break out of struct decision_test.
17371         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
17372         ggc_pch_data.
17373         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
17374         * regmove.c (enum match_use): New enum, broken out of struct match.
17375         * sched-int.h (enum post_call_group): New enum, broken out of
17376         struct deps.
17377         (struct deps_reg): Break out of struct deps.
17378         * target.h (struct asm_int_op): Break out of struct gcc_target.
17379         * tree-eh.c (struct goto_queue_node): Break out of struct
17380         leh_tf_state.
17381         * tree-inline.h (enum copy_body_cge_which): Break out of
17382         copy_body_data.
17383         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
17384
17385         * c-decl.c (in_struct, struct_types): New static variables.
17386         (pushtag): Add loc parameter.  Change all callers.
17387         (lookup_tag): Add ploc parameter.  Change all callers.
17388         (check_compound_literal_type): New function.
17389         (parser_xref_tag): Add loc parameter.  Change all callers.  If
17390         -Wc++-compat, warn about struct/union/enum types defined within a
17391         struct or union.
17392         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
17393         and loc parameters.  Change all callers.  Change error calls to
17394         error_at, using loc.  For a redefinition, if the location of the
17395         original definition is known, report it.  Set in_struct and
17396         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
17397         (finish_struct): Add new parameters enclosing_in_struct and
17398         enclosing_struct_types.  Change all callers.  Set
17399         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
17400         in the struct.  If in a struct, add this struct to struct_types.
17401         (start_enum): Add loc parameter.  Change all callers.  Use
17402         error_at for errors, using loc.  For a redefinition, if the
17403         location of the original definition is known, report it.  If in a
17404         struct, add this enum type to struct_types.  If -Wc++-compat warn
17405         if in sizeof, typeof, or alignof.
17406         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
17407         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
17408         (c_parser_enum_specifier): Get enum location for start_enum.
17409         (c_parser_struct_or_union_specifier): Get struct location for
17410         start_struct.  Save in_struct and struct_types status between
17411         start_struct and finish_struct.
17412         (c_parser_cast_expression): Get location of cast.
17413         (c_parser_alignof_expression): Get location of type.
17414         (c_parser_postfix_expression): Likewise.
17415         (c_parser_postfix_expression_after_paren_type): Add type_loc
17416         parameter.  Change all callers.  Call check_compound_literal_type.
17417         Use type_loc for error about variable size type.
17418         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
17419         of an enum constant from an enum type defined in a struct or union.
17420         (c_cast_expr): Add loc parameter.  Change all callers.  If
17421         -Wc++-compat, warn about defining a type in a cast.
17422         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
17423         (start_enum, start_struct, finish_struct): Update declarations.
17424         (parser_xref_tag, c_cast_expr): Update declarations.
17425         (check_compound_literal_type): Declare.
17426
17427 2009-05-11  Ben Elliston  <bje@au.ibm.com>
17428
17429         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
17430         for recent libcpp interface change.
17431         (rs6000_macro_to_expand): Likewise.
17432
17433 2009-05-10  Michael Matz  <matz@suse.de>
17434
17435         PR target/40031
17436         * config/arm/arm.c (require_pic_register): Emit on entry edge,
17437         not at entry of function.
17438
17439 2009-05-10  Richard Guenther  <rguenther@suse.de>
17440
17441         PR tree-optimization/40081
17442         Revert
17443         * tree-sra.c (instantiate_element): Instantiate scalar replacements
17444         using the main variant of the element type.  Do not fiddle with
17445         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17446
17447         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
17448         structs with volatile fields.
17449
17450 2009-05-10  Jan Hubicka  <jh@suse.cz>
17451
17452         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
17453         (estimate_move_cost): Assert that it does not get called for
17454         VOID_TYPE_P.
17455         (estimate_num_insns): Skip VOID types in argument handling.
17456         (optimize_inline_calls): Delete unreachable blocks and verify that
17457         callgraph is valid.
17458
17459 2009-05-10  Jan Hubicka  <jh@suse.cz>
17460
17461         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
17462         * cgraph.c (cgraph_mark_address_taken_node): New function.
17463         (dump_cgraph_node): Dump new flag.
17464         * cgraph.h (struct cgraph_node): Add address_taken.
17465         (cgraph_mark_address_taken_node): New function.
17466         * ipa.c (cgraph_postorder): Prioritize functions with address taken
17467         since new direct calls can be born.
17468
17469 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17470
17471         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
17472         tok->val.node.node.
17473
17474 2009-05-10  Jan Hubicka  <jh@suse.cz>
17475
17476         PR middle-end/40084
17477         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
17478         argument; rewrite.
17479         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
17480         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
17481         * tree-inline.c (copy_bb): Set frequency correctly.
17482         (fold_marked_statements): Update call to
17483         cgraph_update_edges_for_call_stmt.
17484
17485 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17486
17487         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
17488         identifiers in diagnostics.
17489         * config/arm/arm.c (arm_handle_fndecl_attribute,
17490         arm_handle_isr_attribute): Likewise.
17491         * config/avr/avr.c (avr_handle_progmem_attribute,
17492         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
17493         * config/bfin/bfin.c (handle_int_attribute,
17494         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
17495         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
17496         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
17497         Likewise.
17498         * config/darwin.c (darwin_handle_kext_attribute,
17499         darwin_handle_weak_import_attribute): Likewise.
17500         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
17501         h8300_handle_eightbit_data_attribute,
17502         h8300_handle_tiny_data_attribute): Likewise.
17503         * config/i386/i386.c (ix86_handle_cconv_attribute,
17504         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
17505         * config/i386/winnt.c (ix86_handle_shared_attribute,
17506         ix86_handle_selectany_attribute): Likewise.
17507         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17508         * config/m32c/m32c.c (function_vector_handler): Likewise.
17509         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
17510         m68hc11_handle_fntype_attribute): Likewise.
17511         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17512         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17513         * config/mips/mips.c (mips_insert_attributes,
17514         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
17515         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
17516         rs6000_handle_struct_attribute): Likewise.
17517         * config/sh/sh.c (sh_insert_attributes,
17518         sh_handle_resbank_handler_attribute,
17519         sh_handle_interrupt_handler_attribute,
17520         sh2a_handle_function_vector_handler_attribute,
17521         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
17522         Likewise.
17523         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
17524         * config/spu/spu.c (spu_handle_fndecl_attribute,
17525         spu_handle_vector_attribute): Likewise.
17526         * config/stormy16/stormy16.c
17527         (xstormy16_handle_interrupt_attribute): Likewise.
17528         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
17529         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17530
17531 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17532
17533         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
17534         (pp_translate_identifiers): New.
17535         (pp_identifier): Only conditionally translate identifier to locale
17536         character set.
17537         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
17538         (pp_base_tree_identifier): Only conditionally translate identifier
17539         to locale character set.
17540         * c-pretty-print.c (M_): Define.
17541         (pp_c_type_specifier, pp_c_primary_expression): Mark English
17542         fragments for conditional translation with M_.
17543         * tree-pretty-print.c (maybe_init_pretty_print): Disable
17544         identifier translation.
17545
17546 2009-05-10  Richard Guenther  <rguenther@suse.de>
17547
17548         PR tree-optimization/40081
17549         * tree-sra.c (instantiate_element): Instantiate scalar replacements
17550         using the main variant of the element type.  Do not fiddle with
17551         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17552
17553 2009-05-09  Jan Hubicka  <jh@suse.cz>
17554
17555         PR middle-end/40080
17556         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
17557         indirect calls; verify cgraph afterwards.
17558
17559 2009-05-09  Jan Hubicka  <jh@suse.cz>
17560
17561         PR bootstrap/40082
17562         * ipa.c (update_inlined_to_pointer): New function.
17563         (cgraph_remove_unreachable_nodes): Use it.
17564
17565 2009-05-09  Jan Hubicka  <jh@suse.cz>
17566
17567         * tree-eh.c (struct leh_state): Remove prev_try.
17568         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
17569         not track prev_try.
17570         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
17571         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
17572         remove_eh_handler_and_replace, foreach_reachable_handler,
17573         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
17574         * except.h (struct eh_region): Remove eh_region_u_cleanup.
17575         (gen_eh_region_cleanup): Update prototype.
17576
17577 2009-05-09  Jan Hubicka  <jh@suse.cz>
17578
17579         PR middle-end/40043
17580         * except.c (copy_eh_region): Always set prev_try.
17581         (redirect_eh_edge_to_label): Find outer try.
17582         (foreach_reachable_handler): When looking for prev try
17583         handle case where previous try is not going to be taken.
17584
17585 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
17586
17587         PR tree-optimization/40049
17588         * tree-vect-stmts.c (vectorizable_operation): If the machine has
17589         only vector/vector shifts, convert the type of the constant to the
17590         appropriate type to avoid building incorrect trees, which
17591         eventually have problems with garbage collection.
17592
17593 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
17594
17595         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
17596         -1 for complex floating-point types if honoring signed zeros.
17597
17598 2009-05-08  Jan Hubicka  <jh@suse.cz>
17599
17600         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
17601         argument; handle correctly when profile is absent.
17602         (build_cgraph_edges): Update.
17603         (rebuild_cgraph_edges): Update.
17604         * cgraph.c: Do not include varray.h.
17605         (cgraph_set_call_stmt_including_clones): New function.
17606         (cgraph_create_edge_including_clones): Likewise
17607         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
17608         (cgraph_update_edges_for_call_stmt): Handle clones.
17609         (cgraph_remove_node): Handle clone tree.
17610         (cgraph_remove_node_and_inline_clones): New function.
17611         (dump_cgraph_node): Dump clone tree.
17612         (cgraph_clone_node): Handle clone tree.
17613         (clone_function_name): Bring here from tree-inline.c.
17614         (cgraph_create_virtual_clone): New function.
17615         * cgraph.h (ipa_replace_map): Move here from ipa.h.
17616         (cgraph_clone_info): New function.
17617         (strut cgraph_node): Add clone_info and new clone tree pointers.
17618         (cgraph_remove_node_and_inline_clones,
17619         cgraph_set_call_stmt_including_clones,
17620         cgraph_create_edge_including_clones,
17621         cgraph_create_virtual_clone): Declare.
17622         (cgraph_function_versioning): Use VEC argument.
17623         (compute_call_stmt_bb_frequency): Update prototype.
17624         (cgraph_materialize_all_clones): New function.
17625         * ipa-cp.c (ipcp_update_cloned_node): Remove.
17626         (ipcp_create_replace_map): Update to VECtors.
17627         (ipcp_update_callgraph): Use virtual clones.
17628         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
17629         (ipcp_update_profiling): Do not update local profiling.
17630         (ipcp_insert_stage): Use VECtors and virtual clones.
17631         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
17632         (clone_of_p): New function.
17633         (cgraph_preserve_function_body_p): Use clone tree.
17634         (cgraph_optimize): Materialize clones.
17635         (cgraph_function_versioning): Update for VECtors.
17636         (save_inline_function_body): Use clone tree.
17637         (cgraph_materialize_clone): New function.
17638         (cgraph_materialize_all_clones): Likewise.
17639         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
17640         * ipa.c: Include gimple.h.
17641         (cgraph_remove_unreachable_nodes): Use clone tree.
17642         * ipa-prop.c (ipa_note_param_call): Update call to
17643         compute_call_stmt_bb_frequencycall.
17644         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
17645         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
17646         (copy_bb): Handle updating of clone tree; add new edge when new call
17647         appears.
17648         (expand_call_inline): Be strict about every call having edge.
17649         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
17650         (delete_unreachable_blocks_update_callgraph): New function.
17651         (tree_function_versioning): Use VECtors; always remove unreachable
17652         blocks and fold conditionals.
17653         * tree-inline.h: Do not include varray.h.
17654         (tree_function_versioning): Remove.
17655         * Makefile.in (GTFILES): Remove tree-inline.c
17656         * passes.c (do_per_function): Do only functions having body.
17657         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
17658         tree.
17659
17660 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
17661             Andrew Morrow  <acm@google.com>
17662
17663         PR c/36892
17664         * c-common.c (c_common_attribute_table): Permit deprecated
17665         attribute to take an optional argument.
17666         (handle_deprecated_attribute): If the optional argument to
17667         __attribute__((deprecated)) is not a string ignore the attribute
17668         and emit a warning.
17669
17670         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
17671         * c-typeck.c (build_component_ref): Likewise.
17672         (build_external_ref): Likewise.
17673
17674         * toplev.c (warn_deprecated_use): Add an attribute argument.
17675         Emit the message associated with __attribute__((deprecated)).
17676
17677         * toplev.h (warn_deprecated_use): Updated.
17678
17679         * doc/extend.texi: Document new optional parameter to
17680         __attribute__((deprecated))
17681
17682 2009-05-08  Michael Eager <eager@eagercon.com>
17683
17684         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
17685         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
17686
17687 2009-05-08  Richard Guenther  <rguenther@suse.de>
17688
17689         PR tree-optimization/40062
17690         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
17691         Avoid exponential behavior.
17692
17693 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17694
17695         PR rtl-optimization/33928
17696         PR 26854
17697         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
17698         process_uses, build_single_def_use_links): New.
17699         (update_df): Update use_def_ref.
17700         (forward_propagate_into): Use get_def_for_use instead of use-def
17701         chains.
17702         (fwprop_init): Call build_single_def_use_links and let it initialize
17703         dataflow.
17704         (fwprop_done): Free use_def_ref.
17705         (fwprop_addr): Eliminate duplicate call to df_set_flags.
17706         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
17707         df_rd_simulate_one_insn): New.
17708         (df_rd_bb_local_compute_process_def): Update head comment.
17709         (df_chain_create_bb): Use the new RD simulation functions.
17710         * df.h (df_rd_simulate_artificial_defs_at_top,
17711         df_rd_simulate_one_insn): New.
17712         * opts.c (decode_options): Enable fwprop at -O1.
17713         * doc/invoke.texi (-fforward-propagate): Document this.
17714
17715 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
17716
17717         PR c/24581
17718         * c-typeck.c (build_binary_op): Handle arithmetic between one real
17719         and one complex operand specially.
17720         * tree-complex.c (some_nonzerop): Do not identify a real value as
17721         zero if flag_signed_zeros.
17722
17723 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17724
17725         PR rtl-optimization/33928
17726         * loop-invariant.c (record_use): Fix && vs. || mishap.
17727
17728 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
17729
17730         PR rtl-optimization/33928
17731         * loop-invariant.c (struct use): Add addr_use_p.
17732         (struct def): Add n_addr_uses.
17733         (struct invariant): Add cheap_address.
17734         (create_new_invariant): Set cheap_address.
17735         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
17736         (record_uses): Pass df_ref to record_use.
17737         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
17738         used only as such.
17739
17740 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
17741
17742         * config/sh/sh.c: Do not include c-pragma.h.
17743
17744 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17745
17746         * config/spu/spu.c: Remove include of c-common.h.
17747
17748 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
17749
17750         PR c/39037
17751         * c-common.h (mark_valid_location_for_stdc_pragma,
17752         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
17753         clear_float_const_decimal64, float_const_decimal64_p): New.
17754         * c.opt (Wunsuffixed-float-constants): New.
17755         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
17756         unsuffixed float constant, handle new warning.
17757         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
17758         * c-decl.c (c_scope): New flag float_const_decimal64.
17759         (set_float_const_decimal64, clear_float_const_decimal64,
17760         float_const_decimal64_p): New.
17761         (push_scope): Set new flag.
17762         * c-parser.c (c_parser_translation_unit): Mark when it's valid
17763         to use STDC pragmas.
17764         (c_parser_external_declaration): Ditto.
17765         (c_parser_compound_statement_nostart): Ditto.
17766         * c-pragma.c (valid_location_for_stdc_pragma,
17767         mark_valid_location_for_stdc_pragma,
17768         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
17769         handle_pragma_float_const_decimal64): New.
17770         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
17771         * cp/semantics.c (valid_location_for_stdc_pragma_p,
17772         set_float_const_decimal64, clear_float_const_decimal64,
17773         float_const_decimal64_p): New dummy functions.
17774         * doc/extend.texi (Decimal Float): Remove statement that the
17775         pragma, and suffix for double constants, are not supported.
17776         * doc/invoke.texi (Warning Options): List new option.
17777         (-Wunsuffixed-float-constants): New.
17778
17779 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
17780
17781         * config/i386/i386.c: Do not include c-common.h.
17782
17783 2009-05-07  Mark Heffernan  <meheff@google.com>
17784
17785         * doc/invoke.texi (Debugging Options): Document change of debugging
17786         dump location.
17787         * opts.c (decode_options): Make dump_base_name relative to
17788         aux_base_name directory.
17789
17790 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
17791
17792         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
17793         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
17794
17795 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
17796
17797         * Makefile.in (install-plugin): Simplify a bit.
17798
17799 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
17800
17801         * Makefile.in (OBJS-common): Add regcprop.o.
17802         (regcprop.o): New.
17803         * timevar.def (TV_CPROP_REGISTERS): New.
17804         * regrename.c (regrename_optimize): Return 0.
17805         (rest_of_handle_regrename): Delete.
17806         (pass_rename_registers): Point to regrename_optimize.
17807         (struct value_data_entry, struct value_data,
17808         kill_value_one_regno, kill_value_regno, kill_value,
17809         set_value_regno, init_value_data, kill_clobbered_value,
17810         kill_set_value, kill_autoinc_value, copy_value,
17811         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
17812         replace_oldest_value_reg, replace_oldest_value_addr,
17813         replace_oldest_value_mem, copyprop_hardreg_forward_1,
17814         debug_value_data, validate_value_data): Move...
17815         * regcprop.c: ... here.
17816         (rest_of_handle_cprop): Delete.
17817         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
17818
17819 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
17820
17821         PR middle-end/40057
17822         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
17823         GEN_INT for 1 << bitnum.
17824         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
17825         build_int_cst_type.
17826
17827 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
17828
17829         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
17830         Remove wrong description of "nand" operation.
17831
17832 2009-05-06  Richard Guenther  <rguenther@suse.de>
17833             Adam Nemet  <anemet@caviumnetworks.com>
17834
17835         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
17836         comment.  Add that if LHS is not a gimple register, then RHS1 has
17837         to be a single object (GIMPLE_SINGLE_RHS).
17838
17839 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
17840
17841         * expr.c (get_def_for_expr): Move it up in the file.
17842         (store_field): When expanding a bit-field store, look at the
17843         defining gimple stmt for the masking conversion.
17844
17845 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
17846
17847         PR middle-end/39986
17848         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
17849         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
17850         32-bit memcpy into long.
17851
17852 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
17853
17854         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
17855         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
17856         new_reg_loc_descr.
17857         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
17858         instead of appending DW_OP_deref*.
17859
17860 2009-05-06  Michael Matz  <matz@suse.de>
17861
17862         PR middle-end/40021
17863         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
17864         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
17865
17866 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
17867
17868         * Makefile.in (install-plugin): Fix srcdir handling.
17869
17870 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
17871
17872         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
17873         when processing for not_regs_needed bitmap.
17874         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
17875         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
17876         handling it for rhs.
17877
17878 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17879
17880         * config/i386/i386.md (unnamed inc/dec peephole): Use
17881         optimize_insn_for_size_p instead of optimize_size.
17882         * config/i386/predicates.md (incdec_operand): Likewise.
17883         (aligned_operand): Likewise.
17884         * config/i386/sse.md (divv8sf3): Likewise.
17885         (sqrtv8sf2): Likewise.
17886
17887 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17888
17889         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
17890
17891         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
17892
17893 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17894
17895         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
17896         ssemodesuffixf2c with avxmodesuffixf2c.
17897
17898 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
17899
17900         PR c/40032
17901         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
17902
17903 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
17904
17905         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
17906         (struct tree_base): Adjust spacing for 8 bit boundaries.
17907         (struct tree_decl_common): Add decl_by_reference_flag bit.
17908         (DECL_BY_REFERENCE): Adjust.
17909         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
17910         print DECL_BY_REFERENCE bit.
17911         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
17912         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
17913         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
17914         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
17915         unconditionally.
17916
17917         PR middle-end/39666
17918         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
17919         range of the type, but default label is missing, add it with one
17920         of the existing labels instead of adding a new label for it.
17921
17922 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
17923
17924         * dwarf.h: Remove.
17925
17926 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
17927
17928         * Makefile.in (enable_plugin, plugin_includedir): New.
17929         (install): Depend on install-plugin.
17930         (PLUGIN_HEADERS): New.
17931         (install-plugin): New.
17932         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
17933
17934 2009-05-05  Richard Guenther  <rguenther@suse.de>
17935
17936         PR tree-optimization/40022
17937         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
17938         the only vuse.
17939         (phivn_valid_p): Fix tuplification error, simplify.
17940         (phiprop_insert_phi): Add dumps.
17941         (propagate_with_phi): Simplify.
17942
17943 2009-05-05  Richard Guenther  <rguenther@suse.de>
17944
17945         PR middle-end/40023
17946         * builtins.c (gimplify_va_arg_expr): Properly build the address.
17947
17948 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
17949
17950         * tree.h (strip_float_extensions): Remove duplicate declaration.
17951         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
17952         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
17953         block_ultimate_origin): Rearrange the declarations line to match the
17954         comment that indicates the .c file which the functions are defined.
17955         (dwarf2out_*, set_decl_rtl): Add comment.
17956         (get_base_address): Adjust comment.
17957         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
17958         declarations line and add comment.
17959         (is_builtin_name): Add blank after function name, for clarity.
17960
17961 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
17962
17963         * attribs.c (decl_attributes): Use %qE for identifiers in
17964         diagnostics.
17965         * cgraphunit.c (verify_cgraph_node): Translate function names to
17966         locale character set in diagnostics.
17967         * coverage.c (get_coverage_counts): Use %qE for identifiers in
17968         diagnostics.
17969         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
17970         Document that functions are named in UTF-8.
17971         * expr.c (expand_expr_real_1): Translate function names to locale
17972         character set in diagnostics.
17973         * gimplify.c (omp_notice_variable, omp_is_private,
17974         gimplify_scan_omp_clauses): Use %qE for identifiers in
17975         diagnostics.
17976         * langhooks.c (lhd_print_error_function): Translate function names
17977         to locale character set.
17978         * langhooks.h (decl_printable_name): Document that return value is
17979         in internal character set.
17980         * stmt.c: Include pretty-print.h
17981         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
17982         diagnostics.
17983         (resolve_operand_name_1): Translate named operand name to locale
17984         character set.
17985         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
17986         diagnostics.
17987         * toplev.c (announce_function): Translate function names to locale
17988         character set.
17989         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
17990         (default_tree_printer): Use pp_identifier or translate identifiers
17991         to locale character set.  Mark "<anonymous>" for translation.
17992         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
17993         for identifiers in diagnostics.
17994         * tree.c (handle_dll_attribute): Use %qE for identifiers in
17995         diagnostics.
17996         * varasm.c (output_constructor): Use %qE for identifiers in
17997         diagnostics.
17998
17999 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
18000
18001         * configure.ac: use ` ` instead of $()
18002         * configure: Regenerate.
18003
18004 2009-05-05  Ben Elliston  <bje@au.ibm.com>
18005
18006         * config/pa/linux-atomic.c: Eliminate conditional include of
18007         errno.h on non-LP64 systems to simplify build requirements.
18008
18009 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18010
18011         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18012         diagnostics.
18013         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18014         and pass value to identifier_to_locale.
18015         (warn_variable_length_array): Make name a tree.
18016         (grokdeclarator): Separate diagnostic texts for named and unnamed
18017         declarators.  Use %qE for named declarators.
18018         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
18019         diagnostics.
18020         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
18021         identifiers in diagnostics.
18022         * c-typeck.c (push_member_name, start_init): Pass identifiers to
18023         identifier_to_locale.  Mark "anonymous" strings for translation.
18024
18025 2009-05-04  Michael Eager <eager@eagercon.com>
18026
18027         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
18028         address for DImode/DFmode only if double-precision FP regs.
18029
18030 2009-05-04  Michael Eager <eager@eagercon.com>
18031
18032         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
18033         TARGET_SINGLE_FLOAT check.
18034
18035 2009-05-04  Michael Eager <eager@eagercon.com>
18036
18037         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
18038
18039 2009-05-04  Michael Eager <eager@eagercon.com>
18040
18041         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
18042         * config/rs6000/t-xilinx: New
18043
18044 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
18045
18046         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
18047         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
18048         * gcc/explow.c (memory_address): Use target hook.
18049         * gcc/targhooks.c (default_legitimize_address): New.
18050         * gcc/targhooks.h (default_legitimize_address): New.
18051         * gcc/target.h (legitimize_address): New.
18052         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
18053         (TARGET_INITIALIZER): Include it.
18054         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
18055
18056         * config/bfin/bfin-protos.h (legitimize_address): Remove.
18057         * config/bfin/bfin.c (legitimize_address): Remove.
18058         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
18059         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
18060         Remove.
18061         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
18062         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
18063
18064         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
18065         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
18066         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
18067         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
18068         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
18069         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
18070         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
18071         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
18072         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
18073         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
18074         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
18075         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
18076         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
18077         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
18078         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
18079         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
18080         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
18081         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
18082         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
18083         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
18084         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
18085         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
18086         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
18087
18088         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
18089         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
18090         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
18091         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
18092         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
18093         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
18094         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
18095         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
18096         (thumb_legitimize_address): Delete.
18097         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
18098         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
18099         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
18100         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
18101         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
18102         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
18103         Delete.
18104         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
18105         Delete.
18106
18107         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
18108         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
18109         * config/m32r/m32r.c (m32r_legitimize_address): New.
18110         * config/m68k/m68k.c (m68k_legitimize_address): New.
18111         * config/score/score.c (score_legitimize_address): Standardize.
18112         * config/score/score3.c (score3_legitimize_address): Standardize.
18113         * config/score/score3.h (score3_legitimize_address): Adjust.
18114         * config/score/score7.c (score7_legitimize_address): Standardize.
18115         * config/score/score7.h (score7_legitimize_address): Adjust.
18116         * config/sh/sh.c (sh_legitimize_address): New.
18117         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
18118
18119         * gcc/config/s390/s390.c (legitimize_address): Rename to...
18120         (s390_legitimize_address): ... this.
18121         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
18122         (sparc_legitimize_address): ... this.
18123         * gcc/config/i386/i386.c (legitimize_address): Rename to...
18124         (ix86_legitimize_address): ... this.
18125         * gcc/config/avr/avr.c (legitimize_address): Rename to...
18126         (avr_legitimize_address): ... this.
18127         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
18128         (mn10300_legitimize_address): ... this.
18129         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
18130         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
18131         (alpha_expand_mov): Adjust call.
18132
18133         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
18134         * config/spu/spu.c (spu_legitimize_address): Likewise.
18135         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
18136         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
18137
18138 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18139
18140         * intl.c (locale_encoding, locale_utf8): New.
18141         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
18142         * intl.h (locale_encoding, locale_utf8): Declare.
18143         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
18144         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
18145         New.
18146         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
18147         argument.
18148         (pp_tree_identifier): Define to call pp_base_tree_identifier.
18149         (pp_base_tree_identifier): Declare as function.
18150         (identifier_to_locale): Declare.
18151         * Makefile.in (pretty-print.o): Update dependencies.
18152         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
18153
18154 2009-05-04  Richard Guenther  <rguenther@suse.de>
18155
18156         PR middle-end/40015
18157         * builtins.c (fold_builtin_memory_op): Do not decay to element
18158         type if the size matches the whole array.
18159
18160 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18161
18162         * expmed.c (synth_mult): When trying out a shift, pass the result
18163         of a signed shift.
18164
18165 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18166
18167         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
18168         (shiftsub1_cost): New.
18169         (init_expmed): Compute shiftsub1_cost.
18170         (synth_mult): Optimize multiplications by constants of the form
18171         -(2^^m-1) for some constant positive integer m.
18172
18173 2009-05-03  Richard Guenther  <rguenther@suse.de>
18174
18175         PR c/39983
18176         * c-typeck.c (array_to_pointer_conversion): Do not built
18177         ADDR_EXPRs of arrays of pointer-to-element type.
18178         * c-gimplify.c (c_gimplify_expr): Revert change fixing
18179         up wrong ADDR_EXPRs after-the-fact.
18180         * c-common.c (strict_aliasing_warning): Strip pointer
18181         conversions for obtaining the original type.
18182         * builtins.c (fold_builtin_memset): Handle array types.
18183         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
18184         and array types
18185
18186 2009-05-03  Richard Guenther  <rguenther@suse.de>
18187
18188         PR middle-end/23329
18189         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
18190         Do not lose casts from array types with unknown extent to array
18191         types with known extent.
18192         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
18193         alias set compatibility.
18194
18195 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18196
18197         * flags.h (extra_warnings): Delete.
18198         * toplev.c (process_options): Handle Wuninitialized here.
18199         * opts.c (extra_warnings): Delete.
18200         (set_Wextra): Delete.
18201         (common_handle_option): -Wextra can be handled automatically.
18202         * c-opts.c (c_common_handle_option): Delete obsolete code.
18203         (c_common_post_options): Simplify comment.
18204         * common.opt (W): Add Var.
18205         (Wextra): Add Var.
18206         (Wuninitialized): Initialize to -1.
18207
18208 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
18209             Richard Guenther  <rguenther@suse.de>
18210
18211         * expr.c (get_def_for_expr): New function.
18212         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
18213         SSA rather than trees.
18214         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
18215         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
18216
18217 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
18218
18219         * c-common.c (reswords): Add _Imaginary.
18220         * c-common.c (enum rid): Add RID_IMAGINARY.
18221
18222 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
18223
18224         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
18225         Patch by Richard Guenther.
18226
18227 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
18228
18229         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
18230         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
18231         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
18232         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
18233         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
18234         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
18235         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
18236         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
18237         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
18238         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
18239         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
18240         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
18241         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
18242         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
18243         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
18244         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
18245         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
18246         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
18247
18248 2009-05-02  Richard Guenther  <rguenther@suse.de>
18249
18250         PR tree-optimization/39940
18251         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
18252         doing so.
18253
18254 2009-05-02  Richard Guenther  <rguenther@suse.de>
18255
18256         PR middle-end/40001
18257         * tree-ssa.c (execute_update_addresses_taken): Properly check
18258         if we can mark a variable DECL_GIMPLE_REG_P.
18259         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
18260         back to the end of the function.
18261         (is_gimple_reg_type): Remove complex type special casing.
18262         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
18263         if not optimizing.
18264
18265 2009-05-02  Ben Elliston  <bje@au.ibm.com>
18266
18267         * doc/collect2.texi (Collect2): Document search path behaviour
18268         when configured with --with-ld.
18269
18270 2009-05-02  Jan Hubicka  <jh@suse.cz>
18271
18272         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
18273         parameter; update callers.
18274         (coalesce_cost_edge): EH edges are costier because they needs
18275         splitting even if not critical and even more costier when there are
18276         multiple EH predecestors.
18277
18278 2009-05-02  Jan Hubicka  <jh@suse.cz>
18279
18280         * except.c (remove_eh_handler_and_replace): Handle updating after
18281         removing TRY blocks.
18282
18283 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
18284
18285         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
18286
18287 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
18288
18289         * varasm.c: Do not include c-pragma.h.
18290         * attribs.c: Do not incude c-common.h.
18291
18292 2009-05-01  Michael Matz  <matz@suse.de>
18293
18294         * calls.c (initialize_argument_information): Handle SSA names like
18295         decls with a non MEM_P DECL_RTL.
18296
18297 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
18298
18299         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
18300         * ipa-utils.c: Likewise.
18301         * ipa-type-escape.c: Likewise.
18302         * cgraphunit.c Do not include c-common.h.
18303         * ipa-pure-const.c: Likewise.
18304         * tree-if-conv.c: Likewise.
18305         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
18306         * ipa-struct-reorg.c: Likewise.
18307         * tree-nomudflap.c: Likewise.
18308         * tree-ssa-structalias.c: Likewise.
18309
18310 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
18311
18312         * store-motion.c: Many cleanups to make this pass a first-class
18313         citizen instead of an appendix to gcse load motion.  Add TODO list
18314         to make this pass faster/cleaner/better.
18315
18316         (struct ls_expr): Post gcse.c-split cleanups.
18317         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
18318         "stores" field to "avail_stores".
18319         (pre_ldst_mems): Rename to store_motion_mems.
18320         (pre_ldst_table): Rename to store_motion_mems_table.
18321         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
18322         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
18323         (ldst_entry): Rename to st_expr_entry, update users.
18324         (free_ldst_entry): Rename to free_st_expr_entry, update users.
18325         (free_ldst_mems): Rename to free_store_motion_mems, update users.
18326         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
18327         update caller.
18328         (first_ls_expr): Rename to first_st_expr, update users.
18329         (next_ls_expr): Rename to next_st_expr, update users.
18330         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
18331         fields properly for store motion instead of names inherited from load
18332         motion in gcse.c.
18333         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
18334         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
18335         are done with it.
18336
18337         (ae_kill): Rename to st_kill, update users.
18338         (ae_gen): Rename to st_avloc, update users.
18339         (transp): Rename to st_transp, update users.
18340         (pre_insert_map): Rename to st_insert_map, update users.
18341         (pre_delete_map): Rename to st_delete_map, update users.
18342         (insert_store, build_store_vectors, free_store_memory,
18343         one_store_motion_pass): Update for abovementioned changes.
18344
18345         (gcse_subst_count, gcse_create_count): Remove.
18346         (one_store_motion_pass): New statistics counters "n_stores_deleted"
18347         and "n_stores_created", local variables.
18348
18349         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
18350         use for_each_rtx.
18351
18352         (regvec, compute_store_table_current_insn): Remove.
18353         (reg_set_info, reg_clear_last_set): Remove.
18354         (compute_store_table): Use DF caches instead of local dataflow
18355         solvers.
18356
18357 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
18358
18359         * c-objc-common.c (c_tree_printer): Print identifiers with
18360         pp_identifier, not pp_string.  Mark "({anonymous})" for
18361         translation.
18362         * c-pretty-print.c (pp_c_ws_string): New.
18363         (pp_c_cv_qualifier, pp_c_type_specifier,
18364         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
18365         pp_c_storage_class_specifier, pp_c_function_specifier,
18366         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
18367         pp_c_primary_expression, pp_c_postfix_expression,
18368         pp_c_unary_expression, pp_c_shift_expression,
18369         pp_c_relational_expression, pp_c_equality_expression,
18370         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
18371         use pp_string and pp_c_ws_string in place of pp_identifier and
18372         pp_c_identifier for non-identifiers.  Mark English strings for
18373         translation.
18374         * c-pretty-print.h (pp_c_ws_string): Declare.
18375
18376 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
18377             Roland McGrath <roland@redhat.com>
18378
18379         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
18380         (ENABLE_LD_BUILDID): New configuration option.
18381         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
18382         (LINK_BUILDID_SPEC): New macro.
18383         (init_spec): If defined, prepend it between LINK_EH_SPEC and
18384         link_spec.
18385         * doc/install.texi: Document --enable-linker-build-id option.
18386         * configure: Rebuild.
18387         * config.in: Rebuild.
18388
18389 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
18390
18391         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
18392         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
18393         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
18394         MIPS_GP_SAVE_AREA_SIZE.
18395         * config/mips/mips.c (struct mips_frame_info): Update comment
18396         before arg_pointer_offset and hard_frame_pointer_offset.
18397         (mips_compute_frame_info): Update diagram before function: to
18398         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
18399         indicate the position of frame_pointer_rtx with -fstack-protector and
18400         to show args_size.  Don't allocate cprestore area for leaf functions
18401         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
18402         cprestore_size.
18403         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
18404
18405 2009-04-30  Michael Matz  <matz@suse.de>
18406
18407         PR tree-optimization/39955
18408         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
18409
18410 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18411
18412         * ira.c (setup_cover_and_important_classes):  Use safe macro
18413         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
18414         directly.
18415         * genpreds.c (write_tm_preds_h):  Output suitable definition of
18416         REG_CLASS_FOR_CONSTRAINT.
18417
18418 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
18419
18420         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
18421         instead of an int.
18422         * bitmap.c (bitmap_descriptor): Likewise.
18423         * ggc-common.c (loc_descriptor): Likewise.
18424         * varray.c (varray_descriptor): Likewise.
18425         * vec.c (vec_descriptor): Likewise.
18426
18427 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
18428
18429         * Makefile.in (dce.o): Add $(EXCEPT_H).
18430         * dce.c: Include except.h and delete redundant vector definitions.
18431         (deletable_insn_p): Return false for non-call insns that can throw
18432         if DF is running.
18433
18434 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18435
18436         * gcse.c (ae_gen): Remove.
18437         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
18438         and make non-static function to make it available in store-motion.c.
18439         Update call sites with search-and-replace.
18440         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
18441         extract_mentioned_regs, extract_mentioned_regs_helper,
18442         find_moveable_store, compute_store_table, load_kills_store, find_loads,
18443         store_killed_in_insn, store_killed_after, store_killed_before,
18444         build_store_vectors, insert_insn_start_basic_block, insert-store,
18445         remove_reachable_equiv_notes, replace_store_insn, delete_store,
18446         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
18447         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
18448         * store-motion.c: ...new file.  Also copy data structures from gcse.c
18449         and clean up to remove parts not used by store motion.
18450         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
18451         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
18452
18453 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18454
18455         PR target/38571
18456         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
18457         when optimizing for size.
18458
18459 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
18460
18461         * gcse.c (gcse_constant_p): Fix typo in last change.
18462
18463 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
18464
18465         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
18466
18467 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
18468
18469         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
18470
18471 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
18472
18473         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
18474         CONST_HIGH_PART result.
18475
18476 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
18477
18478         * config/avr/avr.c (initial_elimination_offset): Rename to
18479         avr_initial_elimination_offset.
18480         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
18481         change return type to bool.
18482         (avr_can_eliminate): New function.
18483         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
18484         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
18485         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
18486         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
18487         avr_initial_elimination_offset.
18488         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
18489         (avr_initial_elimination_offset): Define.
18490
18491 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
18492             Steven Bosscher  <steven@gcc.gnu.org>
18493
18494         PR rtl-optimization/39938
18495         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
18496         * cfgrtl.c: Include insn-attr.h.
18497         (rest_of_pass_free_cfg): New function.
18498         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
18499         * resource.c (init_resource_info): Remove call to df_analyze.
18500
18501 2009-04-29  Richard Guenther  <rguenther@suse.de>
18502
18503         PR target/39943
18504         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
18505         allow conversion to signed integers.
18506
18507 2009-04-29  Richard Guenther  <rguenther@suse.de>
18508
18509         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
18510         shifts of floating point vectors if the shift amount is
18511         a constant multiple of the element size.
18512
18513 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
18514             Michael Matz  <matz@suse.de>
18515
18516         PR middle-end/39927
18517         PR bootstrap/39929
18518         * tree-outof-ssa.c (emit_partition_copy): New function.
18519         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18520         insert_part_to_rtx_on_edge): Perform the partition base var
18521         copy using emit_partition_copy.
18522         (insert_value_copy_on_edge): Convert constants to the right mode.
18523         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
18524         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
18525
18526 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18527
18528         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
18529         scan backwards to try to find a constant to initialize it.
18530
18531         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
18532         insn before the loop_end instruction, don't look past labels.
18533
18534 2009-04-29  Richard Guenther  <rguenther@suse.de>
18535
18536         PR middle-end/39937
18537         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
18538         loose type conversions.
18539         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
18540         stmts only if there are no uses of its definition.
18541
18542 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18543
18544         * config/bfin/bfin.h (splitting_loops): Declare.
18545         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
18546         Reorder bit definitions to be ascending.
18547         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
18548         * config/bfin/bfin.c (splitting_loops): New variable.
18549         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
18550         (struct loop_info): Remove members INIT and LOOP_INIT.
18551         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
18552         the LSETUP sequence.  Allow LC to be loaded from any register, but
18553         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
18554         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
18555         set to 1.
18556         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
18557         of reload_completed.
18558
18559         From Jie Zhang:
18560         * config/bfin/bfin.md (movsi_insn): Refine constraints.
18561
18562 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
18563
18564         * Makefile.in (PLUGIN_VERSION_H): New.
18565         (OBJS-common): Remove plugin-version.o.
18566         (plugin.o): Depend on (PLUGIN_VERSION_H).
18567         (plugin-version.o): Remove.
18568         * configure: Regenerate
18569         * configure.ac: Create plugin-version.h.
18570         * gcc-plugin.h (plugin_gcc_version): Remove.
18571         (plugin_default_version_check): Change signature.
18572         * plugin-version.c: Remove.
18573         * plugin.c: Include plugin-version.h.
18574         (str_plugin_gcc_version_name): Remove.
18575         (try_init_one_plugin): Pass gcc version to plugin_init.
18576         (plugin_default_version_check): Both gcc and plugin versions are now
18577         arguments.
18578
18579 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18580
18581         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
18582         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
18583         Remove special case testing for last insn of inner loops. Don't fail
18584         if the loop ends with a jump, emit an extra nop instead.
18585
18586         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
18587         DREGS rather than comparing directly.  Remove code that tries to
18588         account for latencies.
18589
18590 2009-04-29  Richard Guenther  <rguenther@suse.de>
18591
18592         PR tree-optimization/39941
18593         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
18594         eliminating an indirect call.
18595
18596 2009-04-29  Richard Guenther  <rguenther@suse.de>
18597
18598         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
18599         parameter.  Allow invariants as base if !require_lvalue.
18600         (verify_gimple_assign_single): Adjust.
18601
18602 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18603
18604         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
18605         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
18606         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
18607         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
18608         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
18609         a VEC_SELECT.
18610         * config/bfin/bfin.c (bfin_expand_builtin,
18611         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
18612
18613 2009-04-28  Richard Guenther  <rguenther@suse.de>
18614
18615         * tree-vect-loop.c (get_initial_def_for_induction): Use
18616         correct types for pointer increment.
18617
18618 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18619
18620         * toplev.c (print_version): Update GMP version string calculation.
18621
18622 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
18623
18624         PR rtl-optimization/39938
18625         * resource.c (init_resource_info): Add call to df_analyze.
18626
18627 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18628
18629         * config/alpha/alpha.md (usegp): Cast the result of
18630         alpha_find_lo_sum_using_gp to enum attr_usegp.
18631         * config/alpha/alpha.c (override_options): Remove end-of-structure
18632         marker element from cpu_table.  Use array size of cpu_table to handle
18633         -mcpu and -mtune options.
18634         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
18635
18636 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
18637
18638         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
18639         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
18640         tune_32 and tune_64.
18641         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
18642         support on PowerPC.
18643         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
18644         * config/rs6000/option-defaults.h: ... here.  New file.
18645         (OPT_64, OPT_32): Define.
18646         (MASK_64BIT): Define to 0 if not already defined.
18647         (OPT_ARCH64, OPT_ARCH32): Define.
18648         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
18649         and tune_64.
18650
18651 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18652
18653         * config/arm/arm.c (arm_override_options): Emit error on using
18654         fpa with AAPCS.
18655
18656 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18657
18658         PR rtl-optimization/39914
18659         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
18660         registers for allocnos created from user-defined variables only
18661         when not optimizing.
18662
18663 2009-04-28  Richard Guenther  <rguenther@suse.de>
18664
18665         PR middle-end/39937
18666         * fold-const.c (fold_binary): Use distribute_real_division only
18667         on float types.
18668
18669 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
18670
18671         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
18672         add hpux-stdint.h to tm_file.
18673         (hppa[12]*-*-hpux11*): Ditto.
18674         (ia64*-*-hpux*): Ditto.
18675         * config/hpux-stdint.h: New.
18676         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
18677         __STDC_EXT__ for all compiles.
18678         * config/pa/pa-hpux.h: Ditto.
18679         * config/pa/pa-hpux10.h: Ditto.
18680         * config/pa/pa-hpux11.h: Ditto.
18681
18682 2009-04-28  Catherine Moore  <clm@codesourcery.com>
18683
18684         * debug.h (set_name): Add comment.
18685
18686 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
18687
18688         PR target/39929
18689         * config/darwin.c (machopic_gen_offset): Check
18690         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
18691         * config/arm/arm.c (require_pic_register): Likewise.
18692
18693 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
18694
18695         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
18696         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
18697         m32c_promote_prototypes): Delete.
18698
18699 2009-04-28  Michael Matz  <matz@suse.de>
18700
18701         PR middle-end/39922
18702         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
18703         constants.
18704
18705 2009-04-28  Richard Guenther  <rguenther@suse.de>
18706
18707         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
18708
18709 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18710
18711         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
18712         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
18713         * config/arm/arm-tune.md: Regenerate.
18714
18715 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
18716
18717         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
18718         block if there are complex incoming edges.
18719         (sel_merge_blocks): Remove useless assert.
18720         (sel_redirect_edge_and_branch): Check that edge was redirected.
18721         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
18722         (sel_find_rgns): Delete declaration.
18723         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
18724         the region when it is not a preheader.
18725
18726 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18727
18728         PR c/39323
18729         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
18730
18731 2009-04-28  Richard Guenther  <rguenther@suse.de>
18732
18733         * tree.h (SSA_NAME_VALUE): Remove.
18734         (struct tree_ssa_name): Remove value_handle member.
18735         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
18736         array for jump threading.
18737         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
18738         SSA_NAME_VALUEs.
18739         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
18740         * tree-flow.h (threadedge_initialize_values): Declare.
18741         (threadedge_finalize_values): Likewise.
18742         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
18743         (SSA_NAME_VALUE): Define.
18744         (threadedge_initialize_values): New function.
18745         (threadedge_finalize_values): Likewise.
18746         * tree-ssa-dom.c (ssa_name_values): New global variable.
18747         (SSA_NAME_VALUE): Define.
18748         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
18749
18750 2009-04-28  Ira Rosen  <irar@il.ibm.com>
18751
18752         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
18753         Use REPORT_VECTORIZED_LOCATIONS instead
18754         REPORT_VECTORIZED_LOOPS.
18755         * tree-vectorizer.c (vect_verbosity_level): Make static.
18756         (vect_loop_location): Rename to vect_location.
18757         (vect_set_verbosity_level): Update comment.
18758         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
18759         and vect_location.
18760         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
18761         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
18762         instead REPORT_UNVECTORIZED_LOOPS.
18763         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
18764         and vect_loop_def to vect_external_def and vect_internal_def.
18765         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
18766         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
18767         REPORT_UNVECTORIZED_LOCATIONS.
18768         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
18769         and vect_used_in_loop and to vect_unused_in_scope and
18770         vect_used_in_scope.
18771         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
18772         (vect_verbosity_level): Remove declaration.
18773         (vect_analyze_operations): Likewise.
18774         (vect_analyze_stmt): Declare.
18775         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
18776         REPORT_UNVECTORIZED_LOCATIONS.
18777         (vect_get_loop_niters): Fix indentation.
18778         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
18779         (vect_analyze_loop_operations): New function.
18780         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
18781         vect_analyze_operations.
18782         (vect_is_simple_reduction): Use new names.
18783         (vectorizable_live_operation, vect_transform_loop): Likewise.
18784         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
18785         to specify whether the data references can be a part of interleaving
18786         chain.
18787         (vect_analyze_data_ref_dependence): Use new names.
18788         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
18789         (vect_create_addr_base_for_vector_ref): Remove redundant code.
18790         * tree-vect-patterns.c (widened_name_p): Use new names.
18791         (vect_recog_dot_prod_pattern): Likewise.
18792         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
18793         (process_use, vect_mark_stmts_to_be_vectorized,
18794         vect_model_simple_cost, vect_model_store_cost,
18795         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
18796         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
18797         vectorizable_operation, vectorizable_type_demotion,
18798         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
18799         vectorizable_condition): Likewise.
18800         (vect_analyze_operations): Split into vect_analyze_loop_operations
18801         and ...
18802         (vect_analyze_stmt): ... new function.
18803         (new_stmt_vec_info): Use new names.
18804         (vect_is_simple_use): Use new names and fix comment.
18805         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
18806         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
18807
18808 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
18809
18810         PR target/39911
18811         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
18812         and integer modes for x87 operands.  Do not ICE for unsupported size,
18813         generate error instead.  Generate error for unsupported operand types.
18814         ['z']: Do not handle HImode memory operands specially.  Warning
18815         for floating-point operands.  Fallthru to 'Z' for unsupported operand
18816         types.  Do not ICE for unsupported size, generate error instead.
18817         (output_387_binary_op): Use %Z to output operands.
18818         (output_fp_compare): Ditto.
18819         (output_387_reg_move): Ditto.
18820
18821 2009-04-28  Ben Elliston  <bje@au.ibm.com>
18822
18823         PR c++/35652
18824         Revert:
18825
18826         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18827
18828         * builtins.c (c_strlen): Do not warn here.
18829         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
18830         * c-common.c (pointer_int_sum): Take an explicit location.
18831         Warn about offsets out of bounds.
18832         * c-common.h (pointer_int_sum): Adjust declaration.
18833
18834 2009-04-27  Ian Lance Taylor  <iant@google.com>
18835
18836         * collect2.c (is_ctor_dtor): Change type of ret field in struct
18837         names to symkind.
18838         * dce.c (run_fast_df_dce): Change type of old_flags to int.
18839         * df-core.c (df_set_flags): Change return type to int.  Change
18840         type of old_flags to int.
18841         (df_clear_flags): Likewise.
18842         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
18843         (df_get_conditional_uses): Likewise.
18844         * df.h (df_set_flags, df_clear_flags): Update declarations.
18845         * dwarf2out.c (struct indirect_string_node): Change type of form
18846         field to enum dwarf_form.
18847         (AT_string_form): Change return type to enum dwarf_form.
18848         * fixed-value.c (fixed_compare): Add cast to enum type.
18849         * fwprop.c (update_df): Change 0 to VOIDmode.
18850         * gensupport.c: Change 0 to UNKNOWN.
18851         * gimple.h (gimple_cond_code): Add cast to enum type.
18852         * haifa-sched.c (reemit_notes): Add cast to enum type.
18853         * hooks.c (hook_int_void_no_regs): Remove function.
18854         * hooks.h (hook_int_void_no_regs): Remove declaration.
18855         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
18856         * predict.c (combine_predictions_for_insn): Add casts to enum type.
18857         * real.c (real_arithmetic): Add cast to enum type.
18858         (real_compare): Likewise.
18859         * target.h (struct gcc_target): Change return type of
18860         branch_target_register_class to enum reg_class.
18861         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
18862         default_branch_target_register_class.
18863         * targhooks.c (default_branch_target_register_class): New function.
18864         * targhooks.h (default_branch_target_register_class): Declare.
18865         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
18866         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
18867         cast to int.
18868         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
18869         ERROR_MARK.
18870         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
18871         vect_uninitialized_def.  Change 0 to ERROR_MARK.
18872         * tree-vect-stmts.c (supportable_widening_operation): Don't
18873         initialize icode1 and icode2.
18874         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
18875         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
18876         and to STD_C89.
18877         (cmn_err_flag_specs): Change 0 to STD_C89.
18878         (cmn_err_char_table): Likewise.
18879         * config/arm/arm.c (get_arm_condition_code): Change type of code
18880         to enum arm_cond_code.
18881         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
18882         (IWMMXT_BUILTIN2): Likewise.
18883         (neon_builtin_type_bits): Don't define typedef.
18884         (neon_builtin_datum): Change type of bits field to int.
18885         (arm_expand_neon_args): Add cast to enum type.
18886         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
18887         TLS_MODEL_NONE.
18888         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
18889         casts to enum type.
18890         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
18891         MIPS_FP_COND_f.
18892         * config/mips/mips.md (jal_macro): Return enum constant.
18893         (single_insn): Likewise.
18894         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
18895         CODE_FOR_nothing.
18896         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18897         casts to enum type.
18898         * config/s390/s390.c (s390_tune_flags): Change type to int.
18899         (s390_arch_flags): Likewise.
18900         (s390_handle_arch_option): Change flags field of struct pta to int.
18901         * config/s390/s390.h (s390_tune_flags): Update declaration.
18902         (s390_arch_flags): Likewise.
18903         * config/sh/sh.c (prepare_move_operands): Compare
18904         tls_symbolic_operand result with enum constant.
18905         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
18906         (sh_expand_prologue): Add cast to enum type.
18907         (sh_expand_epilogue): Likewise.
18908         (tls_symbolic_operand): Change return type to enum tls_model.
18909         (fpscr_set_from_mem): Add cast to enum type.
18910         (legitimize_pic_address): Compare tls_symbolic_operand result with
18911         enum constant.
18912         (sh_target_reg_class): Change return type to enum reg_class.
18913         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
18914         PROCESSOR_xxx.
18915         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
18916         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
18917         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
18918         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
18919         (delayed_branch, tls_call_delay): Likewise.
18920         (eligible_for_sibcall_delay): Likewise.
18921         (eligible_for_return_delay): Likewise.
18922         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
18923         (spu_expand_builtin_1): Likewise.
18924
18925         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
18926         for all types of conversions.
18927         (output_init_element): Issue -Wc++-compat warning if needed when
18928         initializing a bitfield with enum type.
18929         * c-parser.c (c_parser_expression): Set original_type to
18930         original_type of right hand operand of comma operator.
18931
18932 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18933
18934         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
18935         grammar nits.
18936         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
18937         * doc/cpp.texi (Standard Predefined Macros)
18938         (Implementation-defined behavior): Likewise.
18939         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
18940         * doc/gimple.texi (GIMPLE Exception Handling)
18941         (@code{GIMPLE_ASSIGN}): Likewise.
18942         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
18943         * doc/invoke.texi (Warning Options, Optimize Options)
18944         (AVR Options, Darwin Options): Likewise.
18945         (Optimize Options): Reformulate -fwhole-program description.
18946         * doc/loop.texi (Lambda): Likewise.
18947         * doc/md.texi (Output Template, Define Constraints)
18948         (Standard Names, Insn Splitting): Likewise.
18949         * doc/options.texi (Option properties): Likewise.
18950         * doc/passes.texi (Tree-SSA passes): Likewise.
18951         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
18952         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
18953         (File Names and DBX): Likewise.
18954         * doc/trouble.texi (Incompatibilities): Likewise.
18955
18956 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
18957
18958         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
18959         instruction is correct.
18960
18961 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
18962
18963         Allow non-constant arguments to conversion intrinsics.
18964         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
18965         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
18966         * spu.c (print_operand): Handle 'v' and 'w'.
18967         (exp2_immediate_p, spu_gen_exp2): Define.
18968         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
18969         spu_convtf_1): Update parameter descriptions.
18970         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
18971         * constraints.md ('v', 'w'): New.
18972         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
18973         Remove.
18974         (i2f, I2F): New define_mode_attr.
18975         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
18976         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
18977         fixuns_truncv4sfv4si2):  Update to use mode attribute.
18978         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
18979         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
18980         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
18981         patterns for combine.
18982
18983 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
18984
18985         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
18986         (cprop, hoist, pre, store_motion): New debug counters.
18987         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
18988         is not an RTL pass anymore.
18989         (pass_profiling): Remove extern decl for pass removed in 2005.
18990         (pass_gcse, pass_jump_bypass): Remove.
18991         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
18992         to 0 for clean state.
18993         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
18994         * cse.c (gate_handle_cse_after_global_opts,
18995         rest_of_handle_cse_after_global_opts): New functions.
18996         (pass_cse_after_global_opts): New pass, does local CSE.
18997         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
18998         (TV_CPROP): New timevar.
18999         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19000         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19001         (gcse_main, recompute_all_luids): Remove.
19002         (compute_hash_table_work): Call max_reg_num instead of reading
19003         max_gcse_regno.
19004         (cprop_jump): Don't set run_jump_opt_after_gcse.
19005         (constprop_register): Always allow to alter jumps.
19006         (cprop_insn): Likewise.
19007         (do_local_cprop): Likewise.
19008         (local_cprop_pass): Likewise.  Return non-zero if something changed.
19009         (cprop): Remove function, fold interesting bits into one_cprop_pass.
19010         (find_implicit_sets): Add note about missed optimization opportunity.
19011         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19012         pass_rtl_cprop execute function.
19013         Don't bother tracking the pass number, each pass gets its own dumpfile
19014         now anyway.
19015         Always allow to alter jumpsand bypass jumps.
19016         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19017         will just find no suitable set.
19018         (pre_edge_insert): Fix dumping, this function is for PRE only.
19019         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
19020         pass_rtl_pre execute function.
19021         (hoist_code): Return non-zero if something changed.  Keep track of
19022         substitutions and insertions for statistics gathering similar to PRE.
19023         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
19024         called from the pass_rtl_hoist execute function.  Show pass statistics.
19025         (compute_store_table): Use max_reg_num directly instead of using the
19026         formerly global max_gcse_regno.
19027         (build_store_vectors): Likewise.
19028         (replace_store_insn): Fix dumping.
19029         (store_motion): Rename to ...
19030         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
19031         pass, called from the pass_rtl_store_motion execute function.  Keep
19032         track of substitutions and insertions for statistics gathering similar
19033         to PRE.
19034         (bypass_jumps): Remove, fold interesting bits into ...
19035         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
19036         from the pass_rtl_cprop execute function.
19037         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
19038         pass_jump_bypass): Remove.
19039         (gate_handle_gcse, rest_of_handle_gcse): Remove.
19040         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
19041         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
19042         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
19043         (gate_rtl_store_motion, execute_rtl_store_motion,
19044         pass_rtl_store_motion): New.
19045         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
19046         make it clear that -fcse-skip-blocks is a no-op for backward compat.
19047         * passes.c (init_optimization_passes): Remove pass_gcse and
19048         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
19049         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
19050         instead of pass_jump_bypass.
19051
19052 2009-04-27  Richard Guenther  <rguenther@suse.de>
19053
19054         PR middle-end/39928
19055         * gimplify.c (gimplify_expr): If we are required to create
19056         a temporary make sure it ends up as register.
19057
19058 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19059
19060         PR target/39903
19061         * config/i386/i386.c (construct_container): Don't call
19062         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
19063         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
19064
19065 2009-04-27  Michael Matz  <matz@suse.de>
19066
19067         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
19068         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
19069         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
19070         (dump_replaceable_exprs): Take a bitmap.
19071         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
19072         array.
19073         (expand_gimple_basic_block): Likewise.
19074         * tree-ssa-ter.c (struct temp_expr_table_d): Make
19075         replaceable_expressions member a bitmap.
19076         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
19077         (mark_replaceable): Likewise.
19078         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
19079         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
19080
19081 2009-04-27  Richard Guenther  <rguenther@suse.de>
19082
19083         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
19084         (verify_stmts): Dispatch to gimple/type verification code.
19085         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
19086         issue with call argument types.
19087
19088 2009-04-27  Michael Matz  <matz@suse.de>
19089
19090         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
19091         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
19092         to above.
19093
19094 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
19095             Eric Botcazou  <ebotcazou@adacore.com>
19096
19097         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
19098         a label's basic block.
19099         (mark_target_live_regs): Tidy and rework obsolete comments.
19100         Change back DF problem to LIVE.  If a label starts a basic block,
19101         assume that all registers that used to be live then still are.
19102         (init_resource_info): If a label starts a basic block, set its
19103         BLOCK_FOR_INSN accordingly.
19104         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
19105
19106 2009-04-27  Richard Guenther  <rguenther@suse.de>
19107
19108         * tree-flow-inline.h (function_ann): Remove.
19109         (get_function_ann): Likewise.
19110         * tree-dfa.c (create_function_ann): Remove.
19111         * tree-flow.h (struct static_var_ann_d): Remove.
19112         (struct function_ann_d): Likewise.
19113         (union tree_ann_d): Remove fdecl member.
19114         (function_ann_t): Remove.
19115         (function_ann, get_function_ann, create_function_ann): Remove
19116         declarations.
19117
19118 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
19119
19120         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
19121
19122 2009-04-27  Jan Hubicka  <jh@suse.cz>
19123
19124         * ipa-pure-const.c (struct funct_state_d): New fields
19125         state_previously_known, looping_previously_known; remove
19126         state_set_in_source.
19127         (analyze_function): Use new fields.
19128         (propagate): Avoid assumption that state_set_in_source imply
19129         nonlooping.
19130
19131         * tree-ssa-loop-niter.c (finite_loop_p): New function.
19132         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
19133         * cfgloop.h (finite_loop_p): Declare.
19134
19135 2009-04-26  Michael Matz  <matz@suse.de>
19136
19137         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
19138
19139 2009-04-26  Michael Matz  <matz@suse.de>
19140
19141         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
19142         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
19143         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
19144         pass_mark_used_blocks): Remove.
19145         * tree-optimize.c (pass_free_datastructures,
19146         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
19147         * passes.c (init_optimization_passes): Don't call
19148         pass_mark_used_blocks, remove dead code.
19149
19150 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
19151
19152         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
19153         * tree-ssa-live.h (register_ssa_partition): Likewise.
19154
19155 2009-04-26  Michael Matz  <matz@suse.de>
19156
19157         Expand from SSA.
19158         * builtins.c (fold_builtin_next_arg): Handle SSA names.
19159         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
19160         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
19161         SSA names.
19162         (compare_pairs): Swap cost comparison.
19163         (coalesce_ssa_name): Don't use change_partition_var.
19164         * tree-nrv.c (struct nrv_data): Add modified member.
19165         (finalize_nrv_r): Set it.
19166         (tree_nrv): Use it to update statements.
19167         (pass_nrv): Require PROP_ssa.
19168         * tree-mudflap.c (mf_decl_cache_locals,
19169         mf_build_check_statement_for): Use make_rename_temp.
19170         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
19171         * alias.c (find_base_decl): Handle SSA names.
19172         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
19173         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
19174         * rtl.h (set_reg_attrs_for_parm): Declare.
19175         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
19176         to "optimized", remove unused locals at finish.
19177         (execute_free_datastructures): Make global, call
19178         delete_tree_cfg_annotations.
19179         (execute_free_cfg_annotations): Don't call
19180         delete_tree_cfg_annotations.
19181
19182         * ssaexpand.h: New file.
19183         * expr.c (toplevel): Include ssaexpand.h.
19184         (expand_assignment): Handle SSA names the same as register variables.
19185         (expand_expr_real_1): Expand SSA names.
19186         * cfgexpand.c (toplevel): Include ssaexpand.h.
19187         (SA): New global variable.
19188         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
19189         (SSAVAR): New macro.
19190         (set_rtl): New helper function.
19191         (add_stack_var): Deal with SSA names, use set_rtl.
19192         (expand_one_stack_var_at): Likewise.
19193         (expand_one_stack_var): Deal with SSA names.
19194         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
19195         before unique numbers.
19196         (expand_stack_vars): Use set_rtl.
19197         (expand_one_var): Accept SSA names, add asserts for them, feed them
19198         to above subroutines.
19199         (expand_used_vars): Expand all partitions (without default defs),
19200         then only the local decls (ignoring those expanded already).
19201         (expand_gimple_cond): Remove edges when jumpif() expands an
19202         unconditional jump.
19203         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
19204         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
19205         SSA name.
19206         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
19207         members of SA; deal with PARM_DECL partitions here; expand
19208         all PHI nodes, free tree datastructures and SA.  Commit instructions
19209         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
19210         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
19211         info and statements at start, collect garbage at finish.
19212         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
19213         (VAR_ANN_PARTITION) Remove.
19214         (change_partition_var): Don't declare.
19215         (partition_to_var): Always return SSA names.
19216         (var_to_partition): Only accept SSA names.
19217         (register_ssa_partition): Only check argument.
19218         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
19219         member.
19220         (delete_var_map): Don't free it.
19221         (var_union): Only accept SSA names, simplify.
19222         (partition_view_init): Mark only useful SSA names as used.
19223         (partition_view_fini): Only deal with SSA names.
19224         (change_partition_var): Remove.
19225         (dump_var_map): Use ssa_name instead of partition_to_var member.
19226         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
19227         basic blocks.
19228         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
19229         (struct _elim_graph): New member const_dests; nodes member vector of
19230         ints.
19231         (set_location_for_edge): New static helper.
19232         (create_temp): Remove.
19233         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
19234         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
19235         (new_elim_graph): Allocate const_dests member.
19236         (clean_elim_graph): Truncate const_dests member.
19237         (delete_elim_graph): Free const_dests member.
19238         (elim_graph_size): Adapt to new type of nodes member.
19239         (elim_graph_add_node): Likewise.
19240         (eliminate_name): Likewise.
19241         (eliminate_build): Don't take basic block argument, deal only with
19242         partition numbers, not variables.
19243         (get_temp_reg): New static helper.
19244         (elim_create): Use it, deal with RTL temporaries instead of trees.
19245         (eliminate_phi): Adjust all calls to new signature.
19246         (assign_vars, replace_use_variable, replace_def_variable): Remove.
19247         (rewrite_trees): Only do checking.
19248         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
19249         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
19250         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
19251         contains_tree_r, MAX_STMTS_IN_LATCH,
19252         process_single_block_loop_latch, analyze_edges_for_bb,
19253         perform_edge_inserts): Remove.
19254         (expand_phi_nodes): New global function.
19255         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
19256         functions, initialize new parameter, remember partitions having a
19257         default def.
19258         (finish_out_of_ssa): New global function.
19259         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
19260         don't reset in_ssa_p here, don't disable TER when mudflap.
19261         (pass_del_ssa): Remove.
19262         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
19263         partition members.
19264         (execute_free_datastructures): Declare.
19265         * Makefile.in (SSAEXPAND_H): New variable.
19266         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
19267         * basic-block.h (commit_one_edge_insertion): Declare.
19268         * passes.c (init_optimization_passes): Move pass_nrv and
19269         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
19270         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
19271         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
19272         (redirect_branch_edge): Deal with super block when expanding, split
19273         out jump patching itself into ...
19274         (patch_jump_insn): ... here, new static helper.
19275
19276 2009-04-26  Michael Matz  <matz@suse.de>
19277
19278         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
19279         beyond num_ssa_names.
19280         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
19281         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
19282
19283 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
19284
19285         PR inline-asm/39543
19286         * fwprop.c (forward_propagate_asm): New function.
19287         (forward_propagate_and_simplify): Propagate also into __asm, if it
19288         doesn't increase the number of referenced registers.
19289
19290         PR c/39889
19291         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
19292
19293 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
19294
19295         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
19296         note_nonlocal_vla_type for nonlocal VLAs.
19297         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
19298         contains_remapped_vars, remap_vla_decls): New functions.
19299         (convert_nonlocal_reference_stmt): If not optimizing, call
19300         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
19301         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
19302         if it wasn't found in var_map.
19303         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
19304         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
19305         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
19306         declare_vars.
19307         * gimplify.c (nonlocal_vlas): New variable.
19308         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
19309         referenced VLAs.
19310         (gimplify_body): Create and destroy nonlocal_vlas.
19311
19312         * dwarf2out.c (loc_descr_plus_const): New function.
19313         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
19314         mem_loc_descriptor, loc_descriptor_from_tree_1,
19315         descr_info_loc, gen_variable_die): Use it.
19316
19317         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
19318         !TREE_STATIC VAR_DECLs.
19319         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
19320         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
19321         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
19322         DECL_BY_REFERENCE is valid.
19323         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
19324         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
19325         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
19326         Copy DECL_BY_REFERENCE.
19327         (struct nesting_copy_body_data): New type.
19328         (nesting_copy_decl): New function.
19329         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
19330         if they have variable length.
19331
19332 2009-04-26  Michael Matz  <matz@suse.de>
19333
19334         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
19335         mark new temporaries for renaming.
19336
19337 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
19338
19339         PR c/39581
19340         * c-decl.c (global_bindings_p): Return negative value.
19341         (c_variable_size): New.  Based on variable_size from
19342         stor-layout.c.
19343         (grokdeclarator): Call c_variable_size not variable_size.
19344
19345 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
19346
19347         * config/i386/i386.c (print_operand) ['z']: Fix typo.
19348
19349 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
19350
19351         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
19352         Redefine it to just use mingw/include.
19353         (ASM_SPEC): Rules for -m32 and -m64.
19354         (LINK_SPEC): Use Likewise.
19355         (SPEC_32): New define.
19356         (SPEC_64): Likewise.
19357         (SUB_LINK_SPEC): Likewise.
19358         (MULTILIB_DEFAULTS): New define.
19359         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
19360         Add multilib options.
19361         (MULTILIB_DIRNAMES): Likewise.
19362         (MULTILIB_OSDIRNAMES): Likewise.
19363         (LIBGCC): Likewise.
19364         (INSTALL_LIBGCC): Likewise.
19365
19366 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
19367
19368         PR c/39556
19369         * c-tree.h (enum c_inline_static_type): New.
19370         (record_inline_static): Declare.
19371         * c-decl.c (struct c_inline_static, c_inline_statics,
19372         record_inline_static, check_inline_statics): New.
19373         (pop_file_scope): Call check_inline_statics.
19374         (start_decl): Call record_inline_static instead of pedwarning
19375         directly for static in inline function.
19376         * c-typeck.c (build_external_ref): Call record_inline_static
19377         instead of pedwarning directly for static referenced in inline
19378         function.
19379
19380 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
19381
19382         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
19383         not new but only being rescanned.
19384         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
19385         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
19386         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
19387         record_set_info, compute_set, grealloc): Remove.
19388         (recompute_all_luids): New function.
19389         (gcse_main): Don't compute sets, and don't do related memory
19390         allocations/free-ing.  If something changed before the end of the
19391         pass, update LUIDs using recompute_all_luids.
19392         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
19393         (free_gcse_mem): Don't free it either.
19394         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
19395         Use the df insn LUIDs.
19396         (load_killed_in_block): Likewise.
19397         (compute_hash_table_work): Don't compute reg_set_in_block.
19398         (compute_transp): Use DF_REG_DEF_CHAINs.
19399         (local_cprop_pass): Don't use compute_sets and related functions.
19400         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
19401         Use get_max_uid() instead of max_cuid.
19402         (insert_insn_end_basic_block, pre_insert_copy_insn,
19403         update_ld_motion_stores): Don't try to
19404         keep reg_set tables up to date.
19405         (pre_insert_copies): Use df insn LUIDs.
19406         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
19407         (reg_set_info): Don't use extra bitmap argument.
19408         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
19409         information to compute regs_set_in_block.
19410         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
19411         (bypass_jumps): Don't use compute_sets and friends.
19412
19413 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19414
19415         PR testsuite/39710
19416         * opts.c (undocumented_msg): Do not leave blank even with
19417         ENABLE_CHECKING.
19418
19419 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19420
19421         * c-decl.c (build_enumerator): Allow values folding to integer
19422         constants but not integer constant expressions with a pedwarn if
19423         pedantic.
19424
19425 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19426
19427         PR c/39582
19428         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
19429         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
19430         type is an integer constant.
19431
19432 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
19433
19434         PR target/39897
19435         * config/i386/i386.c (print_operand) ['z']: Revert handling of
19436         HImode operands.
19437
19438 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19439
19440         PR c/39564
19441         * c-decl.c (grokdeclarator): Diagnose declarations of functions
19442         with variably modified return type and no storage class
19443         specifiers, except for the case of nested functions.  Distinguish
19444         extern declarations of functions with variably modified return
19445         types from those of objects with variably modified types.
19446
19447 2009-04-25  Jan Hubicka  <jh@suse.cz>
19448
19449         * tree.c (list_equal_p): New function.
19450         * tree.h (list_equal_p): Declare.
19451         * coretypes.h (edge_def, edge, const_edge, basic_block_def
19452         basic_block_def, basic_block, const_basic_block): New.
19453         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
19454         (redirect_eh_edge): New function.
19455         (make_eh_edge_update_phi): EH edges are not abnormal.
19456         * except.c: Include tree-flow.h.
19457         (list_match): New function.
19458         (eh_region_replaceable_by_p): New function.
19459         (replace_region): New function.
19460         (hash_type_list): New function.
19461         (hash_eh_region): New function.
19462         (eh_regions_equal_p): New function.
19463         (merge_peers): New function.
19464         (remove_unreachable_regions): Verify EH tree when checking;
19465         merge peers.
19466         (copy_eh_region_1): New function.
19467         (copy_eh_region): New function.
19468         (push_reachable_handler): New function.
19469         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
19470         regions without label but with live RESX.
19471         * except.h (redirect_eh_edge_to_label): New.
19472         * tree-flow.h (redirect_eh_edge): New.
19473         * coretypes.h (edge_def, edge, const_edge, basic_block_def
19474         basic_block_def, basic_block, const_basic_block): Remove.
19475         * Makefile.in (except.o): Add dependency on tree-flow.h
19476         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
19477         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
19478         Remove.
19479
19480 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
19481
19482         PR bootstrap/39645
19483         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
19484         on the destination of memcpy.
19485
19486 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
19487
19488         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
19489         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
19490         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
19491
19492 2009-04-25  Jan Hubicka  <jh@suse.cz>
19493
19494         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
19495         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
19496         to be reached by different label than left.
19497         (update_eh_edges): Update comment; remove edge_to_remove if possible
19498         and return true if suceeded.
19499         (cleanup_empty_eh): Accept sharing map; handle shared regions.
19500         (cleanup_eh): Compute sharing map.
19501         * except.c (remove_eh_handler_and_replace): Add argument if we should
19502         update regions.
19503         (remove_unreachable_regions): Update for label sharing.
19504         (label_to_region_map): Likewise.
19505         (get_next_region_sharing_label): New function.
19506         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
19507         prev_try pointers.
19508         (remove_eh_handler): Update.
19509         (remove_eh_region_and_replace_by_outer_of): New function.
19510         * except.h (struct eh_region): Add next_region_sharing_label.
19511         (remove_eh_region_and_replace_by_outer_of,
19512         get_next_region_sharing_label): Declare.
19513         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
19514
19515 2009-04-25  Jan Hubicka  <jh@suse.cz>
19516
19517         * tree-cfg.c (split_critical_edges): Split also edges where we can't
19518         insert code even if they are not critical.
19519
19520 2009-04-25  Jan Hubicka  <jh@suse.cz>
19521
19522         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19523         (gimple_can_remove_branch_p): EH edges won't remove branch by
19524         redirection.
19525         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
19526         updating of non-abnormal EH edges.
19527         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19528         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
19529         (split_critical_edges): Split also edges where emitting code on them
19530         will lead to splitting later.
19531
19532 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
19533             H.J. Lu  <hongjiu.lu@intel.com>
19534
19535         PR target/39590
19536         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
19537         the configured assembler supports fildq and fistpq mnemonics.
19538         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
19539         * configure: Regenerated.
19540         * config.in: Ditto.
19541
19542         * config/i386/i386.c (print_operand): Handle 'Z'.
19543         ['z']: Remove handling of special fild/fist suffixes.
19544         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
19545         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
19546         suffix of fild insn.
19547         (*floatsi<mode>2_vector_mixed): Ditto.
19548         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
19549         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
19550         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
19551         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
19552         * config/i386/gas.h (GAS_MNEMONICS): Remove.
19553
19554 2009-04-25  Ben Elliston  <bje@au.ibm.com>
19555
19556         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
19557         the source of a set operation.
19558
19559 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
19560
19561         * target.h (struct gcc_target): Add case_values_threshold field.
19562         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
19563         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
19564         * targhooks.c (default_case_values_threshold): New function.
19565         * targhooks.h (default_case_values_threshold): Declare function.
19566         * stmt.c (expand_case): Use case_values_threshold target hook.
19567         * expr.h (case_values_threshold): Remove declartation.
19568         * expr.c (case_values_threshold): Remove function.
19569         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
19570
19571         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
19572         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19573         (avr_case_values_threshold): Declare as static.
19574         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
19575
19576         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
19577         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19578         (mn10300_case_values_threshold): New function.
19579
19580 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
19581
19582         * ira.c (setup_cover_and_important_classes): Add enum cast.
19583
19584 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
19585
19586         * genpreds.c (write_enum_constraint_num): Output definition of
19587         CONSTRAINT_NUM_DEFINED_P macro.
19588         * ira.c (setup_cover_and_important_classes): Use
19589         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
19590
19591 2009-04-24  DJ Delorie  <dj@redhat.com>
19592
19593         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
19594         __SH2A_SINGLE_ONLY__ also.
19595
19596 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
19597
19598         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
19599         (movdf_internal): Ditto.
19600         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
19601         SFmode and DFmode constants.
19602         (ia64_print_operand): Add 'G' format for printing
19603         floating point constants.
19604
19605 2009-04-24  Richard Guenther  <rguenther@suse.de>
19606
19607         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
19608         from unsigned additions.
19609
19610 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
19611
19612         * c-typeck.c (set_init_index): Allow array designators that are
19613         not integer constant expressions with a pedwarn if pedantic.
19614
19615 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
19616
19617         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
19618         zero if no overlap in nonzero bits between the operands.
19619
19620 2009-04-24  Ian Lance Taylor  <iant@google.com>
19621
19622         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
19623         (record_dead_and_set_regs): Likewise.
19624         * df.h (struct df_mw_hardreg): Change flags field to int.
19625         (struct df_base_ref): Likewise.
19626         (struct df): Change changeable_flags field to int.
19627         * df-scan.c (df_defs_record): Change clobber_flags to int.
19628         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
19629         constants rather than #define macros.
19630         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
19631         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
19632         (enum dwarf_calling_convention): Likewise.
19633         (enum dwarf_line_number_x_ops): Likewise.
19634         (enum dwarf_call_frame_info): Likewise.
19635         (enum dwarf_source_language): Likewise.
19636         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
19637         (add_calling_convention_attribute): Likewise.
19638         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
19639         (combine_comparisons): Change compcode to int.  Add cast to enum type.
19640         * genrecog.c (maybe_both_true_2): Change c to int.
19641         (write_switch): Likewise.  Add cast to enum type.
19642         * gimplify.c (gimplify_omp_for): Handle return values from
19643         gimplify_expr using MIN rather than bitwise or.
19644         (gimplify_expr): Add cast to enum type.
19645         * ipa-prop.c (update_jump_functions_after_inlining): Change
19646         IPA_BOTTOM to IPA_JF_UNKNOWN.
19647         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
19648         Add casts to enum type.
19649         (setup_cover_and_important_classes): Change cl to int.  Add casts
19650         to enum type.
19651         (setup_class_translate): Change cl and mode to int.
19652         (ira_init_once): Change mode to int.
19653         (free_register_move_costs): Likewise.
19654         (setup_prohibited_mode_move_regs): Add casts to enum type.
19655         * langhooks.c (add_builtin_function_common): Rework assertion that
19656         value fits bitfield.
19657         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
19658         * omega.c (omega_do_elimination): Avoid math on enum types.
19659         * optabs.c (expand_vec_shift_expr): Remove casts to int.
19660         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
19661         int local to handle integral_argment value.
19662         * regmove.c (try_auto_increment): Change PUT_MODE to
19663         PUT_REG_NOTE_KIND.
19664         * reload.c (push_secondary_reload): Add casts to enum type.
19665         (secondary_reload_class, find_valid_class): Likewise.
19666         * reload1.c (emit_input_reload_insns): Likewise.
19667         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
19668         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
19669         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
19670         constant.
19671         * tree.c (build_common_builtin_nodes): Add casts to enum type.
19672         * tree-complex.c (complex_lattice_t): Typedef to int rather than
19673         enum type.
19674         (expand_complex_libcall): Add casts to enum type.
19675         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
19676         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
19677         with ERROR_MARK, not NUM_TREE_CODES.
19678         (vect_create_epilog_for_reduction): Likewise.
19679         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
19680         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
19681         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
19682         enum machine_mode.
19683         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
19684         vect_unused_in_loop.  Change 0 to loop_vect.
19685         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
19686         * var-tracking.c (get_init_value): Change return type to enum
19687         var_init_status.
19688         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
19689         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
19690         arm_fp_model.
19691         (arm_override_options): Add casts to enum type.
19692         (arm_emit_tls_decoration): Likewise.
19693         * config/i386/i386.c (ix86_function_specific_restore): Add casts
19694         to enum type.
19695         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
19696         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
19697         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
19698         enum type.
19699         * config/s390/s390.c (code_for_builtin_64): Change to array of
19700         enum insn_code.
19701         (code_for_builtin_31): Likewise.
19702         (s390_expand_builtin): Change code_for_builtin to enum insn_code
19703         const *.
19704         * config/sparc/sparc.c (sparc_override_options): Change value
19705         field in struct code_model to enum cmodel.  In initializer change
19706         0 to NULL and add cast to enum type.
19707
19708         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
19709         Change all callers.  Issue a -Wc++-compat warning using
19710         lhs_origtype if necessary.
19711         (convert_for_assignment): Issue -Wc++-compat warnings about
19712         invalid conversions to enum type on assignment.
19713         * c-common.h (build_modify_expr): Update declaration.
19714
19715 2009-04-24  Nick Clifton  <nickc@redhat.com>
19716
19717         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
19718         (function_arg_advance): Likewise.
19719         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
19720         5th alternative.
19721
19722 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
19723
19724         * config/s390/constraints.md ('I', 'J'): Fix condition.
19725
19726 2009-04-24  Diego Novillo  <dnovillo@google.com>
19727
19728         * gengtype-parse.c (parse_error): Add newline after message.
19729
19730 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
19731
19732         * config/i386/sse.md (avxmodesuffixs): Removed.
19733         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
19734         (*avx_pinsr<ssevecsize>): This.
19735
19736 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
19737
19738         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
19739         follow chains of regs with a single definition, and allow expressions
19740         that are function_invariant_p.
19741         (simple_rhs_p): Allow expressions that are function_invariant_p.
19742
19743 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
19744
19745         PR middle-end/39867
19746         * fold-const.c (fold_cond_expr_with_comparison): When folding
19747         > and >= to MAX, make sure the MAX uses the same type as the
19748         comparison's operands.
19749
19750 2009-04-24  Nick Clifton  <nickc@redhat.com>
19751
19752         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
19753         addressing for DImode accesses.
19754         (frv_print_operand_address): Handle PLUS case.
19755         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
19756
19757 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
19758
19759         PR rtl-optimization/39794
19760         * alias.c (canon_true_dependence): Add x_addr argument.
19761         * rtl.h (canon_true_dependence): Adjust prototype.
19762         * cse.c (check_dependence): Adjust canon_true_dependence callers.
19763         * cselib.c (cselib_invalidate_mem): Likewise.
19764         * gcse.c (compute_transp): Likewise.
19765         * dse.c (scan_reads_nospill): Likewise.
19766         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
19767         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
19768         canon_base_addr of the group, plus optional offset.
19769         (struct group_info): Rename canon_base_mem to
19770         canon_base_addr.
19771         (get_group_info): Set canon_base_addr to canon_rtx of base, not
19772         canon_rtx of base_mem.
19773
19774 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
19775
19776         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
19777         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
19778
19779 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19780
19781         * config/spu/spu-builtins.h: Delete file.
19782
19783         * config/spu/spu.h (enum spu_builtin_type): Move here from
19784         spu-builtins.h.
19785         (struct spu_builtin_description): Likewise.  Add GTY marker.
19786         Do not use enum spu_function_code or enum insn_code.
19787         (spu_builtins): Add extern declaration.
19788
19789         * config/spu/spu.c: Do not include "spu-builtins.h".
19790         (enum spu_function_code, enum spu_builtin_type_index,
19791         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
19792         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
19793         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
19794         unsigned_V2DI_type_node): Move here from spu-builtins.h.
19795         (spu_builtin_types): Make static.  Add GTY marker.
19796         (spu_builtins): Add extern declaration with GTY marker.
19797         Include "gt-spu.h".
19798
19799         * config/spu/spu-c.c: Do not include "spu-builtins.h".
19800         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
19801         Check programmatically whether all parameters are scalar.
19802
19803         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
19804
19805 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
19806
19807         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
19808         assignment from the constructor either if the target is volatile.
19809
19810 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
19811
19812         * config/arm/arm.md (insv): Do not share operands[0].
19813
19814 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
19815
19816         * config/vxlib-tls.c (active_tls_threads): Delete.
19817         (delete_hook_installed): New.
19818         (tls_delete_hook): Don't delete the delete hook.
19819         (tls_destructor): Delete it here.
19820         (__gthread_set_specific): Adjust installing the delete hook.
19821         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
19822         __gthread_leave_tsd_dtor_context.
19823
19824 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
19825
19826         * c-format.c (gcc_tdiag_char_table): Add support for %E.
19827
19828 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
19829
19830         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
19831         enum type.
19832         (alpha_rtx_costs): Ditto.
19833         (emit_unlikely_jump): Use add_reg_note.
19834         (emit_frame_store_1): Ditto.
19835         (alpha_expand_prologue): Ditto.
19836         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
19837         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
19838
19839 2009-04-23  Nick Clifton  <nickc@redhat.com>
19840
19841         * config/v850/v850.md (epilogue): Remove suppressed code.
19842         (return): Rename to return_simple and remove test of frame size.
19843         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
19844         to gen_return_simple.
19845
19846 2009-04-22  Jing Yu  <jingyu@google.com>
19847
19848         PR testsuite/39781
19849         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
19850
19851 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19852
19853         PR C/31499
19854         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
19855         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
19856         value is a VECTOR_CST, the element type is the element type of the
19857         vector.
19858
19859 2009-04-22  DJ Delorie  <dj@redhat.com>
19860
19861         * config/m32c/m32c.h: Update GTY annotations to new syntax.
19862
19863 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
19864
19865         * alias.c (find_base_term): Move around LO_SUM case, so that
19866         CONST falls through into PLUS/MINUS handling.
19867
19868         PR c/39855
19869         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
19870         into 0, use omit_one_operand.
19871
19872 2009-04-23  Ben Elliston  <bje@au.ibm.com>
19873
19874         * config/rs6000/linux-unwind.h (get_regs): Remove type
19875         puns. Change the type of `pc' to an array of unsigned ints and
19876         update all users.  Constify frame24.
19877
19878 2009-04-22  DJ Delorie  <dj@redhat.com>
19879
19880         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
19881         declarations before code.
19882         (current_function_special_page_vector): Likewise.
19883         (m32c_expand_insv): Silence a warning.
19884
19885 2009-04-21  Taras Glek  <tglek@mozilla.com>
19886
19887         * alias.c: Update GTY annotations to new syntax.
19888         * basic-block.h: Likewise.
19889         * bitmap.h: Likewise.
19890         * c-common.h: Likewise.
19891         * c-decl.c: Likewise.
19892         * c-parser.c: Likewise.
19893         * c-pragma.c: Likewise.
19894         * c-tree.h: Likewise.
19895         * cfgloop.h: Likewise.
19896         * cgraph.h: Likewise.
19897         * config/alpha/alpha.c: Likewise.
19898         * config/arm/arm.h: Likewise.
19899         * config/avr/avr.h: Likewise.
19900         * config/bfin/bfin.c: Likewise.
19901         * config/cris/cris.c: Likewise.
19902         * config/darwin.c: Likewise.
19903         * config/frv/frv.c: Likewise.
19904         * config/i386/i386.c: Likewise.
19905         * config/i386/i386.h: Likewise.
19906         * config/i386/winnt.c: Likewise.
19907         * config/ia64/ia64.h: Likewise.
19908         * config/iq2000/iq2000.c: Likewise.
19909         * config/mips/mips.c: Likewise.
19910         * config/mmix/mmix.h: Likewise.
19911         * config/pa/pa.c: Likewise.
19912         * config/pa/pa.h: Likewise.
19913         * config/rs6000/rs6000.c: Likewise.
19914         * config/s390/s390.c: Likewise.
19915         * config/sparc/sparc.c: Likewise.
19916         * config/xtensa/xtensa.c: Likewise.
19917         * cselib.h: Likewise.
19918         * dbxout.c: Likewise.
19919         * dwarf2out.c: Likewise.
19920         * except.c: Likewise.
19921         * except.h: Likewise.
19922         * fixed-value.h: Likewise.
19923         * function.c: Likewise.
19924         * function.h: Likewise.
19925         * gimple.h: Likewise.
19926         * integrate.c: Likewise.
19927         * optabs.c: Likewise.
19928         * output.h: Likewise.
19929         * real.h: Likewise.
19930         * rtl.h: Likewise.
19931         * stringpool.c: Likewise.
19932         * tree-data-ref.c: Likewise.
19933         * tree-flow.h: Likewise.
19934         * tree-scalar-evolution.c: Likewise.
19935         * tree-ssa-address.c: Likewise.
19936         * tree-ssa-alias.h: Likewise.
19937         * tree-ssa-operands.h: Likewise.
19938         * tree.c: Likewise.
19939         * tree.h: Likewise.
19940         * varasm.c: Likewise.
19941         * varray.h: Likewise.
19942         * vec.h: Likewise.
19943         * coretypes.h: Do not define GTY macro if it is already defined.
19944         * doc/gty.texi: Update GTY documentation to new syntax.
19945         * gengtype-lex.l: Enforce attribute-like syntax for GTY
19946         annotations on structs.
19947         * gengtype-parse.c: Likewise.
19948
19949 2009-04-22  Mark Heffernan  <meheff@google.com>
19950
19951         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
19952
19953 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
19954
19955         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
19956         where appropriate.
19957
19958 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
19959
19960         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
19961         the same as a PLUS without a shift.  Increase the cost of a
19962         CONST_INT in MULT.
19963
19964 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19965
19966         * Makefile.in: Update dependencies.
19967         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
19968         * errors.h: Remove bogus comment about compatibility.
19969         (warning): Update declaration.
19970         * genautomata.c: Update all calls to warning.
19971         * gimple.c: Do not include errors.h. Include toplev.h.
19972         * tree-ssa-structalias.c: Do not include errors.h.
19973         * omega.c: Likewise.
19974         * tree-ssa-reassoc.c: Likewise.
19975         * config/spu/spu-c.c: Likewise.
19976         * config/spu/t-spu-elf: Update dependencies.
19977
19978 2009-04-22  Richard Guenther  <rguenther@suse.de>
19979
19980         PR tree-optimization/39824
19981         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
19982         make sure the types are compatible.
19983
19984 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19985
19986         PR c++/14875
19987         * c-common.c (c_parse_error): Take a token_flags parameter.
19988         Use token_type for the token type instead.
19989         Pass token_flags to cpp_type2name.
19990         * c-common.h (c_parse_error): Update declaration.
19991         * c-parser.c (c_parser_error): Pass 0 as token flags.
19992
19993 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
19994
19995         PR rtl-optimization/39580
19996         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
19997
19998 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19999
20000         * function.c (expand_function_end): Do not emit a jump to the "naked"
20001         return label for fall-through returns.
20002         * except.c (sjlj_emit_function_exit): Always place the call to the
20003         unregister function at the location installed by expand_function_end.
20004
20005 2009-04-22  Richard Guenther  <rguenther@suse.de>
20006
20007         PR tree-optimization/39845
20008         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20009         (gen_inbound_check): Likewise.
20010
20011 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
20012
20013         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20014         padding for PPC.
20015         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20016         * config/vxlib.c (__gthread_once): Add race guard for PPC.
20017
20018 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20019
20020         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
20021         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
20022         shift counts to avoid out-of-bounds array accesses.
20023
20024 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20025
20026         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
20027         (Pmode): Move above.
20028
20029 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
20030
20031         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
20032         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
20033         GET_CODE macro.  Use IN_RANGE macro where appropriate.
20034         * config/alpha/alpha.h: Ditto.
20035         * config/alpha/alpha.md: Ditto.
20036         * config/alpha/constraints.md: Ditto.
20037         * config/alpha/predicates.md: Ditto.
20038
20039 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20040
20041         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
20042         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20043         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20044         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20045         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20046         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20047         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20048         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20049         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20050         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20051         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20052         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20053         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20054         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20055         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20056         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20057         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20058         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20059         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20060         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20061         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20062         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20063         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20064         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20065         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20066         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20067         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20068
20069 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20070
20071         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
20072         references from comments.
20073         * cfgbuild.c: (count_basic_blocks): Delete.
20074         (find_basic_blocks_1): Delete.
20075         (find_basic_blocks): Delete.
20076         * except.c (finish_eh_generation): Make static.  Move comment from
20077         except.h here.  Remove find_basic_blocks references from comments.
20078         * except.h (finish_eh_generation): Delete.
20079         * basic-block.h (find_basic_blocks): Delete.
20080         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
20081
20082 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20083
20084         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
20085         (sdbout_parms):  Likewise.
20086
20087 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
20088
20089         * config/sh/sh.c (prepare_cbranch_operands): Use
20090         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
20091         (expand_cbranchdi4): Likewise.
20092         (from_compare): Add cast to enum type.
20093         (expand_cbranchsi4): Use add_reg_note.
20094         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
20095         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
20096         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
20097         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20098         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
20099         instead of CODE_FOR_nothing.
20100         (cbranchdi4): Likewise.  Fix the order of arguments for
20101         gen_rtx_fmt_ee.
20102         (push_fpscr): Use add_reg_note.
20103         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
20104         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
20105
20106 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
20107
20108         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
20109         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20110         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20111         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
20112         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
20113         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
20114         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
20115         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
20116         config/alpha/x-vms, config/arc/t-arc,
20117         config/arm/README-interworking, config/arm/arm-c.c,
20118         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
20119         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
20120         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
20121         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
20122         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
20123         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
20124         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
20125         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
20126         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
20127         config/cris/t-elfmulti, config/crx/t-crx,
20128         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
20129         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
20130         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
20131         config/h8300/t-h8300, config/i386/athlon.md,
20132         config/i386/darwin-libgcc.10.4.ver,
20133         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
20134         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
20135         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
20136         config/i386/t-linux64, config/i386/t-nwld,
20137         config/i386/t-rtems-i386, config/i386/t-sol2-10,
20138         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
20139         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
20140         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
20141         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
20142         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
20143         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
20144         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
20145         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
20146         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
20147         config/m68k/t-uclinux, config/mcore/t-mcore,
20148         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
20149         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
20150         config/mips/crtn.asm, config/mips/irix-crti.asm,
20151         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
20152         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
20153         config/mips/mips-fixed.md, config/mips/sb1.md,
20154         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
20155         config/mips/t-iris6, config/mips/t-isa3264,
20156         config/mips/t-libgcc-mips16, config/mips/t-linux64,
20157         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
20158         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
20159         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
20160         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
20161         config/mn10300/t-linux, config/mn10300/t-mn10300,
20162         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
20163         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
20164         config/picochip/libgccExtras/clzsi2.asm,
20165         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
20166         config/rs6000/darwin-libgcc.10.4.ver,
20167         config/rs6000/darwin-libgcc.10.5.ver,
20168         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
20169         config/rs6000/t-aix43, config/rs6000/t-aix52,
20170         config/rs6000/t-darwin, config/rs6000/t-fprules,
20171         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
20172         config/rs6000/t-lynx, config/rs6000/t-netbsd,
20173         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
20174         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
20175         config/rs6000/t-rtems, config/rs6000/t-spe,
20176         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
20177         config/score/t-score-elf, config/sh/divcost-analysis,
20178         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
20179         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
20180         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
20181         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
20182         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
20183         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
20184         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
20185         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
20186         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
20187         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
20188         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
20189         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
20190         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
20191         limitx.h, version.c, xcoff.h: Add copyright and license notices.
20192         * config/h8300/genmova.sh: Include copyright and license notices
20193         in generated output.
20194         * config/h8300/mova.md: Regenerate.
20195         * doc/install.texi2html: Include word "Copyright" in copyright
20196         notice and use name "Free Software Foundation, Inc.".
20197         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20198         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20199         ChangeLog-2007, ChangeLog-2008: Correct dates.
20200
20201 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20202
20203         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
20204         NE_EXPR operations as well.
20205         * c-parser.c (c_parser_condition): Do not set location information on
20206         the condition.
20207         (c_parser_conditional_expression): Likewise.
20208         (c_parser_binary_expression): Set location information on operators.
20209         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
20210         TRUTH_NOT_EXPR has been folded.
20211         * fold-const.c (fold_truth_not_expr): Copy location information from
20212         the incoming expression to the outgoing one.
20213         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
20214         recursive calls on the LHS of the operator but pass that of the
20215         operator to recursive calls on the RHS of the operator.  Set it
20216         on the COND_EXPR.
20217         (shortcut_cond_expr): Set the locus of the operator on the second
20218         COND_EXPR and that of the expression on the first in degenerate cases.
20219         Pass the locus of the expression to calls to shortcut_cond_r.
20220         Set the locus of the 'then' block on the associated jump, if any.
20221         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
20222         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
20223         expression to call to gimplify_boolean_expr.
20224
20225 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
20226
20227         * config.gcc: Add additional configuration for
20228         i686-w64-mingw* and x86_64-w64-mingw* triplet.
20229         * config/i386/mingw-w64.h: New mingw-w64 specific header.
20230         (CPP_SPEC): Redefine for allowing -municode option.
20231         (STARTFILE_SPEC): Likewise.
20232         * config/i386/t-mingw-w64: New.
20233         * config/i386/mingw-w64.opt: New.
20234         (municode): Add new target option.
20235         * doc/invoke.texi (municode): Add documentation for new option.
20236
20237 2009-04-21  Ian Lance Taylor  <iant@google.com>
20238
20239         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20240         Correct test for number of arguments.
20241         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20242
20243 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
20244
20245         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
20246         argument of emit_library_call.
20247
20248 2009-04-21  Richard Guenther  <rguenther@suse.de>
20249
20250         PR middle-end/39829
20251         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
20252         inside VIEW_CONVERT_EXPRs.
20253
20254 2009-04-21  Martin Jambor  <mjambor@suse.cz>
20255
20256         * tree-switch-conversion.c (build_constructors): Split a long line.
20257         (constructor_contains_same_values_p): New function.
20258         (build_one_array): Create assigns of constants if possible, do not
20259         call mark_sym_for_renaming, call update_stmt.
20260         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
20261         make_rename_temp.  Do not call mark_symbols_for_renaming, call
20262         update_stmt.
20263         (gen_def_assigns): Do not call mark_symbols_for_renaming or
20264         find_new_referenced_vars, call update_stmt.
20265         (gen_inbound_check): Use create_tmp_var and create ssa names manually
20266         instead of calling make_rename_temp.  Do not call
20267         find_new_referenced_vars or mark_symbols_for_renaming, call
20268         update_stmt.
20269
20270 2009-04-21  Richard Guenther  <rguenther@suse.de>
20271
20272         PR tree-optimization/39827
20273         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
20274         (tree_ssa_phiprop): Pass the correct array size.
20275
20276 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
20277
20278         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
20279
20280 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20281
20282         PR 16202
20283         * c-typeck.c (lvalue_p): Move declaration ...
20284         * c-common.h (lvalue_p): ... to here.
20285         * c-common.c (candidate_equal_p): New.
20286         (add_tlist): Use it.
20287         (merge_tlist): Use it.
20288         (warn_for_collisions_1): Likewise.
20289         (warning_candidate_p): Accept more candidates.
20290         (verify_tree): A warning candidate can be an expression. Use
20291         candidate_equal_p.
20292
20293 2009-04-21  Ben Elliston  <bje@au.ibm.com>
20294
20295         PR target/5267
20296         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20297         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
20298         options.  Remove -mcall-solaris documentation.
20299
20300 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20301
20302         PR c++/13358
20303         * doc/invoke.texi (-Wlong-long): Update description.
20304         * c-lex (interpret_integer): Only warn if there was no previous
20305         overflow and -Wlong-long is enabled.
20306         * c-decl.c (declspecs_add_type): Drop redundant flags.
20307         * c.opt (Wlong-long): Init to -1.
20308         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
20309         and front-end warn_long_long. Wlong-long only depends on other
20310         flags if it is uninitialized.
20311         * c-parser.c (disable_extension_diagnostics): warn_long_long is
20312         the same for CPP and FE.
20313         (restore_extension_diagnostics): Likewise.
20314
20315 2009-04-20  Ian Lance Taylor  <iant@google.com>
20316
20317         Fix enum conversions which are invalid in C++:
20318         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
20319         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
20320         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
20321         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
20322         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
20323         (dbxout_parms): Likewise.
20324         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
20325         (df_clear_flags): Likewise.
20326         * df-problems.c (df_rd_bb_local_compute_process_def): Change
20327         top_flag parameter to int.
20328         (df_chain_create_bb_process_use): Likewise.
20329         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
20330         Remove cast.
20331         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
20332         (df_ref_create_structure, df_def_record_1): Likewise.
20333         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
20334         (df_notes_rescan): Change 0 to VOIDmode in function call.
20335         (df_get_call_refs, df_insn_refs_collect): Likewise.
20336         (df_bb_regs_collect): Likewise.
20337         (df_entry_block_defs_collect): Likewise.
20338         (df_exit_block_uses_collect): Likewise.
20339         * df.h: Update declarations.
20340         * double-int.c (double_int_divmod): Add cast to enum type.
20341         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
20342         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
20343         (based_loc_descr): Likewise.
20344         (loc_descriptor_from_tree_1): Change first_op and second_op to
20345         enum dwarf_location_atom.  Add cast to enum type.
20346         * expmed.c (init_expmed): Change 0 to SET in function call.
20347         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
20348         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
20349         (do_store_flag): Likewise.
20350         * fixed-value.h (struct fixed_value): Change mode to enum
20351         machine_mode.
20352         * function.c (assign_parms): Change 0 to VOIDmode in function call.
20353         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
20354         function call.
20355         (insert_insn_decl, insert_decl, insert_state): Likewise.
20356         (automata_list_finish): Likewise.
20357         * genrecog.c (process_define_predicate): Add cast to enum type.
20358         * gensupport.c (init_predicate_table): Add cast to enum type.
20359         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
20360         function call.
20361         (gimple_build_call_1, gimple_build_label): Likewise.
20362         (gimple_build_goto, gimple_build_asm_1): Likewise.
20363         (gimple_build_switch_1, gimple_build_cdt): Likewise.
20364         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
20365         (enum fallback): Rename from enum fallback_t.
20366         (fallback_t): Typedef as int.
20367         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
20368         GSI_SAME_STMT in function call.
20369         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
20370         enum type.
20371         (setup_reg_class_relations): Likewise.
20372         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
20373         (setup_prohibited_class_mode_regs): Add cast to enum type.
20374         (setup_prohibited_mode_move_regs): Likewise.
20375         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
20376         (record_address_regs): Change i to enum reg_class.
20377         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
20378         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
20379         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
20380         (GET_MODE_2XWIDER_MODE): Likewise.
20381         (GET_CLASS_NARROWEST_MODE): Likewise.
20382         * omp-low.c (expand_omp_for): Add cast to enum type.
20383         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
20384         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
20385         * postreload.c (reload_cse_simplify_operands): Change rclass local
20386         to enum reg_class.
20387         * predict.c (combine_predictions_for_insn): Change best_predictor
20388         and predictor to enum br_predictor.
20389         (combine_predictions_for_bb): Likewise.
20390         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
20391         use SET_PREDICT_EXPR_OUTCOME.
20392         * real.c (real_arithmetic): Change icode to code in function call.
20393         * reginfo.c (init_move_cost): Add casts to enum type.
20394         (init_reg_sets_1, init_fake_stack_mems): Likewise.
20395         * regmove.c (regclass_compatible_p): Change class0 and class1 to
20396         enum reg_class.
20397         * reload.c (find_valid_class): Add casts to enum type.
20398         (push_reload): Change 0 to NO_REGS in function call.
20399         (find_reloads): Change this_alternative to array of enum
20400         reg_class.  Remove some now-unnecessary casts.
20401         (make_memloc): Change 0 to VOIDmode in function call.
20402         * reload1.c (reload): Change 0 to VOIDmode in function call.
20403         (eliminate_regs_1, elimination_effects): Likewise.
20404         (eliminate_regs_in_insn): Likewise.
20405         (emit_input_reload_insns): Add cast to enum type.
20406         (delete_output_reload): Change 0 to VOIDmode in function call.
20407         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
20408         to enum type in function call.
20409         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
20410         (SET_PREDICT_EXPR_OUTCOME): Define.
20411         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
20412         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
20413         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
20414         (dump_function): Likewise.
20415         * tree-dump.h: Update declarations.
20416         * tree-pass.h: Update declarations.
20417         * varasm.c (assemble_integer): Change mclass to enum mode_class.
20418         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
20419         enum type.
20420         (arm_rtx_costs_1): Correct parenthesization.
20421         (arm_rtx_costs): Add casts to enum type.
20422         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
20423         (vfp_emit_fstmd): Use add_rg_note.
20424         (emit_multi_reg_push, emit_sfm): Likewise.
20425         (thumb_set_frame_pointer): Likewise.
20426         (arm_expand_prologue): Likewise.
20427         (arm_regno_class): Change return type to enum reg_class.
20428         (thumb1_expand_prologue): Use add_reg_note.
20429         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
20430         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
20431         in function call.
20432         * config/arm/gentune.sh: Add cast to enum type.
20433         * config/arm/arm-tune.md: Rebuild.
20434         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
20435         (ix86_split_fp_branch, predict_jump): Likewise.
20436         (ix86_expand_multi_arg_builtin): Change sub_code from enum
20437         insn_code to enum rtx_code.
20438         (ix86_builtin_vectorized_function): Add cast to enum type.
20439         * config/i386/i386.md (truncdfsf2): Change slot to enum
20440         ix86_stack_slot.
20441         (truncxf<mode>2, isinf<mode>2): Likewise.
20442         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
20443         enum type.
20444         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
20445         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
20446         (insert_bundle_state): Change 1 to INSERT in function call.
20447         (ia64_add_bundle_selector_before): Likewise.
20448         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
20449         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
20450         (restore_stack_nonlocal): Likewise.
20451         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
20452         function call.
20453         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
20454         function call.
20455         (mips_rtx_costs): Likewise.
20456         (mips_override_options): Add casts to enum type.
20457         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
20458         in function call.
20459         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
20460         (store_reg, set_reg_plus_d): Likewise.
20461         (hppa_expand_prologue, hppa_profile_hook): Likewise.
20462         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20463         cast to enum type.
20464         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
20465         function call.
20466         (emit_unlikely_jump): Use add_reg_note.
20467         (rs6000_emit_allocate_stack): Likewise.
20468         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
20469         (output_toc): Change 1 to INSERT in function call.
20470         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
20471         (rs6000_initialize_trampoline): Likewise.
20472         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
20473         function call.
20474         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
20475         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
20476         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
20477         (save_gprs): Use add_reg_note.
20478         (s390_emit_prologue): Likewise.
20479         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20480         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
20481         (sparc_fold_builtin): Add cast to enum type.
20482         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
20483         enum insn_code.
20484         (spu_expand_prologue): Use add_reg_note.
20485         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
20486
20487 2009-04-20  Ian Lance Taylor  <iant@google.com>
20488
20489         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
20490         (c_parser_postfix_expression_after_primary): Get VEC for list of
20491         arguments.  Get original types of arguments.  Call
20492         build_function_call_vec.
20493         (cached_expr_list_1, cached_expr_list_2): New static variables.
20494         (c_parser_expr_list): Change return type to VEC *.  Add
20495         p_orig_types parameter.  Change all callers.
20496         (c_parser_release_expr): New static function.
20497         (c_parser_vec_to_tree_list): New static function.
20498         * c-typeck.c (build_function_call): Rewrite to build a VEC and
20499         call build_function_call_vec.
20500         (build_function_call_vec): New function, based on old
20501         build_function_call.
20502         (convert_arguments): Remove nargs and argarray parameters.  Change
20503         values to a VEC.  Add origtypes parameter.
20504         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
20505         (convert_for_assignment): Add origtype parameter.  Change all
20506         callers.  If warn_cxx_compat, check for conversion to an enum
20507         type when calling a function.
20508         (store_init_value): Add origtype parameter.  Change all callers.
20509         (digest_init): Likewise.
20510         (struct init_node): Add origtype field.
20511         (add_pending_init): Add origtype parameter.  Change all callers.
20512         (output_init_element): Likewise.
20513         (output_pending_init_elements): Pass origtype from init_node to
20514         output_init_element.
20515         (process_init_element): Pass origtype from c_expr to
20516         output_init_element.
20517         (c_finish_return): Add origtype parameter.  Change all callers.
20518         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
20519         caller.
20520         (sync_resolve_params): Likewise.
20521         (sync_resolve_return): Change params to first_param.  Change caller.
20522         (resolve_overloaded_builtins): Change params to VEC *.  Change
20523         callers.  Save first parameter around call to build_function_call_vec.
20524         * c-decl.c (finish_decl): Add origtype parameter.  Change all
20525         callers.  Call build_function_call_vec rather than
20526         build_function_call for cleanup.
20527         * c-tree.h: Update declarations.
20528         * c-common.h: Update declarations.
20529         * stub-objc.c (objc_rewrite_function_call): Change parameter from
20530         params to first_param.
20531         * target.h (struct gcc_target): Change resolve_overloaded_builtin
20532         params parameter from tree to void *.
20533         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20534         Change arglist parameter to have type void *, and to be a pointer
20535         to a VEC.
20536         * config/rs6000/rs6000-protos.h
20537         (altivec_resolve_overloaded_builtin): Update declaration.
20538         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
20539         fnargs parameter to have type void *, and to be a pointer to a
20540         VEC.  Call build_function_call_vec instead of
20541         build_function_call.
20542         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
20543
20544 2009-04-20  Joey Ye  <joey.ye@intel.com>
20545             Xuepeng Guo  <xuepeng.guo@intel.com>
20546             H.J. Lu  <hongjiu.lu@intel.com>
20547
20548         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
20549
20550         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
20551         (IX86_LEA_PRIORITY): Likewise.
20552         (distance_non_agu_define): New function.
20553         (distance_agu_use): Likewise.
20554         (ix86_lea_for_add_ok): Likewise.
20555         (ix86_dep_by_shift_count): Likewise.
20556
20557         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
20558         should split for LEA.
20559
20560         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
20561         function.
20562         (ix86_dep_by_shift_count): Likewise.
20563
20564 2009-04-20  Richard Guenther  <rguenther@suse.de>
20565
20566         * expr.c (handled_component_p): Move ...
20567         * tree.h (handled_component_p): ... here.
20568         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
20569         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
20570         and REALPART_EXPR to be in one group.
20571
20572 2009-04-20  Richard Guenther  <rguenther@suse.de>
20573
20574         * basic-block.h (get_all_dominated_blocks): Declare.
20575         * dominance.c (get_all_dominated_blocks): New function.
20576         * tree-cfg.c (get_all_dominated_blocks): Remove.
20577         (remove_edge_and_dominated_blocks): Adjust.
20578         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
20579         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
20580         instead of recursing.
20581
20582 2009-04-20  Doug Kwan  <dougkwan@google.com>
20583
20584         * cgraph.h (cgraph_node_ptr): New type for vector functions.
20585         (struct cgraph_node_set_def): New type.
20586         (cgraph_node_set) New type. Also declare vector functions.
20587         (struct cgraph_node_set_element_def): New type.
20588         (cgraph_node_set_element): Ditto.
20589         (cgraph_node_set_iterator): New iterator type.
20590         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
20591         cgraph_node_set_remove, dump_cgraph_node_set,
20592         debug_cgraph_node_set): New prototypes.
20593         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
20594         cgraph_node_set_size): New inlines.
20595         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
20596         including cgraph.h.
20597         (struct ipa_opt_pass): Add struct cgraph_node_set_def
20598         argument to function 'write_summary'.
20599         * ipa.c: Include ggc.h.
20600         (hash_cgraph_node_set_element,
20601         eq_cgraph_node_set_element, cgraph_node_set_new,
20602         cgraph_node_set_add, cgraph_node_set_remove,
20603         cgraph_node_set_find, dump_cgraph_node_set,
20604         debug_cgraph_node_set): New functions.
20605         * Makefile.in (ipa.o): Add dependency on GGC_H.
20606
20607 2009-04-20  Ira Rosen  <irar@il.ibm.com>
20608
20609         PR tree-optimization/39675
20610         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
20611         check of the return code of vect_schedule_slp. Check that
20612         stmt_vec_info still exists for the statement, before checking its
20613         vectorization type.
20614
20615 2009-04-20  Michael Matz  <matz@suse.de>
20616
20617         * Makefile.in (generated_files): Take out $(simple_generated_c).
20618
20619 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
20620
20621         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
20622         (UINTPTR_TYPE):  Likewise.
20623
20624 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20625
20626         PR c/37481
20627         * c-typeck.c (digest_init): Check for initializing an array with a
20628         string literal.
20629
20630 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20631
20632         PR c/19771
20633         * c-semantics.c (pop_stmt_list): Propagate
20634         STATEMENT_LIST_HAS_LABEL to parent statement list.
20635
20636 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
20637
20638         * config/mips/mips.h (mips_tune_attr): New macro.
20639         * config/mips/mips.md (cpu): Use it.
20640
20641 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
20642
20643         PR c/38243
20644         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
20645         declaring a tag.
20646
20647 2009-04-19  Diego Novillo  <dnovillo@google.com>
20648
20649         * toplev.c (compile_file): Move call to coverage_finish ...
20650         * cgraphunit.c (ipa_passes): ... here.
20651         Call cgraph_process_new_functions.
20652         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
20653         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
20654
20655 2009-04-19  Jan Hubicka  <jh@suse.cz>
20656
20657         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
20658         cfun.
20659         (dump_cgraph_node): Dump can throw external flag.
20660         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
20661
20662 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20663
20664         PR c/32061
20665         PR c++/36954
20666         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
20667         * common.opt (Wlogical-op): Move from here...
20668         * c.opt (Wlogical-op): ... to here.
20669         * c-typeck.c (parser_build_binary_op): Update call to
20670         warn_logical_operator.
20671         * c-opts.c (c_common_post_options): Enable warn_logical_op with
20672         extra_warnings.
20673         * c-common.c (warn_logical_op): Update.
20674         * c-common.h (warn_logical_op): Update declaration.
20675
20676 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20677
20678         * tree.c (protected_set_expr_location): Fix formatting.
20679
20680 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20681
20682         PR c/27676
20683         * c-typeck.c (readonly_warning): new.
20684         (build_unary_op, build_modify_expr): Use readonly_warning for
20685         storing into something readonly but not const-qualified.
20686
20687 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20688
20689         PR c/22367
20690         * c-typeck.c (build_unary_op): Check for taking address of
20691         expression of type void.
20692
20693 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
20694
20695         PR c/35210
20696         * c-typeck.c (build_function_call): Check for calling a function
20697         with qualified void return types.  Call require_complete_type when
20698         generating a trap.
20699
20700 2009-04-18  Jan Hubicka  <jh@suse.cz>
20701
20702         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
20703         Set nothrow flag.
20704         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
20705         can_throw_external flag.
20706         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
20707         * ipa-pure-const.c (ignore_edge): New function.
20708         (propagate): Compute order for NOTHROW computation; set NOTHROWs
20709         only over can_throw_external edges.
20710         (local_pure_const): Add nothrow flag.
20711         * ipa-utils.c (searchc): Add ignore_edge callback.
20712         (ipa_utils_reduced_inorder): Add ignore_edge callback.
20713         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
20714         (set_nothrow_function_flags): Update cgraph.
20715         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
20716
20717 2009-04-18  Richard Guenther  <rguenther@suse.de>
20718
20719         PR middle-end/39804
20720         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
20721         (fold_stmt): ... this and ...
20722         (fold_stmt_inplace): ... this.
20723         (fold_stmt_1): Fold references in calls and asms.
20724         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
20725
20726 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20727
20728         * tree-vrp.c (ssa_name_nonzero_p): Remove.
20729         * tree.h: Remove the prototype for ssa_name_nonzero_p.
20730
20731 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20732
20733         * tree.c (function_args_count): Remove.
20734         * tree.h: Remove the prototype for function_args_count.
20735
20736 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20737
20738         * tree-iterator.c (expr_only): Remove.
20739         * tree.h: Remove the prototype for expr_only.
20740
20741 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20742
20743         * reginfo.c (cannot_change_mode_set_regs): Remove.
20744         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
20745
20746 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
20747
20748         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
20749         whether operands 0 and 1 overlaps.
20750
20751 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20752
20753         PR middle-end/36902
20754         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
20755         pointer. Use warning_at instead of warning.
20756         (search_for_addr_array): Likewise.
20757         (check_array_bounds): Likewise.
20758         (check_all_array_refs): Check that the incoming edge is not in the
20759         list of edges to be removed.
20760         (check_all_array_refs): Avoid the temporal pointer.
20761         (vrp_visit_cond_stmt): Fix typo.
20762         (simplify_switch_using_ranges): Handle the case where the switch
20763         index is an integer constant.
20764
20765 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
20766
20767         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
20768
20769 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
20770
20771         * doc/extend.texi, doc/invoke.texi: Fix typos.
20772
20773 2009-04-17  Cary Coutant  <ccoutant@google.com>
20774
20775         * tree-flow-inline.h (get_lineno): Fix inverted test.
20776
20777 2009-04-17  Diego Novillo  <dnovillo@google.com>
20778
20779         * tree-ssa-pre.c (create_expression_by_pieces): Remove
20780         assertion for AVAIL_OUT.
20781
20782 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
20783
20784         PR target/38627
20785         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
20786         * config/sh/linux-atomic.asm: Likewise.
20787
20788 2009-04-17  Diego Novillo  <dnovillo@google.com>
20789
20790         * except.c (debug_eh_tree): New.
20791         (struct eh_region, struct eh_status): Move ...
20792         * except.h: ... here.
20793         (add_type_for_runtime): Declare extern.
20794         (lookup_type_for_runtime): Likewise.
20795         (debug_eh_tree): Declare.
20796         * Makefile.in (GTFILES): List except.h before except.c
20797
20798 2009-04-17  Diego Novillo  <dnovillo@google.com>
20799
20800         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
20801         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20802         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
20803         (find_vars_r): ... here.
20804         * tree-flow.h (find_referenced_vars_in): Declare.
20805         * tree-ssa-pre.c (create_expression_by_pieces): Assert
20806         that AVAIL_OUT exists for BLOCK.
20807         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
20808         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
20809         (tree-parloops.o): Likewise.
20810
20811 2009-04-17  Simon Baldwin  <simonb@google.com>
20812
20813         * toplev.c (default_tree_printer): Add handling for %E format.
20814
20815 2009-04-17  Diego Novillo  <dnovillo@google.com>
20816
20817         * tree-pretty-print.c (dump_generic_node): Add break after
20818         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
20819         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
20820         FUNCTION_TYPE together.  Call print_struct_decl when printing
20821         structures and TDF_SLIM is not given.
20822         (print_struct_decl): Fix logic for detecting recursion.
20823
20824 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
20825
20826         PR 31567
20827         * gcc.c (create_at_file): New.
20828         (compile_input_file_p): New.
20829         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
20830         * main.c (main): Update call to toplev_main.
20831         * toplev.c (toplev_main): Change signature. Call expandargv.
20832         * toplev.h (toplev_main): Change signature.
20833
20834 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20835
20836         * dwarf2out.c (field_byte_offset): Use the type size as the field size
20837         if the latter is not constant.
20838
20839 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
20840
20841         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
20842
20843 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
20844
20845         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
20846         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
20847
20848 2009-04-17  Richard Guenther  <rguenther@suse.de>
20849
20850         * tree-ssa-structalias.c (get_constraint_for_component_ref):
20851         Handle component references view-converting an invariant address.
20852
20853 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
20854
20855         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
20856         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
20857         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
20858         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
20859         Use @deftypevr rather than @deftypevar.
20860
20861 2009-04-17  Richard Guenther  <rguenther@suse.de>
20862
20863         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
20864         (get_prop_source_stmt): Likewise.
20865         (can_propagate_from): Likewise.
20866
20867 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
20868
20869         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
20870         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
20871         (--with-multilib-list): Add default value.
20872         * configure: Regenerate.
20873         * Makefile.in (TM_ENDIAN_CONFIG): Define.
20874         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
20875         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
20876         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
20877         Don't add default cpu to multilib list unnecessarily, but do enable
20878         the relevant compiler option..
20879         Add support for --with-multilib-list=<blank> and
20880         --with-multilib-list=!<somelib> to supress unwanted multilibs.
20881         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
20882         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
20883         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
20884         TM_MULTILIB_CONFIG.
20885         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
20886         (MULTILIB_OSDIRNAMES): New variable.
20887         * config/sh/t-1e: Delete file.
20888         * config/sh/t-mlib-sh1: Delete file.
20889         * config/sh/t-mlib-sh2: Delete file.
20890         * config/sh/t-mlib-sh2a: Delete file.
20891         * config/sh/t-mlib-sh2a-nofpu: Delete file.
20892         * config/sh/t-mlib-sh2a-single: Delete file.
20893         * config/sh/t-mlib-sh2a-single-only: Delete file.
20894         * config/sh/t-mlib-sh2e: Delete file.
20895         * config/sh/t-mlib-sh3e: Delete file.
20896         * config/sh/t-mlib-sh4: Delete file.
20897         * config/sh/t-mlib-sh4-nofpu: Delete file.
20898         * config/sh/t-mlib-sh4-single: Delete file.
20899         * config/sh/t-mlib-sh4-single-only: Delete file.
20900         * config/sh/t-mlib-sh4a: Delete file.
20901         * config/sh/t-mlib-sh4a-nofpu: Delete file.
20902         * config/sh/t-mlib-sh4a-single: Delete file.
20903         * config/sh/t-mlib-sh4a-single-only: Delete file.
20904         * config/sh/t-mlib-sh4al: Delete file.
20905         * config/sh/t-mlib-sh5-32media: Delete file.
20906         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
20907         * config/sh/t-mlib-sh5-64media: Delete file.
20908         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
20909         * config/sh/t-mlib-sh5-compact: Delete file.
20910         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
20911         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
20912         * doc/install.texi (Options specification): Add
20913         --with-multilib-list and --with-endian.
20914
20915 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
20916
20917         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
20918         REVISION_c.
20919         (OBJS-common): Add plugin-version.o.
20920         (plugin-version.o): New.
20921         * gcc-plugin.h (plugin_gcc_version): New.
20922         (plugin_default_version_check): New.
20923         (plugin_init_func, plugin_init): Add version argument.
20924         * plugin-version.c: New.
20925         * plugin.c (str_plugin_gcc_version_name): New.
20926         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
20927         pass it to the init function.
20928         (plugin_default_version_check): New.
20929
20930 2009-04-17  Richard Guenther  <rguenther@suse.de>
20931
20932         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
20933         for decl-vs-decl disambiguation.
20934
20935 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
20936
20937         * config/s390/s390.h (s390_tune_attr): New macro definition.
20938         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
20939
20940 2009-04-17  Richard Guenther  <rguenther@suse.de>
20941
20942         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
20943         (fold_stmt_r): Likewise.
20944         (maybe_fold_reference): New function.
20945         (fold_gimple_assign): Handle cases fold_stmt_r did.
20946         (fold_stmt): Do not use fold_stmt_r.
20947         (fold_stmt_inplace): Likewise.
20948
20949 2009-04-17  Richard Guenther  <rguenther@suse.de>
20950
20951         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
20952         (record_equivalences_from_stmt): Remove useless checks and
20953         simplifications.
20954         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
20955         the type is already suitable.
20956
20957 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
20958
20959         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
20960
20961 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
20962
20963         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
20964         (CMPtype): Define as __gcc_CMPtype.
20965
20966 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
20967
20968         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
20969         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
20970
20971 2009-04-17  Richard Guenther  <rguenther@suse.de>
20972
20973         PR tree-optimization/39746
20974         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
20975         special-casing for builtins and static variable use/def.
20976         (call_may_clobber_ref_p_1): Likewise.
20977
20978 2009-04-16  Ian Lance Taylor  <iant@google.com>
20979
20980         * df.h: Include "timevar.h".
20981         (struct df_problem): Change tv_id field to timevar_id_t.
20982         * tree-pass.h: Include "timevar.h".
20983         (struct opt_pass): Change tv_id field to timevar_id_t.
20984         * timevar.h (timevar_id_t): Define TV_NONE.
20985         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
20986         TV_NONE rather than tv_id != 0.
20987         (execute_one_pass): Likewise.
20988         * Makefile.in (DF_H): Add $(TIMEVAR_H).
20989         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
20990         dependencies to $(TREE_PASS_H).
20991         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
20992         to TV_NONE.
20993         (pass_branch_target_load_optimize2): Likewise.
20994         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
20995         (pass_outof_cfg_layout_mode): Likewise.
20996         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
20997         (pass_rebuild_cgraph_edges): Likewise.
20998         (pass_remove_cgraph_callee_edges): Likewise.
20999         * df-core.c (pass_df_initialize_opt): Likewise.
21000         (pass_df_initialize_no_opt): Likewise.
21001         (pass_df_finish): Likewise.
21002         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21003         * except.c (pass_set_nothrow_function_flags): Likewise.
21004         (pass_convert_to_eh_region_ranges): Likewise.
21005         * final.c (pass_compute_alignments): Likewise.
21006         * function.c (pass_instantiate_virtual_regs): Likewise.
21007         (pass_init_function): Likewise.
21008         (pass_leaf_regs): Likewise.
21009         (pass_match_asm_constraints): Likewise.
21010         * gimple-low.c (pass_lower_cf): Likewise.
21011         (pass_mark_used_blocks): Likewise.
21012         * init-regs.c (pass_initialize_regs): Likewise.
21013         * integrate.c (pass_initial_value_sets): Likewise.
21014         * ira.c (pass_ira): Likewise.
21015         * jump.c (pass_cleanup_barriers): Likewise.
21016         * omp-low.c (pass_expand_omp): Likewise.
21017         (pass_lower_omp): Likewise.
21018         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
21019         * recog.c (pass_split_all_insns): Likewise.
21020         (pass_split_after_reload): Likewise.
21021         (pass_split_before_regstack): Likewise.
21022         (pass_split_before_sched2): Likewise.
21023         (pass_split_for_shorten_branches): Likewise.
21024         * reginfo.c (pass_reginfo_init): Likewise.
21025         (pass_subregs_of_mode_init): Likewise.
21026         (pass_subregs_of_mode_finish): Likewise.
21027         * passes.c (pass_postreload): Likewise.
21028         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21029         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
21030         (pass_warn_function_return): Likewise.
21031         (pass_warn_function_noreturn): Likewise.
21032         * tree-complex.c (pass_lower_complex): Likewise.
21033         (pass_lower_complex_O0): Likewise.
21034         * tree-if-conv.c (pass_if_conversion): Likewise.
21035         * tree-into-ssa.c (pass_build_ssa): Likewise.
21036         * tree-mudflap.c (pass_mudflap_1): Likewise.
21037         (pass_mudflap_2): Likewise.
21038         * tree-nomudflap.c (pass_mudflap_1): Likewise.
21039         (pass_mudflap_2): Likewise.
21040         * tree-nrv.c (pass_return_slot): Likewise.
21041         * tree-object-size.c (pass_object_sizes): Likewise.
21042         * tree-optimize.c (pass_all_optimizations): Likewise.
21043         (pass_early_local_passes): Likewise.
21044         (pass_all_early_optimizations): Likewise.
21045         (pass_cleanup_cfg): Likewise.
21046         (pass_cleanup_cfg_post_optimizing): Likewise.
21047         (pass_free_datastructures): Likewise.
21048         (pass_free_cfg_annotations): Likewise.
21049         (pass_fixup_cfg): Likewise.
21050         (pass_init_datastructures): Likewise.
21051         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
21052         (pass_late_warn_uninitialized): Likewise.
21053         (pass_update_address_taken): Likewise.
21054         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
21055         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
21056         (pass_cse_sincos): Likewise.
21057         (pass_convert_to_rsqrt): Likewise.
21058         * tree-ssa-structalias.c (pass_build_alias): Likewise.
21059         * tree-stdarg.c (pass_stdarg): Likewise.
21060         * tree-tailcall.c (pass_tail_recursion): Likewise.
21061         (pass_tail_calls): Likewise.
21062         * tree-vect-generic.c (pass_lower_vector): Likewise.
21063         (pass_lower_vector_ssa): Likewise.
21064         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
21065
21066 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
21067
21068         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
21069         XLR entry.
21070         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
21071         Handle -march=xlr.
21072         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
21073         logical and signext.
21074
21075 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21076
21077         PR target/39767
21078         * config/sh/predicates.md (arith_operand): Check if the operand
21079         of TRUNCATE is a REG.
21080
21081 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21082
21083         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
21084         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
21085
21086 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21087
21088         * tree-iterator.c (tsi_split_statement_list_after,
21089         tsi_split_statement_list_before): Remove.
21090         * tree-iterator.h: Remove the prototypes for
21091         tsi_split_statement_list_after and tsi_split_statement_list_before.
21092
21093 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21094
21095         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
21096         * tree-ssa-propagate.h: Remove the prototype for
21097         stmt_makes_single_load.
21098
21099 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21100
21101         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
21102         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
21103
21104 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21105
21106         * tree-iterator.c (EXPR_LAST_BODY): Remove.
21107
21108 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21109
21110         * except.c (eh_region_outer_p): Remove.
21111         * except.h: Remove the prototype for eh_region_outer_p.
21112
21113 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21114
21115         * function.c (current_function_assembler_name): Remove.
21116         * function.h: Remove the prototype for
21117         current_function_assembler_name.
21118
21119 2009-04-16  Ian Lance Taylor  <iant@google.com>
21120
21121         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
21122         (add_reg_note): Call alloc_reg_note.
21123         * rtl.h (alloc_reg_note): Declare.
21124         * combine.c (try_combine): Use alloc_reg_note.
21125         (recog_for_combine, move_deaths): Likewise.
21126         (distribute_notes): Use alloc_reg_note and add_reg_note.
21127         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
21128         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
21129         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
21130
21131 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
21132
21133         PR rtl-optimization/39762
21134         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
21135         ira_may_move_out_cost): Add comments about way of their usage.
21136         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
21137
21138         * ira-conflicts.c (process_regs_for_copy): Use function
21139         ira_get_register_move_cost instead of global
21140         ira_register_move_cost.
21141
21142         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
21143         color_pass, move_spill_restore, update_curr_costs): Ditto.
21144
21145         * ira-lives.c (process_single_reg_class_operands): Ditto.
21146
21147         * ira-emit.c (emit_move_list): Ditto.
21148
21149         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
21150         (record_reg_classes): Ditto.  Use functions
21151         ira_get_register_move_cost and ira_get_may_move_cost instead of
21152         global vars ira_register_move_cost, ira_may_move_out_cost and
21153         ira_may_move_in_cost.
21154         (record_address_regs): Don't call ira_init_register_move_cost.
21155         Use function ira_get_may_move_cost instead of global
21156         ira_may_move_in_cost.
21157         (process_bb_node_for_hard_reg_moves): Use function
21158         ira_get_register_move_cost instead of global ira_register_move_cost.
21159         (ira_costs): Don't call ira_init_register_move_cost.
21160
21161 2009-04-16  Richard Guenther  <rguenther@suse.de>
21162
21163         * tree-cfg.c (verify_gimple_assign_binary):
21164         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
21165         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
21166         (create_general_new_stmt): Note that this function is broken.
21167
21168 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21169
21170         * common.opt (fhelp): Add Var(help_flag).
21171         * gcc-plugin.h (plugin_info): Add help.
21172         * plugin.c (plugin_name_args): Add help.
21173         (register_plugin_info): Set plugin->help.
21174         (print_help_one_plugin): New.
21175         (print_plugins_help): New.
21176         * plugin.h (print_plugins_help): New.
21177         * toplev.c (toplev_main): Call print_plugins_help if needed.
21178
21179 2009-04-16  Richard Guenther  <rguenther@suse.de>
21180
21181         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
21182         (gimple_ior_addresses_taken_1): New function.
21183         (gimple_ior_addresses_taken): Likewise.
21184         * gimple.h (struct gimple_statement_with_ops_base): Remove
21185         addresses_taken member.
21186         (gimple_ior_addresses_taken): Declare.
21187         (gimple_addresses_taken, gimple_addresses_taken_ptr,
21188         gimple_set_addresses_taken): Remove.
21189         * ipa-reference.c (mark_address): New function.
21190         (scan_stmt_for_static_refs): Use it for marking addresses taken.
21191         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
21192         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
21193         (gimple_add_to_addresses_taken): Remove.
21194         (get_tmr_operands): Call mark_address_taken.
21195         (get_asm_expr_operands): Likewise.
21196         (get_expr_operands): Likewise.
21197         (build_ssa_operands): Do not clear the addresses_taken bitmap.
21198         (free_stmt_operands): Do not free it.
21199         * tree-ssa.c (delete_tree_ssa): Likewise.
21200         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
21201
21202 2009-04-16  Richard Guenther  <rguenther@suse.de>
21203
21204         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
21205         (walk_stmt_load_store_ops): Likewise.
21206         * gimple.c (get_base_loadstore): New function.
21207         (walk_stmt_load_store_addr_ops): Likewise.
21208         (walk_stmt_load_store_ops): Likewise.
21209         * ipa-pure-const.c (check_op): Simplify.
21210         (check_load, check_store): New functions.
21211         (check_stmt): Use walk_stmt_load_store_ops.
21212         * ipa-reference.c (mark_load): Adjust signature.
21213         (mark_store): Likewise.
21214         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
21215
21216 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21217
21218         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
21219         (plugin_info): New.
21220         * opts.c (common_handle_option): Don't call print_version.
21221         * plugin.c (plugin_name_args): Add version.
21222         (register_plugin_info): New.
21223         (register_callback): Handle PLUGIN_INFO.
21224         (try_init_one_plugin): New.
21225         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
21226         if failed to init.
21227         (finalize_one_plugin): New.
21228         (finalize_plugins): New.
21229         (print_one_plugin): New.
21230         (print_plugins_versions): New.
21231         * plugin.h (print_plugins_versions): New.
21232         (finalize_plugins): New.
21233         * toplev.c (compile_file): Don't call initialize_plugins.
21234         (print_version): Call print_plugins_versions.
21235         (toplev_main): Call initialize_plugins. Print version if needed.
21236         Call finalize_plugins.
21237
21238 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21239
21240         * common.opt (fversion): New.
21241         * gcc.c (print_version): New.
21242         (process_command): Don't print the version. Just set print_version.
21243         (main): Print version. Call subprocesses if print_version and
21244         verbose_flag are set.
21245         * opts.c (common_handle_option): Handle OPT_fversion.
21246
21247 2009-04-16  Richard Guenther  <rguenther@suse.de>
21248             Ira Rosen  <irar@il.ibm.com>
21249
21250         PR tree-optimization/39698
21251         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
21252         type of the reduction variable.  Only generate the def if
21253         it is needed.
21254
21255         * omp-low.c (expand_omp_for_generic): When converting to a pointer
21256         make sure to first convert to an integer of the same precision.
21257         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
21258         the type of the evolution correctly in computing the new
21259         induction variable base.
21260
21261 2009-04-16  Richard Guenther  <rguenther@suse.de>
21262
21263         PR middle-end/39625
21264         * tree-cfg.c (make_blocks): Split statements with to-be
21265         abnormal SSA names on the lhs.
21266
21267 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
21268
21269         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
21270         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
21271         * c-typeck.c (really_start_incremental_init): Likewise.
21272         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
21273         (TARGET_INITIALIZER): Remove it.
21274         * target.h (struct target): Remove vector_opaque_p.
21275         * tree.c (build_opaque_vector_type): New.
21276         * tree.h (TYPE_VECTOR_OPAQUE): New.
21277         (build_opaque_vector_type): Declare.
21278         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
21279         * config/rs6000/rs6000.c (build_opaque_vector_type,
21280         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
21281         (rs6000_init_builtins): Use build_opaque_vector_type for
21282         opaque_V4SI_type_node.
21283
21284 2009-04-15  Catherine Moore  <clm@codesourcery.com>
21285
21286         * debug.h (set_name):  Declare.
21287         * dwarf2out.c (dwarf2out_set_name): Declare.
21288         (dwarf2_debug_hooks): Add set_name.
21289         (find_AT_string): New.
21290         (add_AT_string): Call find_AT_string.
21291         (dwarf2out_set_name): New.
21292         * cp/decl.c (grokdeclarator): Call set_name.
21293         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
21294         * debug.c (do_nothing_debug_hooks):  Likewise.
21295         * dbxout.c (dbx_debug_hooks): Likewise.
21296         * sdbout.c (sdb_debug_hooks): Likewise.
21297
21298 2009-04-15  Michael Eager  <eager@eagercon.com>
21299
21300         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
21301         reg for single-precision FPU.
21302         * config/rs6000/rs6000.md (movsi_internal1): Only for
21303         !TARGET_SINGLE_FPU.
21304         (movsi_internal1_single): New. Add pattern to move SI values to/from
21305         single-precision FP regs.
21306
21307 2009-04-15  Richard Guenther  <rguenther@suse.de>
21308
21309         * omp-low.c (lower_rec_input_clauses): Build correct address
21310         expressions.
21311         (expand_omp_for_generic): Fix multiplication type.
21312         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
21313         (generate_memset_zero): Fix types.
21314         * tree-profile.c (prepare_instrumented_value): Correctly
21315         widen a pointer.
21316
21317 2009-04-15  Ian Lance Taylor  <iant@google.com>
21318
21319         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
21320         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
21321         for -Wall and for -Wc++-compat.
21322         (c_common_post_options): For C++, set warn_enum_compare if not
21323         already set.
21324         * c-tree.h (struct c_expr): Add field original_type.
21325         (build_external_ref): Update declaration.
21326         * c-parser.c (c_parser_braced_init): Set original_type.
21327         (c_parser_initelt): Likewise.
21328         (c_parser_expr_no_commas): Likewise.
21329         (c_parser_conditional_expression): Likewise.
21330         (c_parser_cast_expression): Likewise.
21331         (c_parser_unary_expression): Likewise.  Pull setting of
21332         original_code to top of function.
21333         (c_parser_sizeof_expression): Set original_type.
21334         (c_parser_alignof_expression): Likewise.
21335         (c_parser_postfix_expression): Likewise.  Pull setting of
21336         original_code to top of function.
21337         (c_parser_postfix_expression_after_paren_type): Set original_type.
21338         (c_parser_postfix_expression_after_primary): Likewise.
21339         (c_parser_expression): Likewise.
21340         * c-typeck.c (build_external_ref): Add type parameter.  Change all
21341         callers.
21342         (c_expr_sizeof_expr): Set original_type field.
21343         (parser_build_unary_op): Likewise.
21344         (parser_build_binary_op): Likewise.  Optionally warn about
21345         comparisons of enums of different types.
21346         (digest_init): Set original_type field.
21347         (really_start_incremental_init): Likewise.
21348         (push_init_level, pop_init_level): Likewise.
21349         * doc/invoke.texi (Warning Options): -Wenum-compare now
21350         supported in C.
21351
21352 2009-04-15  Richard Guenther  <rguenther@suse.de>
21353
21354         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
21355         out a necessary conversion.
21356         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
21357         names we didn't value number.
21358         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
21359
21360 2009-04-15  Richard Guenther  <rguenther@suse.de>
21361
21362         PR tree-optimization/39764
21363         * tree-ssa-ccp.c (get_value): Canonicalize value with
21364         canonicalize_float_value.
21365
21366 2009-04-15  Jan Hubicka  <jh@suse.cz>
21367
21368         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
21369         Wrong version of patch.
21370
21371 2009-04-15  Jan Hubicka  <jh@suse.cz>
21372
21373         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
21374
21375 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
21376
21377         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
21378         our distinct integral and vector types.
21379
21380 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
21381
21382         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
21383         * init.c (build_vtbl_address): Remove call to assemble_external.
21384
21385 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
21386
21387         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
21388         output for other floating point modes.
21389
21390 2009-04-14  Diego Novillo  <dnovillo@google.com>
21391
21392         * diagnostic.c (diagnostic_report_diagnostic): Do not
21393         warn about loaded plugins for DK_ERROR and DK_WARNING.
21394         * c-decl.c (declspecs_add_type): Move call to
21395         invoke_plugin_callbacks ...
21396         * c-parser.c (c_parser_declspecs): ... here.
21397         * plugin.c (dump_active_plugins): Tidy output.
21398
21399 2009-04-14  Diego Novillo  <dnovillo@google.com>
21400             Le-Chun Wu  <lcwu@google.com>
21401
21402         * configure.ac: Add --enable-plugin support.
21403         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
21404         * Makefile.in (PLUGIN_H): Define.
21405         Export ENABLE_PLUGIN and GMPINC to site.exp.
21406         Add PLUGINLIBS to link command.
21407         Add/modify dependencies for plugin.o and files including plugin.h.
21408         (plugin.o): New.
21409         * config.in: Regenerate.
21410
21411         * opts.c (common_handle_option): Handle OPT_fplugin_ and
21412         OPT_fplugin_arg_.
21413
21414 2009-04-14  Le-Chun Wu  <lcwu@google.com>
21415
21416         * tree-pass.h (register_one_dump_file): Add a prototype for
21417         register_one_dump_file.
21418         * toplev.c (compile_file): Call initialize_plugins.
21419         (do_compile): Call invoke_plugin_callbacks.
21420         (toplev_main): Call invoke_plugin_callbacks.
21421         * common.opt: Add -fplugin= and -fplugin-arg-.
21422         * gcc-plugin.h: New public header file for plugins to include.
21423         * plugin.c: New source file.
21424         * plugin.h: New internal header file.
21425         * passes.c (register_one_dump_file): Make it external.
21426
21427         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
21428
21429 2009-04-14  Diego Novillo  <dnovillo@google.com>
21430
21431         * doc/plugins.texi: New.
21432         * doc/gccint.texi: Add reference to Plugins chapter.
21433         * doc/invoke.texi: Document -fplugin and -fplugin-arg
21434         * diagnostic.c (diagnostic_report_diagnostic): Warn about
21435         loaded plugins, if any.
21436         * timevar.def (TV_PLUGIN_INIT): Define.
21437         (TV_PLUGIN_RUN): Define.
21438         * plugin.c: Include timevar.h
21439         (plugins_active_p): New.
21440         (dump_active_plugins): New.
21441         (debug_active_plugins): New.
21442
21443 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
21444
21445         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
21446         library paths.
21447         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
21448
21449 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
21450
21451         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
21452         the same as a minus without a shift.
21453
21454 2009-04-14  Nick Clifton  <nickc@redhat.com>
21455
21456         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
21457         comparisons with small integers will always produce a short
21458         branch.
21459
21460 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
21461
21462         Merge:
21463         2008-12-19  Diego Novillo  <dnovillo@google.com>
21464
21465         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
21466
21467 2009-04-14  Richard Guenther  <rguenther@suse.de>
21468
21469         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
21470         verification.
21471         (verify_gimple_assign_binary): Likewise.  Handle shifts and
21472         rotates correctly.
21473         (verify_gimple_phi): Print the mismatched argument position.
21474         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21475         Fix types.
21476         (vect_update_init_of_dr): Likewise.
21477         * matrix-reorg.c (transform_access_sites): Do what the
21478         comment suggests.
21479         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
21480
21481 2009-04-13  Michael Eager  <eager@eagercon.com>
21482
21483         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
21484         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
21485         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
21486         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
21487         remove duplicate config
21488
21489 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
21490
21491         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
21492         file_name:line_number type locator of the call site.
21493
21494 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
21495
21496         * genautomata.c: Put blank after comma.
21497         (automaton_decls): New.
21498         (struct unit_usage): Add comments to member next.
21499         (store_alt_unit_usage): Keep the list ordered.
21500         (unit_present_on_list_p, equal_alternatives_p): New.
21501         (check_regexp_units_distribution): Check units distribution
21502         correctness correctly.
21503         (main): Don't write automata if error is found.  Return correct
21504         exit code.
21505
21506         * config/m68k/cf.md (cfv4_ds): Remove.
21507         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
21508         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
21509
21510         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
21511         power4-load-ext, power4-store, power4-store-update,
21512         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
21513         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
21514         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
21515         power4-sqrt, power4-isync): Modify reservation to make correct
21516         unit distribution to automata.
21517
21518         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
21519         power5-store-update, power5-two, power5-three, power5-lmul,
21520         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
21521
21522 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
21523
21524         * except.c (pass_set_nothrow_function_flags): Set name and add
21525         TODO_dump_func.
21526         (set_nothrow_function_flags): Mention in the dump file when
21527         changing a function to nothrow.
21528
21529 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
21530
21531         PR/39066
21532         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
21533         instead of unsigned long.
21534
21535 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21536
21537         * config/arm/arm.c (return_used_this_function): Remove.
21538         (arm_output_function_prologue): Remove use of
21539         return_used_this_function.
21540         (output_return_instruction): Replace use of
21541         return_used_this_function
21542         by cfun->machine->return_used_this_function.
21543         (arm_output_epilogue): Likewise.
21544         (arm_output_function_epilogue): Likewise.
21545         (thumb_unexpanded_epilogue): Likewise.
21546         * config/arm/arm.h (struct machine_function):
21547         New member return_used_this_function.
21548
21549 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
21550
21551         * doc/install.texi: Correct description of default directory for
21552         --with-gxx-include-dir.
21553
21554 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21555
21556         * fold-const.c (build_range_check): Properly deal with enumeral and
21557         boolean base types.
21558
21559 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
21560
21561         * doc/invoke.texi (max_gcse_passes): Remove documentation.
21562         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
21563         * params.h (MAX_GCSE_PASSES): Remove.
21564         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
21565         in sequence.  Remove ability to run multiple passes.
21566         (bypass_jumps): Report run as third CPROP pass.
21567
21568 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
21569
21570         PR middle-end/39651
21571         * except.c (can_throw_external): Look at each insn in a SEQUENCE
21572         when deciding whether the whole SEQUENCE can throw.
21573
21574 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
21575
21576         PR target/39740
21577         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
21578         offseted label references.
21579
21580 2009-04-11  Jan Hubicka  <jh@suse.cz>
21581
21582         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
21583
21584 2009-04-11  Richard Guenther  <rguenther@suse.de>
21585
21586         PR middle-end/39732
21587         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
21588         return variables as TREE_ADDRESSABLE.
21589
21590 2009-04-11  Richard Guenther  <rguenther@suse.de>
21591
21592         PR tree-optimization/39713
21593         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
21594         reference trees have SSA_NAME operands.
21595
21596 2009-04-11  Richard Guenther  <rguenther@suse.de>
21597
21598         PR c/39712
21599         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
21600         address expressions.
21601
21602 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
21603
21604         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
21605         match changes in Cygwin 1.7
21606         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
21607         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
21608
21609 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
21610
21611         PR tree-optimization/39701
21612         * doc/invoke.texi (Optimization Options): Document change in
21613         meaning and initialization of -fdelete-null-pointer-checks.
21614
21615 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21616
21617         PR middle-end/39701
21618         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
21619
21620         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
21621         here.
21622
21623         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
21624
21625 2009-04-10  Chao-ying Fu  <fu@mips.com>
21626
21627         * doc/tm.texi (Instruction Output): Document
21628         TARGET_ASM_FINAL_POSTSCAN_INSN.
21629         * target.h (final_postscan_insn): New field in asm_out.
21630         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
21631         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
21632         * final.c (final_scan_insn): Call
21633         targetm.asm_out.final_postscan_insn after outputting
21634         an asm macro and a normal instruction.
21635
21636         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
21637         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
21638         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
21639         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
21640         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
21641
21642 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
21643
21644         PR middle-end/39701
21645         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
21646         variables as non-NULL even with -fdelete-null-pointer-checks.
21647
21648 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21649
21650         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
21651
21652 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
21653
21654         PR target/39678
21655         * config/i386/i386.c (classify_argument): Handle SCmode with
21656         (bit_offset % 64) != 0.
21657
21658 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
21659
21660         * doc/invoke.texi (Optimize Options): Add cross-reference to
21661         -Q --help=optimizers examples.
21662
21663 2009-04-10  Ben Elliston  <bje@au.ibm.com>
21664
21665         PR target/36800
21666         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
21667         regalign for the reg == fpr and TDmode case.
21668
21669 2009-04-09  David Ayers  <ayers@fsfe.org>
21670
21671         PR objc/29200
21672         * objc/objc-act.c (warn_with_method): Remove helper function.
21673         (check_duplicates): Call warning and inform directly.
21674         (really_start_method): Likewise.
21675
21676 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
21677
21678         * expmed.c (expand_divmod): Always use a comparison for a division
21679         by a large unsigned integer.
21680
21681         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
21682         for things others than variables or functions as nonzero.
21683
21684 2009-04-09  Nick Clifton  <nickc@redhat.com>
21685
21686         * unwind-compat.c: Change copyright header to refer to version
21687         3 of the GNU General Public License with version 3.1 of the
21688         GCC Runtime Library Exception and to point readers at the
21689         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
21690         * config/alpha/crtfastmath.c: Likewise.
21691         * config/alpha/linux-unwind.h: Likewise.
21692         * config/alpha/qrnnd.asm: Likewise.
21693         * config/alpha/vms-crt0-64.c: Likewise.
21694         * config/alpha/vms-crt0.c: Likewise.
21695         * config/alpha/vms-dwarf2.asm: Likewise.
21696         * config/alpha/vms-dwarf2eh.asm: Likewise.
21697         * config/alpha/vms-psxcrt0-64.c: Likewise.
21698         * config/alpha/vms-psxcrt0.c: Likewise.
21699         * config/alpha/vms_tramp.asm: Likewise.
21700         * config/arc/initfini.c: Likewise.
21701         * config/arc/lib1funcs.asm: Likewise.
21702         * config/arm/bpabi-v6m.S: Likewise.
21703         * config/arm/bpabi.S: Likewise.
21704         * config/arm/bpabi.c: Likewise.
21705         * config/arm/crti.asm: Likewise.
21706         * config/arm/crtn.asm: Likewise.
21707         * config/arm/ieee754-df.S: Likewise.
21708         * config/arm/ieee754-sf.S: Likewise.
21709         * config/arm/lib1funcs.asm: Likewise.
21710         * config/arm/libunwind.S: Likewise.
21711         * config/arm/linux-atomic.c: Likewise.
21712         * config/arm/mmintrin.h: Likewise.
21713         * config/arm/pr-support.c: Likewise.
21714         * config/arm/unaligned-funcs.c: Likewise.
21715         * config/arm/unwind-arm.c: Likewise.
21716         * config/arm/unwind-arm.h: Likewise.
21717         * config/avr/libgcc.S: Likewise.
21718         * config/bfin/crti.s: Likewise.
21719         * config/bfin/crtlibid.s: Likewise.
21720         * config/bfin/crtn.s: Likewise.
21721         * config/bfin/lib1funcs.asm: Likewise.
21722         * config/bfin/linux-unwind.h: Likewise.
21723         * config/cris/arit.c: Likewise.
21724         * config/cris/cris_abi_symbol.c: Likewise.
21725         * config/darwin-64.c: Likewise.
21726         * config/darwin-crt2.c: Likewise.
21727         * config/darwin-crt3.c: Likewise.
21728         * config/darwin.h: Likewise.
21729         * config/dbxelf.h: Likewise.
21730         * config/dfp-bit.c: Likewise.
21731         * config/dfp-bit.h: Likewise.
21732         * config/elfos.h: Likewise.
21733         * config/fixed-bit.c: Likewise.
21734         * config/fixed-bit.h: Likewise.
21735         * config/fp-bit.c: Likewise.
21736         * config/fp-bit.h: Likewise.
21737         * config/fr30/crti.asm: Likewise.
21738         * config/fr30/crtn.asm: Likewise.
21739         * config/fr30/lib1funcs.asm: Likewise.
21740         * config/freebsd-spec.h: Likewise.
21741         * config/frv/cmovd.c: Likewise.
21742         * config/frv/cmovh.c: Likewise.
21743         * config/frv/cmovw.c: Likewise.
21744         * config/frv/frvbegin.c: Likewise.
21745         * config/frv/frvend.c: Likewise.
21746         * config/frv/lib1funcs.asm: Likewise.
21747         * config/glibc-stdint.h: Likewise.
21748         * config/h8300/clzhi2.c: Likewise.
21749         * config/h8300/crti.asm: Likewise.
21750         * config/h8300/crtn.asm: Likewise.
21751         * config/h8300/ctzhi2.c: Likewise.
21752         * config/h8300/fixunssfsi.c: Likewise.
21753         * config/h8300/lib1funcs.asm: Likewise.
21754         * config/h8300/parityhi2.c: Likewise.
21755         * config/h8300/popcounthi2.c: Likewise.
21756         * config/i386/ammintrin.h: Likewise.
21757         * config/i386/att.h: Likewise.
21758         * config/i386/avxintrin.h: Likewise.
21759         * config/i386/biarch64.h: Likewise.
21760         * config/i386/bmmintrin.h: Likewise.
21761         * config/i386/cpuid.h: Likewise.
21762         * config/i386/cross-stdarg.h: Likewise.
21763         * config/i386/crtfastmath.c: Likewise.
21764         * config/i386/crtprec.c: Likewise.
21765         * config/i386/cygming-crtbegin.c: Likewise.
21766         * config/i386/cygming-crtend.c: Likewise.
21767         * config/i386/cygwin.asm: Likewise.
21768         * config/i386/emmintrin.h: Likewise.
21769         * config/i386/gmm_malloc.h: Likewise.
21770         * config/i386/gthr-win32.c: Likewise.
21771         * config/i386/i386.h: Likewise.
21772         * config/i386/immintrin.h: Likewise.
21773         * config/i386/linux-unwind.h: Likewise.
21774         * config/i386/linux64.h: Likewise.
21775         * config/i386/mm3dnow.h: Likewise.
21776         * config/i386/mmintrin-common.h: Likewise.
21777         * config/i386/mmintrin.h: Likewise.
21778         * config/i386/nmmintrin.h: Likewise.
21779         * config/i386/pmm_malloc.h: Likewise.
21780         * config/i386/pmmintrin.h: Likewise.
21781         * config/i386/smmintrin.h: Likewise.
21782         * config/i386/sol2-c1.asm: Likewise.
21783         * config/i386/sol2-ci.asm: Likewise.
21784         * config/i386/sol2-cn.asm: Likewise.
21785         * config/i386/sol2-gc1.asm: Likewise.
21786         * config/i386/tmmintrin.h: Likewise.
21787         * config/i386/unix.h: Likewise.
21788         * config/i386/w32-unwind.h: Likewise.
21789         * config/i386/wmmintrin.h: Likewise.
21790         * config/i386/x86-64.h: Likewise.
21791         * config/i386/x86intrin.h: Likewise.
21792         * config/i386/xmmintrin.h: Likewise.
21793         * config/ia64/crtbegin.asm: Likewise.
21794         * config/ia64/crtend.asm: Likewise.
21795         * config/ia64/crtfastmath.c: Likewise.
21796         * config/ia64/crti.asm: Likewise.
21797         * config/ia64/crtn.asm: Likewise.
21798         * config/ia64/fde-glibc.c: Likewise.
21799         * config/ia64/lib1funcs.asm: Likewise.
21800         * config/ia64/linux-unwind.h: Likewise.
21801         * config/ia64/quadlib.c: Likewise.
21802         * config/ia64/unwind-ia64.c: Likewise.
21803         * config/linux.h: Likewise.
21804         * config/m32c/m32c-lib1.S: Likewise.
21805         * config/m32c/m32c-lib2-trapv.c: Likewise.
21806         * config/m32c/m32c-lib2.c: Likewise.
21807         * config/m32r/initfini.c: Likewise.
21808         * config/m68hc11/larith.asm: Likewise.
21809         * config/m68hc11/m68hc11-crt0.S: Likewise.
21810         * config/m68k/cf.md: Likewise.
21811         * config/m68k/crti.s: Likewise.
21812         * config/m68k/crtn.s: Likewise.
21813         * config/m68k/lb1sf68.asm: Likewise.
21814         * config/m68k/linux-unwind.h: Likewise.
21815         * config/mcore/crti.asm: Likewise.
21816         * config/mcore/crtn.asm: Likewise.
21817         * config/mcore/lib1.asm: Likewise.
21818         * config/mips/linux-unwind.h: Likewise.
21819         * config/mips/loongson.h: Likewise.
21820         * config/mips/mips16.S: Likewise.
21821         * config/mmix/crti.asm: Likewise.
21822         * config/mmix/crtn.asm: Likewise.
21823         * config/pa/fptr.c: Likewise.
21824         * config/pa/hpux-unwind.h: Likewise.
21825         * config/pa/lib2funcs.asm: Likewise.
21826         * config/pa/linux-atomic.c: Likewise.
21827         * config/pa/linux-unwind.h: Likewise.
21828         * config/pa/milli64.S: Likewise.
21829         * config/pa/quadlib.c: Likewise.
21830         * config/pa/stublib.c: Likewise.
21831         * config/picochip/libgccExtras/adddi3.asm: Likewise.
21832         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
21833         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
21834         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
21835         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
21836         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
21837         * config/picochip/libgccExtras/divmod15.asm: Likewise.
21838         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
21839         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
21840         * config/picochip/libgccExtras/longjmp.asm: Likewise.
21841         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
21842         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
21843         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
21844         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
21845         * config/picochip/libgccExtras/setjmp.asm: Likewise.
21846         * config/picochip/libgccExtras/subdi3.asm: Likewise.
21847         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
21848         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
21849         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
21850         * config/rs6000/750cl.h: Likewise.
21851         * config/rs6000/altivec.h: Likewise.
21852         * config/rs6000/biarch64.h: Likewise.
21853         * config/rs6000/crtresfpr.asm: Likewise.
21854         * config/rs6000/crtresgpr.asm: Likewise.
21855         * config/rs6000/crtresxfpr.asm: Likewise.
21856         * config/rs6000/crtresxgpr.asm: Likewise.
21857         * config/rs6000/crtsavfpr.asm: Likewise.
21858         * config/rs6000/crtsavgpr.asm: Likewise.
21859         * config/rs6000/darwin-asm.h: Likewise.
21860         * config/rs6000/darwin-fallback.c: Likewise.
21861         * config/rs6000/darwin-fpsave.asm: Likewise.
21862         * config/rs6000/darwin-ldouble.c: Likewise.
21863         * config/rs6000/darwin-tramp.asm: Likewise.
21864         * config/rs6000/darwin-unwind.h: Likewise.
21865         * config/rs6000/darwin-vecsave.asm: Likewise.
21866         * config/rs6000/darwin-world.asm: Likewise.
21867         * config/rs6000/e500crtres32gpr.asm: Likewise.
21868         * config/rs6000/e500crtres64gpr.asm: Likewise.
21869         * config/rs6000/e500crtres64gprctr.asm: Likewise.
21870         * config/rs6000/e500crtrest32gpr.asm: Likewise.
21871         * config/rs6000/e500crtrest64gpr.asm: Likewise.
21872         * config/rs6000/e500crtresx32gpr.asm: Likewise.
21873         * config/rs6000/e500crtresx64gpr.asm: Likewise.
21874         * config/rs6000/e500crtsav32gpr.asm: Likewise.
21875         * config/rs6000/e500crtsav64gpr.asm: Likewise.
21876         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
21877         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
21878         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
21879         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
21880         * config/rs6000/eabi-ci.asm: Likewise.
21881         * config/rs6000/eabi-cn.asm: Likewise.
21882         * config/rs6000/eabi.asm: Likewise.
21883         * config/rs6000/linux-unwind.h: Likewise.
21884         * config/rs6000/linux64.h: Likewise.
21885         * config/rs6000/paired.h: Likewise.
21886         * config/rs6000/paired.md: Likewise.
21887         * config/rs6000/ppc64-fp.c: Likewise.
21888         * config/rs6000/ppu_intrinsics.h: Likewise.
21889         * config/rs6000/rs6000.h: Likewise.
21890         * config/rs6000/si2vmx.h: Likewise.
21891         * config/rs6000/sol-ci.asm: Likewise.
21892         * config/rs6000/sol-cn.asm: Likewise.
21893         * config/rs6000/spe.h: Likewise.
21894         * config/rs6000/spu2vmx.h: Likewise.
21895         * config/rs6000/sysv4.h: Likewise.
21896         * config/rs6000/tramp.asm: Likewise.
21897         * config/rs6000/vec_types.h: Likewise.
21898         * config/s390/linux-unwind.h: Likewise.
21899         * config/s390/tpf-unwind.h: Likewise.
21900         * config/score/crti.asm: Likewise.
21901         * config/score/crtn.asm: Likewise.
21902         * config/sh/crt1.asm: Likewise.
21903         * config/sh/crti.asm: Likewise.
21904         * config/sh/crtn.asm: Likewise.
21905         * config/sh/divtab-sh4-300.c: Likewise.
21906         * config/sh/divtab-sh4.c: Likewise.
21907         * config/sh/divtab.c: Likewise.
21908         * config/sh/lib1funcs-4-300.asm: Likewise.
21909         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
21910         * config/sh/lib1funcs.asm: Likewise.
21911         * config/sh/lib1funcs.h: Likewise.
21912         * config/sh/linux-atomic.asm: Likewise.
21913         * config/sh/linux-unwind.h: Likewise.
21914         * config/sh/shmedia.h: Likewise.
21915         * config/sh/sshmedia.h: Likewise.
21916         * config/sh/ushmedia.h: Likewise.
21917         * config/sparc/crtfastmath.c: Likewise.
21918         * config/sparc/linux-unwind.h: Likewise.
21919         * config/sparc/sol2-c1.asm: Likewise.
21920         * config/sparc/sol2-ci.asm: Likewise.
21921         * config/sparc/sol2-cn.asm: Likewise.
21922         * config/spu/divmodti4.c: Likewise.
21923         * config/spu/divv2df3.c: Likewise.
21924         * config/spu/float_disf.c: Likewise.
21925         * config/spu/float_unsdidf.c: Likewise.
21926         * config/spu/float_unsdisf.c: Likewise.
21927         * config/spu/float_unssidf.c: Likewise.
21928         * config/spu/mfc_multi_tag_release.c: Likewise.
21929         * config/spu/mfc_multi_tag_reserve.c: Likewise.
21930         * config/spu/mfc_tag_release.c: Likewise.
21931         * config/spu/mfc_tag_reserve.c: Likewise.
21932         * config/spu/mfc_tag_table.c: Likewise.
21933         * config/spu/multi3.c: Likewise.
21934         * config/spu/spu_internals.h: Likewise.
21935         * config/spu/spu_intrinsics.h: Likewise.
21936         * config/spu/spu_mfcio.h: Likewise.
21937         * config/spu/vec_types.h: Likewise.
21938         * config/spu/vmx2spu.h: Likewise.
21939         * config/stormy16/stormy16-lib2.c: Likewise.
21940         * config/svr4.h: Likewise.
21941         * config/sync.c: Likewise.
21942         * config/v850/lib1funcs.asm: Likewise.
21943         * config/vxlib-tls.c: Likewise.
21944         * config/vxlib.c: Likewise.
21945         * config/vxworks-dummy.h: Likewise.
21946         * config/xtensa/crti.asm: Likewise.
21947         * config/xtensa/crtn.asm: Likewise.
21948         * config/xtensa/ieee754-df.S: Likewise.
21949         * config/xtensa/ieee754-sf.S: Likewise.
21950         * config/xtensa/lib1funcs.asm: Likewise.
21951         * config/xtensa/lib2funcs.S: Likewise.
21952         * config/xtensa/linux-unwind.h: Likewise.
21953         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
21954         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
21955         * coretypes.h: Likewise.
21956         * crtstuff.c: Likewise.
21957         * defaults.h: Likewise.
21958         * dwarf2.h: Likewise.
21959         * emutls.c: Likewise.
21960         * gbl-ctors.h: Likewise.
21961         * gcov-io.h: Likewise.
21962         * ginclude/float.h: Likewise.
21963         * ginclude/iso646.h: Likewise.
21964         * ginclude/stdarg.h: Likewise.
21965         * ginclude/stdbool.h: Likewise.
21966         * ginclude/stddef.h: Likewise.
21967         * ginclude/stdfix.h: Likewise.
21968         * ginclude/stdint-gcc.h: Likewise.
21969         * ginclude/tgmath.h: Likewise.
21970         * gthr-aix.h: Likewise.
21971         * gthr-dce.h: Likewise.
21972         * gthr-gnat.c: Likewise.
21973         * gthr-gnat.h: Likewise.
21974         * gthr-lynx.h: Likewise.
21975         * gthr-mipssde.h: Likewise.
21976         * gthr-nks.h: Likewise.
21977         * gthr-posix.c: Likewise.
21978         * gthr-posix.h: Likewise.
21979         * gthr-posix95.h: Likewise.
21980         * gthr-rtems.h: Likewise.
21981         * gthr-single.h: Likewise.
21982         * gthr-solaris.h: Likewise.
21983         * gthr-tpf.h: Likewise.
21984         * gthr-vxworks.h: Likewise.
21985         * gthr-win32.h: Likewise.
21986         * gthr.h: Likewise.
21987         * libgcc2.c: Likewise.
21988         * libgcc2.h: Likewise.
21989         * libgcov.c: Likewise.
21990         * tsystem.h: Likewise.
21991         * typeclass.h: Likewise.
21992         * unwind-c.c: Likewise.
21993         * unwind-compat.h: Likewise.
21994         * unwind-dw2-fde-compat.c: Likewise.
21995         * unwind-dw2-fde-darwin.c: Likewise.
21996         * unwind-dw2-fde-glibc.c: Likewise.
21997         * unwind-dw2-fde.c: Likewise.
21998         * unwind-dw2-fde.h: Likewise.
21999         * unwind-dw2.c: Likewise.
22000         * unwind-dw2.h: Likewise.
22001         * unwind-generic.h: Likewise.
22002         * unwind-pe.h: Likewise.
22003         * unwind-sjlj.c: Likewise.
22004         * unwind.inc: Likewise.
22005         * config/arm/neon-gen.ml: Change generated copyright header to
22006         refer to version 3 of the GNU General Public License with
22007         version 3.1 of the GCC Runtime Library Exception and to point
22008         readers at the COPYING3 and COPYING3.RUNTIME files and the
22009         FSF's license web page.
22010         * config/arm/arm_neon.h: Regenerate.
22011
22012 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
22013
22014         * config/cris/cris.md: Change copyright header to refer to version
22015         3 of the GNU General Public License.
22016         * doc/install.texi2html: Change copyright header to refer to version
22017         3 of the GNU General Public License and to point readers at the
22018         COPYING3 file and the FSF's license web page.
22019         * config/vax/linux.h: Likewise.
22020
22021 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22022
22023         * config/i386/i386.md (cmpcc): New.
22024         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
22025         (sync_compare_and_swap_cc*): Delete.
22026
22027         * config/s390/s390.c (s390_compare_emitted): Remove.
22028         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
22029         s390_compare_emitted used to be handled.  Assert that modes match.
22030         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
22031         refer to sync_compare_and_swap_ccsi.
22032         * config/s390/s390.h (s390_compare_emitted): Remove.
22033         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
22034         instead of s390_compare_emitted.
22035         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
22036         instead of s390_compare_emitted.
22037         * config/s390/s390.md (cmpcc): New.
22038         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
22039         CC_REGNUM, do not pretend it's set.
22040         (sync_compare_and_swap_cc*): Delete.
22041         * config/s390/predicates.md (cc_reg_operand): New.
22042
22043         * expr.c (sync_compare_and_swap_cc): Delete.
22044         * optabs.h (sync_compare_and_swap_cc): Delete.
22045         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
22046         is being used with can_compare_p.
22047         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
22048         (find_cc_set): New.
22049         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
22050         look for a MODE_CC set instead.  Use emit_store_flag.
22051         (expand_compare_and_swap_loop): Likewise, with some additional
22052         complication to avoid a force_reg when useless.  Use
22053         emit_cmp_and_jump_insns.
22054         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
22055         * doc/md.texi (sync_compare_and_swap_cc): Merge with
22056         sync_compare_and_swap documentation.
22057
22058 2009-04-09  Jan Hubicka  <jh@suse.cz>
22059
22060         * except.c (find_prev_try): Break out from ....
22061         (duplicate_eh_regions): ... here; properly update prev_try pointers
22062         when duplication part of tree.
22063         (dump_eh_tree): Improve dumping.
22064         (verify_eh_region): New.
22065         (verify_eh_tree): Use it.
22066
22067 2009-04-06  Richard Guenther  <rguenther@suse.de>
22068
22069         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
22070         &ARRAY addresses by adjusting their types and prepending
22071         a conversion.
22072         * tree-cfg.c (verify_gimple_assign_single): Verify that
22073         addresses are correct.
22074
22075 2009-04-09  Richard Guenther  <rguenther@suse.de>
22076
22077         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
22078         indices into an array reference if possible.
22079         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22080         Fold POINTER_PLUS_EXPR statements with invariant address.
22081
22082 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
22083
22084         PR target/39634
22085         * config.gcc (powerpc64-*-linux*): Always build biarch.
22086
22087 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
22088
22089         PR c/39613
22090         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
22091         it and pedwarn if this results in an INTEGER_CST.
22092
22093 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22094
22095         * doc/install.texi: Update minimum GMP version.  Remove obsolete
22096         text in MPFR section.
22097
22098 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
22099
22100         * dwarf2out.c (class_scope_p): New static inline.
22101         (class_or_namespace_scope_p): Use it.
22102         (gen_variable_die): Use DW_TAG_member tag for static data member
22103         declarations instead of DW_TAG_variable.
22104
22105         PR middle-end/39573
22106         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
22107         variables.
22108
22109 2009-04-08  Richard Guenther  <rguenther@suse.de>
22110
22111         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
22112         valueize random data.
22113
22114 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
22115
22116         * config.gcc (aix tm_file):  Add aix-stdint.h.
22117         (aix tm clause use_gcc_stdint):  Set to wrap.
22118         * config/rs6000/aix-stdint.h:  New file.
22119
22120 2009-04-08  Richard Guenther  <rguenther@suse.de>
22121
22122         PR middle-end/36291
22123         * tree-dfa.c (add_referenced_var): Do not recurse into
22124         global initializers.
22125         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
22126         exposed variables.
22127         (fold_const_aggregate_ref): Likewise.
22128
22129 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22130
22131         * recog.c (ordered_comparison_operator): New.
22132         * gensupport.c (std_preds): Add it.
22133         * doc/md.texi (Machine-Independent Predicates): Document it.
22134
22135 2009-04-08  Jan Hubicka  <jh@suse.cz>
22136
22137         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
22138         * function.h (rtl_eh): Remove exception_handler_label_map.
22139         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
22140         remove_exception_handler_label, for_each_eh_label_1): Remove.
22141         (rtl_remove_unreachable_regions): Remove.
22142         (convert_from_eh_region_ranges): Do not remove unreachable regions.
22143         (find_exception_handler_labels): Don't build the hashtable.
22144         (maybe_remove_eh_handler): Remove.
22145         (for_each_eh_label): Rewrite to walk the tree.
22146         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
22147         * except.h (maybe_remove_eh_handler): Remove.
22148         * passes.c (init_optimization_passes): Schedule second EH cleanup
22149         before out-of-ssa.
22150         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
22151         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
22152
22153 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22154
22155         * genoutput.c (validate_optab_operands): New.
22156         (gen_insn, gen_expand): Call it.
22157
22158         * genflags.c (gen_insn): Detect misused iterators.
22159         (main): Pass line_no to gen_insn, exit with status 1 on error.
22160
22161         * genextract.c (line_no): Make global.
22162         (VEC_safe_set_locstr): Change assertion to error message.
22163         (main): Exit with status 1 on error.
22164
22165 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
22166
22167         PR c/39614
22168         PR c/39673
22169         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
22170         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
22171         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
22172         * c-convert.c (convert): Do not call fold on results of conversion
22173         functions when the result is a C_MAYBE_CONST_EXPR.
22174         * c-parser.c (c_parser_postfix_expression): Do not fold condition
22175         of __builtin_choose_expr.
22176         * c-typeck.c (remove_c_maybe_const_expr): New.
22177         (build_unary_op, build_conditional_expr, build_compound_expr,
22178         build_binary_op, c_objc_common_truthvalue_conversion): Call
22179         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
22180         integer operands.
22181
22182 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
22183
22184         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
22185         CODE to produce a new one. Add a prototype to use fold_convert_const
22186
22187 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
22188
22189         PR bootstrap/39660
22190         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
22191         mix declarations and code.
22192
22193 2009-04-08  Ben Elliston  <bje@au.ibm.com>
22194
22195         * gcc.c: Replace `CC' with `GCC' throughout.
22196
22197 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
22198
22199         * doc/invoke.texi: Document Atom support.
22200
22201 2009-04-07  Jason Merrill  <jason@redhat.com>
22202
22203         PR c++/25185
22204         * c-common.h, c-common.c: Add flag_pretty_templates.
22205         * c-opts.c (c_common_handle_option): Set it.
22206         * c.opt: Add -fno-pretty-templates.
22207         * doc/invoke.texi (C++ Dialect Options): Likewise.
22208
22209 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
22210
22211         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
22212         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
22213         (ia64_expand_builtin): Likewise.
22214
22215 2009-04-07  Martin Jambor  <mjambor@suse.cz>
22216
22217         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
22218         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
22219         ADDR_EXPRS are include too.
22220
22221 2009-04-07  Richard Guenther  <rguenther@suse.de>
22222
22223         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
22224         decls are only used if passes as parameters or if they are
22225         local statics and the call is not to a builtin.
22226         (call_may_clobber_ref_p_1): Likewise.
22227
22228 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22229
22230         * expr.c (do_store_flag): Remove last argument.  Simplify code
22231         to avoid duplication of tests already done by can_compare_p.
22232         (expand_expr_real_1): Adjust caller.
22233
22234 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22235
22236         * optabs.c (can_compare_p): Test the predicate of a
22237         cbranch and cstore pattern.
22238
22239 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22240
22241         * expr.c (convert_move): Use emit_store_flag instead of
22242         "emulating" it.
22243
22244 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22245
22246         * config/i386/i386.c (ix86_compare_emitted): Remove.
22247         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
22248         ix86_compare_op0 like ix86_compare_emitted used to be handled.
22249         * config/i386/i386.h (ix86_compare_emitted): Remove.
22250         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
22251         instead of ix86_compare_emitted.
22252         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
22253
22254 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
22255
22256         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
22257         Add t-sysroot-suffix to tmake_file.
22258         * config/print-sysroot-suffix.sh: New file.
22259         * config/t-sysroot-suffix: New file.
22260
22261 2009-04-07  Ben Elliston  <bje@au.ibm.com>
22262
22263         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
22264         as the latter produces a warning when the target does not support
22265         infinity.
22266
22267 2009-04-07  Ben Elliston  <bje@au.ibm.com>
22268
22269         * dfp.c: Replace type punning assignments with memcpy throughout.
22270         * Makefile.in (dfp.o-warn): Remove.
22271
22272 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
22273
22274         PR target/39634
22275         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
22276         Include soft-fp/t-softfp after rs6000/t-linux64.
22277
22278 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22279
22280         * stor-layout.c (set_sizetype): Use the full precision of their
22281         machine mode for bitsize types.
22282
22283 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22284
22285         * config/i386/i386.md: Revert 2 accidental checkins.
22286
22287 2009-04-06  Joey Ye  <joey.ye@intel.com>
22288             Xuepeng Guo  <xuepeng.guo@intel.com>
22289             H.J. Lu  <hongjiu.lu@intel.com>
22290
22291         Atom pipeline model, tuning and insn selection.
22292         * config.gcc (atom): Add atom config options and target.
22293
22294         * config/i386/atom.md: New.
22295
22296         * config/i386/i386.c (atom_cost): New cost.
22297         (m_ATOM): New macro flag.
22298         (initial_ix86_tune_features): Set m_ATOM.
22299         (x86_accumulate_outgoing_args): Likewise.
22300         (x86_arch_always_fancy_math_387): Likewise.
22301         (processor_target): Add Atom cost.
22302         (cpu_names): Add Atom cpu name.
22303         (override_options): Set Atom ISA.
22304         (ix86_issue_rate): New case PROCESSOR_ATOM.
22305         (ix86_adjust_cost): Likewise.
22306
22307         * config/i386/i386.h (TARGET_ATOM): New target macro.
22308         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
22309         (TARGET_OPT_AGU): New target option.
22310         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
22311         (processor_type): Add PROCESSOR_ATOM.
22312
22313         * config/i386/i386.md (cpu): Add new value "atom".
22314         (use_carry, movu): New attr.
22315         (atom.md): Include atom.md.
22316         (adddi3_carry_rex64): Set attr "use_carry".
22317         (addqi3_carry): Likewise.
22318         (addhi3_carry): Likewise.
22319         (addsi3_carry): Likewise.
22320         (*addsi3_carry_zext): Likewise.
22321         (subdi3_carry_rex64): Likewise.
22322         (subqi3_carry): Likewise.
22323         (subhi3_carry): Likewise.
22324         (subsi3_carry): Likewise.
22325         (x86_movdicc_0_m1_rex64): Likewise.
22326         (*x86_movdicc_0_m1_se): Likewise.
22327         (x86_movsicc_0_m1): Likewise.
22328         (*x86_movsicc_0_m1_se): Likewise.
22329         (*adddi_1_rex64): Emit add insn as much as possible.
22330         (*addsi_1): Likewise.
22331         (return_internal): Set atom_unit.
22332         (return_internal_long): Likewise.
22333         (return_pop_internal): Likewise.
22334         (*rcpsf2_sse): Set atom_sse_attr attr.
22335         (*qrt<mode>2_sse): Likewise.
22336         (*prefetch_sse): Likewise.
22337
22338         * config/i386/i386-c.c (ix86_target_macros_internal): New case
22339         PROCESSOR_ATOM.
22340         (ix86_target_macros_internal): Likewise.
22341
22342         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
22343         (*prefetch_sse_rex): Likewise.
22344         (sse_rcpv4sf2): Likewise.
22345         (sse_vmrcpv4sf2): Likewise.
22346         (sse_sqrtv4sf2): Likewise.
22347         (<sse>_vmsqrt<mode>2): Likewise.
22348         (sse_ldmxcsr): Likewise.
22349         (sse_stmxcsr): Likewise.
22350         (*sse_sfence): Likewise.
22351         (sse2_clflush): Likewise.
22352         (*sse2_mfence): Likewise.
22353         (*sse2_lfence): Likewise.
22354         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
22355         (<sse>_movup<ssemodesuffixf2c>): Likewise.
22356         (avx_movdqu<avxmodesuffix>): Likewise.
22357         (avx_lddqu<avxmodesuffix>): Likewise.
22358         (sse2_movntv2di): Change attr "type" to "ssemov".
22359         (sse2_movntsi): Likewise.
22360         (rsqrtv8sf2): Change attr "type" to "sseadd".
22361         (sse3_addsubv2df3): Set attr "atom_unit".
22362         (sse3_h<plusminus_insn>v4sf3): Likewise.
22363         (*sse2_pmaddwd): Likewise.
22364         (*vec_extractv2di_1_rex64): Likewise.
22365         (*vec_extractv2di_1_avx): Likewise.
22366         (sse2_psadbw): Likewise.
22367         (ssse3_phaddwv8hi3): Likewise.
22368         (ssse3_phaddwv4hi3): Likewise.
22369         (ssse3_phadddv4si3): Likewise.
22370         (ssse3_phadddv2si3): Likewise.
22371         (ssse3_phaddswv8hi3): Likewise.
22372         (ssse3_phaddswv4hi3): Likewise.
22373         (ssse3_phsubwv8hi3): Likewise.
22374         (ssse3_phsubwv4hi3): Likewise.
22375         (ssse3_phsubdv4si3): Likewise.
22376         (ssse3_phsubdv2si3): Likewise.
22377         (ssse3_phsubswv8hi3): Likewise.
22378         (ssse3_phsubswv4hi3): Likewise.
22379         (ssse3_pmaddubsw128): Likewise.
22380         (sse3_pmaddubsw: Likewise.
22381         (ssse3_palignrti): Likewise.
22382         (ssse3_palignrdi): Likewise.
22383
22384 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
22385
22386         * doc/install.texi (Specific): Fix two cross-references to MinGW.
22387
22388 2009-04-06  Richard Guenther  <rguenther@suse.de>
22389
22390         PR tree-optimization/28868
22391         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
22392         of which PHI results we inserted.
22393         (insert_into_preds_of_block): Record inserted PHIs.
22394         (eliminate): Eliminate redundant PHI nodes.
22395         (init_pre): Init inserted_phi_names.
22396
22397 2009-04-06  Richard Guenther  <rguenther@suse.de>
22398
22399         PR tree-optimization/39643
22400         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
22401         IMAGPART_EXPRs of complex constants.
22402         (execute_fold_all_builtins): If we folded a call queue
22403         TODO_update_address_taken.
22404
22405 2009-04-06  Jan Hubicka  <jh@suse.cz>
22406
22407         PR middle-end/39659
22408         * except.c (remove_unreachable_regions): Propagate may_contain_throw
22409         flag.
22410
22411 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
22412
22413         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
22414         delay slot.
22415         (ic_invalidate_array): Likewise.
22416
22417 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
22418
22419         * calls.c (emit_library_call_value_1): Fix a problem with parameter
22420         alignment for library calls.
22421
22422 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
22423
22424         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
22425         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
22426         * config/i386/mingw-stdint.h:  New file.
22427
22428 2009-04-05  Richard Guenther  <rguenther@suse.de>
22429
22430         PR tree-optimization/39648
22431         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
22432         our &A vs. &A[0] IL deficiencies.
22433
22434 2009-04-04  Jan Hubicka  <jh@suse.cz>
22435
22436         * except.c (sjlj_find_directly_reachable_regions): Be ready for
22437         removed toplevel regions.
22438         (sjlj_mark_call_sites): Likewise.
22439
22440 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
22441
22442         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
22443         (cygwin tm clause use_gcc_stdint):  Set to wrap.
22444         * config/i386/cygwin-stdint.h:  New file.
22445
22446 2009-04-04  Richard Guenther  <rguenther@suse.de>
22447
22448         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
22449         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
22450         single-argument PHIs if we are in loop-closed SSA form.
22451         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
22452         for the pre-condition.
22453         (slpeel_tree_peel_loop_to_edge): Likewise.
22454         (vect_build_loop_niters): Take an optional sequence to append stmts.
22455         (vect_generate_tmps_on_preheader): Likewise.
22456         (vect_do_peeling_for_loop_bound): Take extra guards for the
22457         pre-condition.
22458         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
22459         the cost model check.
22460         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
22461         guards if we are going to peel.  Do not apply versioning in that case.
22462         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
22463         (vect_do_peeling_for_loop_bound): Likewise.
22464         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
22465         loop bound only record extra pre-conditions, do not apply loop
22466         versioning.
22467
22468 2009-04-04  Richard Guenther  <rguenther@suse.de>
22469
22470         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
22471         renaming code.
22472
22473 2009-04-04  Jan Hubicka  <jh@suse.cz>
22474
22475         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
22476         last_basic_block for size of bb->index indexed array.
22477         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
22478         compute_out, link_btr_uses, build_btr_def_use_webs,
22479         build_btr_def_use_webs, migrate_btr_defs): Likewise.
22480
22481 2009-04-04  Jan Hubicka  <jh@suse.cz>
22482
22483         * except.c (remove_eh_handler_and_replace): Break out from ...
22484         (remove_eh_handler): ... here.
22485         (bring_to_root): New function.
22486         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
22487         handled ones, bring others to root of tree.
22488
22489 2009-04-04  Jan Hubicka  <jh@suse.cz>
22490
22491         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
22492         (all_phis_safe_to_merge): New function.
22493         (update_info): New structure.
22494         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
22495         (cleanup_empty_eh): Update SSA if possible.
22496
22497 2009-04-04  Richard Guenther  <rguenther@suse.de>
22498
22499         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
22500         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
22501         (append_vuse): Likewise.
22502
22503 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
22504
22505         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
22506         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
22507         instead of REG_UNSAVED for DW_CFA_undefined.
22508         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
22509         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
22510         outermost frame.
22511
22512 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
22513
22514         PR target/39501
22515         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
22516
22517 2009-04-04  Richard Guenther  <rguenther@suse.de>
22518
22519         PR tree-optimization/8781
22520         PR tree-optimization/37892
22521         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
22522         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
22523         (valueize_refs): Call it for *& valueizations.
22524         (shared_reference_ops_from_ref): Rename to ...
22525         (valueize_shared_reference_ops_from_ref): ... this and valueize.
22526         (shared_reference_ops_from_call): Rename to ...
22527         (valueize_shared_reference_ops_from_call): ... this and valueize.
22528         (vn_reference_lookup): Update.
22529         (visit_reference_op_call): Likewise.
22530         * tree-ssa-pre.c (phi_translate_1): Fold *&.
22531         (eliminate): Value-replace the call address in call statements.
22532
22533 2009-04-04  Richard Guenther  <rguenther@suse.de>
22534
22535         PR tree-optimization/39636
22536         * tree-ssa-forwprop.c
22537         (forward_propagate_addr_into_variable_array_index): Check for
22538         GIMPLE_ASSIGN before accessing the rhs code.
22539
22540 2009-04-03  Jason Merrill  <jason@redhat.com>
22541
22542         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
22543
22544 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
22545
22546         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
22547         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
22548         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
22549         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
22550         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
22551         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
22552         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
22553         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
22554         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
22555         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
22556         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
22557         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
22558         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
22559         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
22560         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
22561         Use fr_reg_or_fp01_operand instead of fr_register_operand
22562
22563         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
22564         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
22565         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
22566
22567 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
22568
22569         PR rtl-optimization/39607
22570         PR rtl-optimization/39631
22571
22572         Revert:
22573
22574         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22575         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
22576         instead of DF_LR_OUT.
22577         * ira-lives.c (process_bb_node_lives): Ditto.
22578         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
22579         instead of DF_LR_{OUT,IN}.
22580         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
22581         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
22582
22583 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
22584
22585         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
22586         (execute_lower_omp): Always run but take the short way out if -fopenmp
22587         is not given.
22588         (gate_lower_omp): Remove, forcing the pass manager to always run the
22589         pass and always set PROP_gimple_lomp.
22590         (pass_lower_omp): Remove gate function.
22591         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
22592         PROP_trees.  Instead, require it.
22593         * ipa-cp.c (pass_ipa_cp): Likewise.
22594         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
22595         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
22596         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
22597         and PROP_gimple_leh.
22598
22599 2009-04-03  Richard Guenther  <rguenther@suse.de>
22600
22601         PR middle-end/13146
22602         PR tree-optimization/23940
22603         PR tree-optimization/33237
22604         PR middle-end/33974
22605         PR middle-end/34093
22606         PR tree-optimization/36201
22607         PR tree-optimization/36230
22608         PR tree-optimization/38049
22609         PR tree-optimization/38207
22610         PR tree-optimization/38230
22611         PR tree-optimization/38301
22612         PR tree-optimization/38585
22613         PR middle-end/38895
22614         PR tree-optimization/38985
22615         PR tree-optimization/39299
22616         * tree-ssa-structalias.h: Remove.
22617         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
22618         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
22619         (struct vuse_element_d): Remove.
22620         (struct vuse_vec_d): Likewise.
22621         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
22622         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
22623         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
22624         VUSE_ELEMENT_VAR): Likewise.
22625         (struct voptype_d): Likewise.
22626         (NUM_VOP_FREE_BUCKETS): Likewise.
22627         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
22628         (struct stmt_operands_d): Remove.
22629         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
22630         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
22631         VDEF_NUM, VDEF_VECT): Likewise.
22632         (copy_virtual_operands): Remove.
22633         (operand_build_cmp): Likewise.
22634         (create_ssa_artificial_load_stmt): Likewise.
22635         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
22636         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
22637         vuse_index and mayuse_index members.  Pack and move done and iter_type
22638         members to the front.
22639         (SSA_OP_VMAYUSE): Remove.
22640         (SSA_OP_VIRTUAL_USES): Adjust.
22641         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
22642         (unlink_stmt_vdef): Declare.
22643         (add_to_addressable_set): Remove.
22644         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
22645         (vrp_visit_stmt): Likewise.
22646         * doc/tree-ssa.texi (Alias analysis): Update.
22647         * doc/invoke.texi (max-aliased-vops): Remove docs.
22648         (avg-aliased-vops): Likewise.
22649         * tree-into-ssa.c (syms_to_rename): Remove.
22650         (need_to_update_vops_p): Likewise.
22651         (need_to_initialize_update_ssa_p): Rename to ...
22652         (update_ssa_initialized_fn): ... this.  Track function we are
22653         initialized for.
22654         (symbol_marked_for_renaming): Simplify.
22655         (add_new_name_mapping): Do not set need_to_update_vops_p.
22656         (dump_currdefs): Use SYMS_TO_RENAME.
22657         (rewrite_update_stmt): Always walk all uses/defs.
22658         (dump_update_ssa): Adjust.
22659         (init_update_ssa): Take function argument.  Track what we are
22660         initialized for.
22661         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
22662         (create_new_def_for): Initialize for cfun, assert we are initialized
22663         for cfun.
22664         (mark_sym_for_renaming): Simplify.
22665         (mark_set_for_renaming): Do not initialize update-ssa.
22666         (need_ssa_update_p): Simplify.  Take function argument.
22667         (name_mappings_registered_p): Assert we ask for the correct function.
22668         (name_registered_for_update_p): Likewise.
22669         (ssa_names_to_replace): Likewise.
22670         (release_ssa_name_after_update_ssa): Likewise.
22671         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
22672         (dump_decl_set): Do not print a newline.
22673         (debug_decl_set): Do it here.
22674         (dump_update_ssa): And here.
22675         * tree-ssa-loop-im.c (move_computations): Adjust.
22676         (movement_possibility): Likewise.
22677         (determine_max_movement): Likewise.
22678         (gather_mem_refs_stmt): Likewise.
22679         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
22680         or NAME_MEMORY_TAG.
22681         * tree-complex.c (update_all_vops): Remove.
22682         (expand_complex_move): Adjust.
22683         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
22684         Simplify test for memory referencing statement.  Exclude
22685         non-invariant ADDR_EXPRs.
22686         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
22687         * tree-loop-distribution.c (generate_memset_zero): Adjust.
22688         (rdg_flag_uses): Likewise.
22689         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
22690         related code.
22691         (tree_optimize_tail_calls_1): Also split the
22692         edge from the entry block if we have degenerate PHI nodes in
22693         the first basic block.
22694         * tree.c (init_ttree): Remove memory-tag related code.
22695         (tree_code_size): Likewise.
22696         (tree_node_structure): Likewise.
22697         (build7_stat): Re-write to be build6_stat.
22698         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
22699         (SSA_VAR_P): Adjust.
22700         (struct tree_memory_tag): Remove.
22701         (struct tree_memory_partition_tag): Likewise.
22702         (union tree_node): Adjust.
22703         (build7): Re-write to be build6.
22704         * tree-pass.h (pass_reset_cc_flags): Remove.
22705         (TODO_update_address_taken): New flag.
22706         (pass_simple_dse): Remove.
22707         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
22708         * params.h (MAX_ALIASED_VOPS): Remove.
22709         (AVG_ALIASED_VOPS): Likewise.
22710         * omp-low.c (expand_omp_taskreg): Update SSA form.
22711         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
22712         aliases the lhs in a copy stmt.
22713         * tree-ssa-dse.c (struct address_walk_data): Remove.
22714         (memory_ssa_name_same): Likewise.
22715         (memory_address_same): Likewise.
22716         (get_kill_of_stmt_lhs): Likewise.
22717         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
22718         unused stores.  Look through PHI nodes into post-dominated regions.
22719         (dse_optimize_stmt): Simplify.  Properly remove stores.
22720         (tree_ssa_dse): Compute dominators.
22721         (execute_simple_dse): Remove.
22722         (pass_simple_dse): Likewise.
22723         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
22724         gimple_loaded_syms and gimple_stored_syms computation.
22725         * toplev.c (dump_memory_report): Dump alias and pta stats.
22726         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
22727         (vn_reference_eq): Likewise.
22728         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
22729         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
22730         valueize_vuses): Remove.
22731         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
22732         (get_def_ref_stmt_vuse): ... this.
22733         (vn_reference_lookup_2): New function.
22734         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
22735         walking equivalent vuses.  Simplify.
22736         (vn_reference_lookup): Likewise.
22737         (vn_reference_insert): Likewise.
22738         (vn_reference_insert_pieces): Likewise.
22739         (visit_reference_op_call): Simplify.
22740         (visit_reference_op_load): Likewise.
22741         (visit_reference_op_store): Likewise.
22742         (init_scc_vn): Remove shared_lookup_vuses initialization.
22743         (free_scc_vn): Remove shared_lookup_vuses freeing.
22744         (sort_vuses, sort_vuses_heap): Remove.
22745         (get_ref_from_reference_ops): Export.
22746         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
22747         vector with single vuse pointer.
22748         (vn_reference_lookup_pieces, vn_reference_lookup,
22749         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
22750         (shared_vuses_from_stmt): Remove.
22751         (get_ref_from_reference_ops): Declare.
22752         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
22753         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
22754         memory-tag related code.
22755         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
22756         (likely_value): Add comment, skip static-chain of call statements.
22757         (surely_varying_stmt_p): Adjust.
22758         (gimplify_and_update_call_from_tree): Likewise.
22759         (execute_fold_all_builtins): Do not rebuild alias info.
22760         (gimplify_and_update_call_from_tree): Properly update VOPs.
22761         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
22762         (copy_ref_info): Remove memory-tag related code.
22763         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
22764         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
22765         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
22766         computation.
22767         * tree-ssa-dom.c (gimple_p): Remove typedef.
22768         (eliminate_redundant_computations): Adjust.
22769         (record_equivalences_from_stmt): Likewise.
22770         (avail_expr_hash): Likewise.
22771         (avail_expr_eq): Likewise.
22772         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
22773         (stmt_makes_single_load): Likewise.
22774         (stmt_makes_single_store): Likewise.
22775         * tree-ssa-alias.c: Rewrite completely.
22776         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
22777         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
22778         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
22779         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
22780         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
22781         Remove public functions.
22782         (pass_reset_cc_flags): Remove.
22783         (pass_build_alias): Move ...
22784         * tree-ssa-structalias.c (pass_build_alias): ... here.
22785         * tree-ssa-alias.c (may_be_aliased): Move ...
22786         * tree-flow-inline.h (may_be_aliased): ... here.
22787         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
22788         count_uses_and_derefs): Move ...
22789         * gimple.c: ... here.
22790         * gimple.h (count_uses_and_derefs): Declare.
22791         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
22792         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
22793         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
22794         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
22795         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
22796         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
22797         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
22798         New functions.
22799         * tree-dfa.c (refs_may_alias_p): Move ...
22800         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
22801         * tree-ssa-alias.h: New file.
22802         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
22803         (statement_sink_location): Likewise.
22804         * opts.c (decode_options): Do not adjust max-aliased-vops or
22805         avg-aliased-vops values.
22806         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
22807         (TV_CALL_CLOBBER): Likewise.
22808         (TV_FLOW_SENSITIVE): Likewise.
22809         (TV_FLOW_INSENSITIVE): Likewise.
22810         (TV_MEMORY_PARTITIONING): Likewise.
22811         (TV_ALIAS_STMT_WALK): New timevar.
22812         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
22813         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
22814         (get_address_description): Remove memory-tag related code.
22815         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
22816         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
22817         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
22818         and immediate uses in statements.  Document.
22819         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
22820         (dump_symbols): Remove.
22821         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
22822         * alias.c (get_deref_alias_set): New function split out from ...
22823         (get_alias_set): ... here.
22824         * alias.h (get_deref_alias_set): Declare.
22825         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
22826         type parameter.  Remove restrict pointer handling.  Create a
22827         ref-all pointer in case type-based alias sets do not conflict.
22828         (vect_analyze_data_refs): Remove SMT related code.
22829         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
22830         (vectorizable_load): Likewise.
22831         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
22832         (DR_SYMBOL_TAG, DR_VOPS): Remove.
22833         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
22834         Ignore vops and SMTs.
22835         (dr_analyze_alias): Likewise..
22836         (free_data_ref): Likewise.
22837         (create_data_ref): Likewise.
22838         (analyze_all_data_dependences): Likewise.
22839         (get_references_in_stmt): Adjust.
22840         * tree-flow-inline.h (gimple_aliases_computed_p,
22841         gimple_addressable_vars, gimple_call_clobbered_vars,
22842         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
22843         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
22844         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
22845         gimple_mem_ref_stats): Remove.
22846         (gimple_vop): New function.
22847         (op_iter_next_use): Remove vuses and mayuses cases.
22848         (op_iter_next_def): Remove vdefs case.
22849         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
22850         (clear_and_done_ssa_iter): Do not set removed fields.
22851         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
22852         Assert we are not iterating over vuses or vdefs if not also
22853         iterating over uses or defs.
22854         (op_iter_init_use): Likewise.
22855         (op_iter_init_def): Likewise.
22856         (op_iter_next_vdef): Remove.
22857         (op_iter_next_mustdef): Likewise.
22858         (op_iter_init_vdef): Likewise.
22859         (compare_ssa_operands_equal): Likewise.
22860         (link_use_stmts_after): Handle vuse operand.
22861         (is_call_used): Use is_call_clobbered.
22862         (is_call_clobbered): Global variables are always call clobbered,
22863         query the call-clobbers bitmap.
22864         (mark_call_clobbered): Ignore global variables.
22865         (clear_call_clobbered): Likewise.
22866         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
22867         virtual operands sanity check.
22868         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
22869         Remove.
22870         (TARGET_MEM_REF): Remove TMR_TAG operand.
22871         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
22872         Remove call-clobber related code.
22873         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
22874         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
22875         partitions or escape reason.
22876         (get_single_def_stmt, get_single_def_stmt_from_phi,
22877         get_single_def_stmt_with_phi): Remove.
22878         (dump_referenced_vars): Tidy.
22879         (get_ref_base_and_extent): Allow bare decls.
22880         (collect_dfa_stats): Adjust.
22881         * graphite.c (rename_variables_in_stmt): Adjust.
22882         (graphite_copy_stmts_from_block): Likewise.
22883         (translate_clast): Likewise.
22884         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
22885         (EXPR_DIES): New.
22886         (translate_vuse_through_block): Use the oracle.
22887         (phi_translate_1): Adjust.
22888         (value_dies_in_block_x): Use the oracle.  Cache the outcome
22889         in EXPR_DIES.
22890         (valid_in_sets): Check if the VUSE for
22891         a REFERENCE is available.
22892         (eliminate): Do not remove stmts during elimination,
22893         instead queue and remove them afterwards.
22894         (do_pre): Do not rebuild alias info.
22895         (pass_pre): Run TODO_rebuild_alias before PRE.
22896         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
22897         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
22898         (mark_all_v_defs_stmt): Remove.
22899         (mark_all_v_defs_seq): Adjust.
22900         (sra_replace): Likewise.
22901         (scalarize_use): Likewise.
22902         (scalarize_copy): Likewise.
22903         (scalarize_init): Likewise.
22904         (scalarize_ldst): Likewise.
22905         (todoflags): Remove.
22906         (tree_sra): Do not rebuild alias info.
22907         (tree_sra_early): Adjust.
22908         (pass_sra): Run TODO_update_address_taken before SRA.
22909         * tree-predcom.c (set_alias_info): Remove.
22910         (prepare_initializers_chain): Do not call it.
22911         (mark_virtual_ops_for_renaming): Adjust.
22912         (mark_virtual_ops_for_renaming_list): Remove.
22913         (initialize_root_vars): Adjust.
22914         (initialize_root_vars_lm): Likewise.
22915         (prepare_initializers_chain): Likewise.
22916         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
22917         (may_propagate_copy_into_stmt): Likewise.
22918         (merge_alias_info): Do nothing for now.
22919         (propagate_tree_value_into_stmt): Adjust.
22920         (stmt_may_generate_copy): Likewise.
22921         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
22922         not mark symbols for renaming.
22923         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
22924         with the same statement, make sure to update the new pointed-to one.
22925         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
22926         call statements, do not mark symbols for renaming.
22927         (mark_operand_necessary): Dump something.
22928         (ref_may_be_aliased): New function.
22929         (mark_aliased_reaching_defs_necessary_1): New helper function.
22930         (mark_aliased_reaching_defs_necessary): Likewise.
22931         (mark_all_reaching_defs_necessary_1): Likewise.
22932         (mark_all_reaching_defs_necessary): Likewise.
22933         (propagate_necessity): Do not process virtual PHIs.  For
22934         non-aliased loads mark all reaching definitions as necessary.
22935         For aliased loads and stores mark the immediate dominating
22936         aliased clobbers as necessary.
22937         (visited): New global static.
22938         (perform_tree_ssa_dce): Free visited bitmap after propagating
22939         necessity.
22940         (remove_dead_phis): Perform simple dead virtual PHI removal.
22941         (remove_dead_stmt): Properly unlink virtual operands when
22942         removing stores.
22943         (eliminate_unnecessary_stmts): Schedule PHI removal after
22944         stmt removal.
22945         * tree-ssa-ter.c (is_replaceable_p): Adjust.
22946         (process_replaceable): Likewise.
22947         (find_replaceable_in_bb): Likewise.
22948         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
22949         based on the single gimple vop.
22950         (verify_flow_insensitive_alias_info): Remove.
22951         (verify_flow_sensitive_alias_info): Likewise.
22952         (verify_call_clobbering): Likewise.
22953         (verify_memory_partitions): Likewise.
22954         (verify_alias_info): Likewise.
22955         (verify_ssa): Adjust..
22956         (execute_update_addresses_taken): Export.  Update SSA
22957         manually.  Optimize only when optimizing.  Use a local bitmap.
22958         (pass_update_address_taken): Remove TODO_update_ssa, add
22959         TODO_dump_func.
22960         (pass_update_address_taken): Just use TODO_update_address_taken.
22961         (init_tree_ssa): Do not initialize addressable_vars.
22962         (verify_ssa): Verify new VUSE / VDEF properties.
22963         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
22964         Do not call verify_alias_info.
22965         (delete_tree_ssa): Clear the VUSE, VDEF operands.
22966         Do not free the loaded and stored syms bitmaps.  Reset the escaped
22967         and callused solutions.  Do not free addressable_vars.
22968         Remove memory-tag related code.
22969         (warn_uninitialized_var): Aliases are always available.
22970         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
22971         * lambda-code.c (can_put_in_inner_loop): Adjust.
22972         (can_put_after_inner_loop): Likewise.
22973         (perfect_nestify): Likewise.
22974         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
22975         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
22976         (vectorizable_conversion): Do not mark symbols for renaming.
22977         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
22978         (expand_call_inline): Unlink the calls virtual operands before
22979         replacing it.
22980         (tree_function_versioning): Do not call update_ssa if we are not
22981         updating clones.  Simplify.
22982         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
22983         (propagate_with_phi): Likewise..
22984         * tree-outof-ssa.c (create_temp): Remove memory tag and call
22985         clobber code.  Assert we are not aliased or global.
22986         * tree-flow.h: Include tree-ssa-alias.h
22987         (enum escape_type): Remove.
22988         (struct mem_sym_stats_d): Likewise.
22989         (struct mem_ref_stats_d): Likewise.
22990         (struct gimple_df): Add vop member.  Remove global_var,
22991         call_clobbered_vars, call_used_vars, addressable_vars,
22992         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
22993         escaped and callused members.
22994         (struct ptr_info_def): Remove all members, add points-to solution
22995         member pt.
22996         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
22997         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
22998         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
22999         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23000         (tree-ssa-alias.o): Likewise.
23001         (toplev.o): Add tree-ssa-alias.h
23002         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23003         * gimple.c (gimple_set_bb): Fix off-by-one error.
23004         (is_gimple_reg): Do not handle memory tags.
23005         (gimple_copy): Also copy virtual operands.
23006         Delay updating the statement.  Do not reset loaded and stored syms.
23007         (gimple_set_stored_syms): Remove.
23008         (gimple_set_loaded_syms): Likewise.
23009         (gimple_call_copy_skip_args): Copy the virtual operands
23010         and mark the new statement modified.
23011         * tree-ssa-structalias.c (may_alias_p): Remove.
23012         (set_uids_in_ptset): Take the alias set to prune with as
23013         parameter.  Fold in the alias test of may_alias_p.
23014         (compute_points_to_sets): Compute whether a ptr is dereferenced
23015         in a local sbitmap.
23016         (process_constraint): Deal with &ANYTHING on the lhs, reject all
23017         other ADDRESSOF constraints on the lhs.
23018         (get_constraint_for_component_ref): Assert that we don't get
23019         ADDRESSOF constraints from the base of the reference.
23020         Properly generate UNKNOWN_OFFSET for DEREF if needed.
23021         (struct variable_info): Remove collapsed_to member.
23022         (get_varinfo_fc): Remove.
23023         (new_var_info): Do not set collapsed_to.
23024         (dump_constraint): Do not follow cycles.
23025         (dump_constraint_graph): Likewise.
23026         (build_pred_graph): Likewise.
23027         (build_succ_graph): Likewise.
23028         (rewrite_constraints): Likewise.
23029         (do_simple_structure_copy): Remove.
23030         (do_rhs_deref_structure_copy): Remove.
23031         (do_lhs_deref_structure_copy): Remove.
23032         (collapse_rest_of_var): Remove.
23033         (do_structure_copy): Re-implement.
23034         (pta_stats): New global variable.
23035         (dump_pta_stats): New function.
23036         (struct constraint_expr): Make offset signed.
23037         (UNKNOWN_OFFSET): Define special value.
23038         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
23039         (solution_set_expand): New helper function split out from ...
23040         (do_sd_constraint): ... here.
23041         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
23042         (do_ds_constraint): Likewise.
23043         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
23044         and CALLUSED = *CALLUSED.
23045         (set_union_with_increment): Make inc argument signed.
23046         (type_safe): Remove.
23047         (get_constraint_for_ptr_offset): Handle unknown and negative
23048         constant offsets.
23049         (first_vi_for_offset): Handle offsets before start.  Bail
23050         out early for offsets beyond the variable extent.
23051         (first_or_preceding_vi_for_offset): New function.
23052         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
23053         Together with ESCAPED = *ESCAPED this properly computes reachability.
23054         (find_what_var_points_to): New function.
23055         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
23056         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
23057         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
23058         pt_solutions_intersect): New functions.
23059         (compute_call_used_vars): Remove.
23060         (compute_may_aliases): New main entry into PTA computation.
23061         * gimple.h (gimple_p): New typedef.
23062         (struct gimple_statement_base): Remove references_memory_p.
23063         (struct gimple_statement_with_memory_ops_base): Remove
23064         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
23065         members.
23066         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
23067         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
23068         gimple_set_references_memory): Remove.
23069         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
23070         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
23071         New functions.
23072         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
23073         (verify_expr): Allow RESULT_DECL.
23074         (gimple_duplicate_bb): Do not copy virtual operands.
23075         (gimple_duplicate_sese_region): Adjust.
23076         (gimple_duplicate_sese_tail): Likewise.
23077         (mark_virtual_ops_in_region): Remove.
23078         (move_sese_region_to_fn): Do not call it.
23079         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
23080         and pass_simple_dse.
23081         (execute_function_todo): Handle TODO_update_address_taken,
23082         call execute_update_addresses_taken for TODO_rebuild_alias.
23083         (execute_todo): Adjust.
23084         (execute_one_pass): Init dump files early.
23085         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
23086         call-clobbered.
23087         (create_general_new_stmt): Clear vops.
23088         * tree-ssa-reassoc.c (get_rank): Adjust.
23089         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
23090         symbols for renaming.
23091         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
23092         (PARAM_AVG_ALIASED_VOPS): Likewise.
23093         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
23094         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
23095         * tree-ssa-operands.c: Simplify for new virtual operand representation.
23096         (operand_build_cmp, copy_virtual_operands,
23097         create_ssa_artificial_load_stmt, add_to_addressable_set,
23098         gimple_add_to_addresses_taken): Remove public functions.
23099         (unlink_stmt_vdef): New function.
23100
23101 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23102
23103         * config.gcc (powerpc-*-linux*): Merge variants.
23104
23105 2009-04-02  Chao-ying Fu  <fu@mips.com>
23106             James Grosbach  <james.grosbach@microchip.com>
23107
23108         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
23109         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
23110         cop0_sp_offset.
23111         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
23112         keep_interrupts_masked_p, use_debug_exception_return_p.
23113         (mips_attribute_table): Add interrupt, use_shadow_register_set,
23114         keep_interrupts_masked, use_debug_exception_return.
23115         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
23116         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
23117         New functions.
23118         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
23119         (mips_print_operand): Process COP0 registers to print $0 .. $31
23120         correctly for GAS to process.
23121         (mips_interrupt_extra_call_saved_reg_p): New function.
23122         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
23123         extra registers.
23124         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
23125         (mips_compute_frame_info): Add supports for interrupt context that
23126         includes doubleword accumulators and COP0 registers.
23127         (mips_for_each_saved_acc): New function.
23128         (mips_for_each_saved_gpr_and_fpr): Change the function name from
23129         mips_for_each_saved_reg.
23130         (mips_save_reg): Save accumulators.
23131         (mips_kernel_reg_p): A new for_each_rtx callback.
23132         (mips_expand_prologue): Support interrupt handlers.
23133         (mips_restore_reg): Restore accumulators.
23134         (mips_expand_epilogue): Support interrupt handlers.
23135         (mips_can_use_return_insn): Return false for interrupt handlers.
23136         (mips_epilogue_uses): New function.
23137         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
23138         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
23139         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
23140         cop0_move): New instructions.
23141         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
23142         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
23143         defines.
23144         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
23145         New defines.
23146         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
23147         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
23148         interrupt handlers, we use K0 as the temporary register.
23149         (EPILOGUE_USES): Change to a function call.
23150         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
23151         handlers, we use K0 as the temporary register.
23152
23153         * doc/extend.texi (Function Attributes): Document interrupt,
23154         use_shadow_register_set, keep_interrupts_masked,
23155         use_debug_exception_return for MIPS attributes.
23156
23157 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23158
23159         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
23160         Remove a number of t-files from tmake_file.
23161         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
23162         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
23163         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23164         target_prototype, not TARGET_PROTOTYPE.
23165         (LINK_OS_GNU_SPEC): Define.
23166         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
23167         and darwin-ldoubdle.c.
23168
23169 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23170
23171         PR driver/39293
23172         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
23173         (cpp_options): Ditto.
23174         (default_compilers): Ditto.
23175         (display_help): Ditto.
23176         (process_command): Ditto.
23177         (do_spec_1): Ditto.
23178         (set_input): Use lbasename instead of duplicate code.
23179         (save_temps_prefix): New static for -save-temps=obj.
23180         (save_temps_length): Ditto.
23181
23182         * doc/invoke.texi (-save-temps=obj): Document new variant to
23183         -save-temps switch.
23184
23185 2009-04-02  Jeff Law  <law@redhat.com>
23186
23187         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
23188         variable.
23189
23190 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23191
23192         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
23193         * configure: Regenerated.
23194
23195 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23196
23197         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
23198         share the argument list.
23199
23200 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23201
23202         Merge
23203
23204         2009-02-12  Diego Novillo  <dnovillo@google.com>
23205
23206         * varpool.c (debug_varpool): New.
23207         * cgraph.h (debug_varpool): Declare.
23208
23209 2009-04-02  Jan Hubicka  <jh@suse.cz>
23210
23211         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
23212         pass.
23213
23214 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23215
23216         * config/i386/i386.c (ix86_abi): Move initialization to ...
23217         (override_options): Here.
23218
23219 2009-04-02  Christian Bruel  <christian.bruel@st.com>
23220
23221         * config/sh/sh.c (sh_dwarf_register_span): New function.
23222         (TARGET_DWARF_REGISTER_SPAN): Define.
23223         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
23224
23225 2009-04-02  Ira Rosen  <irar@il.ibm.com>
23226
23227         PR tree-optimization/39595
23228         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
23229         interleaved loads group is not  greater than the SLP group size.
23230
23231 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23232
23233         * builtins.c (is_builtin_name): New.
23234         (called_as_built_in): Use is_builtin_name.
23235         * tree.h (is_builtin_name): New.
23236         * varasm.c (incorporeal_function_p): Use is_builtin_name
23237
23238 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
23239
23240         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
23241
23242 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
23243
23244         PR c++/26693
23245         * c-decl.c (clone_underlying_type): Move this ...
23246         * c-common.c (set_underlying_type): ... here.
23247         Also, make sure the function properly sets TYPE_STUB_DECL() on
23248         the newly created typedef variant type.
23249         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
23250         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
23251         points.
23252
23253 2009-04-02  Richard Guenther  <rguenther@suse.de>
23254
23255         PR tree-optimization/37221
23256         * tree-flow.h (degenerate_phi_result): Declare.
23257         * tree-ssa-dom.c (degenerate_phi_result): Export.
23258         * tree-scalar-evolution.c (analyze_initial_condition): If
23259         the initial condition is defined by a degenerate PHI node
23260         use the degenerate value.
23261
23262 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
23263
23264         PR rtl-optimization/39588
23265         * combine.c (merge_outer_ops): Do not set the constant when this
23266         is not necessary.
23267         (simplify_shift_const_1): Do not modify it either in this case.
23268
23269 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
23270
23271         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
23272         tuning is deprecated if -mtune value is set to an Itanium1 variant.
23273
23274 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
23275
23276         PR c/29027
23277         * c-lex.c (interpret_float): Default (no suffix) is double.
23278
23279 2009-04-1  Xinliang David Li  <davidxl@google.com>
23280
23281         * config/i386/i386.c (legitimate_constant_p): Recognize
23282         all one vector constant.
23283
23284 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23285
23286         * config/vax/vax.c: Add #includes to silence warnings.
23287         Change #include order to silence two warnings.
23288
23289 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23290
23291         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
23292         (ASM_SPEC): Pass -k to the assembler for PIC code.
23293
23294 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23295
23296         * config.gcc: Add vax-*-linux* to the switch.
23297         * config/vax/linux.h: New file. (TARGET_VERSION,
23298         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
23299
23300 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23301
23302         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
23303         Use predicate macros instead of GET_CODE() == foo.
23304         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
23305         ashlsi3, rotrsi3, <unnamed>): Likewise.
23306
23307 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23308
23309         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
23310         jbbccihi, jbbccisi): Remova trailing whitespace.
23311         * config/vax/constraints.md: Likewise.
23312         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23313         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
23314         * config/vax/predicates.md: Likewise.
23315         * config/vax/vax.c (print_operand_address, vax_output_int_move,
23316         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
23317         * config/vax/vax.h: Likewise.
23318         * config/vax/vax.md (nonlocal_goto): Likewise.
23319
23320 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23321
23322         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
23323         (indirectable_address_p, adjacent_operands_p): Add spaces around
23324         braces.
23325         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
23326
23327 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23328
23329         * config/vax/vax.c (legitimate_constant_address_p,
23330         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
23331         index_term_p, reg_plus_index_p, legitimate_address_p,
23332         vax_mode_dependent_address_p): Update comments to match functions
23333         modified by the recent int->bool conversion.
23334
23335 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23336
23337         * config/vax/builtins.md: Update copyright message.
23338         * config/vax/constraints.md: Likewise.
23339         * config/vax/netbsd-elf.h: Likewise.
23340         * config/vax/predicates.md: Likewise.
23341         * config/vax/vax-protos.h: Likewise.
23342         * config/vax/vax.c: Likewise.
23343         * config/vax/vax.h: Likewise.
23344         * config/vax/vax.md: Likewise.
23345         * config/vax/vax.opt: Likewise.
23346
23347 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23348
23349         * config/vax/builtins.md (ffssi2, ffssi2_internal,
23350         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
23351         * config/vax/constraints.md (B, R): Likewise.
23352         * config/vax/predicates.md (external_memory_operand,
23353         nonimmediate_addsub_di_operand): Likewise.
23354         * config/vax/vax.c (vax_output_int_add): Likewise.
23355         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
23356         untyped_call): Likewise.
23357
23358 2009-04-01  Matt Thomas  <matt@3am-software.com>
23359
23360         * config/vax/predicates.md: New file.
23361         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
23362         external_const_operand, nonsymbolic_operand, external_memory_operand,
23363         indirect_memory_operand, indexed_memory_operand,
23364         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
23365         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
23366         predicate.
23367         * config/vax/constraints.md: New file.
23368         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
23369         New constraint.
23370         * config/vax/builtins.md: New file.
23371         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
23372         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
23373         jbbccisi): Define.
23374         * config/vax/vax.opt (mqmath): Add option.
23375         * config/vax/vax.md (isfx): Extend with DI.
23376         (VAXintQH, VAXintQHSD): Define.
23377         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
23378         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
23379         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
23380         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
23381         (movdi): Update constraints and use vax_output_int_move().
23382         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
23383         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
23384         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
23385         nonlocal_goto): New.
23386         (mov<mode>): Extend accepted operand types.
23387         (subdi3_old): Rename from subdi3, change update constraints and use
23388         a new implementation.
23389         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
23390         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
23391         MOVE_RATIO, CLEAR_RATIO): Define.
23392         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
23393         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
23394         (PRINT_OPERAND): Redefine using a function instead of inlined code.
23395         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
23396         (split_quadword_operands): Make static and really allow variable
23397         splitting.
23398         (print_operand_address): Update for PIC generation.
23399         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
23400         indexable_address_p, fixup_mathdi_operand,
23401         vax_expand_addsub_di_operands, adjacent_operands_p): New.
23402         (vax_float_literal, legitimate_constant_p,
23403         indirectable_constant_address_p, index_term_p,
23404         reg_plus_index_p): Return bool instead of int.
23405         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
23406         where needed.
23407         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
23408         generation.
23409         (vax_output_conditional_branch): Indent.
23410         (legitimate_constant_address_p, indirectable_constant_address_p,
23411         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
23412         vax_mode_dependent_address_p): Return bool instead of int, update for
23413         PIC generation.
23414         * config/vax/vax-protos.h (legitimate_constant_address_p,
23415         legitimate_constant_p, legitimate_address_p,
23416         vax_mode_dependent_address_p): Change declaration to bool.
23417         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
23418         vax_expand_addsub_di_operands, vax_output_int_subtract,
23419         vax_output_movmemsi): Declare.
23420         (split_quadword_operands, vax_float_literal): Delete declaration.
23421         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
23422         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
23423         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
23424         ASM_OUTPUT_DWARF_PCREL): Define.
23425         (ASM_SPEC): Change definition to allow PIC generation.
23426
23427 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
23428
23429         * doc/sourcebuild.texi: Update front-end requirements.
23430
23431 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23432
23433         PR target/39226
23434         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
23435         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
23436         (booldi3_internal3): Use boolean_or_operator instead of
23437         boolean_operator.
23438
23439 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
23440
23441         PR c/39605
23442         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
23443         declarator whose size is not an integer constant expression but
23444         folds to an integer constant, then treat it as a constant
23445         subsequently.
23446
23447 2009-04-01  Richard Guenther  <rguenther@suse.de>
23448
23449         * fold-const.c (fold_plusminus_mult_expr): Do not fold
23450         i * 4 + 2 to (i * 2 + 1) * 2.
23451
23452 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23453
23454         PR c/37772
23455         * c-parser.c (c_parser_asm_statement): Skip until close paren and
23456         return if c_parser_asm_string_literal returned NULL.
23457
23458 2009-04-01  Nick Clifton  <nickc@redhat.com>
23459
23460         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
23461         already defined.
23462         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
23463         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
23464         other typedefs to avoid conflicts with libgcc2.c.  Define labels
23465         to gain 16-bit bit-manipulation functions from libgcc2.c and then
23466         include it.
23467         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
23468         to gain 16-bit trapping arithmetic functions from libgcc2.c and
23469         then include it.
23470
23471 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
23472
23473         * varasm.c (default_function_rodata_section): Declare DOT as
23474         const char*.
23475
23476 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
23477             Andrey Galkin  <agalkin@hypercom.com>
23478
23479         PR/39492
23480         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23481         Make object_name unique for each process.
23482
23483 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23484
23485         PR other/39591
23486         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
23487         addressable variables in the parallel that could go out of scope while
23488         running queued tasks.
23489
23490 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
23491
23492         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
23493         (CASE_VALUES_THRESHOLD): Redefine.
23494         * config/avr/avr.c (avr_override_options): Remove initialization of
23495         avr_case_values_threshold variable.
23496         (avr_case_values_threshold): Remove variable. Add new function.
23497         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
23498         * config/avr/avr.opt (mno-tablejump): Remove option.
23499         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
23500
23501 2009-04-01  DJ Delorie  <dj@redhat.com>
23502
23503         * varasm.c (default_function_rodata_section): Don't assume
23504         anything about where the first '.' in the section name is.
23505
23506 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
23507
23508         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
23509         rs6000_emit_stack_tie.
23510
23511 2009-03-31  Ian Lance Taylor  <iant@google.com>
23512
23513         * tree-eh.c (tree_remove_unreachable_handlers): Compare
23514         gimple_code with GIMPLE_RESX, not RESX.
23515
23516 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23517
23518         * c-common.c (c_get_ident): New.
23519         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
23520
23521 2009-04-01  Ben Elliston  <bje@au.ibm.com>
23522
23523         * config/rs6000/sysv4.opt (msdata): Improve option description.
23524
23525 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
23526
23527         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
23528         (divdf3_internal_lat): Remove.
23529         (divxf3_internal_lat): Remove.
23530         (divxf3_internal_thr): Remove.
23531         (divxf): Use divxf3_internal.
23532         * config/ia64/div.md (divsf3_internal_lat): New.
23533         (divdf3_internal_lat): New.
23534         (divxf3_internal): New.
23535
23536 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23537
23538         PR c/448
23539         * Makefile.in (USE_GCC_STDINT): Define.
23540         (stmp-int-hdrs): Install stdint.h if applicable.
23541         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
23542         if known.
23543         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
23544         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
23545         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
23546         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23547         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23548         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23549         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23550         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23551         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23552         (c_common_nodes_and_builtins): Initialize
23553         underlying_wchar_type_node.  Do not initialize
23554         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
23555         nodes for new types.
23556         (c_stddef_cpp_builtins): Define macros for new types.
23557         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
23558         Remove.
23559         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
23560         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
23561         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
23562         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
23563         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
23564         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
23565         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
23566         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
23567         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
23568         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
23569         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
23570         int16_type_node, int32_type_node, int64_type_node,
23571         uint8_type_node, uint16_type_node, c_uint32_type_node,
23572         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
23573         int_least32_type_node, int_least64_type_node,
23574         uint_least8_type_node, uint_least16_type_node,
23575         uint_least32_type_node, uint_least64_type_node,
23576         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
23577         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
23578         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
23579         uintptr_type_node): Define.
23580         * c-cppbuiltin.c (builtin_define_constants,
23581         builtin_define_type_minmax): New.
23582         (builtin_define_stdint_macros): Define more macros.
23583         (c_cpp_builtins): Define more limit macros.
23584         (type_suffix): New.
23585         (builtin_define_type_max): Define in terms of
23586         builtin_define_type_minmax.  Remove is_long parameter.  All
23587         callers changed.
23588         * config.gcc (use_gcc_stdint): Define.
23589         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
23590         Add newlib-stdint.h for generic targets.
23591         * config/glibc-stdint.h, config/newlib-stdint.h,
23592         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
23593         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
23594         * config/score/score.h (UINTPTR_TYPE): Define.
23595         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
23596         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
23597         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23598         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23599         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23600         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23601         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23602         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23603         * config/spu/spu.h (STDINT_LONG32): Define.
23604         * configure.ac (use_gcc_stdint): Substitute.
23605         * configure: Regenerate.
23606         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
23607         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
23608         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
23609         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
23610         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
23611         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
23612         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
23613         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
23614         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
23615         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
23616         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
23617         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
23618         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
23619         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
23620         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
23621         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
23622         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
23623         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
23624         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
23625         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
23626         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
23627         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
23628         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
23629         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23630         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23631         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23632         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23633         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23634         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
23635
23636 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
23637
23638         * loop-iv.c (suitable_set_for_replacement): Renamed from
23639         simplify_using_assignment; changed to return bool and to accept new
23640         args DEST and SRC.  Return true iff we find a source/destination pair
23641         that can be used to make a replacement, and fill SRC and DEST if so.
23642         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
23643         changed.
23644         (simplify_using_initial_values): Deal with altered regs here and track
23645         more precisely the effect they have on the validity of our expression.
23646
23647         * loop-iv.c (simplify_using_condition): A condition of the form
23648         (EQ REG CONST) can be used to simply make a substitution.
23649         (simplify_using_initial_values): Keep track of conditions we have seen
23650         and keep using them to simplify new expressions, while applying the
23651         same substitutions to them as to the expression.
23652
23653         * simplify-rtx.c (simplify_relational_operation_1): Simplify
23654         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
23655         GEU/LTU reversed.
23656
23657         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
23658         changed.  Use this when trying to improve the upper bound.
23659         Generate the comparison by using simplify_gen_relational.
23660
23661         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
23662
23663         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
23664         functions.
23665         (simplify_using_assignment, simplify_using_initial_values): Call
23666         replace_in_expr to make replacements.  Call replace_single_def_regs
23667         once on the initial version of the expression.
23668
23669 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23670
23671         PR target/27237
23672         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
23673
23674 2009-03-31  Richard Guenther  <rguenther@suse.de>
23675
23676         PR middle-end/31029
23677         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
23678         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
23679
23680 2009-03-31  Richard Guenther  <rguenther@suse.de>
23681
23682         * tree.h (div_if_zero_remainder): Declare.
23683         * fold-const.c (div_if_zero_remainder): Export.
23684         * tree-ssa-forwprop.c
23685         (forward_propagate_addr_into_variable_array_index): Handle
23686         constant array index addition outside of the variable index.
23687
23688 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23689
23690         PR target/39592
23691         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
23692         define_splits, floatunssi<mode>2): Require x87 conversions from
23693         DImode to be permitted.
23694
23695 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23696
23697         PR preprocessor/15638
23698         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
23699
23700 2009-03-31  Richard Guenther  <rguenther@suse.de>
23701
23702         PR middle-end/23401
23703         PR middle-end/27810
23704         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
23705         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
23706         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
23707         a separate statement.
23708         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
23709         (lookup_tmp_var): Likewise.
23710         (is_gimple_formal_tmp_or_call_rhs): Remove.
23711         (is_gimple_reg_or_call_rhs): Rename to ...
23712         (is_gimple_reg_rhs_or_call): ... this.
23713         (is_gimple_mem_or_call_rhs): Rename to ...
23714         (is_gimple_mem_rhs_or_call): ... this.
23715         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
23716         DECL_GIMPLE_REG_P only if is_formal is true.
23717         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
23718         for non-proper post-modify expression gimplification.
23719         (gimplify_self_mod_expr): For post-modify expressions gimplify
23720         the lvalue to a minimal lvalue.
23721         (rhs_predicate_for): Remove formal temp case.
23722         (gimplify_modify_expr_rhs): Likewise.
23723         (gimplify_addr_expr): Use is_gimple_reg.
23724         (gimplify_expr): Remove formal temp cases.
23725         (gimple_regimplify_operands): Likewise.
23726         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
23727         and FILTER_EXPR like constants.
23728         * gimple.c (walk_gimple_op): Fix val_only initialization, use
23729         is_gimple_reg.
23730         (is_gimple_formal_tmp_rhs): Remove.
23731         (is_gimple_reg_rhs): Remove special casing.
23732         (is_gimple_mem_rhs): Fix.
23733         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
23734         (is_gimple_formal_tmp_var): Remove.
23735         (is_gimple_formal_tmp_reg): Likewise.
23736         (is_gimple_min_lval): Allow invariant component ref parts.
23737         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
23738         is_gimple_formal_tmp_reg): Remove declarations.
23739         * tree-cfg.c (verify_expr): Verify that variables with address
23740         taken do not have DECL_GIMPLE_REG_P set.
23741         * tree-mudflap.c (mf_build_check_statement_for): Use
23742         force_gimple_operand instead of gimplify_expr.
23743
23744 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
23745
23746         * modulo-sched.c (sms_schedule_by_order): Pass the actual
23747         schedulable rows to compute_split_row.
23748
23749 2009-03-31  Ben Elliston  <bje@au.ibm.com>
23750
23751         PR target/31635
23752         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
23753         OPT_mvrsave.
23754
23755 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
23756
23757         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
23758         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
23759         * configure: Regenerate.
23760         * config.in: Regenerate.
23761         * config/rs6000/rs6000.opt (mtls-markers): Add.
23762         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
23763         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
23764         (tls_ld_aix, tls_ld_sysv): Likewise.
23765         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
23766         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
23767
23768 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
23769
23770         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
23771
23772 2009-03-30  Jan Hubicka  <jh@suse.cz>
23773
23774         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
23775         out of RESX.
23776         (tree_remove_unreachable_handlers): Cleanup EH predecestor
23777         detection and label handling.
23778
23779 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23780
23781         * ira-int.h (ira_allocno): Rename left_conflicts_num to
23782         left_conflicts_size.
23783         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
23784         ALLOCNO_LEFT_CONFLICTS_SIZE.
23785
23786         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
23787         remove_allocno_from_bucket_and_push,
23788         allocno_spill_priority_compare, push_allocnos_to_stack,
23789         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
23790         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
23791         (setup_allocno_left_conflicts_num): Ditto.  Rename to
23792         setup_allocno_left_conflicts_size.
23793         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
23794         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
23795         setup_allocno_left_conflicts_size instead of
23796         setup_allocno_left_conflicts_num.
23797
23798         * ira-build.c (ira_create_allocno): Use
23799         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
23800         ALLOCNO_LEFT_CONFLICTS_NUM.
23801
23802 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
23803
23804         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
23805         instead of DF_LR_OUT.
23806
23807         * ira-lives.c (process_bb_node_lives): Ditto.
23808
23809         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
23810         instead of DF_LR_{OUT,IN}.
23811
23812         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
23813
23814         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
23815
23816 2009-03-30  Jan Hubicka  <jh@suse.cz>
23817
23818         * except.c (label_to_region_map): Fix thinko.
23819
23820 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
23821
23822         PR middle-end/38237
23823         * tree.h (tree_find_value): New declaration.
23824         * tree.c (tree_find_value): New function.
23825         * varasm.c (assemble_external): Avoid duplicate entries on lists.
23826
23827 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
23828
23829         PR debug/39563
23830         * c-decl.c (struct c_binding): Add locus field.
23831         (bind): Add locus argument, set locus field from it.
23832         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
23833         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
23834         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
23835         implicitly_declare, undeclared_variable, lookup_label,
23836         declare_label, c_make_fname_decl, c_builtin_function,
23837         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
23838         bind callers.
23839
23840 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
23841
23842         PR target/38781
23843         * config/i386/i386.c (classify_argument): Check total size of
23844         structure.
23845
23846 2009-03-30  Martin Jambor  <mjambor@suse.cz>
23847
23848         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
23849         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
23850         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
23851         respectively.
23852
23853         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
23854         seen_variable_array_ref while also traversing a union.
23855
23856         * tree-inline.c (optimize_inline_calls): Do not call
23857         cgraph_node_remove_callees.
23858         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
23859         (pass_remove_cgraph_callee_edges): New variable.
23860         * passes.c (init_optimization_passes): Add
23861         pass_remove_cgraph_callee_edges after early inlining and before all
23862         late intraprocedural passes.
23863
23864         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
23865
23866 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23867
23868         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
23869         Fix typos in names.
23870
23871 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23872
23873         * combine.c (simplify_comparison): Use have_insn_for.
23874         * dojump.c (do_jump): Likewise.
23875
23876 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23877
23878         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
23879         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
23880         sparc_compare_op0 like sparc_compare_emitted used to be handled.
23881         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
23882         instead of sparc_compare_emitted.
23883         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
23884         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
23885         instead of sparc_compare_emitted.
23886
23887 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23888
23889         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
23890         enter/exit cfglayout mode.
23891         (pass_partition_block): Require it.
23892         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
23893         (combine_instructions): Track basic blocks instead of labels.
23894         (update_cfg_for_uncondjump): New.
23895         (try_combine): Use it.  Update jumps after rescanning.
23896         (pass_combine): Require PROP_cfglayout.
23897         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
23898
23899 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23900
23901         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
23902         Provide/destroy PROP_cfglayout respectively.
23903         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
23904         * tree-pass.h (PROP_cfglayout): New.
23905
23906 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
23907
23908         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
23909         fold_convert_const_fixed_from_fixed,
23910         fold_convert_const_fixed_from_int,
23911         fold_convert_const_fixed_from_real, fold_negate_const): Do not
23912         set TREE_CONSTANT_OVERFLOW.
23913         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
23914         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
23915
23916 2009-03-30  Ira Rosen  <irar@il.ibm.com>
23917
23918         * tree-vect-loop-manip.c: New file.
23919         * tree-vectorizer.c: Update documentation and included files.
23920         (vect_loop_location): Make extern.
23921         (rename_use_op): Move to tree-vect-loop-manip.c
23922         (rename_variables_in_bb, rename_variables_in_loop,
23923         slpeel_update_phis_for_duplicate_loop,
23924         slpeel_update_phi_nodes_for_guard1,
23925         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
23926         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
23927         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
23928         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
23929         find_loop_location): Likewise.
23930         (new_stmt_vec_info): Move to tree-vect-stmts.c.
23931         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
23932         get_vectype_for_scalar_type, vect_is_simple_use,
23933         supportable_widening_operation, supportable_narrowing_operation):
23934         Likewise.
23935         (bb_in_loop_p): Move to tree-vect-loop.c.
23936         (new_loop_vec_info, destroy_loop_vec_info,
23937         reduction_code_for_scalar_code, report_vect_op,
23938         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
23939         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
23940         (vect_supportable_dr_alignment): Likewise.
23941         * tree-vectorizer.h (tree-data-ref.h): Include.
23942         (vect_loop_location): Declare.
23943         Reorganize function declarations according to the new file structure.
23944         * tree-vect-loop.c: New file.
23945         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
23946         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
23947         * tree-vect-data-refs.c: New file.
23948         * tree-vect-patterns.c (timevar.h): Don't include.
23949         * tree-vect-stmts.c: New file.
23950         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
23951         tree-vect-slp.c, tree-vect-loop.c.
23952         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
23953         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
23954         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
23955         (tree-vect-analyze.o): Remove.
23956         (tree-vect-transform.o): Likewise.
23957         (tree-vect-data-refs.o): Add rule.
23958         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
23959         tree-vect-slp.o): Likewise.
23960         (tree-vect-patterns.o): Remove redundant dependencies.
23961         (tree-vectorizer.o): Likewise.
23962         * tree-vect-slp.c: New file.
23963
23964 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23965
23966         * optc-gen.awk: Warn if an option flag has multiple different
23967         help strings.
23968
23969 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
23970
23971         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
23972         -floop-block): Document dependences on PPL, CLooG and Graphite.
23973
23974 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
23975
23976         PR rtl-optimization/323
23977         * c-common.c (c_fully_fold, convert_and_check,
23978         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
23979         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
23980         * c-common.def (EXCESS_PRECISION_EXPR): New.
23981         * c-cppbuiltin.c (builtin_define_float_constants): Define
23982         constants with enough digits for long double.
23983         * c-lex.c (interpret_float): Interpret constant with excess
23984         precision where appropriate.
23985         * c-opts.c (c_common_post_options): Set
23986         flag_excess_precision_cmdline.  Give an error for
23987         -fexcess-precision=standard for C++ for processors where the
23988         option is significant.
23989         * c-parser.c (c_parser_conditional_expression): Handle excess
23990         precision in condition.
23991         * c-typeck.c (convert_arguments): Handle arguments with excess
23992         precision.
23993         (build_unary_op): Move excess precision outside operation.
23994         (build_conditional_expr): Likewise.
23995         (build_compound_expr): Likewise.
23996         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
23997         (build_modify_expr): Handle excess precision in RHS.
23998         (convert_for_assignment): Handle excess precision in converted
23999         value.
24000         (digest_init, output_init_element, process_init_element): Handle
24001         excess precision in initializer.
24002         (c_finish_return): Handle excess precision in return value.
24003         (build_binary_op): Handle excess precision in operands and add
24004         excess precision as needed for operation.
24005         * common.opt (-fexcess-precision=): New option.
24006         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24007         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24008         For standard excess precision, output explicit conversion to and
24009         truncation from XFmode.
24010         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24011         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24012         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24013         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24014         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24015         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24016         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24017         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24018         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
24019         define_splits, sqrt<mode>2): Disable where appropriate for
24020         standard excess precision.
24021         * convert.c (convert_to_real): Do not shorten arithmetic to type
24022         for which excess precision would be used.
24023         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
24024         * doc/invoke.texi (-fexcess-precision=): Document option.
24025         (-mfpmath=): Correct index entry.
24026         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
24027         flag_excess_precision): New.
24028         * langhooks.c (lhd_post_options): Set
24029         flag_excess_precision_cmdline.
24030         * opts.c (common_handle_option): Handle -fexcess-precision=.
24031         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
24032         init_excess_precision): New.
24033         (lang_dependent_init_target): Call init_excess_precision.
24034         * tree.c (excess_precision_type): New.
24035         * tree.h (excess_precision_type): Declare.
24036
24037 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
24038
24039         PR c/35235
24040         * c-typeck.c (build_component_ref): Do not copy qualifiers from
24041         non-lvalue to component.
24042
24043 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24044
24045         PR preprocessor/34695
24046         * Makefile.in (c-opts.o): Depend on c-tree.h.
24047         * c-common.c: Move down include of diagnostic.h.
24048         (done_lexing, c_cpp_error): New.
24049         * c-common.h (done_lexing): Declare.
24050         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
24051         (parse_in).
24052         * c-opts.c: Include c-tree.h.
24053         (c_common_init_options): Set preprocessor error callback.
24054         (c_common_handle_option): Do not set preprocessor
24055         inhibit_warnings, warnings_are_errors, warn_system_headers,
24056         pedantic_errors or inhibit_warnings flags.
24057         (c_common_post_options): Do not check cpp_errors (parse_in).
24058         (c_common_finish): Do not output dependencies if there were
24059         errors.  Do not check return value of cpp_finish.
24060         * c-ppoutput.c (pp_file_change): Set input_location.
24061         * c-tree.h (c_cpp_error): Declare.
24062         * diagnostic.c (diagnostic_set_info_translated): Also initialize
24063         override_column.
24064         (diagnostic_build_prefix): Check override_column.
24065         * diagnostic.h (diagnostic_info): Add override_column field.
24066         (diagnostic_override_column): Define.
24067
24068 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
24069
24070         * c-common.c (c_expand_expr, c_staticp): Remove.
24071         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
24072         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
24073         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
24074         * c-gimplify.c (gimplify_compound_literal_expr,
24075         optimize_compound_literals_in_ctor): Remove.
24076         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
24077         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
24078         * c-semantics.c (emit_local_var): Remove.
24079
24080         * langhooks-def.h (lhd_expand_expr): Remove.
24081         * langhooks.c (lhd_expand_expr): Remove.
24082         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
24083
24084         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
24085         handling from c-semantics.c; don't call into langhook.
24086         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
24087         * gimplify.c (gimplify_compound_literal_expr,
24088         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
24089         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
24090         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
24091         as was done in c-gimplify.c.
24092         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
24093         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
24094         Move from c-common.h.
24095         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
24096
24097         * tree.c (staticp): Do not call langhook.
24098         * langhooks.c (lhd_staticp): Delete.
24099         * langhooks-def.h (lhd_staticp): Delete prototype.
24100         (LANG_HOOKS_STATICP): Delete.
24101         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
24102
24103         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
24104         instead of DECL_STMTs.
24105
24106 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24107
24108         PR c/456
24109         PR c/5675
24110         PR c/19976
24111         PR c/29116
24112         PR c/31871
24113         PR c/35198
24114         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
24115         void_type_node.
24116         (fold_call_expr): Return a NOP_EXPR from folding rather than the
24117         contained expression.
24118         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
24119         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
24120         conditional expressions for C.
24121         (decl_constant_value_for_optimization): Move from
24122         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
24123         whether optimizing and that the expression is a VAR_DECL not of
24124         array type instead of doing such checks in the caller.  Do not
24125         check pedantic.  Call gcc_unreachable for C++.
24126         * c-common.def (C_MAYBE_CONST_EXPR): New.
24127         * c-common.h (c_fully_fold, c_save_expr,
24128         decl_constant_value_for_optimization): New prototypes.
24129         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24130         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24131         EXPR_INT_CONST_OPERANDS): Define.
24132         * c-convert.c (convert): Strip nops from expression.
24133         * c-decl.c (groktypename): Take extra parameters expr and
24134         expr_const_operands.  Update call to grokdeclarator.
24135         (start_decl): Update call to grokdeclarator.  Add statement for
24136         expressions used in type of decl.
24137         (grokparm): Update call to grokdeclarator.
24138         (push_parm_decl): Update call to grokdeclarator.
24139         (build_compound_literal): Add parameter non_const and build a
24140         C_MAYBE_COSNT_EXPR if applicable.
24141         (grokdeclarator): Take extra parameters expr and
24142         expr_const_operands.  Track expressions used in declaration
24143         specifiers and declarators.  Fold array sizes and track whether
24144         they are constant expressions and whether they are integer
24145         constant expressions.
24146         (parser_xref_tag): Set expr and expr_const_operands fields in
24147         return value.
24148         (grokfield): Update call to grokdeclarator.
24149         (start_function): Update call to grokdeclarator.
24150         (build_null_declspecs): Set expr and expr_const_operands fields in
24151         return value.
24152         (declspecs_add_type): Handle expressions in typeof specifiers.
24153         * c-parser.c (c_parser_declspecs): Set expr and
24154         expr_const_operands fields for declaration specifiers.
24155         (c_parser_enum_specifier): Likewise.
24156         (c_parser_struct_or_union_specifier): Likewise.
24157         (c_parser_typeof_specifier): Likewise.  Update call to
24158         groktypename.  Fold expression as needed.  Return expressions with
24159         type instead of adding statements.
24160         (c_parser_attributes): Update calls to c_parser_expr_list.
24161         (c_parser_statement_after_labels): Fold expression before passing
24162         to objc_build_throw_stmt.
24163         (c_parser_condition): Fold expression.
24164         (c_parser_asm_operands): Fold expression.
24165         (c_parser_conditional_expression): Use c_save_expr.  Update call
24166         to build_conditional_expr.
24167         (c_parser_alignof_expression): Update call to groktypename.
24168         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
24169         original_code.  Fold expression argument of va_arg.  Create
24170         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
24171         argument to va_arg.  Update calls to groktypename.  Fold array
24172         index for offsetof.  Verify that first argument to
24173         __builtin_choose_expr has integer type.
24174         (c_parser_postfix_expression_after_paren_type): Update calls to
24175         groktypename and build_compound_literal.  Handle expressions with
24176         side effects in type name.
24177         (c_parser_postfix_expression_after_primary): Update call to
24178         c_parser_expr_list.  Set original_code for calls to
24179         __builtin_constant_p.
24180         (c_parser_expr_list): Take extra parameter fold_p.  Fold
24181         expressions if requested.
24182         (c_parser_objc_type_name): Update call to groktypename.
24183         (c_parser_objc_synchronized_statement): Fold expression.
24184         (c_parser_objc_receiver): Fold expression.
24185         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
24186         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
24187         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
24188         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
24189         (struct c_typespec): Add elements expr and expr_const_operands.
24190         (struct c_declspecs): Add elements expr and expr_const_operands.
24191         (groktypename, build_conditional_expr, build_compound_literal):
24192         Update prototypes.
24193         (in_late_binary_op): Declare.
24194         * c-typeck.c (note_integer_operands): New function.
24195         (in_late_binary_op): New variable.
24196         (decl_constant_value_for_broken_optimization): Move to c-common.c
24197         and rename to decl_constant_value_for_optimization.
24198         (default_function_array_conversion): Do not strip nops.
24199         (default_conversion): Do not call
24200         decl_constant_value_for_broken_optimization.
24201         (build_array_ref): Do not fold result.
24202         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
24203         result when operand is a VLA.
24204         (c_expr_sizeof_type): Update call to groktypename.  Handle
24205         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
24206         result when operand names a VLA type.
24207         (build_function_call): Update call to build_compound_literal.
24208         Only fold result for calls to __builtin_* functions.  Strip
24209         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
24210         the function designator.
24211         (convert_arguments): Fold arguments.  Update call to
24212         convert_for_assignment.
24213         (build_unary_op): Handle increment and decrement of
24214         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
24215         decrement earlier.  Fold operand of increment and decrement.
24216         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
24217         built for integer operand.  Wrap returns that are INTEGER_CSTs
24218         without being integer constant expressions or that have integer
24219         constant operands without being INTEGER_CSTs.
24220         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
24221         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
24222         result is an integer constant expression or can be used in
24223         unevaluated parts of one and avoid folding and wrap as
24224         appropriate.  Fold operands before possibly doing -Wsign-compare
24225         warnings.
24226         (build_compound_expr): Wrap result for C99 if operands can be used
24227         in integer constant expressions.
24228         (build_c_cast): Update call to digest_init.  Do not ignore
24229         overflow from casting floating-point constants to integers.  Wrap
24230         results that could be confused with integer constant expressions,
24231         null pointer constants or floating-point constants.
24232         (c_cast_expr): Update call to groktypename.  Handle expressions
24233         included in type name.
24234         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
24235         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
24236         Update calls to convert_for_assignment.
24237         (convert_for_assignment): Take new parameter
24238         null_pointer_constant.  Do not strip nops or call
24239         decl_constant_value_for_broken_optimization.  Set
24240         in_late_binary_op for conversions to boolean.
24241         (store_init_value): Update call to digest_init.
24242         (digest_init): Take new parameter null_pointer_constant.  Do not
24243         call decl_constant_value_for_broken_optimization.  pedwarn for
24244         initializers not constant expressions.  Update calls to
24245         convert_for_assignment.
24246         (constructor_nonconst): New.
24247         (struct constructor_stack): Add nonconst element.
24248         (really_start_incremental_init, push_init_level, pop_init_level):
24249         Handle constructor_nonconst and nonconst element.
24250         (set_init_index): Call constant_expression_warning for array
24251         designators.
24252         (output_init_element): Fold value.  Set constructor_nonconst as
24253         applicable.  pedwarn for initializers not constant expressions.
24254         Update call to digest_init.  Call constant_expression_warning
24255         where constant initializers are required.
24256         (process_init_element): Use c_save_expr.
24257         (c_finish_goto_ptr): Fold expression.
24258         (c_finish_return): Fold return value.  Update call to
24259         convert_for_assignment.
24260         (c_start_case): Fold switch expression.
24261         (c_process_expr_stmt): Fold expression.
24262         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
24263         ensure statement expression is not evaluated in constant expression.
24264         (build_binary_op): Track whether results are integer constant
24265         expressions or may occur in such, disable folding and wrap results
24266         as applicable.  Fold operands for -Wsign-compare warnings unless
24267         in_late_binary_op.
24268         (c_objc_common_truthvalue_conversion): Handle results folded to
24269         integer constants that are not integer constant expressions.
24270         * doc/extend.texi: Document when typeof operands are evaluated,
24271         that condition of __builtin_choose_expr is an integer constant
24272         expression, and more about use of __builtin_constant_p in
24273         initializers.
24274
24275 2009-03-29  Richard Guenther  <rguenther@suse.de>
24276
24277         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
24278         propagate addresses of array references.
24279
24280 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
24281
24282         * regmove.c (perhaps_ends_bb_p): Remove.
24283         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
24284         from INSN and check that the main loop stays within that basic block.
24285         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
24286         (regmove_forward_pass): Split out from regmove_optimize.  Use
24287         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
24288         (regmove_backward_pass): Split out from regmove_optimize.  Use
24289         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
24290         (regmove_optimize): Simplify.
24291
24292 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24293
24294         PR target/39545
24295         * config/i386/i386.c (classify_argument): Ignore flexible array
24296         member in struct and warn ABI change.
24297
24298 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24299
24300         * config/i386/i386-protos.h (ix86_agi_dependent): New.
24301
24302         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
24303         (ix86_adjust_cost): Updated.
24304
24305 2009-03-29  Jan Hubicka  <jh@suse.cz>
24306
24307         PR middle-end/28850
24308         * tree-pass.h (pass_cleanup_eh): New function.
24309         (remove_unreachable_regions): Break code handling RTL
24310         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
24311         that can not be reached by runtime.
24312         (can_be_reached_by_runtime): New function.
24313         (label_to_region_map): New function.
24314         (num_eh_regions): New function.
24315         (rtl_remove_unreachable_regions): New function.
24316         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
24317         (remove_eh_region): New function.
24318         * except.h: Include sbitmap and vecprim.
24319         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
24320         num_eh_regions): Declare.
24321         * passes.c (init_optimization_passes): Schedule cleanup_eh.
24322         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
24323         * tree-eh.c (tree_remove_unreachable_handlers): New function.
24324         (tree_empty_eh_handler_p): New function.
24325         (cleanup_empty_eh): New function.
24326         (cleanup_eh): New function.
24327         (pass_cleanup_eh): New function.
24328
24329 2009-03-29  Jan Hubicka  <jh@suse.cz>
24330
24331         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
24332         for removed regions.
24333
24334 2009-03-29  Jan Hubicka  <jh@suse.cz>
24335
24336         * except.c (dump_eh_tree): Dump all datastructures.
24337
24338 2009-03-29  Jan Hubicka  <jh@suse.cz>
24339
24340         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
24341         (duplicate_eh_regions_1): Likewise.
24342         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
24343         vector; call EH verification.
24344         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
24345         Be ready for region being removed.
24346
24347 2009-03-29  Jan Hubicka  <jh@suse.cz>
24348
24349         * bitmap.c (bitmap_last_set_bit): New function.
24350         * bitmap.h (bitmap_last_set_bit): Declare.
24351
24352 2009-03-29  David Ayers  <ayers@fsfe.org>
24353
24354         PR objc/27377
24355         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
24356         by calling objc_compare_types and surpress warnings about
24357         incompatible C pointers that are compatible ObjC pointers.
24358
24359 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
24360
24361         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
24362         call initialize_inline_failed.
24363         (initialize_inline_failed): Move it from here ...
24364         * cgraph.c (initialize_inline_failed): ... to here.
24365         (cgraph_create_edge): Call initialize_inline_failed rather than
24366         setting inline_failed directly.
24367
24368 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24369
24370         PR target/32542
24371         * sysv4.opt (msdata): Improve comment.
24372         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
24373         * sysv4.h (SVR4_ASM_SPEC): Likewise.
24374
24375 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24376
24377         PR target/30451
24378         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
24379         load and store attributes.
24380
24381 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24382
24383         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
24384         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
24385         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
24386         * doc/extend.texi (X86 Built-in Functions): Add index entries for
24387         __builtin_infq and __builtin_huge_valq.
24388
24389 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
24390
24391         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
24392         atmega8m1 devices.
24393         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
24394         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
24395
24396 2009-03-28  Xinliang David Li  <davidxl@google.com>
24397
24398         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
24399         (do_dbg_cnt): New function.
24400
24401 2009-03-28  Jan Hubicka  <jh@suse.cz>
24402
24403         Merge from pretty-ipa:
24404
24405         2009-03-27  Jan Hubicka  <jh@suse.cz>
24406
24407         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24408         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
24409         * passes.c (function_called_by_processed_nodes_p): New.
24410         * ipa-pure-const.c (check_call): Fix handling of operands.
24411         (analyze_function): Dump debug output for skipped bodies.
24412         (local_pure_const): Use function_called_by_processed_nodes_p.
24413         * dwarf2out.c (reference_to_unused): Use output.
24414         * passes.c (do_per_function_toporder): Likewise.
24415
24416         2008-11-12  Jan Hubicka  <jh@suse.cz>
24417
24418         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
24419         * ipa-pure-const.c (funct_state_d): Add can throw field; make
24420         state_set_in_source enum
24421         (check_decl): Ignore memory tags; do not set fake looping flags;
24422         dump diagnostics.
24423         (check_operand, check_tree, check_rhs_var, check_lhs_var,
24424         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
24425         (check_call, analyze_function): Rewrite.
24426         (check_stmt): New.
24427         (add_new_function): Update call of analyze_function.
24428         (generate_summary): Add call of analyze_function.
24429         (propagate): Propagate can_throw; handle state_set_in_source correctly.
24430         (local_pure_const): New function.
24431         (pass_local_pure_const): New pass.
24432         * ipa-inline.c (inline_transform): Set after_inlining.
24433         * tree-eh.c (stmt_can_throw_external): New.
24434         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
24435         work with aliasing built.
24436         * tree-flow.h (stmt_can_throw_external): New.
24437         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
24438         and local pure/const pass in early and late optimization queue.
24439
24440 2009-03-28  Martin Jambor  <mjambor@suse.cz>
24441
24442         * fold-const.c (get_pointer_modulus_and_residue): New parameter
24443         allow_func_align.
24444         (fold_binary): Allow function decl aligment consideration is the
24445         second argument is integer constant one.
24446         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
24447         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
24448         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
24449
24450 2009-03-28  Jan Hubicka  <jh@suse.cz>
24451
24452         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
24453         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
24454         * function.h (rtl_data): Add nothrow flag.
24455         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
24456         set DECL_NOTHROW for AVAILABLE functions.
24457
24458 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
24459
24460         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
24461         following vector keyword has expansion starting with pixel or bool
24462         keyword, expand vector to __vector and pixel or bool to __pixel or
24463         __bool.
24464
24465         PR c++/39554
24466         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
24467         warn_if_disallowed_function_p): Removed.
24468         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
24469         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
24470         warning_if_disallowed_function_p.
24471         * flags.h (warn_if_disallowed_function_p,
24472         warn_disallowed_functions): Removed.
24473         * common.opt (Wdisallowed-function-list=): Removed.
24474         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
24475
24476 2009-03-28  Richard Guenther  <rguenther@suse.de>
24477
24478         PR tree-optimization/38723
24479         * tree-ssa-pre.c (compute_avail): Add all default definitions to
24480         the entry block.
24481
24482 2009-03-28  Jan Hubicka  <jh@suse.cz>
24483
24484         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
24485         test introduced by my previous patch.
24486
24487 2009-03-28  Richard Guenther  <rguenther@suse.de>
24488
24489         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
24490         the PHIs value undefined.
24491
24492 2009-03-28  Jan Hubicka  <jh@suse.cz>
24493
24494         * tree-pass.h (pass_fixup_cfg): New pass.
24495         * ipa-inline.c (inline_transform): Set
24496         always_inline_functions_inlined/after_inlining.
24497         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
24498         (pass_fixup_cfg): New pass.
24499         * passes.c (init_optimization_passes): Add fixup_cfg.
24500
24501 2009-03-28  Richard Guenther  <rguenther@suse.de>
24502
24503         PR tree-optimization/38458
24504         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
24505         argument use the arguments copy-of value.
24506
24507 2009-03-28  Richard Guenther  <rguenther@suse.de>
24508
24509         PR tree-optimization/38180
24510         * tree-ssa-ccp.c (get_default_value): Simplify.
24511         (likely_value): Likewise.
24512         (surely_varying_stmt_p): Properly handle VOP case.
24513         (ccp_initialize): Likewise.
24514         (ccp_fold): Handle propagating through *&.
24515         (fold_const_aggregate_ref): Also handle decls.
24516
24517 2009-03-28  Jan Hubicka  <jh@suse.cz>
24518
24519         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24520         * cgraph.h (cgraph_node): Likewise.
24521         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
24522         (cgraph_reset_node): Use process flag.
24523         (cgraph_mark_functions_to_output): Likewise.
24524         (cgraph_expand_function): Likewise.
24525         (cgraph_expand_all_functions): Likewise.
24526         (cgraph_output_in_order): Likewise.
24527         * dwarf2out.c (reference_to_unused): Likewise.
24528         * passes.c do_per_function_toporder): Likewise.
24529
24530 2009-03-28  Jan Hubicka  <jh@suse.cz>
24531
24532         Bring from lto-branch:
24533
24534         2008-09-03  Doug Kwan  <dougkwan@google.com>
24535
24536         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
24537         enums instead of reason strings.
24538         * cgraph.c (cgraph_create_edge): Same.
24539         (cgraph_inline_failed_string): New function.
24540         * cgraph.h (cgraph_inline_failed_t): New enum type.
24541         (cgraph_inline_failed_string): New prototype.
24542         (struct cgraph_edge): Change type of INLINED_FAILED from constant
24543         char pointer to cgraph_inline_failed_t.
24544         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
24545         (cgraph_default_inline_p): Ditto.
24546         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
24547         to cgraph_inline_failed_t pointer.
24548         * cif-code.def: New file.
24549         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
24550         reason string.
24551         (cgraph_check_inline_limits): Change type of REASON to pointer to
24552         cgraph_inline_failed_t.  Replace reason strings with enums.
24553         (cgraph_default_inline_p): Ditto.
24554         (cgraph_recursive_inlining_p): Ditto.
24555         (update_caller_keys): Change type of FAILED_REASON to
24556         cgraph_inline_failed_t.
24557         (cgraph_set_inline_failed): Change type of REASON to pointer to
24558         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
24559         convert enums to strings for text output.
24560         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
24561         to be of type cgraph_inline_failed_t.  Replace reason strings with
24562         enums.  Call cgraph_inline_failed_string to covert enums
24563         to strings for text output.
24564         (cgraph_decide_inlining): Replace reason strings with enums.
24565         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
24566         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
24567         for text output.
24568         * tree-inline.c (expand_call_inline): Change type of REASON
24569         to cgraph_inline_failed_t.  Replace reason strings with enums.
24570         Call cgraph_inline_failed_string for text output.
24571         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
24572         (cgraph.o): Ditto.
24573
24574 2009-03-28  Jan Hubicka  <jh@suse.cz>
24575
24576         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
24577         cgraph_clone_node): Remove master clone handling.
24578         (cgraph_is_master_clone, cgraph_master_clone): Remove.
24579         * cgraph.h (master_clone): Remove.
24580         (cgraph_is_master_clone, cgraph_master_clone): Remove.
24581         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
24582         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
24583
24584 2009-03-28  Jan Hubicka  <jh@suse.cz>
24585
24586         * cgraph.c (cgraph_function_body_availability): Functions declared
24587         inline are always safe to assume that it is not going to be replaced.
24588
24589 2009-03-28  Richard Guenther  <rguenther@suse.de>
24590
24591         PR tree-optimization/38513
24592         * tree-ssa-pre.c (eliminate): Remove redundant stores.
24593         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
24594         EXC_PTR_EXPR and FILTER_EXPR.
24595         (get_ref_from_reference_ops): Likewise.
24596
24597 2009-03-28  Richard Guenther  <rguenther@suse.de>
24598
24599         PR tree-optimization/38968
24600         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
24601         Use FLOOR_MOD_EXPR to compute misalignment.
24602
24603 2009-03-28  Richard Guenther  <rguenther@suse.de>
24604
24605         PR tree-optimization/37795
24606         * tree.h (combine_comparisons): Declare.
24607         * fold-const.c (combine_comparisons): Export.
24608         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
24609         comparisons.
24610         (ifcombine_iforif): Use combine_comparisons.
24611
24612 2009-03-28  Jan Hubicka  <jh@suse.cz>
24613
24614         * tree-eh.c (inlinable_call_p): New function.
24615         (make_eh_edges): Use it.
24616         (verify_eh_edges): Use it.
24617         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
24618         * except.c (reachable_next_level): Add inlinable_function argument
24619         (sjlj_find_directly_reachable_regions): Update.
24620         (add_reachable_handler): Do not set saw_any_handlers.
24621         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
24622         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
24623         Add new inlinable call parameter.
24624         (can_throw_internal, can_throw_external): Update.
24625         * except.h (can_throw_internal_1, can_throw_external_1,
24626         foreach_reachable_handler): Update declaration.
24627
24628 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
24629
24630         * config/arm/t-arm-coff, config/h8300/coff.h,
24631         config/i386/i386-aout.h, config/i386/i386-coff.h,
24632         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
24633         config/pdp11/2bsd.h, config/rs6000/aix41.h,
24634         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
24635         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
24636         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
24637         sys-types.h: Remove.
24638         * Makefile.in: Remove protoize and fixproto support and references
24639         in comments.
24640         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
24641         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
24642         Remove.
24643         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
24644         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
24645         unprotoize$(exeext).
24646         (rest.encap): Don't depend on $(STMP_FIXPROTO)
24647         (.PHONY): Don't depend on proto.
24648         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
24649         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
24650         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
24651         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
24652         build/gen-protos.o, build/scan.o, xsys-protos.h,
24653         build/fix-header$(build_exeext), build/fix-header.o,
24654         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
24655         stmp-install-fixproto): Remove.
24656         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
24657         SYSCALLS.c or fixproto files.
24658         (install-common): Don't install protoize.
24659         (install-headers-tar, install-headers-cpio, install-headers-cp):
24660         Don't depend on $(STMP_FIXPROTO).
24661         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
24662         install fixproto files or write out fixproto settings.
24663         (uninstall): Don't uninstall protoize.
24664         * config.gcc (use_fixproto): Remove.
24665         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
24666         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
24667         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
24668         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
24669         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
24670         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
24671         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
24672         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
24673         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
24674         * config/t-vxworks (STMP_FIXPROTO): Remove.
24675         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
24676         STMP_FIXPROTO): Remove.
24677         * config.in, configure: Regenerate.
24678         * crtstuff.c (gid_t, uid_t): Don't undefine.
24679         * doc/install.texi: Change m68k-coff to m68k-elf in example.
24680         (arm-*-coff, arm-*-aout: Remove target entries.
24681         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
24682         Remove mention of AIX 4.1.
24683         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
24684         * doc/invoke.texi (Running Protoize): Remove.
24685         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
24686         (Protoize Caveats): Remove.
24687         * tsystem.h: Update comments on headers assumed to exist.
24688
24689 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
24690
24691         * genautomata.c: Add a new year to the copyright.  Add a new
24692         reference.
24693         (struct insn_reserv_decl): Add comments for member bypass_list.
24694         (find_bypass): Remove.
24695         (insert_bypass): New.
24696         (process_decls): Use insert_bypass.
24697         (output_internal_insn_latency_func): Output all bypasses with the
24698         same input insn in one switch case.
24699
24700         * rtl.def (define_bypass): Describe bypass choice.
24701         * doc/md.texi (define_bypass): Ditto.
24702
24703 2009-03-27  Richard Guenther  <rguenther@suse.de>
24704
24705         * gimplify.c (mark_addressable): Export.
24706         * tree-flow.h (mark_addressable): Declare.
24707         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
24708         * tree-ssa.c (verify_phi_args): Verify that address taken
24709         variables have TREE_ADDRESSABLE set.
24710
24711 2009-03-27  Richard Guenther  <rguenther@suse.de>
24712
24713         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
24714         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
24715         Do not mark decls TREE_ADDRESSABLE.
24716         (build_fold_addr_expr): Adjust.
24717         (fold_addr_expr): Remove.
24718         (fold_unary): Use build_fold_addr_expr.
24719         (fold_comparison): Likewise.
24720         (split_address_to_core_and_offset): Likewise.
24721         * coverage.c (tree_coverage_counter_addr): Mark the array decl
24722         TREE_ADDRESSABLE.
24723         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
24724         (gimplify_modify_expr_to_memcpy): Mark source and destination
24725         addressable.
24726         * omp-low.c (create_omp_child_function): Mark the object decl
24727         TREE_ADDRESSABLE.
24728         (lower_rec_input_clauses): Mark the var we take the address of
24729         TREE_ADDRESSABLE.
24730         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
24731
24732 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24733
24734         PR middle-end/39315
24735         * cfgexpand.c (expand_one_stack_var_at): Change alignment
24736         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
24737
24738 2009-03-27  Richard Guenther  <rguenther@suse.de>
24739
24740         PR tree-optimization/39120
24741         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
24742         constraints.
24743         (handle_lhs_call): Process return constraints.  Add escape
24744         constraints if necessary.
24745         (handle_const_call): Fill out return constraints.  Make nested
24746         case more precise.  Avoid consttmp if possible.
24747         (handle_pure_call): Fill out return constraints.  Avoid
24748         callused if possible.
24749         (find_func_aliases): Simplify call handling.
24750
24751 2009-03-27  Richard Guenther  <rguenther@suse.de>
24752
24753         PR tree-optimization/39120
24754         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
24755         as a representative.
24756         (solve_graph): Do propagate CALLUSED.
24757         (handle_pure_call): Use a scalar constraint from CALLUSED for
24758         the return value.
24759         (find_what_p_points_to): CALLUSED shall not appear in poins-to
24760         solutions.
24761
24762 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24763
24764         PR c/39323
24765         * c-common.c (handle_aligned_attribute): Properly check alignment
24766         overflow.  Use (1U << i) instead of (1 << i).
24767
24768         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
24769
24770         * expr.h (get_mem_align_offset): Updated.
24771
24772         * tree.h (tree_decl_common): Change align to "unsigned int" and
24773         move it before pointer_alias_set.
24774
24775 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24776             Jakub Jelinek  <jakub@redhat.com>
24777
24778         PR target/38034
24779         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
24780         gr_register_operand with gr_reg_or_0_operand.
24781         (cmpxchg_rel_di): Likewise.
24782         (sync_lock_test_and_set<mode>): Likewise.
24783
24784 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24785
24786         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
24787         (true_regnum): Likewise.
24788
24789         * rtlanal.c (subreg_info): Moved to ...
24790         * rtl.h (subreg_info): Here.  New.
24791         (subreg_get_info): New.
24792
24793         * rtlanal.c (subreg_get_info): Make it extern.
24794
24795 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24796
24797         PR target/39472
24798         * config/i386/i386.c (ix86_abi): New.
24799         (override_options): Handle -mabi=.
24800         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
24801         (ix86_call_abi_override): Likewise.
24802         (init_cumulative_args): Likewise.
24803         (function_arg_advance): Likewise.
24804         (function_arg_64): Likewise.
24805         (function_arg): Likewise.
24806         (ix86_pass_by_reference): Likewise.
24807         (ix86_function_value_regno_p): Likewise.
24808         (ix86_build_builtin_va_list_abi): Likewise.
24809         (setup_incoming_varargs_64): Likewise.
24810         (is_va_list_char_pointer): Likewise.
24811         (ix86_init_machine_status): Likewise.
24812         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
24813         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
24814         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
24815         (ix86_function_abi): Make it static and return enum calling_abi.
24816         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
24817         with ix86_abi.
24818         (ix86_fn_abi_va_list): Updated.
24819
24820         * config/i386/i386.h (ix86_abi): New.
24821         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
24822         (CONDITIONAL_REGISTER_USAGE): Likewise.
24823         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
24824         (machine_function): Likewise.
24825
24826         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
24827         with ix86_abi.
24828         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
24829         (STACK_BOUNDARY): Likewise.
24830         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
24831
24832         * config/i386/i386.opt (mabi=): New.
24833
24834         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
24835         return enum calling_abi.
24836         (ix86_function_type_abi): Likewise.
24837         (ix86_function_abi): Removed.
24838
24839         * doc/invoke.texi: Document -mabi= option for x86.
24840
24841 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24842
24843         * builtins.c (real_dconstp): Delete.
24844         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
24845
24846 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
24847             Jakub Jelinek  <jakub@redhat.com>
24848
24849         PR debug/37959
24850         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
24851         (gen_subprogram_die): When a function is explicit, generate the
24852         DW_AT_explicit attribute.
24853         * langhooks.h (struct lang_hooks_for_decls): Add
24854         function_decl_explicit_p langhook.
24855         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
24856         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
24857
24858 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
24859
24860         * builtins.c (fold_builtin_memory_op): Optimize memmove
24861         into memcpy if we can prove source and destination don't overlap.
24862
24863         * tree-inline.c: Include gt-tree-inline.h.
24864         (clone_fn_id_num): New variable.
24865         (clone_function_name): New function.
24866         (tree_function_versioning): Use it.
24867         * Makefile.in (GTFILES): Add tree-inline.c.
24868
24869 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
24870
24871         * BASE-VER: Change to 4.5.0.
24872
24873 2009-03-27  Xinliang David Li  <davidxl@google.com>
24874
24875         PR tree-optimization/39557
24876         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
24877
24878 2009-03-27  Xinliang David Li  <davidxl@google.com>
24879
24880         PR tree-optimization/39548
24881         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
24882         candidate check.
24883
24884 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24885
24886         * c-common.c (pointer_int_sum): Use %wd on return from
24887         tree_low_cst.
24888
24889 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
24890
24891         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
24892         on return from tree_low_cst.
24893
24894 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
24895
24896         PR c++/36799
24897         * ginclude/stdarg.h (va_copy): Define also for
24898         __GXX_EXPERIMENTAL_CXX0X__.
24899
24900 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
24901
24902         PR c++/35652
24903         * builtins.h (c_strlen): Do not warn here.
24904         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
24905         * c-common.c (pointer_int_sum): Take an explicit location.
24906         Warn about offsets out of bounds.
24907         * c-common.h (pointer_int_sum): Adjust declaration.
24908
24909 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24910
24911         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
24912         markup glitch.
24913
24914 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
24915
24916         PR c++/39554
24917         * opts.c (warn_if_disallowed_function_p): Don't assume
24918         get_callee_fndecl must return non-NULL.
24919
24920 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
24921
24922         PR rtl-optimization/39522
24923         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
24924         when reg_reloaded_valid is set.
24925
24926 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24927
24928         * config/spu/divv2df3.c: New file.
24929         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
24930         (DPBIT_FUNCS): Filter out _div_df.
24931
24932 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
24933
24934         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
24935         a jump insn, count that jump in the distance to the loop start.
24936
24937 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
24938
24939         PR target/39523
24940         * config/sh/sh.c (calc_live_regs): Fix condition for global
24941         registers except PIC_OFFSET_TABLE_REGNUM.
24942
24943 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
24944
24945         PR/39518
24946         * doc/invoke.texi (-mconsole): New.
24947         (-mcygwin): New.
24948         (-mno-cygwin): New.
24949         (-mdll): New.
24950         (-mnop-fun-dllimport): New.
24951         (-mthread): New.
24952         (-mwin32): New.
24953         (-mwindows): New.
24954         (sub section "i386 and x86-64 Windows Options"): New.
24955
24956 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
24957
24958         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
24959         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
24960
24961 2009-03-25  Richard Guenther  <rguenther@suse.de>
24962
24963         PR middle-end/39497
24964         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
24965         of -Wno-error.
24966
24967 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
24968
24969         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
24970         neither of haifa/selective schedulers are working.
24971
24972 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24973
24974         * doc/invoke.texi (Debugging Options): Fix description of
24975         -fno-merge-debug-strings.
24976
24977 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
24978
24979         * config/cris/libgcc.ver: New version-script.
24980         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
24981
24982         * configure.ac <GAS features, nop mnemonic>: Add pattern
24983         crisv32-*-* for "nop".
24984         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
24985         * configure: Regenerate.
24986
24987 2009-03-24  Ira Rosen  <irar@il.ibm.com>
24988
24989         PR tree-optimization/39529
24990         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
24991         mark_sym_for_renaming for the tag copied to the new vector
24992         pointer.
24993
24994 2009-03-24  Arthur Loiret  <aloiret@debian.org>
24995
24996         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
24997         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
24998         EXTRA_SPEC_FUNCTIONS.
24999         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25000         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25001         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25002         -march and -mtune options.
25003
25004 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
25005
25006         * config/m68k/t-rtems: Add m5329 multilib.
25007
25008 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
25009             Jakub Jelinek  <jakub@redhat.com>
25010
25011         PR debug/39524
25012         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25013         nodes.
25014
25015 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25016
25017         PR c/39495
25018         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
25019         instead of c_parser_expression_conv, if original_code isn't one of the
25020         4 allowed comparison codes, fail.
25021
25022 2009-03-23  Richard Guenther  <rguenther@suse.de>
25023
25024         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
25025         * tree.h (struct tree_type): Likewise.
25026         * reload.h (struct insn_chain): Likewise.
25027         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
25028         * function.h (struct function): Likewise.
25029         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
25030
25031 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25032
25033         PR tree-optimization/39516
25034         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
25035
25036 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
25037
25038         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
25039         should be set true if BITS_PER_WORD of target is bigger than 32
25040
25041 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
25042
25043         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
25044         Translate -B-options to -rpath-link.  Correct existing
25045         rpath-link and conditionalize on !nostdlib.
25046
25047 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25048
25049         * doc/extend.texi (Function Attributes, Variable Attributes):
25050         Fix typos.
25051         * doc/invoke.texi (Debugging Options, Optimize Options)
25052         (i386 and x86-64 Options, MCore Options): Likewise.
25053
25054 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
25055
25056         PR debug/37890
25057         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
25058         it for block local namespace aliases.
25059         (gen_decl_die): Pass context_die to gen_namespace_die.
25060
25061 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25062
25063         PR c/39495
25064         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
25065         minimum or maximum value.
25066
25067 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
25068
25069         * reginfo.c (globalize_reg): Recompute derived reg sets.
25070
25071 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
25072
25073         PR target/39063
25074         * libgcc2.c (mprotect): Do not use signed arguments for
25075         VirtualProtect, use DWORD arguments.  Also fix the 'may
25076         be used uninitialized' warning for the np variable.
25077
25078 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25079
25080         PR target/39496
25081         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
25082         functions using regparm calling conventions when not optimizing.
25083         (ix86_function_sseregparm): Similarly for sseregparm calling
25084         conventions.
25085
25086 2009-03-19  Li Feng  <nemokingdom@gmail.com>
25087
25088         PR middle-end/39500
25089         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
25090         dependence if the first conflict is after niter iterations.
25091
25092 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
25093
25094         PR middle-end/38609
25095         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
25096         functions with dynamic stack-pointer adjustments.
25097
25098 2009-03-19  Ben Elliston  <bje@au.ibm.com>
25099
25100         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
25101         option; change to -msdata=data.
25102
25103 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25104
25105         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
25106         and -fopenmp.
25107
25108 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
25109
25110         PR target/35180
25111         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
25112
25113 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
25114
25115         * doc/invoke.texi (Code Gen Options): Expand discussion of
25116         -fno-common.
25117
25118 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
25119
25120         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
25121         * matrix-reorg.c (struct matrix_info): Likewise.
25122         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
25123         * rtl.h (struct mem_attrs): Likewise.
25124         * df.h (struct df): Likewise.
25125         * tree-data-ref.h (struct data_dependence_relation): Likewise.
25126         * ira-int.h (struct ira_allocno): Likewise.
25127         * df-scan.c (struct df_collection_rec): Likewise.
25128         * ira.c (struct equivalence): Likewise.
25129         * function.c (struct temp_slot): Likewise.
25130         * cfgloop.h (struct loop): Likewise.
25131
25132         PR debug/39485
25133         * function.c (use_register_for_decl): When not optimizing, disregard
25134         register keyword for variables with types containing methods.
25135
25136 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
25137
25138         PR middle-end/39447
25139         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
25140         (is_simple_operand): Call contains_component_ref_p before calling data
25141         reference analysis that would fail on COMPONENT_REFs.
25142
25143         * tree-vrp.c (search_for_addr_array): Fix formatting.
25144
25145 2009-03-18  Richard Guenther  <rguenther@suse.de>
25146
25147         * tree-vect-transform.c (vect_loop_versioning): Fold the
25148         generated comparisons.
25149         * tree-vectorizer.c (set_prologue_iterations): Likewise.
25150         (slpeel_tree_peel_loop_to_edge): Likewise.
25151
25152 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25153
25154         PR middle-end/37805
25155         * opts.c (print_specific_help): In addition to `undocumented',
25156         accept `separate' and `joined' flags if passed alone.  Describe
25157         output by the first matched one of those.
25158         (common_handle_option): Skip over empty strings.
25159         * gcc.c (display_help): Fix help string for `--help='.
25160         * doc/invoke.texi (Option Summary, Overall Options): With
25161         `--help=', classes and qualifiers can both be repeated, but
25162         only the latter can be negated.  One should not pass only
25163         negated qualifiers.  Fix markup and examples.
25164
25165         Revert
25166         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
25167         PR middle-end/37805
25168         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
25169         and -fhelp=separate.
25170
25171 2009-03-17  Jing Yu  <jingyu@google.com>
25172
25173         PR middle-end/39378
25174         * function.h (struct rtl_data): Move is_thunk from here...
25175         (struct function): ...to here.
25176         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
25177         * varasm.c (assemble_start_function): Change is_thunk from crtl to
25178         cfun.
25179         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
25180         cfun.
25181         (alpha_does_function_need_gp, alpha_start_function): Likewise.
25182         (alpha_output_function_end_prologue): Likewise.
25183         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
25184         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
25185         (rs6000_output_function_epilogue): Likewise.
25186         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
25187
25188 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
25189
25190         PR target/39482
25191         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
25192         from different units in a single alternative.
25193         (*truncdfsf_i387): Ditto.
25194         (*truncxfsf2_mixed): Ditto.
25195         (*truncxfdf2_mixed): Ditto.
25196
25197 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
25198
25199         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
25200         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
25201
25202         PR debug/39474
25203         * tree-ssa-live.c (remove_unused_locals): Don't remove local
25204         unused non-artificial variables when not optimizing.
25205
25206         PR debug/39471
25207         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
25208         DW_TAG_imported_module even if decl is IMPORTED_DECL with
25209         NAMESPACE_DECL in its DECL_INITIAL.
25210
25211         PR middle-end/39443
25212         * optabs.c (set_user_assembler_libfunc): New function.
25213         * expr.h (set_user_assembler_libfunc): New prototype.
25214         * c-common.c: Include libfuncs.h.
25215         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
25216         for memcmp, memset, memcpy, memmove and abort.
25217         * Makefile.in (c-common.o): Depend on libfuncs.h.
25218
25219         PR debug/39412
25220         * dwarf2out.c (gen_inlined_enumeration_type_die,
25221         gen_inlined_structure_type_die, gen_inlined_union_type_die,
25222         gen_tagged_type_instantiation_die): Removed.
25223         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
25224         do nothing.
25225
25226 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
25227
25228         PR testsuite/38526
25229         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
25230         its use.
25231         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
25232         (check-parallel-%): Ditto.
25233         (check-consistency): Ditto.
25234
25235 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
25236
25237         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
25238         local variable rhs by NULL_TREE.
25239
25240 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25241
25242         PR target/39477
25243         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
25244
25245 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25246
25247         PR target/39476
25248         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
25249
25250 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25251
25252         PR target/39473
25253         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
25254         for ms->sysv ABI calls only in 64bit mode.
25255
25256         * config/i386/i386.md (untyped_call): Support 32bit.
25257
25258 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25259
25260         * doc/extend.texi: Replace x86_65 with x86_64.
25261
25262 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
25263
25264         PR tree-optimization/39455
25265         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
25266         mismatches for POINTER_TYPE_P (type).
25267         (number_of_iterations_le): Likewise.
25268
25269 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
25270
25271         * config/picochip/picochip.c: Removed profiling support.
25272         * config/picochip/picochip.md: Removed profiling instruction.
25273         * config/picochip/picochip.h: Removed profiling builtin.
25274
25275 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
25276
25277         * doc/install.texi (--with-host-libstdcxx): Document.
25278
25279 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
25280
25281         PR target/34299
25282         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
25283         generate a warning if the function name does not begin with
25284         "__vector" and the function has either the 'signal' or 'interrupt'
25285         attribute, from here to ...
25286         (avr_declare_function_name): ...here. New function.
25287         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
25288         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
25289
25290 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
25291
25292         PR bootstrap/39454
25293         * cse.c (fold_rtx): Don't modify original const_arg1 when
25294         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
25295         separate variable instead.
25296         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
25297         from out of range shift counts.
25298         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
25299
25300 2009-03-13  Catherine Moore  <clm@codesourcery.com>
25301
25302         * config/i386/x-mingw32 (host-mingw32.o): Replace
25303         diagnostic.h with $(DIAGNOSTIC_H).
25304
25305 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
25306
25307         PR target/39431
25308         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
25309         predicate.
25310         * config/i386/sync.md (sync_compare_and_swap<mode>,
25311         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
25312         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
25313         into a register.
25314         (sync_double_compare_and_swapdi_pic,
25315         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
25316         cmpxchg8b_pic_memory_operand instead of just memory_operand.
25317
25318 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25319
25320         PR target/39445
25321         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
25322
25323 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25324
25325         PR target/39327
25326         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
25327         (avx_addsubv4df3): Likewise.
25328         (*avx_addsubv4sf3): Likewise.
25329         (sse3_addsubv4sf3): Likewise.
25330
25331 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25332
25333         PR target/38824
25334         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
25335
25336 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
25337
25338         PR debug/39432
25339         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
25340         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25341         registers for allocnos created from user-defined variables.
25342
25343 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25344
25345         PR target/39181
25346         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
25347         of non-integer mode as well.
25348
25349 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
25350
25351         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
25352         for functions for which the parameter types are unknown.
25353
25354 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
25355
25356         PR target/39137
25357         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
25358         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
25359         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
25360         * config/i386/i386.c (ix86_local_alignment): For
25361         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
25362         long long variables on the stack to avoid dynamic realignment.
25363         Allow the first argument to be a decl rather than type.
25364         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
25365
25366 2009-03-11  Nick Clifton  <nickc@redhat.com>
25367
25368         PR target/5362
25369         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
25370         options.
25371         Add description to mno-lsim option.
25372         * config/mcore/mcore.h: Remove comment about deprecated m4align
25373         option.
25374         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
25375         * doc/invoke.texi: Add description of mno-lsim and
25376         mstack-increment options.
25377
25378         * config/fr30/fr30.opt: Document the -mno-lsim option.
25379         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
25380         and -mno-lsim options.
25381
25382 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25383
25384         * fold-const.c (fold_comparison): Only call fold_inf_compare
25385         if the mode supports infinities.
25386
25387 2009-03-11  Jason Merrill  <jason@redhat.com>
25388
25389         PR debug/39086
25390         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
25391         end already did.  Notice GIMPLE_CALL modifications of the result.
25392         Don't copy debug information from an ignored decl or a decl from
25393         another function.
25394
25395 2009-03-10  Richard Guenther  <rguenther@suse.de>
25396             Nathan Froyd  <froydnj@codesourcery.com>
25397
25398         PR middle-end/37850
25399         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
25400         (__divMODE3): Likewise.
25401
25402 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
25403
25404         PR tree-optimization/39394
25405         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
25406         DECL_SIZE_UNIT of variable length FIELD_DECLs.
25407
25408 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25409
25410         * recog.c (verfiy_changes): Disallow renaming of hard regs in
25411         inline asms for register asm ("") declarations.
25412
25413 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
25414
25415         * fold-const.c (fold_unary): Fix comment.
25416
25417 2009-03-07  Jan Hubicka  <jh@suse.cz>
25418
25419         PR target/39361
25420         * tree-inline.c (setup_one_parameter): Do replacement of const
25421         argument by constant in SSA form.
25422
25423 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25424
25425         PR middle-end/38028
25426         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
25427         determine alignment passed to assign_stack_local.
25428         (assign_parms_unsplit_complex): Likewise.
25429         * except.c (sjlj_build_landing_pads): Likewise.
25430
25431 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
25432
25433         PR middle-end/39360
25434         * tree-flow.h (add_referenced_var): Return bool instead of void.
25435         * tree-dfa.c (add_referenced_var): Return result of
25436         referenced_var_check_and_insert call.
25437         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
25438         of referenced_var_check_and_insert.
25439
25440         PR debug/39372
25441         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
25442         (gen_variable_die): Emit DW_AT_location on abstract static variable's
25443         DIE, don't emit it if abstract origin already has it.
25444         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
25445         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
25446
25447 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25448
25449         * genpreds.c (needs_variable): Fix parentheses at variable name
25450         detection.
25451         (write_tm_constrs_h): Indent generated code.
25452
25453 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25454
25455         * doc/extend.texi (Function Attributes): Add documentation
25456         for isr attributes.
25457
25458 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
25459
25460         PR debug/39387
25461         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
25462         take locus from its DECL_SOURCE_LOCATION instead of input_location.
25463
25464 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
25465
25466         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
25467         the loop as bad.
25468
25469 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
25470
25471         PR debug/39379
25472         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
25473         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
25474
25475 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
25476
25477         * config/i386/i386.md (R8_REG, R9_REG): New constants.
25478         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
25479         constants instead of magic numbers.
25480         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
25481         (QI_REG_P): Ditto.
25482         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
25483         (x86_64_ms_abi_int_parameter_registers): Ditto.
25484         (x86_64_int_return_registers): Ditto.
25485         (ix86_maybe_switch_abi): Ditto.
25486         (ix86_expand_call): Ditto for clobbered_registers array.
25487         (ix86_hard_regno_mode_ok): Ditto.
25488         (x86_extended_QIreg_mentioned_p): Ditto.
25489
25490 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
25491
25492         PR tree-optimization/39349
25493         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
25494
25495         * combine.c (gen_lowpart_for_combine): Use omode when generating
25496         clobber.
25497
25498 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
25499
25500         PR rtl-optimization/39235
25501         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
25502
25503 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
25504
25505         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
25506
25507 2009-03-04  Richard Guenther  <rguenther@suse.de>
25508
25509         PR tree-optimization/39362
25510         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
25511         that occur in abnormal PHIs should be varying.
25512
25513 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
25514
25515         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
25516         Extend comments.
25517         (simple_iv):  Take loop as an argument instead of statement.
25518         * tree-scalar-evolution.h (simple_iv): Declaration changed.
25519         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
25520         to simple_iv.
25521         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
25522         Ditto.
25523         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
25524         * matrix-reorg.c (analyze_transpose): Ditto.
25525         * tree-data-ref.c (dr_analyze_innermost): Ditto.
25526         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
25527         * tree-predcom.c (ref_at_iteration): Ditto.
25528         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
25529
25530 2009-03-04  Richard Guenther  <rguenther@suse.de>
25531
25532         PR tree-optimization/39358
25533         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
25534         escaped_id and callused_id.
25535         (solve_graph): Likewise.
25536
25537 2009-03-04  Richard Guenther  <rguenther@suse.de>
25538
25539         PR tree-optimization/39339
25540         * tree-sra.c (try_instantiate_multiple_fields): Make it
25541         no longer ICE on the above.
25542
25543 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
25544
25545         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
25546         that fits within Pmode.
25547
25548 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
25549
25550         PR middle-end/10109
25551         * tm.texi (LIBCALL_VALUE): Update description.
25552
25553 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
25554
25555         PR middle-end/34443
25556         * doc/extend.texi (section): Update description.
25557
25558 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
25559
25560         PR middle-end/39345
25561         * tree-inline.c (remapped_type): New.
25562         (can_be_nonlocal): Call remapped_type instead of remap_type.
25563
25564 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
25565
25566         PR fortran/39354
25567         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
25568         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
25569
25570 2009-03-03  Richard Guenther  <rguenther@suse.de>
25571
25572         PR middle-end/39272
25573         * tree.c (tree_nonartificial_location): New function.
25574         * tree.h (tree_nonartificial_location): Declare.
25575         * builtins.c (expand_builtin_memory_chk): Provide location
25576         of the call location for artificial function pieces.
25577         (maybe_emit_chk_warning): Likewise.
25578         (maybe_emit_sprintf_chk_warning): Likewise.
25579         (maybe_emit_free_warning): Likewise.
25580         * expr.c (expand_expr_real_1): Likewise.
25581
25582 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
25583
25584         PR tree-optimization/39343
25585         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
25586         COMPONENT_REF t has ARRAY_TYPE.
25587
25588 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
25589
25590         PR middle-end/39335
25591         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
25592         when the type precision of the induction variable should be
25593         larger than the type precision of nit.
25594         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
25595         * graphite.c (graphite_loop_normal_form): Same.
25596         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
25597
25598 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
25599
25600         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
25601         (*call_1_rex64_ms_sysv): Use named constants instead of magic
25602         numbers to describe clobbered registers.
25603         (*call_value_0_rex64_ms_sysv): Ditto.
25604         * config/i386/mmx.md (mmx_emms): Ditto.
25605         (mmx_femms): Ditto.
25606
25607 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
25608
25609         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
25610         of ABI_64.
25611
25612 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25613
25614         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
25615         (spu_section_type_flags): New function.
25616
25617 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
25618
25619         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
25620         reg_class_contents of FLOAT_REGS into a temporary.
25621
25622 2009-03-02  Richard Guenther  <rguenther@suse.de>
25623             Ira Rosen  <irar@il.ibm.com>
25624
25625         PR tree-optimization/39318
25626         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
25627         information to the vectorized statement.
25628
25629 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
25630
25631         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
25632         variable.  Use defined names instead of magic constants for REX SSE
25633         registers.
25634
25635 2009-03-01  Richard Guenther  <rguenther@suse.de>
25636
25637         PR tree-optimization/39331
25638         * omp-low.c (lower_send_shared_vars): Do not receive new
25639         values for the reference of DECL_BY_REFERENCE parms or results.
25640
25641 2009-03-01  Jan Hubicka  <jh@suse.cz>
25642
25643         PR debug/39267
25644         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
25645         BLOCK_NONLOCALIZED_VAR): New macros.
25646         (tree_block): Add nonlocalized_vars.
25647         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
25648         gen_decl_die): Add origin argument.  Allow generation of die with
25649         origin at hand only.
25650         (gen_member_die, gen_type_die_with_usage, force_decl_die,
25651         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
25652         of gen_*.
25653         (gen_block_die): Fix checking for unused blocks.
25654         (process_scope_var): Break out from .... ; work with origins only.
25655         (decls_for_scope) ... here; process nonlocalized list.
25656         (dwarf2out_ignore_block): Look for nonlocalized vars.
25657         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
25658         vars.
25659         (dump_scope_block): Dump them.
25660         * tree-inline.c (remap_decls): Handle nonlocalized vars.
25661         (remap_block): Likewise.
25662         (can_be_nonlocal): New predicate.
25663         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
25664
25665 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25666
25667         * configure: Regenerate.
25668
25669 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25670
25671         * optc-gen.awk: No need to duplicate option flags twice.
25672         Reuse help texts for duplicate options which do not have any.
25673
25674         * gcc.c (display_help): Document --version.
25675
25676         * gcc.c (main): If print_help_list and verbose_flag, ensure
25677         driver output comes before subprocess output.
25678
25679         * optc-gen.awk: Assign all remaining fields to help string,
25680         space-separated, for multi-line help in *.opt.
25681
25682         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
25683         -Wno-pedantic-ms-format is for MinGW targets only.
25684
25685         * doc/options.texi (Option file format): Fix bad indentation,
25686         restoring dropped sentence.
25687
25688 2009-02-28  Jan Hubicka  <jh@suse.cz>
25689
25690         * tree-inline.c (tree_function_versioning): Output debug info.
25691
25692 2009-02-28  Jan Hubicka  <jh@suse.cz>
25693
25694         PR debug/39267
25695         * tree-inline.c (setup_one_parameter): Do not copy propagate
25696         arguments when not optimizing.
25697
25698 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
25699
25700         PR target/39327
25701         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
25702         (avx_addsubv4df3): Likewise.
25703         (*avx_addsubv4sf3): Likewise.
25704         (sse3_addsubv4sf3): Likewise.
25705         (*avx_addsubv2df3): Likewise.
25706         (sse3_addsubv2df3): Likewise.
25707         (avx_unpckhps256): Correct item selectors.
25708         (avx_unpcklps256): Likewise.
25709         (avx_unpckhpd256): Likewise.
25710         (avx_unpcklpd256): Likewise.
25711
25712 2009-02-28  Jan Hubicka  <jh@suse.cz>
25713
25714         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
25715         static vars.
25716         (copy_arguments_for_versioning): If var is declared don't declare it.
25717         (tree_function_versioning): First setup substitutions and then copy
25718         args.
25719
25720 2009-02-27  Jan Hubicka  <jh@suse.cz>
25721
25722         PR debug/39267
25723         * cgraph.h (varpool_output_debug_info): Remove.
25724         * cgraphunit.c (varpool_output_debug_info): Remove.
25725         * dwarf2out.c (deferred_locations_struct): New struct
25726         (deferred_locations): New type.
25727         (deferred_locations_list): New static var.
25728         (deffer_location): New function.
25729         (gen_variable_die): Use it.
25730         (decls_for_scope): Output info on local static vars.
25731         (dwarf2out_finish): Process deferred locations.
25732         * varpool.c (varpool_output_debug_info): Remove.
25733
25734 2009-02-27  Jan Hubicka  <jh@suse.cz>
25735
25736         PR debug/39267
25737         * tree.h (TREE_PROTECTED): Fix comment.
25738         (BLOCK_HANDLER_BLOCK): Remove.
25739         (struct tree_block): Remove handler_block add body_block.
25740         (inlined_function_outer_scope_p): New.
25741         (is_body_block): Remove.
25742         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
25743         * dwarf2out.c (is_inlined_entry_point): Remove.
25744         (add_high_low_attributes): Use inlined_function_outer_scope_p.
25745         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
25746         code.
25747         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
25748         * gimplify.c (gimplify_expr): Gimplify body blocks.
25749         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
25750         block with multiple subblocks.
25751         (dump_scope_block): Prettier output; dump more flags and info.
25752         (dump_scope_blocks): New.
25753         (remove_unused_locals): Use dump_scope_blocks.
25754         * tree-flow.h (dump_scope_blocks): Declare.
25755         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
25756         * stmt.c (is_body_block): Remove.
25757         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
25758         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
25759
25760 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
25761
25762         PR middle-end/39308
25763         * graphite.c (graphite_loop_normal_form): Do not call
25764         number_of_iterations_exit from a gcc_assert.
25765
25766 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25767
25768         * config/s390/s390.c (s390_swap_cmp): Look for conditional
25769         jumps if COND is NULL.
25770         (find_cond_jump): New function.
25771         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
25772         * config/s390/s390.md: Remove z10_cobra attribute value.
25773
25774 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
25775
25776         * config/alpha/alpha.h (alpha_expand_mov): Return false if
25777         force_const_mem returns NULL_RTX.
25778
25779 2009-02-26  Jan Hubicka  <jh@suse.cz>
25780
25781         PR debug/39267
25782         * cgraph.h (varpool_output_debug_info): Remove.
25783         * cgraphunit.c (varpool_output_debug_info): Remove.
25784         * dwarf2out.c (deferred_locations_struct): New struct
25785         (deferred_locations): New type.
25786         (deferred_locations_list): New static var.
25787         (deffer_location): New function.
25788         (gen_variable_die): Use it.
25789         (decls_for_scope): Output info on local static vars.
25790         (dwarf2out_finish): Process deferred locations.
25791         * varpool.c (varpool_output_debug_info): Remove.
25792
25793 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
25794
25795         PR rtl-optimization/39241
25796         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
25797         to subreg_offset_representable_p.
25798
25799 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
25800
25801         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
25802         execute function prototype.  Get f and nregs from max_reg_num
25803         and get_insns.  Remove the first backward pass as it's dead,
25804         guard the forward pass by flag_expensive_optimizations.
25805         (rest_of_handle_regmove): Delete.
25806         (pass_regmove): Replace it with regmove_optimize.
25807
25808 2009-02-25  Martin Jambor  <mjambor@suse.cz>
25809
25810         PR tree-optimization/39259
25811         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
25812         calls_alloca function flags.
25813         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
25814         calls are detected.
25815
25816 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
25817
25818         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
25819         flags_set_1_rtx, flags_set_1_set): Delete.
25820         (regmove_optimize): Do not call mark_flags_life_zones.
25821
25822 2009-02-24  Julian Brown  <julian@codesourcery.com>
25823
25824         PR target/35965
25825         * config/arm/arm.c (require_pic_register): Only set
25826         cfun->machine->pic_reg once per function.
25827
25828 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
25829
25830         * doc/invoke.texi (Link Options): Document an easier way to pass
25831         options that take arguments to the GNU linker using -Xlinker and -Wl.
25832
25833 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
25834
25835         PR target/33785
25836         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
25837
25838 2009-02-24  Richard Guenther  <rguenther@suse.de>
25839
25840         PR debug/39285
25841         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
25842
25843 2009-02-24  Richard Guenther  <rguenther@suse.de>
25844             Zdenek Dvorak  <ook@ucw.cz>
25845
25846         PR tree-optimization/39233
25847         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
25848         from converting them to a generic type.
25849
25850 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
25851
25852         PR tree-optimization/39260
25853         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
25854         contains a condition with a real type.
25855         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
25856
25857 2009-02-23  Jason Merrill  <jason@redhat.com>
25858
25859         PR c++/38880
25860         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
25861         narrowing_initializer_constant_valid_p.
25862         (narrowing_initializer_constant_valid_p): Don't return
25863         null_pointer_node for adding a pointer to itself.
25864
25865 2009-02-23  Jan Hubicka  <jh@suse.cz>
25866
25867         PR c/12245
25868         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
25869         resizing.
25870
25871 2009-02-23  Jan Hubicka  <jh@suse.cz>
25872
25873         PR tree-optimization/37709
25874         * tree.c (block_ultimate_origin): Move here from dwarf2out.
25875         * tree.h (block_ultimate_origin): Declare.
25876         * dwarf2out.c (block_ultimate_origin): Move to tree.c
25877         * tree-ssa-live.c (remove_unused_scope_block_p):
25878         Eliminate blocks containig no instructions nor live variables nor
25879         nested blocks.
25880         (dump_scope_block): New function.
25881         (remove_unused_locals): Enable removal of dead blocks by default;
25882         enable dumping at TDF_DETAILS.
25883
25884 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
25885
25886         * config/i386/i386.c (classify_argument): Don't allow COImode
25887         and OImode.
25888         (function_arg_advance_32): Don't allow OImode.
25889         (function_arg_32): Likewise.
25890         (function_value_32): Likewise.
25891         (return_in_memory_32): Likewise.
25892         (function_arg_64): Remove OImode comment.
25893
25894 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
25895
25896         PR target/39261
25897         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
25898         ix86_expand_vector_set for V4DImode in 64bit mode only.
25899         (ix86_expand_vector_init_one_var): Likewise.
25900
25901 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
25902
25903         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
25904
25905 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
25906
25907         PR bootstrap/39257
25908         * loop-iv.c: Revert last change.
25909         * emit-rtl.c: Likewise.
25910
25911 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
25912
25913         PR target/39256
25914         * config/i386/i386.c (type_natural_mode): Remove an extra
25915         space in the warning message.
25916         (function_value_32): Handle 32-byte vector modes.
25917         (return_in_memory_32): Likewise.
25918
25919 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
25920
25921         * loop-iv.c (truncate_value): New function.
25922         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
25923         of lowpart_subreg.
25924         (lowpart_subreg): Move to...
25925         * emit-rtl.c: ...here.
25926
25927 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
25928
25929         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
25930         accidental and undocumented change at revision 140860.
25931
25932 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
25933
25934         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
25935         take gimple_seq * arguments.
25936         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
25937         types_compatible_p langhook.
25938
25939 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
25940             Joseph Myers  <joseph@codesourcery.com>
25941
25942         * config/arm/arm.c (arm_builtin_va_list): New function.
25943         (arm_expand_builtin_va_start): Likewise.
25944         (arm_gimplify_va_arg_expr): Likewise.
25945         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
25946         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
25947         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
25948         (va_list_type): New variable.
25949         (arm_mangle_type): Mangle va_list_type appropriately.
25950
25951 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
25952
25953         PR middle-end/39157
25954         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
25955         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
25956         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
25957         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
25958         parameter to 1000 for -O1 by default.
25959         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
25960         parameter.
25961         * loop-invariant.c: Include params.h.
25962         (move_loop_invariants): Don't call move_single_loop_invariants on
25963         very large loops.
25964
25965 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
25966
25967         * calls.c (emit_library_call_value_1): Use slot_offset instead of
25968         offset when calculating bounds for indexing stack_usage_map.  Fixes
25969         a buffer overflow with certain target setups.
25970
25971 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
25972
25973         PR target/39240
25974         * calls.c (expand_call): Clear try_tail_call if caller and callee
25975         disagree in promotion of function return value.
25976
25977 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
25978
25979         PR target/39175
25980         * c-common.c (c_determine_visibility): If visibility changed and
25981         DECL_RTL has been already set, call make_decl_rtl to update symbol
25982         flags.
25983
25984 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
25985
25986         PR c++/39188
25987         * varasm.c (assemble_variable): Don't check DECL_NAME when
25988         globalizing a variable.
25989
25990 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
25991
25992         PR c/38483
25993         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
25994         expression before any __builtin_trap call.
25995         * c-typeck.c (build_function_call): Convert and check function
25996         arguments before generating a call to a trap.  Evaluate the
25997         function arguments before the trap.
25998
25999 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
26000
26001         PR target/39228
26002         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26003         (UNSPEC_FXAM_MEM): New unspec.
26004         (fxam<mode>2_i387_with_temp): New insn and split pattern.
26005         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
26006         memory using fxam<mode>2_i387_with_temp to remove excess precision.
26007
26008 2009-02-19  Richard Guenther  <rguenther@suse.de>
26009
26010         PR tree-optimization/39207
26011         PR tree-optimization/39074
26012         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26013         storedanything_tree): New.
26014         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
26015         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26016         (build_succ_graph): Add edges from STOREDANYTHING to all
26017         non-direct nodes.
26018         (init_base_vars): Initialize STOREDANYTHING.
26019         (compute_points_to_sets): Free substitution info after
26020         building the succ graph.
26021         (ipa_pta_execute): Likewise.
26022
26023         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
26024         field.
26025         (do_ds_constraint): Do not add to special var or non-pointer
26026         field solutions.
26027         (type_could_have_pointers): Split out from ...
26028         (could_have_pointers): ... here.  For arrays use the element type.
26029         (create_variable_info_for): Initialize may_have_pointers.
26030         (new_var_info): Likewise.
26031         (handle_lhs_call): Make the HEAP variable unknown-sized.
26032         (intra_create_variable_infos): Use a type with pointers for
26033         PARM_NOALIAS, make it unknown-sized.
26034
26035 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26036
26037         PR target/39224
26038         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
26039
26040 2009-02-18  Jason Merrill  <jason@redhat.com>
26041
26042         PR target/39179
26043         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
26044         value if DECL_EXTERNAL.
26045         * tree-sra.c (sra_walk_gimple_assign): Likewise.
26046         * target.h (gcc_target::binds_local_p): Clarify "module".
26047         * tree.h (TREE_PUBLIC): Clarify "module".
26048
26049 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
26050
26051         PR target/38891
26052         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
26053         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
26054
26055 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
26056
26057         PR target/39082
26058         * c.opt (Wabi): Support C and ObjC.
26059         (Wpsabi): New.
26060
26061         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
26062
26063         * config/i386/i386.c (classify_argument): Warn once about the ABI
26064         change when passing union with long double.
26065
26066         * doc/invoke.texi: Update -Wabi for warning psABI changes.
26067
26068 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
26069
26070         PR c/35447
26071         * c-parser.c (c_parser_compound_statement): Always enter and leave
26072         a scope.
26073
26074 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26075
26076         PR target/34587
26077         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
26078
26079 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
26080
26081         PR tree-optimization/36922
26082         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
26083         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
26084         Likewise.
26085
26086 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26087
26088         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
26089         to 0 for EABI64.
26090
26091 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26092
26093         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
26094
26095 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26096
26097         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
26098         tree sharing.
26099
26100 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
26101             Richard Sandiford  <rdsandiford@googlemail.com>
26102
26103         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
26104         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
26105         (loongson_biadd): ...this.
26106
26107 2009-02-17  Richard Guenther  <rguenther@suse.de>
26108
26109         PR tree-optimization/39202
26110         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
26111         a var make sure to follow existing collapses.
26112
26113 2009-02-17  Richard Guenther  <rguenther@suse.de>
26114
26115         PR middle-end/39214
26116         * langhooks.c (lhd_print_error_function): Check for NULL block.
26117
26118 2009-02-17  Richard Guenther  <rguenther@suse.de>
26119
26120         PR tree-optimization/39204
26121         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
26122         of the PHI arg.
26123
26124 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
26125
26126         * config/soft-fp/double.h: Update from glibc CVS.
26127
26128 2009-02-17  Richard Guenther  <rguenther@suse.de>
26129
26130         PR tree-optimization/39207
26131         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
26132         strict-aliasing warnings for pointers pointing to NULL.
26133
26134 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
26135
26136         PR c/35446
26137         * c-parser.c (c_parser_braced_init): Call pop_init_level when
26138         skipping until next close brace.
26139
26140 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
26141
26142         PR target/37049
26143         * config/i386/i386.c (ix86_expand_push): Set memory alignment
26144         to function argument boundary.
26145
26146 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26147
26148         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
26149         in the lea_add. Reload eventually constraints it properly.
26150         * config/picochip/constraints.md: Remove the target constraint
26151         "b", since it is not needed anymore.
26152
26153 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
26154
26155         * gthr-dce.h: Uglify function parameter and local variable names.
26156         * gthr-gnat.h: Likewise.
26157         * gthr-mipssde.h: Likewise.
26158         * gthr-nks.h: Likewise.
26159         * gthr-posix95.h: Likewise.
26160         * gthr-posix.h: Likewise.
26161         * gthr-rtems.h: Likewise.
26162         * gthr-single.h: Likewise.
26163         * gthr-solaris.h: Likewise.
26164         * gthr-tpf.h: Likewise.
26165         * gthr-vxworks.h: Likewise.
26166         * gthr-win32.h: Likewise.
26167
26168 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
26169
26170         PR target/39196
26171         * config/i386/i386.md: Restrict the new peephole2 to move
26172         between MMX/SSE registers.
26173
26174 2009-02-15  Richard Guenther  <rguenther@suse.de>
26175
26176         Revert
26177         2009-02-13  Richard Guenther  <rguenther@suse.de>
26178
26179         * configure.ac: Enable LFS.
26180         * configure: Re-generate.
26181         * config.in: Likewise.
26182
26183 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26184
26185         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
26186         spu_srqwbyte, spu_srqwbytebc): Define.
26187         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
26188         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
26189         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
26190         "shrqby_<mode>"): New insn-and-split patterns.
26191         * config/spu/spu.c (expand_builtin_args): Determine and return
26192         number of operands using spu_builtin_description data.
26193         (spu_expand_builtin_1): Use it.
26194
26195 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
26196
26197         PR target/38056
26198         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
26199         TARGET_CONST_GP.
26200
26201 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26202
26203         PR target/39149
26204         * config/i386/i386.c (override_options): Correct warning
26205         messages for -malign-loops, -malign-jumps and -malign-functions.
26206
26207 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26208
26209         PR target/39152
26210         * config/i386/i386.md: Restrict the new peephole2 to move
26211         between the general purpose registers.
26212
26213 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26214
26215         PR target/39162
26216         * config/i386/i386.c (type_natural_mode): Add a new argument.
26217         Return the original mode and warn ABI change if vector size is 32byte.
26218         (function_arg_advance): Updated.
26219         (function_arg): Likewise.
26220         (ix86_function_value): Likewise.
26221         (ix86_return_in_memory): Likewise.
26222         (ix86_sol10_return_in_memory): Likewise.
26223         (ix86_gimplify_va_arg): Likewise.
26224         (function_arg_32): Don't warn ABX ABI change here.
26225         (function_arg_64): Likewise.
26226
26227 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
26228
26229         * loop-iv.c (implies_p): In the final case, test that operands 0
26230         of the two comparisons match.
26231
26232         * config/bfin/bfin.c (find_prev_insn_start): New function.
26233         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
26234         (find_next_insn_start): Move.
26235
26236 2009-02-13  Richard Guenther  <rguenther@suse.de>
26237
26238         * configure.ac: Enable LFS.
26239         * configure: Re-generate.
26240         * config.in: Likewise.
26241
26242 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
26243
26244         PR c/35444
26245         * c-parser.c (c_parser_parms_list_declarator): Discard pending
26246         sizes on syntax error after some arguments have been parsed.
26247
26248 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26249
26250         * doc/invoke.texi (-fira): Remove.
26251
26252 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26253
26254         * caller-save.c: Replace regclass.c with reginfo.c in comments.
26255         * recog.c: Likewise.
26256         * rtl.h: Likewise.
26257
26258 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
26259
26260         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
26261         (umul_ppmm): Likewise.
26262         (count_leading_zeros): Likewise.
26263         (count_trailing_zeros): Likewise.
26264         (UMUL_TIME): Likewise.
26265
26266 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26267
26268         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
26269         soft-fp/t-softfp to tmake_file.
26270
26271         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
26272         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
26273         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
26274         IA64_BUILTIN_INFQ]: New.
26275         (ia64_init_builtins): Initialize __builtin_infq,
26276         __builtin_fabsq and __builtin_copysignq if not HPUX.
26277         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
26278         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
26279
26280         * config/ia64/lib1funcs.asm (__divtf3): Define only if
26281         SHARED is defined.
26282         (__fixtfti): Likewise.
26283         (__fixunstfti): Likewise.
26284         (__floattitf): Likewise.
26285
26286         * config/ia64/libgcc-glibc.ver: New.
26287         * config/ia64/t-fprules-softfp: Likewise.
26288         * config/ia64/sfp-machine.h: Likewise.
26289
26290         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
26291         (LIBGCC2_TF_CEXT): Likewise.
26292         (TF_SIZE): Likewise.
26293         (TARGET_INIT_LIBFUNCS): Likewise.
26294
26295         * config/ia64/t-glibc (SHLINB_MAPFILES):
26296         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
26297
26298 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26299
26300         * config/i386/i386.c (construct_container): Rewrite processing
26301         BLKmode with X86_64_SSE_CLASS.
26302
26303 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
26304
26305         PR target/39152
26306         * config/i386/i386.md: Replace simplify_replace_rtx with
26307         replace_rtx in the new peephole2.
26308
26309 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
26310
26311         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
26312         loop unrolling do not happen at -O2.
26313
26314 2009-02-12  Michael Matz  <matz@suse.de>
26315
26316         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
26317
26318 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26319
26320         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
26321         for -g3.
26322
26323 2009-02-12  Ben Elliston  <bje@au.ibm.com>
26324
26325         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
26326         patterns when updating the back chain.  Missed in the 2009-02-10
26327         change.
26328
26329 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
26330
26331         * doc/extend.texi (Decimal Floating Types): Update identifier of
26332         draft TR and list of missing support.
26333
26334 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
26335
26336         PR middle-end/39154
26337         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
26338         bit to variable length decl's flags, add it also to its
26339         pointer replacement variable.
26340
26341 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
26342             Jakub Jelinek  <jakub@redhat.com>
26343
26344         PR target/39118
26345         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
26346         (memory_blockage): New expander.
26347         (*memory_blockage): New insn pattern.
26348         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
26349         instead of general blockage at the end of function prologue when
26350         frame pointer is used to access red zone area.  Do not emit blockage
26351         when profiling, it is emitted in generic code.
26352         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
26353         function epilogue when frame pointer is used to access red zone area.
26354
26355 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
26356
26357         PR target/38824
26358         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
26359         by arithmetic with memory operands.
26360         * config/i386/predicates.md (commutative_operator): New.
26361
26362 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
26363
26364         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
26365         bulleted lists.
26366
26367 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
26368
26369         * alias.h (record_alias_subset): Declare.
26370         * alias.c (record_alias_subset): Make global.
26371
26372 2009-02-10  Nick Clifton  <nickc@redhat.com>
26373
26374         * tree-parloops.c: Change license to GPLv3.
26375         * ipa-struct-reorg.c: Change license to GPLv3.
26376         * ipa-struct-reorg.h: Change license to GPLv3.
26377
26378 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
26379
26380         PR c/39084
26381         * c-decl.c (start_struct): Return NULL on error.
26382
26383 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
26384
26385         PR middle-end/39124
26386         * cfgloopmanip.c (remove_path): Call remove_bbs after
26387         cancel_loop_tree, not before it.
26388
26389         PR target/39139
26390         * function.h (struct function): Add has_local_explicit_reg_vars bit.
26391         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
26392         VAR_DECLs were seen.
26393         * tree-ssa-live.c (remove_unused_locals): Recompute
26394         cfun->has_local_explicit_reg_vars.
26395         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
26396         copies or clearings if cfun->has_local_explicit_reg_vars.
26397
26398 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
26399
26400         PR target/39118
26401         * config/i386/i386.c (expand_prologue): Emit blockage at the end
26402         of function prologue when frame pointer is used to access
26403         red zone area.
26404
26405 2009-02-10  Richard Guenther  <rguenther@suse.de>
26406
26407         PR middle-end/39127
26408         * gimplify.c (gimple_regimplify_operands): Always look if
26409         we need to create a temporary.
26410
26411 2009-02-10  Richard Guenther  <rguenther@suse.de>
26412
26413         PR tree-optimization/39132
26414         * tree-loop-distribution.c (todo): New global var.
26415         (generate_memset_zero): Trigger TODO_rebuild_alias.
26416         (tree_loop_distribution): Return todo.
26417
26418 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
26419
26420         PR target/39119
26421         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
26422         (x86_64_reg_class_name): Removed.
26423         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
26424         first one isn't X86_64_SSE_CLASS or any other ones aren't
26425         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
26426         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
26427         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
26428         and 3 X86_64_SSEUP_CLASS.
26429         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
26430         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
26431
26432 2009-02-10  Ben Elliston  <bje@au.ibm.com>
26433
26434         * config/rs6000/rs6000.md (allocate_stack): Always use an update
26435         form instruction to update the stack back chain word, even if the
26436         user has disabled the generation of update instructions.
26437         (movdi_<mode>_update_stack): New.
26438         (movsi_update_stack): Likewise.
26439         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
26440         always use an update form instruction to update the stack back
26441         chain word.
26442
26443 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
26444
26445         PR middle-end/38953
26446         * graphite.c (if_region_set_false_region): After moving a region in
26447         the false branch of a condition, remove the empty dummy basic block.
26448         (gloog): Remove wrong fix for PR38953.
26449
26450 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26451
26452         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
26453         generation due to implicit sign extension.
26454
26455 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
26456
26457         PR middle-end/38981
26458         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
26459         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
26460
26461 2009-02-09  Richard Guenther  <rguenther@suse.de>
26462
26463         PR middle-end/35202
26464         * convert.c (convert_to_real): Disable (float)fn((double)x)
26465         to fnf(x) conversion if errno differences may occur and
26466         -fmath-errno is set.
26467
26468 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
26469
26470         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
26471         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26472         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
26473
26474 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
26475
26476         PR c/35434
26477         * c-common.c (handle_alias_attribute): Disallow attribute for
26478         anything not a FUNCTION_DECL or VAR_DECL.
26479
26480 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
26481
26482         PR c/39035
26483         * real.c (do_compare): Special-case compare of zero against
26484         decimal float value.
26485
26486 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
26487
26488         PR c/36432
26489         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
26490         as indicating flexible array members unless the field itself is
26491         being declarared as the incomplete array.
26492
26493 2009-02-06  Jan Hubicka  <jh@suse.cz>
26494
26495         PR tree-optimization/38844
26496         * ipa-inline.c (try_inline): Stop inlining recursion when edge
26497         is already inlined.
26498
26499 2009-02-06  Richard Guenther  <rguenther@suse.de>
26500
26501         PR middle-end/38977
26502         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
26503         fork because we may expand it as __gcov_fork.
26504
26505 2009-02-06  Nick Clifton  <nickc@redhat.com>
26506
26507         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
26508
26509 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
26510
26511         PR tree-optimization/35659
26512         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
26513         vn_phi_eq): Shortcut if hashcode does not match.
26514         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
26515         NULL operands.
26516         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
26517         and avoid iterative_hash_expr.
26518         (FOR_EACH_VALUE_ID_IN_SET): New.
26519         (value_id_compare): Remove.
26520         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
26521         sort expressions by value id.
26522
26523 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
26524
26525         PR target/38991
26526         * config/sh/predicates.md (general_movsrc_operand): Don't check
26527         the subreg of system registers here.
26528
26529 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
26530
26531         PR c++/39106
26532         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
26533         on the copied decl.
26534
26535 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
26536
26537         PR rtl-optimization/39110
26538         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
26539         addresses, not aligned ones.
26540
26541 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
26542             Richard Guenther  <rguenther@suse.de>
26543
26544         PR tree-optimization/39100
26545         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
26546         comment says and add edges.
26547
26548 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
26549
26550         PR c/35435
26551         * c-common.c (handle_tls_model_attribute): Ignore attribute for
26552         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
26553
26554 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
26555
26556         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
26557         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
26558         register_bb_in_sese, new_sese, free_sese): Moved.
26559         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
26560         outermost_loop_in_scop, build_scop_iteration_domain,
26561         expand_scalar_variables_ssa_name, get_vdef_before_scop,
26562         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
26563         Use loop_in_sese_p instead of loop_in_scop_p.
26564         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
26565         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
26566         (scopdet_basic_block_info): Fix bug in scop detection.
26567         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
26568         eq_loop_to_cloog_loop): Remove.
26569         (nb_loops_around_loop_in_scop, nb_loop
26570         ref_nb_loops): Moved here...
26571         * graphite.h (ref_nb_loops): ... from here.
26572         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
26573         (loop_domain_dim, loop_iteration_vector_dim): Remove.
26574         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
26575
26576 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
26577             Hans-Peter Nilsson  <hp@axis.com>
26578
26579         PR rtl-optimization/37889
26580         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
26581         Move offset handling from PLUS to before the switch.  Use new
26582         arguments when considering SYMBOL_REFs too.
26583         (rtx_addr_can_trap_p): Pass dummy offset and size.
26584         (enum may_trap_p_flags): Remove.
26585         (may_trap_p_1): Pass size from MEM_SIZE.
26586
26587         PR rtl-optimization/38921
26588         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
26589         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
26590         * rtlanal.c (may_trap_after_code_motion_p): Delete.
26591         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
26592
26593 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
26594
26595         AVX Programming Reference (January, 2009)
26596         * config/i386/sse.md (*vpclmulqdq): New.
26597
26598 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
26599
26600         PR tree-optimization/38977
26601         PR gcov-profile/38292
26602         * calls.c (special_function_p): Disregard __builtin_ prefix.
26603
26604 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
26605
26606         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
26607         non-indexable addresses even before reload.
26608
26609 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
26610
26611         PR c/29129
26612         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
26613         as having variable size.  Do not give an error for unnamed
26614         parameters with [*] declarators.  Give a warning for type names
26615         with [*] declarators and mark them as variable size.
26616         * c-parser.c (c_parser_sizeof_expression): Do not give an error
26617         for sizeof applied to [*] type names.
26618
26619 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
26620
26621         PR C++/36607
26622         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
26623
26624 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
26625
26626         * gcc.c (process_command): Update copyright notice dates.
26627         * gcov.c (print_version): Likewise.
26628         * gcov-dump.c (print_version): Likewise.
26629         * mips-tfile.c (main): Likewise.
26630         * mips-tdump.c (main): Likewise.
26631
26632 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
26633
26634         PR c/35433
26635         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
26636         for composite type involving a zero-length array type.
26637
26638 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
26639
26640         PR target/35318
26641         * function.c (match_asm_constraints_1): Skip over
26642         initial optional % in the constraint.
26643
26644         PR inline-asm/39059
26645         * c-parser.c (c_parser_postfix_expression): If fixed point is not
26646         supported, don't accept FIXED_CSTs.
26647         * c-decl.c (finish_declspecs): Error if fixed point is not supported
26648         and _Sat is used without _Fract/_Accum.  Set specs->type to
26649         integer_type_node for cts_fract/cts_accum if fixed point is not
26650         supported.
26651
26652 2009-02-02  Catherine Moore  <clm@codesourcery.com>
26653
26654         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
26655
26656 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
26657
26658         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
26659         (ABI_HAS_64BIT_SYMBOLS): Use it.
26660         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
26661
26662 2009-02-02  Paul Brook  <paul@codesourcery.com>
26663
26664         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
26665
26666 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
26667
26668         PR inline-asm/39058
26669         * recog.h (asm_operand_ok): Add constraints argument.
26670         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
26671         recurse on matching constraint.
26672         (check_asm_operands): Pass constraints as 3rd argument to
26673         asm_operand_ok.  Don't look up matching constraint here.
26674         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
26675         to asm_operand_ok.
26676
26677 2009-02-02  Ben Elliston  <bje@au.ibm.com>
26678
26679         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
26680         TARGET_NARROW_VOLATILE_BITFIELD macro names.
26681
26682 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26683
26684         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
26685         information.  Remove some obsolete information.  Reorganize.
26686
26687         * config/pa/fptr.c: Revert license to GPL 2.
26688         * config/pa/milli64.S: Likewise.
26689
26690 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
26691
26692         PR target/38904
26693         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
26694         LIBRARY name in, instead of hard-coding it.
26695         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
26696         extra target make frag to tmake_files according to EH model.
26697         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
26698         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
26699         frags that define makefile variable EH_MODEL appropriately.
26700         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
26701         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
26702         to "-sjlj" according to type of EH configured.
26703         (LIBGCC_SONAME):  Concatenate it to shared library base name.
26704         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
26705         to "_sjlj" according to type of EH configured.
26706         (LIBGCC_SONAME):  Concatenate it to shared library base name.
26707         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
26708         (SHLIB_LINK):  Add missing semicolon to if-else construct.
26709         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
26710         string value of "pe_dll" command-line option.
26711         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
26712         (SHLIB_SONAME):  Use it when overriding t-cygming default.
26713         (SHLIB_IMPLIB):  Override t-cygming default.
26714         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
26715         string value of "pe_dll" command-line option.
26716
26717 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
26718
26719         PR target/38952
26720         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
26721         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
26722
26723 2009-01-31  Richard Guenther  <rguenther@suse.de>
26724
26725         PR tree-optimization/38937
26726         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
26727         computing the transitive closure.
26728
26729 2009-01-30  Richard Guenther  <rguenther@suse.de>
26730
26731         PR tree-optimization/39041
26732         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
26733         Propagate variable indices only if the types match for this stmt.
26734
26735 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
26736
26737         PR target/39013
26738         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
26739         inline but never defined.
26740
26741 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
26742
26743         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
26744         (*insv_h_di_reg_extimm): New insn.
26745         (*insv_l<mode>_reg_extimm): New insn.
26746
26747 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26748
26749         * config/picochip/picochip.c (flag_conserve_stack): set
26750         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
26751         fconserve-stack. Reduce call-overhead used by inliner.
26752
26753 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26754
26755         PR/38157
26756         * common.opt (flag_conserve_stack): Initialised to zero.
26757
26758 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
26759
26760         PR/39002
26761         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
26762         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
26763         method.
26764
26765 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
26766
26767         * ira-color.c (allocno_reload_assign): Update comments.
26768         * regmove.c (regmove_optimize): Likewise.
26769
26770         * ra.h: Removed.
26771
26772 2009-01-29  Robert Millan  <rmh@aybabtu.com>
26773
26774         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
26775         * config/i386/kopensolaris-gnu.h: New file.  Undefine
26776         `MD_UNWIND_SUPPORT'.
26777         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
26778
26779 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
26780
26781         PR tree-optimization/39007
26782         * tree-loop-distribution.c (generate_builtin): Use
26783         recompute_dominator to compute the immediate dominator of the
26784         basic block just after the loop.
26785
26786 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
26787
26788         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
26789         (ASM_OUTPUT_DWARF_PCREL): Define.
26790
26791 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
26792
26793         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
26794         * doc/passes.texi: Remove entries about regclass, local-alloc, and
26795         global.  Modify entries about regmove and IRA.
26796
26797         * ra-conflict.c: Remove the file.
26798
26799         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
26800
26801         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
26802         (pass_regclass_init): Rename to pass_reginfo_init.
26803
26804         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
26805
26806         * toplev.h (flag_ira): Remove.
26807
26808         * caller-save.c (setup_save_areas): Remove flag_ira.
26809
26810         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
26811
26812         * global.c: Remove the file.
26813
26814         * opts.c (decode_options): Remove flag_ira.
26815
26816         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
26817
26818         * regmove.c: Modify file description.
26819         (find_use_as_address, try_auto_increment): Define them only if
26820         AUTO_INC_DEC is defined.
26821         (replacement_quality, replace_in_call_usage, fixup_match_1,
26822         stable_and_no_regs_but_for_p): Remove.
26823         (reg_set_in_bb): Make it static.
26824         (regmove_optimize): Remove flag_ira and code which worked for
26825         !flag_ira.
26826
26827         * local-alloc.c: Remove the file.
26828
26829         * common.opt (fira): Remove.
26830
26831         * ira.c: Include except.h.
26832         (eliminable_regset): Move from global.c.
26833         (mark_elimination): Ditto.  Remove flag_ira.
26834         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
26835         equiv_mem_modified, validate_equiv_mem_from_store,
26836         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
26837         contains_replace_regs, memref_referenced_p, memref_used_between_p,
26838         no_equiv, recorded_label_ref): Move from local-alloc.c.
26839         (update_equiv_regs): Ditto.  Make it static.
26840         (print_insn_chain, print_insn_chains): Move it from global.c.
26841         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
26842         (build_insn_chain): Ditto.  Make it static.
26843         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
26844         Rename to init_live_subregs.
26845         (gate_ira): Remove flag_ira.
26846
26847         * regclass.c: Rename reginfo.c.  Change file description.
26848         (FORBIDDEN_INC_DEC_CLASSES): Remove.
26849         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
26850         (init_reg_sets_1): Remove code for evaluation of
26851         reg_class_superclasses and losing_caller_save_reg_set.
26852         (init_regs): Remove init_reg_autoinc.
26853         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
26854         ok_for_base_p_nonstrict): Remove.
26855         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
26856         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
26857         corresponding entries.
26858         (dump_regclass, record_operand_costs, scan_one_insn,
26859         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
26860         record_address_regs, auto_inc_dec_reg_p): Remove.
26861         (gt-regclass.h): Rename to gt-reginfo.h.
26862
26863         * rtl.h (dump_global_regs, retry_global_alloc,
26864         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
26865
26866         * Makefile.in (RA_H): Remove.
26867         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
26868         Rename regclass.o to reginfo.o.
26869         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
26870         gt-reginfo.h.
26871         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
26872         (GTFILES): Rename regclass.c to reginfo.c.
26873
26874         * passes.c (init_optimization_passes): Remove pass_local_alloc and
26875         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
26876
26877         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
26878         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
26879         Remove flag_ira.
26880         (finish_spills): Ditto.  Remove code for !flag_ira.
26881
26882 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
26883
26884         PR middle-end/35854
26885         * doc/invoke.texi (rtl debug options): Complete rewrite.
26886         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
26887         to auto_inc_dec".
26888         * mode-switching.c (pass_mode_switching): Rename pass from
26889         "mode-sw" to "mode_sw".
26890         * except.c (pass_convert_to_eh_ranges): Rename pass from
26891         "eh-ranges" to "eh_ranges".
26892         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
26893         to "subreg1".
26894
26895
26896 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
26897             Alexander Monakov  <amonakov@ispras.ru>
26898
26899         PR middle-end/38857
26900         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
26901         register.
26902         (move_exprs_to_boundary): Change return type and pass through
26903         should_move from move_op.  Relax assert.  Update usage ...
26904         (schedule_expr_on_boundary): ... here.  Use should_move instead of
26905         cant_move.
26906         (move_op_orig_expr_found): Indicate that insn was disconnected from
26907         stream.
26908         (code_motion_process_successors): Do not call after_merge_succs
26909         callback if original expression was not found when traversing any of
26910         the branches.
26911         (code_motion_path_driver): Change return type.  Update prototype.
26912         (move_op): Update comment.  Add a new parameter (should_move).  Update
26913         prototype.  Set *should_move based on indication provided by
26914         move_op_orig_expr_found.
26915
26916 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
26917
26918         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
26919         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
26920         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
26921         * config/rs6000/rs6000.c (rs6000_override_options): Default
26922         avoid-indexed-addresses on for Power6, off for everything else.
26923         (avoiding_indexed_address_p): New function.
26924         (rs6000_legitimize_address): Use it.
26925         (rs6000_legitimate_address): Likewise.
26926         * config/rs6000/rs6000.md (movXX_updateX): Likewise
26927
26928 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
26929
26930         PR tree-optimization/38997
26931         * tree-loop-distribution.c (generate_memset_zero): Use
26932         POINTER_PLUS_EXPR for a pointer addition.
26933
26934 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
26935
26936         * config/s390/s390.md (bswap<mode>2): New pattern added.
26937
26938 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
26939
26940         * config/s390/s390.md (*tls_load_31): Added type attribute.
26941
26942 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
26943
26944         * config/s390/s390.md: Fix a few comments.
26945
26946 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
26947
26948         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
26949         (*tm<mode>_full): Fixed z10prop attribute.
26950         (*tst<mode>_extimm): Fixed z10prop attribute.
26951         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
26952         (*tstqiCCT_cconly): Fixed z10prop attribute.
26953         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
26954         (*movsi_larl): Fixed z10prop attribute.
26955         (*movsi_zarch): Fixed z10prop attribute.
26956         (*movsi_eas): Fixed z10prop attribute.
26957         (*movhi): Fixed z10prop attribute.
26958         (*movqi): Fixed z10prop attribute.
26959         (*movstrictqi): Fixed z10prop attribute.
26960         (*mov<mode>): Fixed z10prop attribute.
26961         (*movcc): Fixed z10prop attribute.
26962         (*sethighpartdi_64): Fixed z10prop attribute.
26963         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
26964         (*negdi2_sign_cc): Fixed z10prop attribute.
26965         (*negdi2_sign): Fixed z10prop attribute.
26966         (*absdi2_sign_cc): Fixed z10prop attribute.
26967         (*absdi2_sign): Fixed z10prop attribute.
26968         (*negabsdi2_sign_cc): Fixed z10prop attribute.
26969         (*negabsdi2_sign): Fixed z10prop attribute.
26970         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
26971         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
26972         (doloop_si64): Fixed z10prop attribute.
26973         (doloop_si31): Fixed z10prop attribute.
26974         (doloop_long): Fixed z10prop attribute.
26975         (indirect_jump): Fixed z10prop attribute.
26976         (nop): Fixed z10prop attribute.
26977         (main_base_64): Fixed z10prop attribute.
26978         (reload_base_64): Fixed z10prop attribute.
26979
26980 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
26981
26982         PR rtl-optimization/38740
26983         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
26984         if !optimize.
26985         * config/mips/mips.c (mips_reorg): Likewise.
26986
26987 2009-01-28  Richard Guenther  <rguenther@suse.de>
26988
26989         PR tree-optimization/38926
26990         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
26991         with the correct value id to a value.
26992         (do_regular_insertion): Use the value number of edoubleprime
26993         for the value number of the expr.
26994
26995         Revert
26996         2008-08-21  Richard Guenther  <rguenther@suse.de>
26997
26998         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
26999         a PHI ask VN if it is already available.
27000         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27001         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27002
27003 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
27004
27005         PR middle-end/38934
27006         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27007         set to varying whenever max has TREE_OVERFLOW set, similarly
27008         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27009
27010 2009-01-28  Richard Guenther  <rguenther@suse.de>
27011
27012         PR middle-end/38908
27013         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27014         uninitialized aggregate uses in call arguments.
27015
27016 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
27017
27018         PR tree-optimization/38984
27019         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
27020         the nothing_id variable if -fno-delete-null-pointer-checks.
27021
27022 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
27023
27024         PR target/38988
27025         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
27026         (set_got_offset_rex64): Ditto.
27027
27028 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
27029
27030         PR target/38941
27031         * doc/extend.texi: Improve local variable with asm reg.
27032
27033 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
27034
27035         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
27036         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
27037         was not supplied then set warn_packed_bitfield_compat to the
27038         default value of 1.
27039         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
27040         against 1.
27041
27042 2009-01-27  Richard Guenther  <rguenther@suse.de>
27043
27044         PR tree-optimization/38503
27045         * cfgexpand.c (expand_gimple_basic_block): Ignore
27046         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
27047         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
27048         variables that cannot have TBAA applied.
27049         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
27050         statements.
27051
27052 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
27053
27054         PR middle-end/38969
27055         * calls.c (initialize_argument_information): Do not wrap complex
27056         arguments in SAVE_EXPR.
27057
27058 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
27059
27060         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
27061         (INSTALL_LIBGCC): Revert typo commit.
27062
27063 2009-01-26  Richard Guenther  <rguenther@suse.de>
27064
27065         PR tree-optimization/38745
27066         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
27067         from special handling.
27068
27069 2009-01-26  Richard Guenther  <rguenther@suse.de>
27070
27071         PR tree-optimization/38745
27072         * tree-ssa.c (execute_update_addresses_taken): Do not include
27073         variables that cannot possibly be a register in not_reg_needs.
27074         Do not clear TREE_ADDRESSABLE on vars that may not become
27075         registers.
27076         * tree-ssa.c (update_alias_info_1): Include those in the set
27077         of addressable vars.
27078
27079 2009-01-26  Richard Guenther  <rguenther@suse.de>
27080
27081         PR middle-end/38851
27082         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
27083         * tree-ssa-dse.c: Include langhooks.h
27084         (execute_simple_dse): Remove stores with zero size.
27085
27086 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
27087
27088         PR c/38957
27089         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
27090         as PLUS_EXPR.
27091
27092 2009-01-24  Julian Brown  <julian@codesourcery.com>
27093
27094         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
27095         config/arm/linux-atomic.c.
27096         * config/arm/linux-atomic.c: New.
27097
27098 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
27099
27100         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
27101         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
27102         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
27103
27104 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27105
27106         PR c/38938
27107         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
27108         properly.
27109
27110 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
27111
27112         PR tree-optimization/38953
27113         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
27114         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
27115         (gloog): Split the exit of the scop when the scop exit is a loop exit.
27116         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
27117         changed the CFG.
27118
27119 2009-01-24  Paul Brook  <paul@codesourcery.com>
27120
27121         * config/arm/neon.md (neon_type): Move to arm.md.
27122         (neon_mov<VSTRUCT>): Add neon_type attribute.
27123         * config/arm/arm.md (neon_type): Move to here.
27124         (conds): Add "unconditioal" and use as default for NEON insns.
27125
27126 2009-01-24  Ben Elliston  <bje@au.ibm.com>
27127
27128         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
27129         void *' warning from -Wc++-compat.
27130         * Makefile.in (dominance.o-warn): Remove.
27131
27132 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
27133
27134         PR tree-optimization/38932
27135         * fold-const.c (fold_unary_ignore_overflow): New.
27136         * tree.h (fold_unary_ignore_overflow): Declare.
27137         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
27138         * tree-ssa-sccvn.c (visit_reference_op_load,
27139         simplify_unary_expression): Likewise.
27140
27141 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
27142
27143         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
27144         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
27145         regardless of their type.
27146         * c-common.c (handle_packed_attribute): Don't ignore packed on
27147         bitfields.
27148         * c.opt (Wpacked-bitfield-compat): New warning option.
27149         * stor-layout.c (place_field): Warn if offset of a field changed.
27150         * doc/extend.texi (packed): Mention the ABI change.
27151         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
27152         (Warning Options): Add it to the list.
27153
27154 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
27155
27156         * c-opts.c (c_common_post_options): Fix a typo in comments.
27157
27158 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
27159
27160         PR middle-end/38615
27161         * gimplify.c (gimplify_init_constructor): Fix promotion of const
27162         variables to static.
27163         * doc/invoke.texi (-fmerge-all-constants): Update description.
27164
27165 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
27166
27167         PR target/38931
27168         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
27169         (*movdi_1_rex64): Use type "mmx" for alternative 5.
27170
27171 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
27172
27173         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
27174         a word boundary.
27175         (LOCAL_ALIGNMENT): Similarly.
27176
27177 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27178             Joseph Myers  <joseph@codesourcery.com>
27179
27180         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
27181         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
27182         * config/arm/arm-tune.md: Regenerate.
27183         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
27184         -march=iwmmxt2.
27185
27186 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27187
27188         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
27189         version number to five.
27190
27191 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
27192
27193         PR c++/38930
27194         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
27195         * c-common.c (set_underlying_type): Likewise.
27196         (is_typedef_decl ): Likewise
27197         * tree.h: Likewise
27198         (set_underlying_type): Likewise.
27199         (is_typedef_type): Likewise.
27200
27201 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27202
27203         PR middle-end/38587
27204         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
27205         crossing setjmps.
27206
27207 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27208
27209         PR bootstrap/37660
27210         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
27211         (LIBGCC_SPEC):  Don't define.
27212         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
27213
27214 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
27215
27216         PR rtl-optimization/38879
27217         * alias.c (base_alias_check): Unaligned access via AND address can
27218         alias all surrounding object types except those with sizes equal
27219         or wider than the size of unaligned access.
27220
27221 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
27222
27223         PR c++/26693
27224         * c-decl.c (clone_underlying_type): Move this ...
27225         * c-common.c (set_underlying_type): ... here.
27226         Also, make sure the function properly sets TYPE_STUB_DECL() on
27227         the newly created typedef variant type.
27228         (is_typedef_decl ): New entry point.
27229         * tree.h: Added a new member member_types_needing_access_check to
27230         struct tree_decl_non_common.
27231         (set_underlying_type): New entry point.
27232         (is_typedef_type): Likewise.
27233
27234 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
27235
27236         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
27237         Check whether two instructions have memory references that
27238         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
27239         are helper functions for traversing.
27240         * alias.h (insn_alias_sets_confilict_p): New prototypes.
27241         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
27242         not to draw dependency edge for instructions with non-conflicting
27243         alias sets.
27244
27245 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
27246
27247         PR other/38758
27248         * longlong.h: Update copyright years.  Use soft-fp license notice.
27249         Sync __clz_tab declaration with glibc.
27250
27251 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
27252
27253         PR target/30687
27254         * doc/extend.texi (syscall_linkage): New.
27255         (version_id): Modify.
27256
27257 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27258             Richard Guenther  <rguenther@suse.de>
27259
27260         PR tree-optimization/38747
27261         PR tree-optimization/38748
27262         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
27263         conversion if the base address is an indirect reference and the
27264         aliasing sets could cause issues.
27265
27266 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
27267
27268         * common.opt (fgraphite, fgraphite-identity): Add comment for
27269         explaining why these options are not documented.
27270
27271 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
27272
27273         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
27274         gimple_call_lhs is NULL.
27275
27276 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27277
27278         PR target/38868
27279         * emit-rtl.c (adjust_address_1): Make sure memref is never
27280         overwritten.
27281
27282 2009-01-20  Ben Elliston  <bje@au.ibm.com>
27283
27284         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27285         const qualifier from arg parameter. Remove unnecessary cast to char *.
27286         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27287         const qualifier from arg 2.
27288
27289 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27290
27291         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
27292
27293 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
27294
27295         PR c/38869
27296         * rtl.h (reinit_regs): New prototype.
27297         * regclass.c: Include ira.h.
27298         (reinit_regs): New.
27299         * Makefile.in (regclass.o): Add ira.h.
27300         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
27301
27302 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
27303
27304         PR target/38736
27305         * c-common.c (handle_aligned_attribute): Use
27306         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
27307         default alignment value.
27308
27309         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
27310
27311         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
27312         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
27313
27314         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
27315         __BIGGEST_ALIGNMENT__.
27316
27317         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
27318
27319 2009-01-18  Richard Guenther  <rguenther@suse.de>
27320
27321         PR tree-optimization/38819
27322         * tree-flow.h (operation_could_trap_helper_p): Declare.
27323         * tree-eh.c (operation_could_trap_helper_p): Export.
27324         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
27325         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
27326         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
27327         are about to insert a possibly trapping instruction and fail
27328         in this case.
27329
27330 2009-01-18  Andreas Schwab  <schwab@suse.de>
27331
27332         * doc/install.texi (Configuration): Remove obsolete paragraph
27333         about use of --with-gnu-ld with --with-gnu-as.
27334
27335 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
27336
27337         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
27338         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
27339         Follow spelling conventions.
27340
27341 2009-01-18  Ben Elliston  <bje@au.ibm.com>
27342
27343         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
27344         C++ warning about implicit conversion from void * to struct
27345         bitmap_head_def *.
27346         (bitmap_obstack_free): Likewise for bitmap_element *.
27347         * Makefile.in (bitmap.o-warn): Remove.
27348
27349 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
27350
27351         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
27352
27353 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
27354             Tobias Grosser  <tobi.grosser@amd.com>
27355
27356         * graphite.c (graphite_trans_scop_block): Do not block single
27357         nested loops.
27358
27359 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
27360
27361         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
27362         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
27363         test with assertion.
27364
27365 2009-01-16  Richard Guenther  <rguenther@suse.de>
27366
27367         PR tree-optimization/38835
27368         PR middle-end/36227
27369         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
27370         and INT + PTR -> (INT)(PTR p+ INT) folding.
27371         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
27372
27373 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
27374
27375         PR target/38554
27376         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
27377         the subreg from a lowpart subreg if it is also casting the value.
27378
27379 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27380             Tobias Grosser  <tobi.grosser@amd.com>
27381
27382         * graphite.c (compare_prefix_loops): New.
27383         (build_scop_canonical_schedules): Rewritten.
27384         (graphite_transform_loops): Move build_scop_canonical_schedules
27385         after build_scop_iteration_domain.
27386
27387 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27388             Tobias Grosser  <tobi.grosser@amd.com>
27389
27390         * graphite.c (add_conditions_to_domain): Add the loops to
27391         the dimension of the iteration domain.  Do copy the domain
27392         only when it exists.
27393         (build_scop_conditions_1): Do not call add_conditions_to_domain.
27394         (add_conditions_to_constraints): New.
27395         (can_generate_code_stmt, can_generate_code): Removed.
27396         (gloog): Do not call can_generate_code.
27397         (graphite_transform_loops): Call add_conditions_to_constraints
27398         after building the iteration domain.
27399
27400 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
27401
27402         PR tree-optimization/38789
27403         * tree-ssa-threadedge.c
27404         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
27405         __builtin_constant_p.
27406
27407 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
27408
27409         * dce.c (delete_unmarked_insns): Reversed the order that insns are
27410         examined before deleting them.
27411
27412 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
27413
27414         * function.c (aggregate_value_p): Correctly extract the function
27415         type from CALL_EXPR_FN lookup.
27416
27417 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27418
27419         * config/picochip/picochip.c (picochip_override_options): Revert
27420         CFI asm flag disable commited previously.
27421
27422 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
27423             Tobias Grosser  <tobi.grosser@amd.com>
27424             Jan Sjodin  <jan.sjodin@amd.com>
27425
27426         * graphite.c (scan_tree_for_params): On substractions negate
27427         all the coefficients of the term.
27428         (clast_to_gcc_expression_red): New.  Handle reduction expressions
27429         of more than two operands.
27430         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
27431         (get_vdef_before_scop): Handle also the case of default definitions.
27432
27433 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
27434
27435         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
27436         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
27437         Also use them when walking CALL_INSN_FUNCTION_USAGE.
27438
27439 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
27440             Joey Ye  <joey.ye@intel.com>
27441
27442         PR middle-end/37843
27443         * cfgexpand.c (expand_stack_alignment): Don't update stack
27444         boundary nor check incoming stack boundary here.
27445         (gimple_expand_cfg): Update stack boundary and check incoming
27446         stack boundary here.
27447
27448 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
27449
27450         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
27451
27452 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
27453
27454         PR rtl-optimization/38245
27455         * calls.c (expand_call): Add stack arguments to
27456         CALL_INSN_FUNCTION_USAGE even for pure calls (when
27457         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
27458         in regs and partially in memory or BLKmode arguments.
27459         (emit_library_call_value_1): Add stack arguments to
27460         CALL_INSN_FUNCTION_USAGE even for pure calls (when
27461         ACCUMULATE_OUTGOING_ARGS).
27462         * dce.c: Include tm_p.h.
27463         (find_call_stack_args): New function.
27464         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
27465         argument.
27466         (mark_insn): Call find_call_stack_args for CALL_Ps.
27467         (prescan_insns_for_dce): Walk insns backwards in bb rather than
27468         forwards.  Allocate and free arg_stores bitmap if needed, pass it
27469         down to deletable_insn_p, don't mark stores set in arg_stores
27470         bitmap, clear the bitmap at the beginning of each bb.
27471         * Makefile.in (dce.o): Depend on $(TM_P_H).
27472
27473 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
27474
27475         PR target/22599
27476         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
27477         to make sure the insn is a conditional test (bug 22599).  Reformat a
27478         few long lines.
27479
27480 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
27481
27482         PR middle-end/38431
27483         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
27484         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
27485         (gloog): Do not call cleanup_tree_cfg.
27486         (graphite_transform_loops): Call cleanup_tree_cfg after all
27487         scops have been code generated.
27488
27489 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
27490         * doc/gty.texi (Invoking the garbage collector): Added new node
27491         and section documenting ggc_collect.
27492
27493 2009-01-14  Richard Guenther  <rguenther@suse.de>
27494
27495         PR tree-optimization/38826
27496         PR middle-end/38477
27497         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
27498         initialization notes only if we actually emitted a warning.
27499         (intra_create_variable_infos): Add constraints for a result decl
27500         that is passed by hidden reference.
27501         (build_pred_graph): Mark all related variables non-direct on
27502         address-taking.
27503
27504 2009-01-14  Nick Clifton  <nickc@redhat.com>
27505
27506         * ira-conflicts.c: Include addresses.h for the definition of
27507         base_reg_class.
27508         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
27509         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
27510
27511 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
27512
27513         PR target/38811
27514         * Makefile.in (ira-lives.o): Add except.h.
27515
27516         * ira-lives.c: Include except.h.
27517         (process_bb_node_lives): Process can_throw_internal.
27518
27519 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
27520
27521         PR rtl-optimization/38774
27522         * combine.c (simplify_set): When undoing cc_use change, don't do
27523         PUT_CODE on the newly created comparison, but instead put back the
27524         old comparison.
27525
27526 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
27527
27528         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
27529         values.  Remove duplicate arm8 entry.
27530
27531 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
27532
27533         PR tree-optimization/38786
27534         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
27535         the SSA_NAME case of expand_scalar_variables_expr.
27536         Set the type of an expression to the type of its assign statement.
27537         (expand_scalar_variables_expr): Also gather the scalar computation
27538         used to index the memory access.  Do not pass loop_p.
27539         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
27540         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
27541         the gimple_stmt_iterator where it inserts new code.
27542         Do not pass loop_p.
27543         (copy_bb_and_scalar_dependences): Do not pass loop_p.
27544         (translate_clast): Update call to copy_bb_and_scalar_dependences.
27545
27546 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
27547
27548         * graphite.h (debug_value): Removed.
27549         * graphite.c (debug_value): Removed.
27550
27551 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
27552
27553         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
27554         ldrd/strd with two 32-bit instructions.
27555
27556 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
27557
27558         * config/arm/arm.c (struct processors): Pass for speed down into
27559         cost helper functions.
27560         (const_ok_for_op): Handle COMPARE and inequality nodes.
27561         (arm_rtx_costs_1): Rewrite.
27562         (arm_size_rtx_costs): Update prototype.
27563         (arm_rtx_costs): Pass speed down to helper functions.
27564         (arm_slowmul_rtx_costs): Rework cost calculations.
27565         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
27566         (arm_9e_rtx_costs): Likewise.
27567
27568 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
27569
27570         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
27571         relocations of local symbols wider than UNITS_PER_WORD are not valid.
27572         (alpha_legitimize_address): Do not split local symbols wider than
27573         UNITS_PER_WORD into HIGH/LO_SUM parts.
27574
27575 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
27576
27577         PR bootstrap/38580
27578         * gcc.c (process_command): Replace call to execvp with calls
27579         to pex_one and exit.
27580
27581 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
27582
27583         PR target/29141
27584         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
27585         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
27586         variant for devices with 3-byte PC.
27587         (__tablejump_elpm__): New.
27588
27589 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
27590
27591         PR c/32041
27592         * c-parser.c (c_parser_postfix_expression): Allow `->' in
27593         offsetof member-designator, handle it as `[0].'.
27594
27595 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27596
27597         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
27598         function when not using named sections on targets with named sections
27599         if branch distance is less than 262132.
27600
27601 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
27602
27603         * combine.c (combine_instructions):  Recompute
27604         optimize_this_for_speed_p  for each BB in the main combine loop.
27605
27606 2009-01-12  Tomas Bily  <tbily@suse.cz>
27607
27608         PR middlend/38385
27609         * tree-loop-distribution.c (prop_phis): New function.
27610         (generate_builtin): Call prop_phis.
27611
27612 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
27613
27614         PR tree-optimization/38807
27615         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
27616         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
27617
27618 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
27619
27620         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
27621         subreg of op0 to the original op0.
27622
27623 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
27624
27625         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
27626
27627 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
27628
27629         PR debug/7055
27630         * mips-tfile.c (parse_def): Fix parsing of def strings
27631         starting with digits.
27632
27633 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
27634
27635         PR target/38695
27636         * config/arm/arm.c (arm_is_long_call_p): Don't call
27637         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
27638
27639 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
27640
27641         * regrename.c (regrename_optimize): Fix dumping.
27642         (find_oldest_value_reg): Preserve REG_POINTER.
27643         (copy_hardreg_forward_1): Likewise.
27644
27645 2009-01-09  Diego Novillo  <dnovillo@google.com>
27646
27647         * gimple.h (struct gimple_statement_base) <uid>: Document
27648         the restrictions on its use.
27649         (gimple_uid): Tidy.
27650         (gimple_set_uid): Tidy.
27651
27652 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27653
27654         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
27655         zero guard even if align_bytes != 0 and count is smaller than
27656         size_needed.
27657
27658 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
27659
27660         PR rtl-optimization/38495
27661         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
27662         (add_range_and_copies_from_move_list): Print all added ranges.
27663         Add ranges to memory optimized destination.
27664
27665 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27666
27667         PR target/38686
27668         PR target/38708
27669         * config/i386/i386.c (override_options): Reject
27670         -mstringop-strategy=rep_8byte with -m32.
27671         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
27672         to 1.  Do count comparison against epilogue_size_needed at compile
27673         time even when count_exp was constant forced into register.  For
27674         size_needed don't jump to epilogue, instead just avoid aligning
27675         and invoke the body algorithm.  If need_zero_guard, add zero guard
27676         even if count is non-zero, but smaller than size_needed + number of
27677         bytes that could be stored for alignment.
27678         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
27679         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
27680         but smaller than size_needed + number of bytes that could be stored
27681         for alignment.  Compare size_needed with epilogue_size_needed instead
27682         of desired_align - align, don't adjust size_needed, pass
27683         epilogue_size_needed to the epilogue expanders.
27684
27685         PR c/35742
27686         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
27687
27688 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27689
27690         * pa.c (last_address): Change to unsigned.
27691         (update_total_code_bytes): Change argument to unsigned.  Don't
27692         check if insn addresses are set.
27693         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
27694         addresses are not set.
27695         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
27696
27697 2009-01-09  Nick Clifton  <nickc@redhat.com>
27698
27699         * config/sh/symbian.c: Replace uses of DECL_INLINE with
27700         DECL_DECLARED_INLINE_P.
27701
27702 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
27703
27704         PR middle-end/38347
27705         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
27706         GET_MODE (op0) in operand_subword_force calls.
27707
27708         PR middle-end/38771
27709         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
27710         fold_convert arg0 operands to TREE_TYPE (op0) first.
27711
27712 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
27713
27714         * params.def (ira-max-conflict-table-size): Decrease default value
27715         to 1000.
27716
27717 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
27718
27719         PR tree-optimization/37031
27720         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
27721         on parameter_set.
27722         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
27723         allocate it using gc instead of heap, use VEC_quick_push instead of
27724         VEC_safe_push.
27725         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
27726         instead of heap, use VEC_quick_push instead of VEC_safe_push.
27727         * tree-data-ref.h (struct access_matrix): Change matrix to gc
27728         allocated vector from heap allocated.
27729         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
27730         * tree-loop-linear.c (linear_transform_loops): Allocate nest
27731         vector only after perfect_loop_nest_depth call.
27732
27733 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
27734             Jan Sjodin  <jan.sjodin@amd.com>
27735
27736         PR tree-optimization/38559
27737         * graphite.c (debug_value, copy_constraint,
27738         swap_constraint_variables, scale_constraint_variable, ): New.
27739         (get_lower_bound, get_upper_bound): Removed.
27740         (graphite_trans_bb_strip_mine): Clean up this code that works
27741         only for constant number of iterations.  Fully copy upper and
27742         lower bound constraints, not only the constant part of them.
27743         * graphite.h (debug_value): Declared.
27744
27745 2009-01-08  Ira Rosen  <irar@il.ibm.com>
27746
27747         PR tree-optimization/37194
27748         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
27749         Don't add the cost of cost model guard in prologue to scalar
27750         outside cost in case of known number of iterations.
27751
27752 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
27753             Alan Modra  <amodra@bigpond.net.au>
27754
27755         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
27756         non-word-aligned REG+CONST addressing.
27757
27758 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
27759
27760         PR target/38706
27761         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
27762         free_after_compilation when outputting a thunk.
27763         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
27764         Do not call free_after_compilation here.
27765
27766 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
27767
27768         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
27769         (ix86_valid_target_attribute_inner_p): Ditto.
27770
27771 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
27772
27773         PR tree-optimization/38492
27774         PR tree-optimization/38498
27775         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
27776         * tree-chrec.h (scev_is_linear_expression): Declared.
27777         * graphite.c (graphite_cannot_represent_loop_niter): New.
27778         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
27779         (graphite_loop_normal_form): Use gcc_assert.
27780         (scan_tree_for_params): Use CASE_CONVERT.
27781         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
27782         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
27783         Use gcc_assert.  Discard scops that contain unhandled cases.
27784         (build_scop_conditions): Return a boolean status for unhandled cases.
27785         (strip_mine_profitable_p): Print the loop number, not its depth.
27786         (is_interchange_valid): Pass the depth of the loop nest, don't
27787         recompute it wrongly.
27788         (graphite_trans_bb_block): Same.
27789         (graphite_trans_bb_block): Print tentative of loop blocking.
27790         (graphite_trans_scop_block): Do not print that the loop has been
27791         blocked.
27792         (graphite_transform_loops): Do not handle scops that contain condition
27793         scalar phi nodes.
27794
27795 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
27796
27797         AVX Programming Reference (December, 2008)
27798         * config/i386/avxintrin.h (_mm256_stream_si256): New.
27799         (_mm256_stream_pd): Likewise.
27800         (_mm256_stream_ps): Likewise.
27801
27802         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
27803         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
27804         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
27805         (bdesc_special_args): Add __builtin_ia32_movntdq256,
27806         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
27807         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
27808         (ix86_expand_special_args_builtin): Likewise.
27809
27810         * config/i386/sse.md (AVXMODEDI): New.
27811         (avx_movnt<mode>): Likewise.
27812         (avx_movnt<mode>): Likewise.
27813         (<sse>_movnt<mode>): Remove AVX support.
27814         (sse2_movntv2di): Likewise.
27815
27816 2009-01-07  Richard Guenther  <rguenther@suse.de>
27817
27818         PR middle-end/38751
27819         * fold-const.c (extract_muldiv): Remove obsolete comment.
27820         (fold_plusminus_mult_expr): Undo MINUS_EXPR
27821         to PLUS_EXPR canonicalization for the canonicalization.
27822
27823 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
27824
27825         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
27826         hosted cross-compilers generating less efficient code.
27827
27828 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
27829
27830         * function.h (rtl_data): Add a dbr_scheduled_p field.
27831         * reorg.c (dbr_schedule): Set it.
27832         (gate_handle_delay_slots): Check it.
27833         * config/mips/mips.c (mips_base_delayed_branch): Delete.
27834         (mips_reorg): Check flag_delayed_branch instead of
27835         mips_base_delayed_branch.
27836         (mips_override_options): Don't set mips_base_delayed_branch
27837         or flag_delayed_branch.
27838
27839 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
27840
27841         PR rtl-optimization/38426.
27842         * ira.c (ira): Set current_function_is_leaf earlier.
27843
27844 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
27845
27846         PR rtl-optimization/38722
27847         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
27848         too early, only set a flag and modify after last possible
27849         undo_all point.
27850
27851 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
27852
27853         PR c/34252
27854         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
27855         * real.c (decimal_single_format): Correct values of emin and emax.
27856         (decimal_double_format): Ditto.
27857         (decimal_quad_format): Ditto.
27858         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
27859         computation of DECnn_MIN and DECnn_MAX for corrected values of
27860         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
27861         __DECnn_MIN__, and adjust its computation for the corrected value
27862         of emin.
27863
27864 2009-01-06  Jan Hubicka  <jh@suse.cz>
27865
27866         PR target/38744
27867         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
27868
27869 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
27870
27871         * doc/contrib.texi (Contributors): Slightly adjust the end note.
27872         Add Robert Clark to the list of testers.
27873
27874 2009-01-06  Jan Hubicka  <jh@suse.cz>
27875             Kai Tietz  <kai.tietz@onevision.com>
27876
27877         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
27878         * config/i386/i386.c (ix86_expand_call): Add clobbers.
27879
27880 2009-01-06  Jan Hubicka  <jh@suse.cz>
27881             Kai Tietz  <kai.tietz@onevision.com>
27882
27883         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
27884         for w64 ABI.
27885         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
27886         (ix86_nsaved_regs): Count only general purpose regs.
27887         (ix86_nsaved_sseregs): New.
27888         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
27889         to 16 for w64; compute padding and size of sse reg save area.
27890         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
27891         general purpose regs.
27892         (ix86_emit_save_sse_regs_using_mov): New.
27893         (ix86_expand_prologue): Save SSE regs if needed.
27894         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
27895         (ix86_emit_restore_sse_regs_using_mov): New.
27896         (ix86_expand_epilogue): Save SSE regs if needed.
27897
27898 2009-01-06  Jan Hubicka  <jh@suse.cz>
27899             Kai Tietz  <kai.tietz@onevision.com>
27900
27901         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
27902         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
27903         functions when accumulate outgoing args is off.
27904
27905 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
27906
27907         PR bootstrap/38742
27908         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
27909         before using pseudos_have_intersected_live_ranges_p.
27910
27911         * ira-int.h (ira_assert): Always define.
27912
27913 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
27914
27915         AVX Programming Reference (December, 2008)
27916         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
27917         (_mm256_permute2_pd): Likewise.
27918         (_mm_permute2_ps): Likewise.
27919         (_mm256_permute2_ps): Likewise.
27920         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
27921         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
27922
27923         * config/i386/i386.c (ix86_builtins): Remove
27924         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
27925         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
27926         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
27927         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
27928         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
27929         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
27930         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
27931         __builtin_ia32_vpermil2ps256.
27932         (ix86_init_mmx_sse_builtins): Updated.
27933         (ix86_expand_args_builtin): Likewise.
27934
27935 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27936
27937         * pa.c (output_call): Relocate non-jump insns in the delay slot of
27938         long absolute calls when generating PA 2.0 code.
27939
27940 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
27941
27942         PR rtl-optimization/38583
27943         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
27944
27945         * params.def (ira-max-conflict-table-size): New.
27946
27947         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
27948
27949         * ira.h (ira_conflicts_p): New external definition.
27950
27951         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
27952         table.  Report this.  Return result of building.
27953         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
27954         building conflict table.
27955
27956         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
27957         (ira_color): Use ira_conflicts_p.
27958
27959         * global.c: Include ira.h.
27960         (pseudo_for_reload_consideration_p, build_insn_chain): Use
27961         ira_conflicts_p.
27962
27963         * Makefile.in (global.o): Add ira.h.
27964
27965         * ira-build.c (mark_all_loops_for_removal,
27966         propagate_some_info_from_allocno): New.
27967         (remove_unnecessary_allocnos): Call
27968         propagate_some_info_from_allocno.
27969         (remove_low_level_allocnos): New.
27970         (remove_unnecessary_regions): Add parameter.  Call
27971         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
27972         parameter to remove_unnecessary_regions.
27973         (ira_build): Remove all regions but root if the conflict table was
27974         not built.  Update conflict hard regs for allocnos crossing calls.
27975
27976         * ira.c (ira_conflicts_p): New global.
27977         (ira): Define and use ira_conflicts_p.
27978
27979         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27980         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
27981         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
27982
27983 2009-01-06  Ben Elliston  <bje@au.ibm.com>
27984
27985         * gengtype-lex.l (YY_NO_INPUT): Define.
27986
27987 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27988
27989         PR c/34911
27990         * c-common.c (handle_vector_size_attribute): Also reject
27991         BOOLEAN_TYPE types.
27992
27993 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
27994
27995         PR tree-optimization/38492
27996         * graphite.c (rename_map_elt, debug_rename_elt,
27997         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
27998         rename_map_elt_info, eq_rename_map_elts,
27999         get_new_name_from_old_name, bb_in_sese_p): Moved around.
28000         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28001         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28002         (sese_build_livein_liveouts): New.
28003         (new_sese, free_sese): New.
28004         (new_scop): Call new_sese.
28005         (free_scop): Call free_sese.
28006         (rename_variables_from_edge, rename_phis_end_scop): Removed.
28007         (register_old_new_names): Renamed register_old_and_new_names.
28008         (register_scop_liveout_renames, add_loop_exit_phis,
28009         insert_loop_close_phis, struct igp,
28010         default_liveout_before_guard, add_guard_exit_phis,
28011         insert_guard_phis, copy_renames): New.
28012         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28013         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28014         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28015         (scop_adjust_phis_for_liveouts): New.
28016         (gloog): Call scop_adjust_phis_for_liveouts.
28017
28018         * graphite.h (struct sese): Documented.  Added fields liveout,
28019         num_ver and livein.
28020         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
28021         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
28022         (struct scop): Added field liveout_renames.
28023         (SCOP_LIVEOUT_RENAMES): New.
28024
28025 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28026
28027         PR tree-optimization/38510
28028         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
28029         (translate_clast): Call recompute_all_dominators before
28030         graphite_verify.
28031         (gloog): Call recompute_all_dominators before graphite_verify.
28032
28033 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28034             Jan Sjodin  <jan.sjodin@amd.com>
28035
28036         PR tree-optimization/38500
28037         * graphite.c (create_sese_edges): Call fix_loop_structure after
28038         splitting blocks.
28039
28040 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
28041
28042         * config.gcc: Add m32r*-*-rtems*.
28043         * config/m32r/rtems.h: New file.
28044
28045 2009-01-05  Ben Elliston  <bje@au.ibm.com>
28046
28047         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
28048         (.po.pox): Likewise.
28049         (po/gcc.pot): Likewise.
28050
28051 2009-01-04  David S. Miller  <davem@davemloft.net>
28052
28053         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
28054         (STARTING_FRAME_OFFSET): Always set to zero.
28055
28056 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28057
28058         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
28059         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
28060         fixed-point types, and vectors of the same.
28061
28062 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28063
28064         * config/mips/sync.md (*mb_barrier): Rename to...
28065         (*memory_barrier): ...this.
28066
28067 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
28068
28069         * doc/extend.texi (Function Attributes): Move @cindex after @item
28070         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
28071         and put in alphabetical order. Fix 'target' name and put in order.
28072         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
28073         typos.
28074
28075 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
28076
28077         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
28078         (memory_barrier): Expand as unspec instead of unspec_volatile.
28079         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28080         (*memory_barrier): Define as unspec instead of unspec_volatile.
28081         Use (match_dup 0) as input operand.
28082
28083         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
28084         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
28085         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
28086         scratch register.  Remove operand 1.
28087         (*stbar): Define as unspec instead of unspec_volatile.
28088         Use (match_dup 0) as input operand, remove (const_int 8).
28089         (*membar): Define as unspec instead of unspec_volatile.
28090         Use (match_dup 0) as input operand, remove input operand 2.
28091
28092         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
28093         (memory_barrier): Expand as unspec instead of unspec_volatile.
28094         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28095         (*memory_barrier): Define as unspec instead of unspec_volatile.
28096         Use (match_dup 0) as input operand.
28097
28098         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
28099         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28100         Set volatile flag on operand 0.
28101         (*memory_barrier): New insn pattern.
28102
28103         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
28104         insn operands.
28105         (*memory_barrier): Use (match_dup 0) as input operand.
28106
28107         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
28108         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28109         Set volatile flag on operand 0.
28110         (*mb_internal): New insn pattern.
28111
28112         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
28113
28114 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28115
28116         PR middle-end/38586
28117         * function.c (struct temp_slot): Move to the section of the file
28118         that deals with temp slots.  Remove field 'address'.
28119         (temp_slot_address_table): New hash table of address -> temp slot.
28120         (struct temp_slot_address_entry): New struct, items for the table.
28121         (temp_slot_address_compute_hash, temp_slot_address_hash,
28122         temp_slot_address_eq, insert_temp_slot_address): Support functions
28123         for the new table.
28124         (find_temp_slot_from_address): Rewrite to use the new hash table.
28125         (remove_unused_temp_slot_addresses): Remove addresses of temp
28126         slots that have been made available.
28127         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
28128         worker function for remove_unused_temp_slot_addresses.
28129         (assign_stack_temp_for_type): Don't clear the temp slot address list.
28130         Add the temp slot address to the address -> temp slot map.
28131         (update_temp_slot_address): Update via insert_temp_slot_address.
28132         (free_temp_slots): Call remove_unused_temp_slot_addresses.
28133         (pop_temp_slots): Likewise.
28134         (init_temp_slots): Allocate the address -> temp slot map, or empty
28135         the map if it is already allocated.
28136         (prepare_function_start): Initialize temp slot processing.
28137
28138 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28139
28140         PR middle-end/38584
28141         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
28142         Calculate the size of all stack vars assuming no packing of stack
28143         vars will happen, replacing a quadratic algorithm with a linear one.
28144
28145 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28146
28147         PR target/38707
28148         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
28149         can't be used.
28150
28151 2009-01-03  Diego Novillo  <dnovillo@google.com>
28152
28153         * doc/contrib.texi: Update contributions.
28154
28155 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28156
28157         PR c++/38705
28158         * builtins.c (fold_builtin_memory_op): Give up if either operand
28159         is volatile.  Set srctype or desttype to non-qualified version
28160         of the other type.
28161
28162         PR c/38700
28163         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
28164         and FUNCTION_DECLs.
28165
28166 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
28167
28168         PR rtl-optimization/35805
28169         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
28170         problem if fast dce is able to remove any instructions.
28171         * dce.c (dce_process_block): Fix dump message.
28172
28173 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
28174
28175         PR 33649
28176         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
28177
28178 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
28179
28180         PR middle-end/38690
28181         * tree-flow.h (op_code_prio, op_prio): New prototypes.
28182         * tree-pretty-print.c (op_code_prio): New function.
28183         (op_prio): No longer static.  Use op_code_prio.
28184         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
28185         Use op_prio and op_code_prio to determine if () should be
28186         printed around operand(s) or not.
28187
28188         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
28189         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
28190         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
28191         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
28192         pp_character instead of pp_string for single letter printing.
28193
28194 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28195
28196         * doc/extend.texi: Fix '#pragma GCC option' typo.
28197
28198 2009-01-02  Richard Guenther  <rguenther@suse.de>
28199
28200         * doc/install.texi (--enable-checking): Mention different
28201         default for stage1.
28202         (--enable-stage1-checking): Document.
28203
28204 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
28205
28206         PR middle-end/30142
28207         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
28208         case to be an error.
28209
28210 2009-01-02  Ben Elliston  <bje@au.ibm.com>
28211
28212         * config/fp-bit.h (pack_d): Constify argument.
28213         * config/fp-bit.c (makenan): Constify return type. Remove casts.
28214         (isnan): Constify argument.
28215         (isinf): Likewise.
28216         (iszero): Likewise.
28217         (pack_d): Likewise.
28218         (_fpadd_parts): Constify return type.
28219         (_fpmul_parts): Likewise.
28220         (_fpdiv_parts): Likewise.
28221
28222 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
28223
28224         PR c/36489
28225         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
28226         warn about overwriting initializer with side-effects or
28227         -Woverride-init if !IMPLICIT.
28228         (output_init_element): Likewise.  Pass IMPLICIT down to
28229         add_pending_init.
28230         (process_init_element): Add IMPLICIT argument.  Pass it down
28231         to output_init_element.
28232         (push_init_element, pop_init_level, set_designator): Adjust
28233         process_init_element callers.
28234         (set_nonincremental_init, set_nonincremental_init_from_string):
28235         Adjust add_pending_init callers.
28236         (output_pending_init_elements): Adjust output_init_element callers.
28237         * c-tree.h (process_init_element): Adjust prototype.
28238         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
28239         process_init_element callers.
28240
28241 \f
28242 Copyright (C) 2009 Free Software Foundation, Inc.
28243
28244 Copying and distribution of this file, with or without modification,
28245 are permitted in any medium without royalty provided the copyright
28246 notice and this notice are preserved.