OSDN Git Service

4ef144ed0b5601539fe39f404952dbe8ae39625a
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-10-11  Jose Ruiz  <ruiz@adacore.com>
2             Eric Botcazou  <ebotcazou@adacore.com>
3
4         PR target/33743
5         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Define.
6         * config/sparc/sol2-unwind.h: New file.
7
8 2009-10-11  Olivier Hainque  <hainque@adacore.com>
9             Eric Botcazou  <ebotcazou@adacore.com>
10
11         PR target/33743
12         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Define.
13         * config/i386/sol2-unwind.h: New file.
14
15 2009-10-11  H.J. Lu  <hongjiu.lu@intel.com>
16
17         PR target/41665
18         * config/i386/i386.md (addsi_1_zext): Get the proper second
19         operand for lea.
20
21 2009-10-11  Richard Sandiford  <rdsandiford@googlemail.com>
22
23         * simplify-rtx.c (simplify_replace_rtx): Use rtx_equal_p for
24         all OLD_RTXes, not just REGs.  Use copy_rtx to create the
25         replacement value.
26
27 2009-10-11  Richard Guenther  <rguenther@suse.de>
28
29         * gimple.c (iterative_hash_type_name): Do not handle special
30         anonymous names.
31
32 2009-10-11  Uros Bizjak  <ubizjak@gmail.com>
33
34         * config/i386/i386.md (*setcc_di_1): New insn_and_split pattern.
35         (*setcc_si_1_and): Ditto.
36         (*setcc_si_1_movzbl): Ditto.
37         (*setcc_<mode>_2): Ditto.
38         (*setcc_qi): Rename from *setcc_1.
39         (*setcc_qi_slp): Rename from *setcc_2.
40
41         (*zero_extendqihi2_movzbw_and splitter): Use ix86_expand_clear.
42         (*zero_extendqisi2_movzbw_and splitter): Ditto.
43
44         * config/i386/i386.c (ix86_expand_clear): Remove reload_completed from
45         "if" condition, there is already assert with reload_completed present.
46
47 2009-10-11  Gerald Pfeifer  <gerald@pfeifer.com>
48
49         * plugin.c (try_init_one_plugin): Improve constness of variable err.
50
51 2009-10-10  Gerald Pfeifer  <gerald@pfeifer.com>
52
53         * doc/install.texi (Final install): Refer to
54         http://gcc.gnu.org/bugs/ for bug reporting.
55
56 2009-10-10  Peter Bergner  <bergner@vnet.ibm.com>
57
58         * configure.ac: Add test for dci instruction.
59         * configure: Regenerate.
60         * config.in: Likewise.
61         * config.gcc: Handle --with-cpu=476 and --with-cpu=476fp.
62         * doc/invoke.texi: Add cpu_type 476 and 476fp.
63         (-mmulhw): Add 476 to description.
64         (-mdlmzb): Likewise.
65         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=476.
66         * config/rs6000/rs6000.c (processor_costs): Add ppc476_cost.
67         (processor_target_table): Add 476 and 476fp entries.
68         (rs6000_override_options): Use ppc476_cost for PROCESSOR_PPC476.
69         (rs6000_issue_rate): Add CPU_PPC476.
70         * config/rs6000/rs6000.h (ASM_CPU_476_SPEC): Define.
71         (ASM_CPU_SPEC): Pass %(asm_cpu_476) for -mcpu=476 and -mcpu=476fp.
72         (processor_type): Add PROCESSOR_PPC476.
73         (EXTRA_SPECS): Add asm_cpu_476 string.
74         * config/rs6000/rs6000.md: (define_attr "type"): Add isel attribute.
75         (define_attr "cpu"): Add ppc476.
76         Include 476.md.
77         Update comments for 476.
78         (isel_signed, isel_unsigned): Change to use "isel" type attribute.
79         * config/rs6000/vxworks.h (CPP_SPEC): Handle 464 and 476.
80         Update copyright year.
81         * config/rs6000/476.md: New file.
82         * config/rs6000/40x.md: Add description for "isel" attribute.
83         Update copyright year.
84         * config/rs6000/440.md: Likewise.
85         * config/rs6000/603.md: Likewise.
86         * config/rs6000/6xx.md: Likewise.
87         * config/rs6000/7450.md: Likewise.
88         * config/rs6000/7xx.md: Likewise.
89         * config/rs6000/8540.md: Likewise.
90         * config/rs6000/cell.md: Likewise.
91         * config/rs6000/e300c2c3.md: Likewise.
92         * config/rs6000/e500mc.md: Likewise.
93         * config/rs6000/mpc.md: Likewise.
94         * config/rs6000/power4.md: Likewise.
95         * config/rs6000/power5.md: Likewise.
96         * config/rs6000/power6.md: Likewise.
97         * config/rs6000/power7.md: Likewise.
98         * config/rs6000/rios1.md: Likewise.
99         * config/rs6000/rios2.md: Likewise.
100         * config/rs6000/rs64.md: Likewise.
101
102 2009-10-10  Richard Guenther  <rguenther@suse.de>
103
104         PR tree-optimization/41654
105         * tree-ssa-ifcombine.c (ifcombine_ifandif): Properly canonicalize
106         a cond expr before calling gimple_cond_set_condition_from_tree.
107         (ifcombine_iforif): Likewise.
108
109 2009-10-09  Ian Lance Taylor  <iant@google.com>
110
111         * configure.ac: Use AC_SEARCH_LIBS to find dlopen.
112         * configure: Rebuild.
113
114 2009-10-09  Neil Vachharajani <nvachhar@google.com>
115
116         * doc/cpp.texi (Other Directives): Do not list #ident and #sccs as
117         deprecated.
118
119 2009-10-09  Richard Guenther  <rguenther@suse.de>
120
121         PR lto/41638
122         * target-def.h (TARGET_BUILTIN_DECL): Define.
123         (TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
124         * target.h (struct gcc_target): Add builtin_decl target hook.
125         * doc/tm.texi (TARGET_BUILTIN_DECL): Document.
126         * lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
127         target builtins.
128         * lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
129         not gcc_unreachable.
130         (lto_output_builtin_tree): Sorry if the target does not support
131         streaming target builtins.
132         * config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
133         (rs6000_builtin_decl): New function.
134         * config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
135         (ix86_builtin_decl): New function.
136
137 2009-10-09  Jakub Jelinek  <jakub@redhat.com>
138
139         PR preprocessor/41445
140         * c-ppoutput.c (do_line_change): New function.
141         (cb_line_change): Use it.
142         (scan_translation_unit): Call do_line_change if
143         avoid_paste or PREV_WHITE and token location is on a different line
144         than print.src_line.
145
146         PR debug/40521
147         * dwarf2out.c (dwarf2out_init): Test whether
148         HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
149         it is defined.
150
151         PR rtl-optimization/41646
152         * calls.c (expand_call): For BLKmode types returned in registers
153         avoid likely spilled hard regs in copy_blkmode_from_reg generated
154         insns.
155
156 2009-10-09  Richard Guenther  <rguenther@suse.de>
157
158         PR tree-optimization/41634
159         * tree-ssa-dom.c (remove_local_expressions_from_table): Assert
160         we remove the correct elements.
161         (optimize_stmt): Make sure to update stmt operands before
162         optimizing redundancies.
163
164 2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
165
166         * config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
167
168 2009-10-09  Richard Guenther  <rguenther@suse.de>
169
170         PR driver/41637
171         * lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
172         globals.
173         (lto_wrapper_exit): New function.
174         (fatal): Use it.
175         (fatal_perror): Likewise.
176         (fork_execute): Use global args_name, do not free it.
177         (run_gcc): Use global ltrans_output_file, flto_out, do not free them.
178         * lto-streamer.h: Remove duplicate prototypes.
179
180 2009-10-09  Richard Guenther  <rguenther@suse.de>
181
182         * cgraph.c (cgraph_create_edge): Check for NULL call_stmt
183         before calling stmt_can_throw_external.
184
185 2009-10-09  Eric Botcazou  <ebotcazou@adacore.com>
186
187         PR tree-optimization/40071
188         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
189         pointer if the original data reference doesn't conflict with the
190         created vector data reference.  Fix long line.
191
192 2009-10-09  Uros Bizjak  <ubizjak@gmail.com>
193
194         * config/i386/i386.md (any_div): New code iterator.
195         (u): Handle div and udiv.
196         (sgnprefix): Ditto.
197         (<u>divqi3): Macroize insn from {,u}divqi3  using any_div
198         code iterator.
199         (lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
200         lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
201         (lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
202         lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
203
204 2009-10-08  Joseph Myers  <joseph@codesourcery.com>
205
206         * gcc.c (main): Remove trailing "." from diagnostics.
207
208 2009-10-08  Cary Coutant  <ccoutant@google.com>
209
210         Add support for debugging with ICF (Identical Code Folding).
211         * calls.c (debug.h): New #include.
212         (emit_call_1): Call virtual_call_token debug hook.
213         * common.opt (-fenable-icf-debug): New option.
214         * dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
215         locations in the source).
216         (poc_label_num): New variable.
217         (dcall_entry, vcall_entry): New typedefs.
218         (dcall_table, vcall_table): New variables.
219         (struct vcall_insn): New type.
220         (vcall_insn_table): New variable.
221         (DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
222         (size_of_dcall_table): New function.
223         (output_dcall_table): New function.
224         (size_of_vcall_table): New function.
225         (output_vcall_table): New function.
226         (dwarf2out_direct_call): New function.
227         (vcall_insn_table_hash): New function.
228         (vcall_insn_table_eq): New function.
229         (dwarf2out_virtual_call_token): New function.
230         (dwarf2out_virtual_call): New function.
231         (dwarf2out_init): Allocate new tables and sections.
232         (prune_unused_types): Mark DIEs referenced from direct call table.
233         (dwarf2out_finish): Output direct and virtual call tables.
234         * final.c (final_scan_insn): Call direct_call and virtual_call
235         debug hooks.
236         * debug.h (struct gcc_debug_hooks): Add direct_call,
237         virtual_call_token, virtual_call hooks.
238         (debug_nothing_uid): New function.
239         * debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
240         (debug_nothing_uid): New function.
241         * dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
242         (xcoff_debug_hooks): Likewise.
243         * sdbout.c (sdb_debug_hooks): Likewise.
244         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
245         * doc/invoke.texi (-fenable-icf-debug): New option.
246
247 2009-10-08  Alexandre Oliva  <aoliva@redhat.com>
248
249         PR debug/41353
250         * regmove.c (regmove_backward_pass): Replace src with dst in the
251         debug insn, and check for dst before rather than after.
252
253 2009-10-08  Janis Johnson <janis187@us.ibm.com>
254
255         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
256         (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
257
258 2009-10-08  Jan Hubicka  <jh@suse.cz>
259
260         PR middle-end/41626
261         * cgraphbuild.c (record_reference): When parameter DATA is NULL,
262         do not mark cgraph nodes as needed.
263         (record_references_in_initializer): Add new only_vars parameter.
264         * cgraph.h (record_references_in_initializer): New parameter.
265         * varasm.c (assemble_variable): Update call.
266         * varpool.c (varpool_analyze_pending_decls): Always look for
267         referenced vars.
268
269 2009-10-08  Anatoly Sokolov  <aesok@post.ru>
270
271         * config/avr/avr.c (last_insn_address) Remove variable.
272         (expand_prologue): Don't initialise last_insn_address variable.
273         (final_prescan_insn): Don't output insn size.
274         * config/avr/avr.opt (msize): Remove switch.
275         * doc/invoke.texi (AVR Options): Remove documentation of -msize
276         switch.
277
278 2009-10-08  Adam Nemet  <anemet@caviumnetworks.com>
279
280         * combine.c (label_tick_ebb_start): Fix comment.
281         (combine_instructions): Set label_tick and label_tick_ebb_start before
282         calling setup_incoming_promotions.  Start them from 1.  Increment
283         label_tick instead of deriving it from the BB index.  Rather than
284         comparing ticks use the block from the previous iteration to decide
285         whether to start a new EBB.  Remove empty lines before function.
286
287 2009-10-08  Michael Matz  <matz@suse.de>
288
289         PR middle-end/41573
290         * builtins.c (fold_builtin_isascii): Use fold_build2.
291         (fold_builtin_isdigit): Ditto.
292         * except.c (duplicate_eh_regions_1): Tolerate NULL labels.
293         * tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
294         remove_useless_stmts_cond, remove_useless_stmts_tf,
295         remove_useless_stmts_tc, remove_useless_stmts_bind,
296         remove_useless_stmts_goto, remove_useless_stmts_label,
297         remove_useless_stmts_1, remove_useless_stmts,
298         pass_remove_useless_stmts): Remove.
299         * tree-pass.h (pass_remove_useless_stmts): Don't declare.
300         * passes.c (init_optimization_passes): Don't add
301         pass_remove_useless_stmts.
302         * tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
303         * tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
304         static constants.
305         * lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
306         for static constants.
307         * lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
308         * lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
309
310 2009-10-08  Richard Guenther  <rguenther@suse.de>
311
312         * gimple.c (free_gimple_type_tables): New function.
313         * gimple.h (free_gimple_type_tables): Declare.
314
315 2009-10-07  Mark Heffernan  <meheff@google.com>
316
317         * ipa-prop.c (ipa_print_node_params) Only print
318         names of named arguments.
319
320 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
321
322         * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
323         being statically linked.
324
325 2009-10-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
326
327         * collect2.c (add_lto_object): Only define if OBJECT_FORMAT_NONE.
328
329 2009-10-08  Jan Hubicka  <jh@suse.cz>
330
331         PR bootstrap/41620
332         * ipa.c (cgraph_externally_visible_p,
333         function_and_variable_visibility,
334         whole_program_function_and_variable_visibility): Skip non-finalized
335         nodes.
336
337 2009-10-08  Nick Clifton  <nickc@redhat.com>
338
339         * config/mn10300/mn10300.h (CONSTANT_ADDRESS_P): Do not allow
340         CONST_DOUBLEs.
341
342 2009-10-08  Andreas Tobler  <a.tobler@schweiz.org>
343
344         PR bootstrap/37739
345         * config.host: Use config/x-cflags-O1 for powerpc FreeBSD.
346
347 2009-10-07  Joseph Myers  <joseph@codesourcery.com>
348
349         PR c/41182
350         * c-common.c (c_fully_fold_internal): Strip nops from the result
351         of recursive calls to c_fully_fold_internal.
352         (c_wrap_maybe_const): New.
353         (c_save_expr): Use c_wrap_maybe_const.
354         * c-common.h (c_wrap_maybe_const): Declare.
355         * c-typeck.c (build_conditional_expr, c_finish_stmt_expr,
356         build_binary_op): Use c_wrap_maybe_const.
357
358 2009-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
359
360         * real.c: Fix comment to reflect actual exponent size.
361
362 2009-10-08  Ben Elliston  <bje@au.ibm.com>
363
364         * config/rs6000/a2.md: Add FSF comment header.
365
366 2009-10-07  Uros Bizjak  <ubizjak@gmail.com>
367
368         * config/i386/i386.md (any_extend): New code iterator.
369         (u, s): New code attributes.
370         (sgnprefix): Ditto.
371         (DWIH): Rewrite as code iterator for SI and DI modes.
372         (DWI): Rewrite as mode attribute.
373         (dwi): New mode attribute.
374         (di): Depend on SI mode and DI mode.
375         (doubleint_general_operand): Remove mode attribute.
376
377         (*lea_1): Macroize insn from *lea_1_rex64 and *lea_1 patterns using
378         DWIH mode iterator.
379
380         (*add<mode>3_doubleword): Use DWIH as the base mode iterator.
381         (*sub<mode>3_doubleword): Ditto.
382
383         (mul<mode>3): Macroize expander from mul{hi,si,di}3 patterns
384         using SWIM248 mode iterator.
385         (*mul<mode>3_1): Macroize insn from mul{si,di}3_1 patterns
386         using SWI48 mode iterator.
387         (<u>mul<mode><dwi>3): Macroize expander from {,u}mul{sidi,diti}3
388         patterns using DWIH mode iterator and any_extend code iterator.
389         (<u>mulqihi3): Macroize expander from {,u}mulqihi3 patterns
390         using any_extend code iterator.
391         (*<u>mul<mode><dwi>3_1): Macroize insn from {,u}mul{sidi,diti}3_1
392         patterns using DWIH mode iterator and any_extend code iterator.
393         (*<u>mulqihi3_1): Macroize insn from {,u}mulqihi3_1 patterns
394         using any_extend code iterator.
395         (<s>mul<mode>3_highpart): Macroize expander from
396         {s,u}mul{si,di}3_highpart patterns using DWIH mode iterator
397         and any_extend code iterator.
398         (*<s>muldi3_highpart_1): Macroize insn from
399         *{s,u}muldi3_highpart_rex64 patterns using any_extend code iterator.
400         (*<s>mulsi3_highpart_1): Macroize insn from *{s,u}mulsi3_highpart_1
401         patterns using any_extend code iterator.
402         (*<s>mulsi3_highpart_zext): Macroize insn from
403         *{s,u}mulsi3_highpart_zext patterns using any_extend code iterator.
404
405 2009-10-07  Jakub Jelinek  <jakub@redhat.com>
406
407         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Don't add
408         DW_AT_const_value if VAR_DIE already has DW_AT_abstract_origin
409         refering to a DIE with DW_AT_const_value.
410
411 2009-10-07  Vladimir Makarov  <vmakarov@redhat.com>
412
413         PR middle-end/22072
414         * ira-lives.c (check_and_make_def_conflict): Process all operands.
415
416 2009-10-06  Jan Hubicka  <jh@suse.cz>
417
418         * cgraph.c (cgraph_node_can_be_local): Handle externally visible nodes
419         correctly.
420
421 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
422
423         * config/i386/i386.md (*lea_1_rex64, *lea_1, *lea_1_zext,
424         *lea_2_rex64): Move before *add<mode>_1 pattern.
425
426 2009-10-07  Jan Hubicka  <jh@suse.cz>
427
428         * collect2.c (main): Add -fno-whole-program.
429         * gcc.c (set_collect_gcc_options): Do not remove whole program here.
430
431 2009-10-07  Jan Hubicka  <jh@suse.cz>
432
433         * lto-symtab.c (lto_cgraph_replace_node): Assert that inline clones
434         has no address taken.
435         * cgraph.c (cgraph_mark_needed_node): Assert that inline clones are
436         never needed.
437         (cgraph_clone_node): Clear externally_visible flag for clones.
438         * cgraph.h (cgraph_only_called_directly_p,
439         cgraph_can_remove_if_no_direct_calls_p): New predicates.
440         * tree-pass.h (pass_ipa_whole_program_visibility): Declare.
441         * ipa-cp.c (ipcp_cloning_candidate_p): Use new predicate.
442         (ipcp_initialize_node_lattices, ipcp_estimate_growth,
443         ipcp_insert_stage): Likwise.
444         * cgraphunit.c (cgraph_decide_is_function_needed): Do not compute
445         externally_visible flag.
446         (verify_cgraph_node): Verify that inline clones look right.
447         (process_function_and_variable_attributes): Do not set
448         externally_visible flags.
449         (ipa_passes): Avoid executing small_ipa_passes at LTO stage; they've
450         been already run.
451         * lto-cgraph.c (lto_output_node): Assert that inline clones are not
452         boundaries.
453         * ipa-inline.c (cgraph_clone_inlined_nodes): Use new predicates;
454         clear externally_visible when turning into inline clones
455         (cgraph_mark_inline_edge): Use new predicates.
456         (cgraph_estimate_growth): Likewise.
457         (cgraph_decide_inlining): Likewise.
458         * ipa.c (cgraph_postorder): Likewise.
459         (cgraph_remove_unreachable_nodes): Likewise; sanity check
460         that inline clones are not needed.
461         (cgraph_externally_visible_p): New predicate.
462         (function_and_variable_visibility): Add whole_program parameter;
463         always set externally_visible flag; handle COMDAT function
464         privatization.
465         (local_function_and_variable_visibility): New function.
466         (gate_whole_program_function_and_variable_visibility): New function.
467         (whole_program_function_and_variable_visibility): New function.
468         (pass_ipa_whole_program_visibility): New function.
469         * passes.c  (init_optimization_passes): Add whole program visibility
470         pass.
471         (do_per_function_toporder, function_called_by_processed_nodes_p): Do
472         not care about needed/reachable flags.
473         * varpool.c: Include flags.h
474         (decide_is_variable_needed): When doing LTO assume whole-program mode.
475         (varpool_finalize_decl): When we are in LTO read-back, all variables
476         are analyzed.
477         (varpool_analyze_pending_decls): Skip analyzis of analyzed vars.
478
479 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
480
481         * config/s390/tpf.h (TARGET_DEFAULT): Remove MASK_HARD_FLOAT and
482         add MASK_HARD_DFP.
483
484 2009-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
485
486         * config.gcc: Don't include the makefile fragments intended for
487         libgcc.
488         * config/s390/fixdfdi.h: File removed.
489         * config/s390/libgcc-glibc.ver: File removed.
490         * config/s390/s390.h: Remove the fixdfdi.h hack.
491         * config/s390/t-crtstuff: File moved to libgcc dir.
492         * config/s390/t-linux: Likewise.
493         * config/s390/t-tpf: libgcc specific parts removed.
494         * config/s390/t-linux64: Likewise.
495
496 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
497
498         * Makefile.in (lto-wrapper): Use COMPILER and ALL_COMPILERFLAGS.
499         (lto-compress.o): Likewise.
500
501 2009-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
502
503         PR target/41512
504         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't propagate
505         dllexport to class members here.
506         (i386_pe_determine_dllimport_p): Only check static class data for
507         definition.
508         (i386_pe_encode_section_info): Don't recheck DECL_DLLIMPORT_P.
509         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Only check
510         functions for vague linkage.
511         (i386_pe_type_dllexport_p): Fix formatting.
512         (maybe_add_dllexport) New function.
513         (i386_pe_adjust_class_at_definition): Use it to propagate dllexport
514         to class members.
515
516 2009-10-07  Ben Elliston  <bje@au.ibm.com>
517
518         * config/rs6000/a2.md: Remove duplicated lines.
519
520 2009-10-07  Ben Elliston  <bje@au.ibm.com>
521
522         * config.gcc (powerpc*-*-*): Handle a2.
523         * config/rs6000/rs6000.md (cpu): Add ppca2.  Include "a2.md".
524         * config/rs6000/a2.md: New file.
525         * config/rs6000/rs6000.opt (mno-update): New.
526         (mupdate): Return to using a mask, not a var.
527         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for a2.
528         (enum processor_type): Add PROCESSOR_PPCA2.
529         * config/rs6000/rs6000.c (ppca2_cost): New costs.
530         (rs6000_override_options): Add "a2" to processor_target_table.
531         Update rs6000_always_hint logic.  Correctly set rs6000_cost for a2.
532         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=a2.
533
534 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
535
536         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
537         Use explicit gen_truncxfsf2 and gen_truncxfdf2 references to avoid
538         reference to nonexistent gen_truncxfxf2 function.
539
540 2009-10-06  Uros Bizjak  <ubizjak@gmail.com>
541
542         * config/i386/i386.md (SWI48, SDWIM, DWI): New mode iterators.
543         (DWIH, g, di, doubleint_general_operand): New mode attributes.
544         (general_operand): Handle TI mode.
545         (add<mode>3): Macroize expander from add{qi,hi,si,di,ti}3 patterns
546         using SDWIM mode iterator.
547         (*add<mode>3_doubleword): New insn_and_split pattern.  Macroize
548         pattern from *add{di,ti}3_1 patterns and corresponding splitters
549         using DWI mode iterator.
550         (add<mode>3_carry): Macroize insn from add{qi,hi,si,di}3_carry
551         patterns using SWI mode iterator.
552         (*add<mode>3_cc): Macroize insn from add{si,di}3_cc patterns
553         using SWI48 mode iterator.
554         (*add<mode>_1): Ditto from add{si,di}_1 patterns.
555         (*add<mode>_2): Ditto from add{si,di}_2 patterns.
556         (*add<mode>_3): Ditto from add{si,di}_3 patterns.
557         (*add<mode>_5): Ditto from add{si,di}_5 patterns.
558         (sub<mode>3): Macroize expander from sub{qi,hi,si,di,ti}3 patterns
559         using SDWIM mode iterator.
560         (*sub<mode>3_doubleword): New insn_and_split pattern.  Macroize
561         pattern from *sub{di,ti}3_1 patterns and corresponding splitters
562         using DWI mode iterator.
563         (sub<mode>3_carry): Macroize insn from sub{qi,hi,si,di}3_carry
564         patterns using SWI mode iterator.
565         (*sub<mode>_1): Ditto from from sub{qi,hi,si,di}_1 patterns.
566         (*sub<mode>_2): Ditto from sub{qi,hi,si,di}_2 patterns.
567         (*sub<mode>_3): Ditto from sub{qi,hi,si,di}_3 patterns.
568         (<plusminus_insn>xf3): Macroize expander from addxf3 and subxf3
569         patterns using plusminus code iterator.
570         (<plusminus_insn><mode>3): Macroize expander from add<mode>3 and
571         sub<mode>3 patterns using plusminus code iterator.
572         * config/i386/i386.c (override_options): Update call to
573         gen_subdi_carry_rex64 for renamed function.
574         (ix86_expand_int_addcc): Update calls to gen_subdi3_carry_rex64
575         and gen_adddi3_carry_rex64 for renamed functions.  Use indirect
576         calls to instruction expanders.
577
578 2009-10-06  Martin Jambor  <mjambor@suse.cz>
579
580         PR bootstrap/41395
581         * opts.c (decode_options): Run IPA-SRA at -O2.
582
583 2009-10-06  Richard Guenther  <rguenther@suse.de>
584
585         * lto-symtab.c (lto_symtab_entry_hash): Hash strings, not pointers.
586
587 2009-10-06  Tobias Burnus  <burnus@net-b.de>
588
589         PR lto/41591
590         * doc/invoke.texi (-flto,-fwhole-program): Make clear that the
591         -flto and -fwhole-program flags can be combined.
592
593 2009-10-06  Ryan Mansfield  <rmansfield@qnx.com>
594
595         PR driver/41217
596         * gcc.c (process_command): Check that -o argument was specified.
597
598 2009-10-06  Jerry Quinn  <jlquinn@optonline.net>
599
600         * gimple.c (gimple_type_hash): Use CONST_CAST_TREE to fix compilation.
601
602 2009-10-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
603
604         * c.opt (Wjump-misses-init): Fix typo to enable for ObjC.
605         * doc/invoke.texi (Warning Options): Annotate allowed languages
606         for -Wunsuffixed-float-constants.
607
608 2009-10-05  Jakub Jelinek  <jakub@redhat.com>
609
610         * dwarf2out.c (modified_type_die): Don't add DW_AT_name to
611         DW_TAG_{const,volatile}_type if its DW_AT_type already has the
612         same name and isn't the main variant.
613
614         PR debug/41558
615         * dwarf2out.c (loc_by_reference): Removed.
616         (dw_loc_list_1): New function.
617         (dw_loc_list): Remove toplev argument, add want_address argument.
618         Don't look at decl_by_reference_p at all.  Use dw_loc_list_1.
619         (loc_list_from_tree) <case VAR_DECL>: Pass want_address rather than
620         want_address == 2 to dw_loc_list.  For successful dw_loc_list
621         set have_address to 1 only if want_address is not 0.
622
623 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
624
625         * config/mips/mips-protos.h (mips_trampoline_code_size): Declare.
626         * config/mips/mips.h (TRAMPOLINE_SIZE): Redefine as the size of
627         a code block followed by two pointers.
628         (TRAMPOLINE_ALIGNMENT): Define to 64 for 32-bit targets too.
629         * config/mips/mips.c (MIPS_LOAD_PTR): New macro.
630         (MIPS_MOVE): Likewise.
631         (MIPS_LUI): Likewise.
632         (MIPS_JR): Likewise.
633         (MIPS_BAL): Likewise.
634         (MIPS_NOP): Likewise.
635         (mips_asm_trampoline_template): Delete.
636         (mips_trampoline_code_size): New function.
637         (mips_trampoline_init): Add shorter sequences for all cases
638         except Pmode == DImoe && !TARGET_USE_PIC_FN_ADDR_REG.
639         Calculate the opcodes directly, rather than copying from a template.
640         Only flush the code part of the trampoline.
641         (TARGET_ASM_TRAMPOLINE_TEMPLATE): Delete.
642
643 2009-10-05  Richard Sandiford  <rdsandiford@googlemail.com>
644
645         * config/mips/mips.h (DWARF_FRAME_RETURN_COLUMN): Replace
646         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM.
647         (INCOMING_RETURN_ADDR_RTX): Likewise.
648         (FUNCTION_PROFILER): Likewise.  Replace GP_REG_FIRST + 1
649         with AT_REGNUM.
650         * config/mips/sdemtk.h (FUNCTION_PROFILER): Replace GP_REG_FIRST + 31
651         with RETURN_ADDR_REGNUM.
652         (MIPS_SAVE_REG_FOR_PROFILING_P): Likewise.
653         * config/mips/mips.c (mips16_build_call_stub): Replace
654         GP_REG_FIRST + 31 with RETURN_ADDR_REGNUM, GP_REG_FIRST + 1
655         with AT_REGNUM and 31 with RETURN_ADDR_REGNUM.
656         (mips_print_operand_punctuation): Likewise.
657         (mips_frame_set): Likewise.
658         (mips16e_output_save_restore): Likewise.
659         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
660         (mips_save_reg_p): Likewise.
661         (mips_return_addr): Likewise.
662         (mips_set_return_address): Likewise.
663         (mips_direct_save_slot_move_p): Likewise.
664         (mips_output_function_prologue): Likewise.
665         (mips_restore_reg): Likewise.
666         (mips_expand_epilogue): Likewise.
667         (mips_epilogue_uses): Likewise.
668         * config/mips/mips.md (RETURN_ADD_REGNUM): Define.
669         (*mov<mode>_ra): Use it instead of a hard-coded 31.
670         (clear_hazard_<mode>): Likewise.
671         (call_internal): Likewise.
672         (call_internal_direct): Likewise.
673         (call_direct_split): Likewise.
674         (call_value_internal): Likewise.
675         (call_value_split): Likewise.
676         (call_value_internal_direct): Likewise.
677         (call_value_direct_split): Likewise.
678         (call_value_multiple_internal): Likewise.
679         (call_value_multiple_split): Likewise.
680
681 2009-10-05  Eric Botcazou  <ebotcazou@adacore.com>
682             Jakub Jelinek  <jakub@redhat.com>
683
684         PR rtl-optimization/41511
685         * combine.c (record_value_for_reg): Pass explicit values as argument
686         to get_last_value_validate.
687         (get_last_value_validate): Document INSN parameter.
688         For non-readonly MEMs, assume they might have been modified if INSN
689         was in another basic block.
690         (get_last_value): Minor reformatting.
691
692 2009-10-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
693
694         PR tree-opt/40992
695         * final.c (asm_str_count): Split out from asm_insn_count.
696         * rtl.h (asm_str_count): New prototype.
697         * tree-inline (estimate_num_insns) <case GIMPLE_ASM>: Call
698         asm_str_count.
699
700 2009-10-05  Sriraman Tallam  <tmsriram@google.com>
701
702         * doc/plugins.texi: Change plugin_pass to register_pass_info.
703
704 2009-10-05  Basile Starynkevitch  <basile@starynkevitch.net>
705             Rafael Espindola  <espindola@google.com>
706
707         * gengtype.c (write_types): Moved call to write_func_for_structure
708         into seperate loops.
709
710 2009-10-05  Richard Guenther  <rguenther@suse.de>
711
712         PR lto/41281
713         * lto-cgraph.c (output_cgraph): Output toplevel asms.
714         (input_cgraph_1): Input toplevel asms.
715
716 2009-10-05  Richard Guenther  <rguenther@suse.de>
717
718         PR lto/40902
719         * lto-symtab.c (lto_compatible_attributes_p): Remove.
720         (external_aggregate_decl_p): Likewise.
721         (lto_symtab_compatible): Re-structure.  Remove dead code.
722         For variables ignore toplevel qualifiers when comparing types.
723         Issue warnings, not errors for mismatched user-alignment.
724
725 2009-10-05  Richard Guenther  <rguenther@suse.de>
726
727         PR lto/41552
728         PR lto/41487
729         * lto-symtab.c (struct lto_symtab_base_def): Remove.
730         (struct lto_symtab_identifier_def): Likewise.
731         (struct lto_symtab_decl_def): Likewise.
732         (struct lto_symtab_entry_def): New.
733         (lto_symtab_identifier_t): Rename to ...
734         (lto_symtab_entry_t): ... this.
735         (lto_symtab_decls): Remove.
736         (lto_symtab_base_hash): Rename to ...
737         (lto_symtab_entry_hash): ... this.
738         (lto_symtab_base_eq): Rename to ...
739         (lto_symtab_entry_eq): ... this.
740         (lto_symtab_base_marked_p): Rename to ...
741         (lto_symtab_entry_marked_p): ... this.
742         (lto_symtab_identifier_marked_p): Remove.
743         (lto_symtab_decl_marked_p): Likewise.
744         (lto_symtab_maybe_init_hash_tables): Rename to ...
745         (lto_symtab_maybe_init_hash_table): ... this.
746         (lto_symtab_set_resolution_and_file_data): Remove.
747         (lto_symtab_register_decl): New function.
748         (lto_symtab_get_identifier): Remove.
749         (lto_symtab_get): New function.
750         (lto_symtab_get_resolution): Adjust.
751         (lto_symtab_get_identifier_decl): Remove.
752         (lto_symtab_set_identifier_decl): Likewise.
753         (lto_symtab_merge_decl): Rename to ...
754         (lto_symtab_merge): ... this.  Rewrite.
755         (lto_symtab_merge_var): Remove.
756         (lto_symtab_merge_fn): Likewise.
757         (lto_symtab_prevailing_decl): Adjust.
758         (lto_cgraph_replace_node): New function.
759         (lto_symtab_merge_decls_2): Likewise.
760         (lto_symtab_merge_decls_1): Likewise.
761         (lto_symtab_fixup_var_decls): Likewise.
762         (lto_symtab_resolve_symbols): Likewise.
763         (lto_symtab_merge_decls): Likewise.
764         (lto_symtab_prevailing_decl): Adjust.
765         (lto_symtab_get_symtab_def): Remove.
766         (lto_symtab_get_file_data): Likewise.
767         (lto_symtab_clear_resolution): Adjust.
768         (lto_symtab_clear_resolution): Likewise.
769         * lto-cgraph.c (input_edge): Do not merge cgraph nodes here.
770         (input_cgraph_1): Likewise.
771         * lto-streamer-in.c (get_resolution): Do not provide fake
772         symbol resolutions here.
773         (deferred_global_decls): Remove.
774         (lto_register_deferred_decls_in_symtab): Likewise.
775         (lto_register_var_decl_in_symtab): Change signature, register
776         variable via lto_symtab_register_decl.
777         (lto_register_function_decl_in_symtab): Likewise.
778         (lto_read_tree): Adjust.
779         * lto-streamer.h (lto_register_deferred_decls_in_symtab): Remove.
780         (lto_symtab_merge_var): Likewise.
781         (lto_symtab_merge_fn): Likewise.
782         (lto_symtab_register_decl): Declare.
783         (lto_symtab_merge_decls): Likewise.
784
785 2009-10-05  Richard Guenther  <rguenther@suse.de>
786
787         PR tree-optimization/23821
788         * tree-vrp.c (vrp_finalize): Do not perform copy propagation.
789         * tree-ssa-dom.c (cprop_operand): Do not propagate copies into
790         simple IV increments.
791
792 2009-10-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
793
794         * config/arm/arm.c (arm_override_options): Really initialize
795         flag_dwarf2_cfi_asm to 0.
796
797 2009-10-05  Doug Kwan  <dougkwan@google.com>
798
799         PR rtl-optimization/41574
800         * combine.c (distribute_and_simplify_rtx): Quit if RTX mode is
801         floating point and we are not doing unsafe math optimizations.
802
803 2009-10-03  Simon Baldwin  <simonb@google.com>
804             Cary Coutant  <ccoutant@google.com>
805             Rafael Espindola  <espindola@google.com>
806             Richard Guenther  <rguenther@suse.de>
807             Jan Hubicka  <jh@suse.cz>
808             Doug Kwan <dougkwan@google.com>
809             H.J. Lu  <hongjiu.lu@intel.com>
810             Bill Maddox  <maddox@google.com>
811             Ryan Mansfield  <rmansfield@qnx.com>
812             Diego Novillo  <dnovillo@google.com>
813             Ollie Wild  <aaw@google.com>
814             Kenneth Zadeck <zadeck@naturalbridge.com>
815
816         * lto-cgraph.c: New file.
817         * lto-compress.c: New file.
818         * lto-compress.h: New file.
819         * lto-opts.c: New file.
820         * lto-section-in.c: New file.
821         * lto-section-out.c: New file.
822         * lto-streamer-in.c: New file.
823         * lto-streamer-out.c: New file.
824         * lto-streamer.c: New file.
825         * lto-streamer.h: New file.
826         * lto-symtab.c: New file.
827         * lto-wpa-fixup.c: New file.
828         * lto-wrapper.c: New file.
829
830 2009-10-03  Simon Baldwin  <baldwin@google.com>
831             Ben Elliston  <bje@au.ibm.com>
832             Rafael Espindola  <espindola@google.com>
833             Nathan Froyd  <froydnj@codesourcery.com>
834             Jan Hubicka  <jh@suse.cz>
835             Doug Kwan  <dougkwan@google.com>
836             Diego Novillo  <dnovillo@google.com>
837             Kenneth Zadeck  <zadeck@naturalbridge.com>
838
839         * Makefile.in (enable_lto): New.
840         (site.exp): If @enable_lto@ is set to 'yes' define ENABLE_LTO.
841         (LINKER_PLUGIN_API_H): Define.
842         (LTO_SYMTAB_H): Define.
843         (LTO_STREAMER_H): Define.
844         (TREE_VECTORIZER_H): Define.
845         (INCLUDES): Add LIBELFINC.
846         (OBJS-common): Add lto-cgraph.o, lto-streamer-in.o,
847         lto-streamer-out.o, lto-section-in.o, lto-section-out.o, lto-symtab.o,
848         lto-opts.o, lto-streamer.o, lto-wpa-fixup.o, lto-compress.o.
849         (MOSTLYCLEANFILES): Add lto-wrapper$(exeext)
850         (native): Add lto-wrapper$(exeext)
851         (lto-compress.o, lto-cgraph.o, lto-streamer-in.o,
852         lto-streamer-out.o, lto-section-in.o, lto-section-out.o,
853         lto-symtab.o, lto-opts.o, lto-streamer.o, lto-wpa-fixup.o): New rules.
854         (gimple.o): Add dependency on LTO_HEADER_H and LTO_SECTION_OUT_H.
855         (varasm.o): Add dependency on tree-iterator.h.
856         (cgraph.o): Add dependency on cif-code.def.
857         (ipa-reference.o): Add dependency on LTO_STREAMER_H.
858         (ipa-pure-const.o): Likewise.
859         (GTFILES): Add lto-symtab.c.
860         (install-lto-wrapper): New.
861         * configure.ac: If 'lto' is in enable_languages, define ENABLE_LTO
862         and enable_lto.  If LIBELFLIBS is set, define HAVE_libelf.
863         * config.in: Regenerate.
864
865 2009-10-03  Rafael Espindola  <espindola@google.com>
866             Diego Novillo  <dnovillo@google.com>
867
868         * cgraphunit.c (ipa_passes): Prevent lto1 from calling
869         ipa_write_summaries.
870         Call execute_ipa_summary_passes for all_regular_ipa_passes and
871         all_lto_gen_passes.
872         (cgraph_optimize): Make extern.
873
874 2009-10-03  Nathan Froyd  <froydnj@codesourcery.com>
875             Kenneth Zadeck <zadeck@naturalbridge.com>
876
877         * toplev.c (in_lto_p): Declare.
878         * collect2.c (scan_prog_file): Read all the output when reading
879         information for LTO.
880         (enum lto_mode_d): Declare.
881
882 2009-10-03  Richard Guenther  <rguenther@suse.de>
883             Diego Novillo  <dnovillo@google.com>
884
885         * gimple.c: Include target.h and alias.h.
886         (gimple_types): Declare.
887         (type_hash_cache): Declare.
888         (gimple_alloc_stat): Make extern.
889         (gimple_build_eh_must_not_throw): Call
890         gimple_eh_must_not_throw_set_fndecl.
891         (struct type_pair_d): Declare.
892         (type_pair_t): Declare.
893         (type_pair_hash): New.
894         (type_pair_eq): New.
895         (lookup_type_pair): New.
896         (gimple_force_type_merge): New.
897         (compare_type_names_p): New.
898         (compare_field_offset): New.
899         (gimple_types_compatible_p): New.
900         (struct sccs): Declare.
901         (next_dfs_num): Declare.
902         (iterative_hash_gimple_type): New.
903         (visit): New.
904         (iterative_hash_type_name): New.
905         (iterative_hash_gimple_type): New.
906         (gimple_type_hash): New.
907         (gimple_type_eq): New.
908         (gimple_register_type): New.
909         (print_gimple_types_stats): New.
910         (gimple_signed_or_unsigned_type): New.
911         (gimple_unsigned_type): New.
912         (gimple_signed_type): New.
913         (gimple_get_alias_set): New.
914         (gimple_decl_printable_name): Do not use DMGL_TYPES.
915         * gimple.h (gimple_alloc, gimple_alloc_stat): Declare.
916         (gimple_force_type_merge): Declare.
917         (gimple_types_compatible_p): Declare.
918         (gimple_register_type): Declare.
919         (print_gimple_types_stats): Declare.
920         (gimple_unsigned_type): Declare.
921         (gimple_signed_type): Declare.
922         (gimple_get_alias_set): Declare.
923         (gimple_eh_must_not_throw_set_fndecl): New.
924
925 2009-10-03  Jan Hubicka  <jh@suse.cz>
926             Kenneth Zadeck <zadeck@naturalbridge.com>
927
928         * ipa-pure-const.c: Include lto-streamer.h.
929         (register_hooks): Factor out of ...
930         (generate_summary): ... here.
931         (pure_const_write_summary): New.
932         (pure_const_read_summary): New.
933         (pass_ipa_pure_const): Add pure_const_write_summary and
934         pure_const_read_summary.
935         * ipa-reference.c: Include lto-streamer.h.
936         (add_new_function): New.
937         (remove_node_data): New.
938         (duplicate_node_data): New.
939         (ipa_init): Guard against multiple calls.
940         Move hook setup from analyze_function.
941         (write_node_summary_p): New.
942         (ipa_reference_write_summary): New.
943         (ipa_reference_read_summary): New.
944         (pass_ipa_reference): Add ipa_reference_write_summary and
945         ipa_reference_read_summary.
946         * cgraph.h (cgraph_local_info): Add field lto_file_data.
947         (struct cgraph_edge): Add fields lto_stmt_uid and
948         call_stmt_cannot_inline_p.
949         (cgraph_optimize): Declare.
950         (cgraph_decide_is_function_needed): Declare.
951         (reset_inline_failed): Declare.
952         (enum LTO_cgraph_tags): Declare.
953         (LTO_cgraph_tag_names): Declare.
954         (LCC_NOT_FOUND): Define.
955
956 2009-10-03  Doug Kwan  <dougkwan@google.com>
957             Rafael Espindola  <espindola@google.com>
958             Jan Hubicka  <jh@suse.cz>
959             Diego Novillo  <dnovillo@google.com>
960             Kenneth Zadeck  <zadeck@naturalbridge.com>
961
962         * passes.c (all_regular_ipa_passes): New.
963         (all_ipa_passes): Rename to all_small_ipa_passes.
964         (init_optimization_passes): Init all_regular_ipa_passes.
965         * tree-pass.h (all_regular_ipa_passes): New.
966         (all_ipa_passes): Rename to all_small_ipa_passes.
967         * passes.c (all_lto_gen_passes): New.
968         (init_optimization_passes): Initialize all_lto_gen_passes.
969         (execute_ipa_summary_passes): Make non-static.
970         (ipa_write_summaries_1): New.
971         (ipa_write_summaries_2): New.
972         (ipa_write_summaries): New.
973         (ipa_write_summaries_of_cgraph_node_set): New.
974         (ipa_read_summaries_1): New.
975         (ipa_read_summaries): New.
976         (execute_ipa_pass_list): Call cgraph_process_new_functions.
977         (execute_regular_ipa_pass_list): Remove.
978         (init_optimization_passes): Schedule
979         pass_rebuild_cgraph_edges and pass_early_inline outside
980         of pass_all_early_optimizations.  Document reason.
981         (pass_ipa_lto_gimple_out, pass_ipa_lto_wpa_fixup,
982         pass_ipa_lto_finish_out): New pass.
983         (pass_ipa_summary_passes): Start and stop timers if the pass has them.
984         (execute_all_ipa_transforms): New.
985         (execute_one_pass): Don't call execute_one_ipa_transform_pass.
986         (dump_properties, debug_properties): New.
987         * tree-optimize.c (gate_all_early_local_passes): Return
988         false if we are in lto1.
989         (tree_rest_of_compilation): Call execute_all_ipa_transforms.
990         * tree-pass.h (execute_all_ipa_transforms): Declare.
991         (pass_ipa_function_and_variable_visibility): Declare.
992         (pass_ipa_early_inline): Declare.
993         (pass_ipa_lto_gimple_out): Declare.
994         (pass_ipa_lto_wpa_fixup): Declare.
995         (pass_ipa_lto_finish_out): Declare.
996         (all_small_ipa_passes, all_regular_ipa_passes,
997         all_lto_gen_passes): Declare.
998         (execute_ipa_summary_passes): Declare.
999         (execute_all_ipa_transforms): Declare.
1000         (ipa_write_summaries): Declare
1001         (ipa_write_summaries_of_cgraph_node_set): Declare.
1002         (ipa_read_summaries): Declare.
1003
1004 2009-10-03  Doug Kwan  <dougkwan@google.com>
1005             Ollie Wild  <aaw@google.com>
1006
1007         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do nothing in WPA.
1008
1009         * collect2.c (LTO_MODE_NONE, LTO_MODE_LTO, LTO_MODE_WPA): New enums.
1010         (lto_mode): New variable.
1011         (maybe_run_lto_and_relink): Handle the -fwpa option.
1012         (main): Handle the -fwpa option.
1013         (maybe_unlink_list): New function.
1014         * gcc.c (link_lto_options): Replace -flto with -fwpa.
1015         * common.opt (flto): New flag.
1016         * toplev.c (flag_generate_lto): Declare.
1017
1018 2009-10-03  Simon Baldwin  <simonb@google.com>
1019
1020         * common.opt (flto-compression-level): New flag.
1021
1022         * opts.c: Include lto-opts.h.
1023         (handle_option): Call lto_register_user_option for each
1024         valid option handled.
1025         (decode_options): Clear registered options before the options
1026         handling loop.
1027
1028 2009-10-03  Cary Coutant  <ccoutant@google.com>
1029
1030         * collect2.c (is_elf): New function.
1031         (scan_prog_file): Require LTO object to be in ELF format.
1032
1033 2009-10-03  Rafael Espindola  <espindola@google.com>
1034
1035         * gcc.c (LINK_COMMAND_SPEC): Use the -pass-through option to pass
1036         libgcc to the linker.
1037
1038         * ipa-cp.c (cgraph_gate_cp): Return false if LTRANS is running.
1039
1040         * collect2.c (maybe_run_lto_and_relink): Execute lto-wrapper.
1041         (collect_execute): Add flags argument. Pass flags to pex_run. Update
1042         all callers.
1043         * collect2.h (collect_execute): Add flags argument.
1044         * tlink.c (tlink_execute): Update call to collect_execute.
1045         * gcc.c (main): Set the COLLECT_LTO_WRAPPER environment variable.
1046         (use_linker_plugin): New.
1047         (use_linker_plugin_spec_function): New.
1048         (LINK_COMMAND_SPEC): Pass plugin options to the linker.
1049         (linker_plugin_file_spec): New.
1050         (lto_wrapper_spec): New.
1051         (lto_gcc_spec): New.
1052         (static_specs): Add linker_plugin_file, lto_wrapper and lto_gcc.
1053         (static_spec_functions): Add use-linker-plugin.
1054         (process_command): Handle -use-linker-plugin.
1055         (main): Use lto_wrapper_spec instead of lto_wrapper. Set
1056         linker_plugin_file_spec and lto_gcc_spec.
1057         (use_linker_plugin_spec_function): New.
1058
1059 2009-10-03  Richard Guenther  <rguenther@suse.de>
1060
1061         PR lto/41547
1062         PR lto/41548
1063         * tree.h (is_lang_specific): Include LANG_TYPE.
1064         * tree.c (find_decls_types_r): Manually add interesting parts
1065         of TYPE_FIELDS.  Walk BINFO_VIRTUALS.  Do not walk TYPE_METHODS.
1066
1067         * gimple.c (type_pair_hash): Make symmetric.
1068         (type_pair_eq): Likewise.
1069         (lookup_type_pair): Increase initial hashtable size.
1070         (gimple_force_type_merge): Rely on type-pair symmetry.
1071         (visit): Remove excessive checking code.
1072         (iterative_hash_type_name): Do not hash TYPE_NAME of anonymous unions.
1073         (gimple_register_type): Remove getenv calls, shrink initial
1074         hashtable size.
1075
1076         PR middle-end/41502
1077         * cgraphunit.c (ipa_passes): Do not remove bodies of extern
1078         inline functions if not generating lto output.
1079
1080         PR lto/41379
1081         * toplev.c (finalize): In WPA mode remove the asm file.
1082
1083 2009-10-03  Doug Kwan  <dougkwan@google.com>
1084
1085         * ipa-inline.c (cgraph_mark_inline): Check
1086         edge->call_stmt_cannot_inline_p instead of calling
1087         gimple_call_cannot_inline_p.
1088         (cgraph_decide_inlining): Do nothing in WPA and LTRANS.
1089         (cgraph_gate_ipa_early_inlining): Return false if in_lto_p is set.
1090         (inline_generate_summary): Do nothing in LTRANS.
1091         * cgraph.c (initialize_inline_failed): Make sure e->call_stmt
1092         exists before calling gimple_call_cannot_inline_p.
1093         (cgraph_create_edge): Set edge->call_stmt_cannot_inline_p.
1094         (cgraph_clone_edge): Add argument STMT_UID.  Modify all callers.
1095         Update new_edge->lto_stmt_uid.
1096         * cgraphbuild.c (reset_inline_failed): New.
1097
1098         * common.opt (fwpa): New flag.
1099         (fltrans): New option.
1100         * gcc.c (gcc_lto_option_t): New type.
1101         (current_lto_option): New variable.
1102         (lto_single_spec_function): Remove and is replaced by ..
1103         (lto_option_spec_function): New function.
1104         (LINK_COMMAND_SPEC): Use link_lto_option spec instead of just
1105         passing the -flto flag.
1106         (cc1_options): Separate non-LTO related parts into ..
1107         (cc1_non_lto_options): Non-LTO related options shared by all FEs.
1108         (lto1_options): New spec for lto FE.
1109         (link_lto_options): New spec for handling LTO flags in linker.
1110         (invoke_lto_single): Re-format to fit in 80 column.  Replace
1111         lto-single with lto-option.
1112         (static_specs): Add cc1_non_lto_options, lto1_options and
1113         link_lto_options.
1114         (static_spec_function): Replace lto-single with lto-option.
1115         (process_command): Handle -flto, -fwpa and -fltran by setting
1116         current_lto_option and not passing it to subprocess unconditionally.
1117
1118 2009-10-03  Bill Maddox  <maddox@google.com>
1119
1120         Add `gcc' driver support for link-time code generation (LTO).
1121
1122         * collect2.c (enum pass): Add new literal PASS_LTOINFO.
1123         (lto_flag, lto_objects, lto_o_file): New variables.
1124         (struct lto_object, struct lto_object_list): New structures.
1125         (collect_exit, handler): Remove LTO temporary output file on exit.
1126         (add_lto_object): New function.
1127         (maybe_run_lto_and_relink): New function. Perform link time code
1128         generation and relinking for object files containing LTO information.
1129         (main): Invoke maybe_run_lto_and_relink().
1130         (dump_argv): New function.  For debugging, currently disabled.
1131         (scan_prog_file): Add LTO information pass.
1132         * gcc.c (LINK_COMMAND_SPEC): Pass `-flto' switch to linker, i.e.,
1133         collect2.
1134         * toplev.c (compile_file): Emit assembler directive to create
1135         the `gnu_lto_v1' marker symbol when compiling with `-flto'.
1136
1137 2009-10-03  Diego Novillo  <dnovillo@google.com>
1138
1139         * c.opt: Add LTO to warn_abi and warn_psabi.
1140
1141         * tree.c (fld_worklist_push): Rename from PUSH.  Convert to static
1142         inline function.  Ignore language-specific nodes.  Update all users.
1143         (find_decls_types_r): Do not traverse the subtrees of
1144         language-specific nodes.  Do not traverse DECL_INITIAL for TYPE_DECLs.
1145         * tree.h (is_lang_specific): New.
1146         * langhooks.h (struct lang_hooks_for_decls): Remove
1147         may_need_assembler_name_p.  Update all users.
1148
1149         * c-common.c (set_builtin_user_assembler_name): Move ...
1150         * builtins.c (set_builtin_user_assembler_name): ... here.
1151         (is_builtin_name): Add comment
1152         (is_builtin_fn): New.
1153         * except.c (output_ttype): Only call
1154         lookup_type_for_runtime if TYPE is not a runtime type.
1155
1156         * passes.c (register_pass): Call position_pass on
1157         all_small_ipa_passes, all_regular_ipa_passes and all_lto_gen_passes.
1158         * timevar.def (TV_IPA_LTO_GIMPLE_IO): Define.
1159         (TV_IPA_LTO_DECL_IO): Define.
1160         (TV_IPA_LTO_CGRAPH_IO): Define.
1161         (TV_LTO): Define.
1162         (TV_WHOPR_WPA): Define.
1163         (TV_WHOPR_WPA_IO): Define.
1164         (TV_WHOPR_LTRANS): Define.
1165         (TV_WHOPR_WPA_FIXUP): Define.
1166         (TV_WHOPR_WPA_LTRANS_EXEC): Define.
1167         * tree-cfg.c (tree_node_can_be_shared): Make extern.
1168         * tree-flow.h (tree_node_can_be_shared): Declare.
1169         * tree-inline.c (tree_can_inline_p): Check that E has a
1170         statement associated with it.
1171         * tree.c (free_lang_data_in_binf): Factor out of ...
1172         (free_lang_data_in_type): ... here.
1173         Call RECORD_OR_UNION_TYPE_P.
1174         (need_assembler_name_p): Ignore DECL if it does not have TREE_PUBLIC
1175         set.  Call lang_hooks.decls.may_need_assembler_name_p if set.
1176         (free_lang_data_in_decl): Do not clear DECL_CONTEXT for CONST_DECLs.
1177         (free_lang_data): Set debug_info_level to DINFO_LEVEL_NONE.  Set
1178         write_symbols to NO_DEBUG.  Set debug_hooks to do_nothing_debug_hooks.
1179         (gate_free_lang_data): Return true if flag_generate_lto is set.
1180         (walk_tree_1): Call RECORD_OR_UNION_TYPE_P.
1181         * c-common.h (set_builtin_user_assembler_name): Move ...
1182         * tree.h (set_builtin_user_assembler_name): ... here.
1183
1184         * common.opt (flto-report): New flag.
1185         * opts.c (complain_wrong_lang): Do not complain if running lto1.
1186         * collect2.c (scan_prog_file): Send the error output of
1187         'nm' to HOST_BIT_BUCKET.
1188
1189 2009-10-03  Ollie Wild  <aaw@google.com>
1190
1191         * langhooks-def.h (lhd_begin_section): New function declaration.
1192         (lhd_write_section): New function declaration.
1193         (lhd_end_section): New function declaration.
1194         (LANG_HOOKS_BEGIN_SECTION): New macro.
1195         (LANG_HOOKS_WRITE_SECTION_DATA): New macro.
1196         (LANG_HOOKS_END_SECTION): New macro.
1197         (LANG_HOOKS_LTO): New macro.
1198         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_LTO.
1199         * langhooks.c (output.h): Add include.
1200         (saved_section): New static variable.
1201         (lhd_begin_section): New function.
1202         (lhd_write_section_data): New function.
1203         (lhd_end_section): New function.
1204         * langhooks.h (struct lang_hooks_for_lto): New structure.
1205         (struct lang_hooks): Add member lto.
1206         * Makefile.in (langhooks.o): Add dependency on output.h.
1207
1208         * c-opts.c (c_common_post_options): Handle -flto and -fwhopr.
1209
1210 2009-10-03  Richard Guenther  <rguenther@suse.de>
1211
1212         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
1213         Handle LTO.
1214
1215 2009-10-03  Simon Baldwin  <simonb@google.com>
1216             Richard Guenther  <rguenther@suse.de>
1217             Janis Johnson  <janis187@us.ibm.com>
1218             Doug Kwan  <dougkwan@google.com>
1219             Diego Novillo  <dnovillo@google.com>
1220             Ramana Radhakrishnan  <ramana.r@gmail.com>
1221             Ollie Wild  <aaw@google.com>
1222
1223         * doc/install.texi: Add documentation for libelf and --enable-lto.
1224         * doc/invoke.texi: Document -fwpa, -flto, -fwhopr, -fltrans,
1225         -flto-report, -flto-compression-level and -use-linker-plugin.
1226         * doc/sourcebuild.texi: Document use of zlib.  Document lto-plugin.
1227         Add section for LTO Testing.
1228
1229 2009-10-02  Cary Coutant  <ccoutant@google.com>
1230
1231         Add support for comdat type sections for DWARF v4.
1232         Merge from dwarf4 branch.
1233
1234         * dwarf2out.c (DWARF_TYPE_SIGNATURE_SIZE): New constant.
1235         (dw_die_ref): Define vector type.
1236         (enum dw_val_class): Add dw_val_class_data8.
1237         (struct dw_val_struct): Add v.val_data8.
1238         (comdat_type_node_ref): New type.
1239         (struct die_struct): Move die_symbol into a union; add new field
1240         die_type_node.  Change all uses.
1241         (comdat_type_node): New type.
1242         (skeleton_chain_node): New type.
1243         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): New constant.
1244         (comdat_type_list): New variable.
1245         (dwarf_tag_name): Add DW_TAG_type_unit.
1246         (dwarf_attr_name): Add DW_AT_signature.
1247         (add_AT_data8): New function.
1248         (replace_child): New function.
1249         (move_all_children): New function.
1250         (print_signature): New function.
1251         (print_die): Print signature information; add dw_val_class_data8.
1252         (attr_checksum): Support dw_val_class_data8.
1253         (CHECKSUM_STRING): Redefine for DWARF-4 to include trailing NULL byte.
1254         (CHECKSUM_SLEB128, CHECKSUM_ULEB128): New macros.
1255         (checksum_sleb128, checksum_uleb128): New functions.
1256         (checksum_die_context): New function.
1257         (loc_checksum_ordered): New function.
1258         (attr_checksum_ordered): New function.
1259         (struct checksum_attributes): New structure.
1260         (collect_checksum_attributes): New function.
1261         (die_checksum_ordered): New function.
1262         (generate_type_signature): New function.
1263         (same_dw_val_p): Add dw_val_class_data8.
1264         (is_symbol_die): Use new is_declaration_die function.
1265         (is_declaration_die): New function.
1266         (should_move_die_to_comdat): New function.
1267         (clone_die): New function.
1268         (clone_tree): New function.
1269         (clone_as_declaration): New function.
1270         (copy_declaration_context): New function.
1271         (generate_skeleton_ancestor_tree): New function.
1272         (generate_skeleton_bottom_up): New function.
1273         (generate_skeleton): New function.
1274         (remove_child_or_replace_with_skeleton): New function.
1275         (break_out_comdat_types): New function.
1276         (struct decl_table_entry): New type.
1277         (htab_decl_hash): New function.
1278         (htab_decl_eq): New function.
1279         (htab_decl_del): New function.
1280         (copy_ancestor_tree): New function.
1281         (copy_decls_walk): New function.
1282         (copy_decls_for_unworthy_types): New function.
1283         (build_abbrev_table): Don't assert on missing die_symbol when doing
1284         comdat type sections.
1285         (size_of_die): Use DW_FORM_sig8 for external references.  Add
1286         dw_val_class_data8.
1287         (unmark_dies): Don't assert for unmarked dies when doing comdat
1288         type sections.
1289         (value_format): Support DW_FORM_sig8 and dw_val_class_data8.
1290         (output_signature): New function.
1291         (output_die): Likewise.
1292         (output_compilation_unit_header): Mark output as DWARF version 3
1293         even if generating DWARF 4.
1294         (output_comdat_type_unit): New function.
1295         (output_line_info): Mark output as DWARF version 3 even if generating
1296         DWARF 4.
1297         (dwarf2out_start_source_file): Don't do eliminate_dwarf2_dups with
1298         DWARF-4.
1299         (dwarf2out_end_source_file): Likewise.
1300         (prune_unused_types_walk_attribs): Don't follow references into
1301         comdat type sections.
1302         (prune_unused_types_mark): When generating type units, do not mark
1303         children of non-defining declarations of types; do mark children of
1304         type entries.
1305         (prune_unused_types): Process comdat type sections.
1306         (htab_ct_hash): New function.
1307         (htab_ct_eq): New function.
1308         (dwarf2out_finish): Move types to comdat sections when using DWARF-4.
1309         Add a pointer to the line table from type unit entries so
1310         DW_AT_decl_file has meaning.
1311         * varasm.c (default_elf_asm_named_section): Use identifier name as
1312         comdat key instead of lang hook.
1313
1314 2009-10-02  Neil Vachharajani  <nvachhar@google.com>
1315
1316         * gcov-io.c (gcov_open): Open files read-only when MODE < 0.
1317
1318 2009-10-02  Uros Bizjak  <ubizjak@gmail.com>
1319
1320         * config/i386/i386.md (SWIM248): New mode iterator.
1321         (divmod<mode>4) Macroize expander from divmoddi4, divmodsi4 and
1322         divmodhi4 patterns using SWIM248 macro.
1323         (*divmod<mode>4): Macroize insn_and_split pattern from
1324         *divmoddi4_cltd_rex64, *divmodsi4_cltd and divmodhi4 insn patterns
1325         and their corresponding splitters usign SWIM248 macro.  Split SImode
1326         insn to generate cltd and DImode insn to generate cqto instead of
1327         move+shift when optimizing for size or TARGET_USE_CLTD is in effect.
1328         (*divmoddi4_nocltd_rex64, *divmodsi4_nocltd): Remove insn patterns.
1329         (*divmod<mode>4_noext): Macroize insn from *divmoddi_noext_rex64 and
1330         *divmodsi_noext patterns using SWIM248 macro.
1331         (udivmod<mode>4): Macroize expander from udivmoddi4, udivmodsi4 and
1332         udivmodhi4 patterns using SWIM248 macro.
1333         (*udivmod<mode>4): Macroize insn_and_split pattern from
1334         *udivmoddi4, udivmodsi4 and udivmodhi4 patterns and their
1335         corresponding splitters using SWIM248 macro.
1336         (*udivmod<mode>4_noext): Macroize insn from *udivmoddi4_noext,
1337         *udivmodsi4_noext and *udivmodhi_noext patterns using SWIM248 macro.
1338
1339 2009-10-02  Eric Botcazou  <ebotcazou@adacore.com>
1340
1341         * stor-layout.c (layout_type) <ARRAY_TYPE>: Make sure that an array
1342         of zero-sized element is zero-sized regardless of its extent.
1343
1344 2009-10-02  Jakub Jelinek  <jakub@redhat.com>
1345
1346         PR debug/40521
1347         * configure.ac (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): New test.
1348         * configure: Regenerated.
1349         * config.in: Regenerated.
1350         * dwarf2out.c (dwarf2out_do_cfi_asm): Return false if
1351         !HAVE_GAS_CFI_SECTIONS_DIRECTIVE and not emitting .eh_frame.
1352         (dwarf2out_init): If HAVE_GAS_CFI_SECTIONS_DIRECTIVE and
1353         not emitting .eh_frame, emit .cfi_sections .debug_frame
1354         directive.
1355
1356         PR debug/41404
1357         PR debug/41353
1358         * cfgexpand.c (expand_debug_expr) <case STRING_CST>: Don't create
1359         CONST_STRING if STRING_CST contains embedded '\0's or doesn't end
1360         with '\0'.
1361         (expand_debug_expr) <case VAR_DECL>: For TREE_STATIC !DECL_EXTERNAL
1362         vars use DECL_RTL with resetting it back to NULL afterwards.
1363         * dwarf2out.c (same_dw_val_p): For dw_val_class_addr compare with
1364         rtx_equal_p instead of asserting it is a SYMBOL_REF.
1365         (value_format): For dw_val_class_addr only use DW_FORM_addr if
1366         the attribute type allows it, otherwise use DW_FORM_dataN.
1367         (mem_loc_descriptor): Handle CONST_STRING.
1368         (add_const_value_attribute): Handle CONST_STRING using add_AT_addr.
1369         Handle MEM with CONST_STRING address using add_AT_string.
1370         (rtl_for_decl_init): Return MEM with CONST_STRING address instead of
1371         CONST_STRING for const arrays initialized with a string literal.
1372         (resolve_one_addr, resolve_addr_in_expr, resolve_addr): New functions.
1373         (dwarf2out_finish): Call resolve_addr.
1374
1375 2009-10-02  Andreas Schwab  <schwab@linux-m68k.org>
1376             Maxim Kuvyrkov  <maxim@codesourcery.com>
1377
1378         * config/m68k/lb1sf68.asm (PICCALL): Use variable sized branch.
1379
1380 2009-10-02  Nick Clifton  <nickc@redhat.com>
1381
1382         * config/mn10300/mn10300.h (USER_LABEL_PREFIX): Define.
1383         (ASM_OUTPUT_LABELREF): Use asm_fprintf and %U.
1384
1385 2009-10-01  Jan Hubicka  <jh@suse.cz>
1386
1387         * cgraph.c (cgraph_clone_node): Add redirect_callers parameter.
1388         (cgraph_create_virtual_clone): Just pass redirect_callers
1389         around.
1390         * cgraph.h (cgraph_clone_node): Update prototype.
1391         * ipa-pure-const.c (self_recursive_p): New function.
1392         (propagate): Use it.
1393         * ipa-inline.c (cgraph_clone_inlined_nodes,
1394         cgraph_decide_recursive_inlining): Update.
1395
1396 2009-10-01  David Daney  <ddaney@caviumnetworks.com>
1397
1398         * gcc/config/mips/mips.c (mips_process_sync_loop) Emit syncw
1399         instructions for TARGET_OCTEON.
1400
1401 2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1402
1403         * config/arm/arm.c (arm_override_options): Turn off
1404         flag_dwarf2_cfi_asm for AAPCS variants.
1405
1406 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1407
1408         PR middle-end/12392
1409         * tree-sra.c (convert_callers): Do not call
1410         compute_inline_parameters on one caller more than once.
1411
1412 2009-10-01  Nick Clifton  <nickc@redhat.com>
1413
1414         * config/vax/netbsd-elf.h (NETBSD_CC1_AND_CC1PLUS_SPEC): Define as
1415         an empty string if not already defined.
1416
1417 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1418
1419         PR bootstrap/41395
1420         * tree-sra.c (is_va_list_type): New function.
1421         (find_var_candidates): Call is_va_list_type.
1422         (find_param_candidates): Check that the type or the type pointed
1423         to are not va_list types.
1424
1425 2009-10-01  Martin Jambor  <mjambor@suse.cz>
1426
1427         PR c++/41503
1428         * cp/pt.c (function_parameter_expanded_from_pack_p): Return false if
1429         DECL_ARTIFICIAL (param_decl) is true.
1430
1431 2009-09-30  Gabriel Dos Reis  <gdr@cs.tamu.edu>
1432
1433         * tree.h (tree_decl_common::lang_flag_8): New.
1434         * c-common.c (c_common_reswords): Include "constexpr" as C++0x
1435         keyword.
1436         * c-common.h (RID_CONSTEXPR): New.
1437
1438 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1439
1440         * config/alpha/alpha.c (alpha_gimplify_va_arg_1):
1441         Use ref-all pointers.
1442         (alpha_gimplify_va_arg): Ditto.
1443
1444 2009-09-30  Jakub Jelinek  <jakub@redhat.com>
1445
1446         PR target/41279
1447         * cfgloopanal.c (num_loop_insns): Don't increment ninsns for each bb
1448         before insn counting loop now that BB_END (bb) is counted.  Ensure
1449         the return value isn't zero.
1450
1451 2009-09-30  Nick Clifton  <nickc@redhat.com>
1452
1453         * config.gcc (sh-symbianelf): Replace definition of extra_objs
1454         with separate definitions of c_target_objs and cxx_target_objs.
1455         * config/sh/t-sh: Add rules to build symbian-cxx.o, symbian-c.o
1456         and symbian-base.o.
1457         * config/sh/sh.c (TARGET_CXX_INPUT_EXPORT_CLASS): Use
1458         sh_symbian_import_export_class.
1459         * config/sh/sh-protos.h: Fix names of exported symbian functions.
1460         * config/sh/symbian.c: Delete, moving code into...
1461         * config/sh/symbian-base.c: ... here
1462         * config/sh/symbian-c.c: ... and here
1463         * config/sh/symbian-cxx.c: ... and here.
1464
1465 2009-09-30  Uros Bizjak  <ubizjak@gmail.com>
1466
1467         PR target/22093
1468         * config/alpha/alpha.md (unaligned_storehi_be): Force operand
1469         of plus RTX into register.
1470
1471 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1472
1473         * doc/install.texi: Linguistic and markup fixes.
1474         (Configuration) <--disable-cpp>: Remove description.
1475         <--enable-maintainer-mode>: Autotools files are affected, too.
1476         <--with-sysroot>: Improve description.
1477         (Building): Bump required GNU make version.
1478
1479 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1480
1481         * config.gcc (i[34567]86-*-*): Include fma4intrin.h.
1482         (x86_64-*-*): Ditto.
1483
1484         * config/i386/fma4intrin.h: New file, provide common x86 compiler
1485         intrinisics for FMA4.
1486         * config/i386/cpuid.h (bit_FMA4): Define FMA4 bit.
1487         * config/i386/x86intrin.h: Fix typo to SSE4A instead of SSE4a.
1488         Add FMA4 check and fma4intrin.h.
1489         * config/i386/i386-c.c(ix86_target_macros_internal): Check
1490         ISA_FLAG for FMA4.
1491         * config/i386/i386.h(TARGET_FMA4): New macro for FMA4.
1492         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Add new UNSPEC
1493         constant for FMA4 support.
1494         (UNSPEC_FMA4_FMADDSUB): Ditto.
1495         (UNSPEC_FMA4_FMSUBADD): Ditto.
1496         * config/i386/i386.opt (-mfma4): New switch for FMA4 support.
1497         * config/i386/i386-protos.h (ix86_fma4_valid_op_p): Add declaration.
1498         (ix86_expand_fma4_multiple_memory): Ditto.
1499         * config/i386/i386.c (OPTION_MASK_ISA_FMA4_SET): New.
1500         (OPTION_MASK_ISA_FMA4_UNSET): New.
1501         (OPTION_MASK_ISA_SSE4A_UNSET): Change definition to depend on FMA4.
1502         (OPTION_MASK_ISA_AVX_UNSET): Change definition to depend on FMA4.
1503         (ix86_handle_option): Handle -mfma4.
1504         (isa_opts): Handle -mfma4.
1505         (enum pta_flags): Add PTA_FMA4.
1506         (override_options): Add FMA4 support.
1507         (IX86_BUILTIN_VFMADDSS): New for FMA4 intrinsic.
1508         (IX86_BUILTIN_VFMADDSD): Ditto.
1509         (IX86_BUILTIN_VFMADDPS): Ditto.
1510         (IX86_BUILTIN_VFMADDPD): Ditto.
1511         (IX86_BUILTIN_VFMSUBSS): Ditto.
1512         (IX86_BUILTIN_VFMSUBSD): Ditto.
1513         (IX86_BUILTIN_VFMSUBPS): Ditto.
1514         (IX86_BUILTIN_VFMSUBPD): Ditto.
1515         (IX86_BUILTIN_VFMADDSUBPS): Ditto.
1516         (IX86_BUILTIN_VFMADDSUBPD): Ditto.
1517         (IX86_BUILTIN_VFMSUBADDPS): Ditto.
1518         (IX86_BUILTIN_VFMSUBADDPD): Ditto.
1519         (IX86_BUILTIN_VFNMADDSS): Ditto.
1520         (IX86_BUILTIN_VFNMADDSD): Ditto.
1521         (IX86_BUILTIN_VFNMADDPS): Ditto.
1522         (IX86_BUILTIN_VFNMADDPD): Ditto.
1523         (IX86_BUILTIN_VFNMSUBSS): Ditto.
1524         (IX86_BUILTIN_VFNMSUBSD): Ditto.
1525         (IX86_BUILTIN_VFNMSUBPS): Ditto.
1526         (IX86_BUILTIN_VFNMSUBPD): Ditto.
1527         (IX86_BUILTIN_VFMADDPS256): Ditto.
1528         (IX86_BUILTIN_VFMADDPD256): Ditto.
1529         (IX86_BUILTIN_VFMSUBPS256): Ditto.
1530         (IX86_BUILTIN_VFMSUBPD256): Ditto.
1531         (IX86_BUILTIN_VFMADDSUBPS256): Ditto.
1532         (IX86_BUILTIN_VFMADDSUBPD256): Ditto.
1533         (IX86_BUILTIN_VFMSUBADDPS256): Ditto.
1534         (IX86_BUILTIN_VFMSUBADDPD256): Ditto.
1535         (IX86_BUILTIN_VFNMADDPS256): Ditto.
1536         (IX86_BUILTIN_VFNMADDPD256): Ditto.
1537         (IX86_BUILTIN_VFNMSUBPS256): Ditto.
1538         (IX86_BUILTIN_VFNMSUBPD256): Ditto.
1539         (enum multi_arg_type): New enum for describing the various FMA4
1540         intrinsic argument types.
1541         (bdesc_multi_arg): New table for FMA4 intrinsics.
1542         (ix86_init_mmx_sse_builtins): Add FMA4 intrinsic support.
1543         (ix86_expand_multi_arg_builtin): New function for creating FMA4
1544         intrinsics.
1545         (ix86_expand_builtin): Add FMA4 intrinsic support.
1546         (ix86_fma4_valid_op_p): New function to validate FMA4 3 and 4
1547         operand instructions.
1548         (ix86_expand_fma4_multiple_memory): New function to split the
1549         second memory reference from FMA4 instructions.
1550         * config/i386/sse.md (ssemodesuffixf4): New mode attribute for FMA4.
1551         (ssemodesuffixf2s): Ditto.
1552         (fma4_fmadd<mode>4): Add FMA4 floating point multiply/add
1553         instructions.
1554         (fma4_fmsub<mode>4): Ditto.
1555         (fma4_fnmadd<mode>4): Ditto.
1556         (fma4_fnmsub<mode>4): Ditto.
1557         (fma4_vmfmadd<mode>4): Ditto.
1558         (fma4_vmfmsub<mode>4): Ditto.
1559         (fma4_vmfnmadd<mode>4): Ditto.
1560         (fma4_vmfnmsub<mode>4): Ditto.
1561         (fma4_fmadd<mode>4256): Ditto.
1562         (fma4_fmsub<mode>4256): Ditto.
1563         (fma4_fnmadd<mode>4256): Ditto.
1564         (fma4_fnmsub<mode>4256): Ditto.
1565         (fma4_fmaddsubv8sf4): Ditto.
1566         (fma4_fmaddsubv4sf4): Ditto.
1567         (fma4_fmaddsubv4df4): Ditto.
1568         (fma4_fmaddsubv2df4): Ditto.
1569         (fma4_fmsubaddv8sf4): Ditto.
1570         (fma4_fmsubaddv4sf4): Ditto.
1571         (fma4_fmsubaddv4df4): Ditto.
1572         (fma4_fmsubaddv2df4): Ditto.
1573         (fma4i_fmadd<mode>4): Add FMA4 floating point multiply/add
1574         instructions for intrinsics.
1575         (fma4i_fmsub<mode>4): Ditto.
1576         (fma4i_fnmadd<mode>4): Ditto.
1577         (fma4i_fnmsub<mode>4): Ditto.
1578         (fma4i_vmfmadd<mode>4): Ditto.
1579         (fma4i_vmfmsub<mode>4): Ditto.
1580         (fma4i_vmfnmadd<mode>4): Ditto.
1581         (fma4i_vmfnmsub<mode>4): Ditto.
1582         (fma4i_fmadd<mode>4256): Ditto.
1583         (fma4i_fmsub<mode>4256): Ditto.
1584         (fma4i_fnmadd<mode>4256): Ditto.
1585         (fma4i_fnmsub<mode>4256): Ditto.
1586         (fma4i_fmaddsubv8sf4): Ditto.
1587         (fma4i_fmaddsubv4sf4): Ditto.
1588         (fma4i_fmaddsubv4df4): Ditto.
1589         (fma4i_fmaddsubv2df4): Ditto.
1590         (fma4i_fmsubaddv8sf4): Ditto.
1591         (fma4i_fmsubaddv4sf4): Ditto.
1592         (fma4i_fmsubaddv4df4): Ditto.
1593         (fma4i_fmsubaddv2df4): Ditto.
1594
1595         * doc/invoke.texi (-mfma4): Add documentation.
1596         * doc/extend.texi (x86 intrinsics): Add FMA4 intrinsics.
1597
1598 2009-09-29  Richard Henderson  <rth@redhat.com>
1599
1600         * tree-eh.c (unsplit_eh): Do not unsplit if there's already
1601         an edge to the new destination block.
1602
1603 2009-09-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1604
1605         PR target/41393
1606         * pa.c (hppa_profile_hook): Use
1607         make_reg_eh_region_note_nothrow_nononlocal to add REG_EH_REGION note.
1608
1609 2009-09-29  Steve Ellcey  <sje@cup.hp.com>
1610             Alexander Monakov  <amonakov@ispras.ru>
1611
1612         PR target/41365
1613         * config/ia64/predicates.md (not_postinc_destination_operand): New.
1614         (not_postinc_memory_operand): New.
1615         (not_postinc_move_operand): New.
1616         * config/ia64/ia64.md (*cmovdi_internal): Disallow autoincrement.
1617         (*cmovsi_internal): Ditto.
1618
1619 2009-09-29  Pat Haugen  <pthaugen@us.ibm.com>
1620
1621         * config/rs6000/rs6000.c (rs6000_issue_rate): Don't artificially
1622         restrict issue_rate in first pass when scheduling for register
1623         pressure.
1624
1625 2009-09-29  Basile Starynkevitch  <basile@starynkevitch.net>
1626             Rafael Avila de Espindola  <espindola@google.com>
1627
1628         * gengtype.c (plugin_output): New.
1629         (get_output_file_with_visibility): Return plugin_output for plugins.
1630         (main): Parse and use the -P option.
1631         * gty.texi: Update the command line format.
1632
1633 2009-09-29  Jakub Jelinek  <jakub@redhat.com>
1634
1635         PR debug/41438
1636         * dwarf2out.c (const_ok_for_output_1, const_ok_for_output): New
1637         functions.
1638         (mem_loc_descriptor, loc_descriptor, add_const_value_attribute): Bail
1639         out if !const_ok_for_output.
1640
1641         PR debug/41474
1642         * dwarf2out.c (mem_loc_descriptor) <case CONCAT, case CONCATN,
1643         case VAR_LOCATION>: Remove gcc_unreachable ().
1644
1645 2009-09-29  Harsha Jagasia  <harsha.jagasia@amd.com>
1646
1647         * config.gcc (i[34567]86-*-*): Remove mmintrin-common.h.
1648         (x86_64-*-*): Ditto.
1649         * config/i386/smmintrin.h: Move instructions in mmintrin-common.h
1650         back to smmintrin.h.
1651         * config/i386/cpuid.h: (bit_SSE5): Remove SSE5 bit.
1652         * config/i386/x86intrin.h: Remove SSE5.
1653         * config/i386/mmintrin-common.h: Delete file.
1654         * doc/extend.texi (x86 intrinsics): Remove SSE5 flags and builtins.
1655
1656 2009-09-29  Richard Guenther  <rguenther@suse.de>
1657
1658         * alias.c (ao_ref_from_mem): Properly deal with off decl accesses
1659         resulting from stack temporaries on STRICT_ALIGNMENT targets.
1660
1661 2009-09-29  Nick Clifton  <nickc@redhat.com>
1662
1663         * function.c (current_function_name): If there is no current
1664         function just return "<none>".
1665
1666 2009-09-28  Sriraman Tallam  <tmsriram@google.com>
1667
1668         * tree-pass.h (register_pass_info): New structure.
1669         (pass_positioning_ops): Move enum from gcc-plugin.h.
1670         (register_pass): New function.
1671         * gcc-plugin.h (plugin_pass): Delete structure.
1672         (pass_positioning_ops): Delete enum.
1673         * plugin.c (regsiter_pass): Delete function.
1674         (position_pass): Delete function.
1675         (added_pass_nodes): Delete variable.
1676         (prev_added_pass_nodes): Delete variable.
1677         (pass_list_node): Delete structure.
1678         * passes.c (make_pass_instance): New function.
1679         (next_pass_1): Change to call make_pass_instance.
1680         (pass_list_node): Move structure from gcc-plugin.h.
1681         (added_pass_nodes): Move variable from plugin.c.
1682         (prev_added_pass_nodes): Move variable from plugin.c.
1683         (position_pass): New function.
1684         (register_pass): New function.
1685
1686 2009-09-28  Easwaran Raman  <eraman@google.com>
1687
1688         * ifcvt.c (noce_try_abs): Recognize pattern and call
1689         expand_one_cmpl_abs_nojump.
1690         * optabs.c (expand_one_cmpl_abs_nojump): New function.
1691         * optabs.h (expand_one_cmpl_abs_nojump): Declare.
1692
1693 2009-09-28  Ian Lance Taylor  <iant@google.com>
1694
1695         PR middle-end/40500
1696         * c-opts.c (c_common_handle_option): Don't set
1697         warn_jump_misses_init for -Wall.
1698         * doc/invoke.texi (Warning Options): Update documentation.
1699
1700 2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1701
1702         * Makefile.in ($(out_object_file)): Depend on
1703         gt-$(basename $(notdir $(out_file))).h.
1704
1705 2009-09-28  Richard Henderson  <rth@redhat.com>
1706
1707         * except.h (struct eh_region_d): Add use_cxa_end_cleanup.
1708         * except.c (gen_eh_region): Set it.
1709         (duplicate_eh_regions_1): Copy it.
1710         * tree-eh.c (lower_resx): Use it to determine which function
1711         to call to resume.
1712
1713         * langhooks.h (struct lang_hooks): Add eh_use_cxa_end_cleanup.
1714         * langhooks-def.h (LANG_HOOKS_EH_USE_CXA_END_CLEANUP): New.
1715         * builtins.def (BUILT_IN_CXA_END_CLEANUP): New.
1716         * tree.c (build_common_builtin_nodes): Remove parameter.  Build
1717         BUILT_IN_CXA_END_CLEANUP if necessary.
1718
1719         * c-common.c (c_define_builtins): Update call to
1720         build_common_builtin_nodes.
1721
1722 2009-09-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1723
1724         * spu.c (get_branch_target): Return NULL for ASM_OPERANDS patterns.
1725
1726 2009-09-28  Michael Matz  <matz@suse.de>
1727
1728         * builtins.c (interclass_mathfn_icode): New helper.
1729         (expand_builtin_interclass_mathfn): Use it here, and split folding
1730         into ...
1731         (fold_builtin_interclass_mathfn): ... this new folder.
1732         (build_call_nofold_loc): New static helper.
1733         (build_call_nofold): New wrapper macro for above.
1734         (expand_builtin_int_roundingfn): Use it instead of build_call_expr.
1735         (expand_builtin_pow): Ditto.
1736         (expand_builtin_memset_args): Ditto.
1737         (expand_builtin_printf): Ditto.
1738         (expand_builtin_fprintf): Ditto.
1739         (expand_builtin_sprintf): Ditto.
1740         (expand_builtin_memory_chk): Ditto.
1741         (expand_builtin_mempcpy_args): Ditto and don't call folders.
1742         (expand_builtin_stpcpy): Ditto.
1743         (expand_builtin_strcmp): Ditto.
1744         (expand_builtin_strncmp): Ditto.
1745         (expand_builtin_strcpy): Remove FNDECL and MODE arguments.
1746         (expand_builtin_strcpy_args): Don't call folders.
1747         (expand_builtin_memcmp): Ditto.
1748         (expand_builtin_strncpy): Ditto, and use target.
1749         (expand_builtin_memcpy): Ditto.
1750         (expand_builtin_strstr, expand_builtin_strchr, expand_builtin_strrchr,
1751         expand_builtin_strpbrk, expand_builtin_memmove,
1752         expand_builtin_memmove_args, expand_builtin_bcopy,
1753         expand_builtin_memchr, expand_builtin_strcat, expand_builtin_strncat,
1754         expand_builtin_strspn, expand_builtin_strcspn,
1755         expand_builtin_fputs): Remove these.
1756         (expand_builtin): Don't call the above, change calls to other
1757         expanders that changed prototype.
1758         (fold_builtin_stpcpy): New folder split out from expand_builtin_stpcpy.
1759         (fold_builtin_1 <ISFINITE, ISINF, ISNORMAL>): Call
1760         fold_builtin_interclass_mathfn.
1761         (fold_builtin_2 <STPCPY>): Call fold_builtin_stpcpy.
1762         (fold_builtin_strcat): Add folding split from expand_builtin_strcat.
1763
1764         * fold-const.c (fold_binary_loc <NE_EXPR>): Add !exp != 0 -> !exp.
1765         * passes.c (init_optimization_passes): Move pass_fold_builtins
1766         after last phiopt pass.
1767         * tree-inline.c (fold_marked_statements): When folding builtins
1768         iterate over all instruction potentially generated.
1769         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Declare
1770         earlier.
1771         (fold_gimple_call): Use it to always fold calls (into potentially
1772         multiple instructions).
1773         * tree-ssa-dom.c (optimize_stmt): Resolve __builtin_constant_p
1774         calls into zero at this time.
1775         * tree-ssa-propagate.c (substitute_and_fold): Ignore multiple
1776         statements generated by builtin folding.
1777
1778 2009-09-28  Nick Clifton  <nickc@redhat.com>
1779
1780         * config/m32r/m32r.c (m32r_is_insn): Return false for debugging insns.
1781
1782 2009-09-28  Duncan Sands  <baldrick@free.fr>
1783
1784         * gcc-plugin.h (PLUGIN_REGISTER_GGC_CACHES): New event.
1785         * plugin.c (plugin_event_name): Add PLUGIN_REGISTER_GGC_CACHES.
1786         (register_callback): Dispatch it.
1787         (invoke_plugin_callbacks): Incorporate in sanity check.
1788         * ggc.h (ggc_register_cache_tab): Add declaration.
1789         * ggc-common.c (ggc_register_root_tab): Simplify.
1790         (const_ggc_cache_tab_t): New typedef.
1791         (extra_cache_vec): New vector of dynamically added cache tables.
1792         (ggc_register_cache_tab): New function.
1793         (ggc_scan_cache_tab): New function.
1794         (ggc_mark_roots): Simplify dynamic roots.  Handle dynamic caches.
1795         * doc/plugins.texi: Document PLUGIN_REGISTER_GGC_CACHES.
1796
1797 2009-09-27  Richard Henderson  <rth@redhat.com>
1798
1799         * tree-ssa-ccp.c (optimize_stack_restore): Relax the conditions under
1800         which we remove __builtin_stack_restore.
1801
1802 2009-09-27  Bernd Schmidt  <bernd.schmidt@analog.com>
1803
1804         * loop-iv.c (iv_analyze_op): Use function_invariant_p, not CONSTANT_P,
1805         to test for GRD_INVARIANT.
1806         (simple_rhs_p): Anything that's function_invariant_p is fine.
1807
1808 2009-09-27  Rafael Avila de Espindola  <espindola@google.com>
1809
1810         * gengtype.c (main): Use plunge_files instead of plugin_output.
1811
1812 2009-09-27  Basile Starynkevitch  <basile@starynkevitch.net>
1813             Rafael Avila de Espindola  <espindola@google.com>
1814
1815         * gengtype.c (write_root, write_roots): Add a emit_pch argument.
1816         Don't print pch related info if it is false.
1817         (main): Don't print pch info in plugin mode.
1818
1819 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1820
1821         * dwarf2out.c (enum dw_val_class): Replace dw_val_class_long_long
1822         with dw_val_class_const_double.
1823         (struct dw_val_struct): Replace val_long_long with val_double and
1824         adjust for above change.
1825         (output_loc_operands): Likewise.
1826         (add_AT_long_long): Rename into...
1827         (add_AT_double): ...this.
1828         (print_die): Replace dw_val_class_long_long with
1829         dw_val_class_const_double and adjust.
1830         (attr_checksum): Likewise.
1831         (same_dw_val_p): Likewise.
1832         (size_of_die): Likewise.
1833         (value_format): Likewise.
1834         (output_die): Likewise.
1835         (loc_descriptor) <CONST_DOUBLE>: Likewise.
1836         (add_const_value_attribute) <CONST_DOUBLE>: Call add_AT_double
1837         instead of add_AT_long_long.
1838         (add_bound_info) <INTEGER_CST>: Generate the bound as an unsigned
1839         value with the precision of its type.
1840
1841 2009-09-27  Andreas Schwab  <schwab@linux-m68k.org>
1842
1843         PR c/41476
1844         * c-typeck.c (build_conditional_expr): Use the readonly and
1845         volatile flags of the operand types, not of the operands itself.
1846
1847 2009-09-27  Peter O'Gorman  <pogma@thewrittenword.com>
1848
1849         * collect2.c (main): Look for -brtl before adding libraries.
1850
1851 2009-09-27  Jonathan Gray  <jsg@openbsd.org>
1852
1853         * config.gcc: Update OpenBSD targets.
1854         * config/openbsd-stdint.h: New file.
1855         * config/openbsd-libpthread.h: New file.
1856         * config/openbsd.h: Update and break out LIB_SPEC definition.
1857         * config/alpha/openbsd.h: Overhaul to reflect ELF migration.
1858         * config/i386/openbsdelf.h: Correct types.
1859         * config/m68k/openbsd.h: Likewise.
1860         * config/mips/openbsd.h: Likewise.
1861         * config/vax/openbsd.h: Likewise.
1862
1863 2009-09-27  Eric Botcazou  <ebotcazou@adacore.com>
1864
1865         * fold-const.c (maybe_lvalue_p): Return false for M(IN|AX)_EXPR.
1866         (extract_muldiv_1) <MINUS_EXPR>: Swap operands if necessary.
1867         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not take the maximum
1868         of the length and zero.
1869
1870 2009-09-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1871
1872         * Makefile.in (TOPLEV_H): Use $(INPUT_H) not input.h.
1873         (FLAGS_H): Add options.h $(REAL_H).
1874         (SEL_SCHED_IR_H): Add $(BITMAP_H) vecprim.h $(CFGLOOP_H).
1875         (TREE_VECTORIZER_H): New.
1876         (EBITMAP_H): Renamed from EBIMAP_H.
1877         (c-decl.o, c-objc-common.o, c-pretty-print.o, attribs.o, c-omp.o)
1878         (gtype-desc.o, ggc-common.o, ggc-page.o, ggc-zone.o, langhooks.o)
1879         (tree.o, tree-ssa-structalias.o, tree-ssa-ter.o, tree-ssanames.o)
1880         (tree-phinodes.o, tree-ssa-loop.o, tree-ssa-math-opts.o)
1881         (gimple-low.o, omp-low.o, sese.o, graphite-blocking.o)
1882         (graphite-clast-to-gimple.o, graphite-dependences.o)
1883         (graphite-interchange.o, graphite-poly.o, graphite-scop-detection.o)
1884         (graphite-sese-to-poly.o, tree-vect-loop.o, tree-vect-loop-manip.o)
1885         (tree-vect-patterns.o, tree-vect-slp.o, tree-vect-stmts.o)
1886         (tree-vect-data-refs.o, tree-vectorizer.o, gimple.o, tree-mudflap.o)
1887         (targhooks.o, stmt.o, emit-rtl.o, ipa.o, matrix-reorg.o, ipa-inline.o)
1888         (gcse.o, tree-ssa-ccp.o, df-byte-scan.o, vec.o, caller-save.o)
1889         (ira-build.o, ira-costs.o, ira-color.o, ira-emit.o, ira.o)
1890         (haifa-sched.o, sched-rgn.o, sel-sched.o, sel-sched-dump.o)
1891         (sel-sched-ir.o, final.o, $(out_object_file)): Dependencies
1892         updated and fixed as per above changes and per
1893         check_makefile_deps.sh output.
1894
1895         PR bootstrap/40928
1896         * configure.ac: Use $LIBS for '-ldl', not $LDFLAGS.
1897         * configure: Regenerate.
1898
1899 2009-09-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1900
1901         * doc/install.texi: Update minimum MPC version to 0.7.
1902
1903 2009-09-26  Gerald Pfeifer  <gerald@pfeifer.com>
1904
1905         * doc/install.texi (Binaries): Remove reference to the binary
1906         distribution CD-ROM from the FSF.
1907
1908 2009-09-26  Michael Matz  <matz@suse.de>
1909
1910         PR lto/40758
1911         PR middle-end/41470
1912         * tree-ssa-coalesce.c (coalesce_ssa_name): Add only SSA names
1913         that are mentioned in the body.
1914
1915 2009-09-26  Michael Matz  <matz@suse.de>
1916
1917         PR tree-optimization/41454
1918         * tree-ssa-dom (stmts_to_rescan): Remove variable.
1919         (tree_ssa_dominator_optimize): Don't allocate and free it.
1920         (dom_opt_leave_block): Don't iterate over it.
1921         (eliminate_redundant_computations): Don't return a value.
1922         (cprop_operand, cprop_into_stmt): Ditto.
1923         (optimize_stmt): Don't defer updating stmts.
1924
1925 2009-09-25  Dodji Seketeli  <dodji@redhat.com>
1926
1927         * dwarf2out.c (dwarf_tag_name, gen_generic_params_dies,
1928         generic_parameter_die, template_parameter_pack_die,
1929         gen_formal_parameter_die, gen_subprogram_die): Adjust after
1930         renaming DW_TAG_formal_parameter_pack and
1931         DW_TAG_template_parameter_pack into DW_TAG_GNU_formal_parameter_pack
1932         and DW_TAG_GNU_template_parameter_pack.
1933
1934 2009-09-25  Anatoly Sokolov  <aesok@post.ru>
1935
1936         * config/v850/v850.h (FUNCTION_VALUE): Remove.
1937         * config/v850/v850.c (v850_function_value): New function.
1938         (TARGET_FUNCTION_VALUE): Define.
1939
1940 2009-09-25  Jakub Jelinek  <jakub@redhat.com>
1941
1942         * tree-vect-stmts.c (vectorizable_call): Call
1943         mark_symbols_for_renaming after vect_finish_stmt_generation.
1944
1945         * dwarf2out.c (tls_mem_loc_descriptor): Pass 1 instead of 2
1946         to loc_descriptor_from_tree.
1947         (add_location_or_const_value_attribute): Pass 0 instead of 2
1948         for decl_by_reference_p decls.
1949
1950 2009-09-25  Richard Guenther  <rguenther@suse.de>
1951
1952         PR middle-end/41463
1953         * tree-dfa.c (get_ref_base_and_extent): Fix issue with trailing
1954         arrays again.
1955
1956 2009-09-25  Ben Elliston  <bje@au.ibm.com>
1957
1958         * doc/invoke.texi (RS/6000 and PowerPC Options): Add missing comma
1959         after `power7'.
1960
1961 2009-09-25  Alan Modra  <amodra@bigpond.net.au>
1962
1963         * config/rs6000/rs6000.md (load_toc_v4_PIC_3c): Correct POWER
1964         form of instruction.
1965
1966 2009-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1967
1968         PR middle-end/41435
1969         * fold-const.c (const_binop): Handle complex int division.
1970         * tree-complex.c (expand_complex_div_straight,
1971         expand_complex_div_wide): Update comments.
1972
1973 2009-09-24  DJ Delorie  <dj@redhat.com>
1974
1975         PR target/41456
1976         * config/m32c/m32c.h (REG_CLASS_CONTENTS): Add R13.
1977         (reg_class): Likewise.
1978         (REG_CLASS_NAMES): Likewise.
1979         * config/m32c/m32c.c (m32c_reg_class_from_constraint): Likewise.
1980         (m32c_override_options): Disable -fivopts for M32C.
1981
1982 2009-09-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1983
1984         * config/rs6000/predicates.md (indexed_or_indirect_operand):
1985         Delete VSX load/store with update support.
1986         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Ditto.
1987         * config/rs6000/vsx.md (vsx_mov<mode>): Ditto.
1988         (vsx_movti): Ditto.
1989         (VSX_U): Delete.
1990         (VSbit): Ditto.
1991         (VStype_load_update): Ditto.
1992         (VStype_store_update): Ditto.
1993         (vsx_load<VSX_U:mode>_update_<P:mptrsize>): Ditto.
1994         (vsx_store<VSX_U:mode>_update_<P:mptrsize>): Ditto.
1995
1996         * config/rs6000/rs6000.h (enum rs6000_builtins): Delete VSX
1997         load/store with update builtins.
1998
1999 2009-09-24  Kai Tietz  <kai.tietz@onevision.com>
2000
2001         * libgcc2.c (L_trampoline): Prototype for getpagesize
2002         and mprotect in WINNT case.
2003
2004 2009-09-24  Anatoly Sokolov  <aesok@post.ru>
2005
2006         * config/rs6000/rs6000.h (FUNCTION_VALUE): Remove macro.
2007         * config/rs6000/rs6000-protos.h (rs6000_function_value): Remove.
2008         * config/rs6000/rs6000.c (rs6000_function_value): Make static, add
2009         'outgoing' argument.
2010         (TARGET_FUNCTION_VALUE): Define.
2011
2012 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2013
2014         * config/darwin.h (DWARF2_DEBUGGING_INFO): Define as 1.
2015
2016 2009-09-24  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
2017
2018         PR bootstrap/41405
2019         * common.opt: Initialize dwarf_strict to -1.
2020         * toplev.c (process_options): Catch unset dwarf_strict
2021         and set to 0 for all targets not overriding.
2022         * config/darwin.c (darwin_override_options): Catch unset
2023         dwarf_strict and override to 1.
2024
2025 2009-09-24  Jeff Law  <law@redhat.com>
2026
2027         * tree-into-ssa.c (rewrite_into_ssa): Free interesting_blocks.
2028
2029 2009-09-24  Richard Guenther  <rguenther@suse.de>
2030
2031         PR tree-optimization/36143
2032         PR tree-optimization/38747
2033         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
2034         create VIEW_CONVERT_EXPRs for TBAA compatible accesses.
2035
2036 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2037
2038         PR bootstrap/41457
2039         * dwarf2out.c (add_const_value_attribute): For HIGH and CONST_FIXED,
2040         return false instead of gcc_unreachable ().  For CONST return the
2041         value returned by recursive call instead of always returning true.
2042         (tree_add_const_value_attribute): Return the value returned by
2043         add_const_value_attribute instead of always returning true if rtl
2044         is non-NULL.
2045
2046 2009-09-23  Justin Seyster  <jrseys@gmail.com>
2047
2048         * Makefile.in (PLUGIN_HEADERS): Include real.h.
2049
2050 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
2051
2052         * cgraphunit.c (cgraph_lower_function): Revert last change.
2053         * targhooks.c (default_static_chain): Use !DECL_STATIC_CHAIN
2054         instead of DECL_NO_STATIC_CHAIN.
2055         * tree-cfg.c (verify_gimple_call): Likewise.
2056         * tree-nested.c (get_chain_decl, get_chain_field,
2057         convert_tramp_reference_op, convert_gimple_call): Likewise.
2058         (convert_all_function_calls): Likewise.  Always set or clear
2059         DECL_STATIC_CHAIN initially, for !n->outer clear it.
2060         (lower_nested_functions): Remove DECL_NO_STATIC_CHAIN checking code.
2061         * c-parser.c (c_parser_declaration_or_fndef): Set DECL_STATIC_CHAIN
2062         if nested.
2063         * print-tree.c (print_node): Handle DECL_STATIC_CHAIN instead of
2064         DECL_NO_STATIC_CHAIN.
2065         * config/i386/i386.c (ix86_static_chain): Use !DECL_STATIC_CHAIN
2066         instead of DECL_NO_STATIC_CHAIN.
2067         (ix86_function_regparm, find_drap_reg): Likewise.  Don't test
2068         decl_function_context.
2069         * varasm.c (initializer_constant_valid_p): Likewise.
2070         * tree.h (DECL_NO_STATIC_CHAIN): Renamed to ...
2071         (DECL_STATIC_CHAIN): ... this.
2072         * config/moxie/moxie.c (moxie_static_chain): Use !DECL_STATIC_CHAIN
2073         instead of DECL_NO_STATIC_CHAIN.
2074
2075 2009-09-23  Basile Starynkevitch  <basile@starynkevitch.net>
2076             Rafael Avila de Espindola  <espindola@google.com>
2077
2078         * gengtype.c (nb_plugin_files): Make it unsigned to match
2079         num_gt_files. Adjust other variables to avoid warnings.
2080         (main): Allocate an all zero lang_bitmap before each plugin file name
2081         to match regular file names.
2082
2083 2009-09-23  Richard Henderson  <rth@redhat.com>
2084
2085         * doc/tm.texi (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2086         (TARGET_STATIC_CHAIN): Mention that this hook must be used for
2087         static chain passed in memory.
2088         * system.h (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Poison.
2089         * targhooks.c (default_static_chain): Don't handle STATIC_CHAIN,
2090         STATIC_CHAIN_INCOMING.  Issue a sorry if there's no
2091         STATIC_CHAIN_REGNUM defined.
2092
2093         * config/picochip/picochip-protos.h: s/class/klass/.
2094         * config/picochip/picochip.c (TARGET_STATIC_CHAIN): New.
2095         (picochip_static_chain): New.
2096         * config/picochip/picochip.h (STATIC_CHAIN): Remove.
2097         (STATIC_CHAIN_INCOMING): Remove.
2098
2099         * config/xtensa/xtensa.c (TARGET_STATIC_CHAIN): New.
2100         (xtensa_static_chain): New.
2101         * config/xtensa/xtensa.h (STATIC_CHAIN): Remove.
2102         (STATIC_CHAIN_INCOMING): Remove.
2103
2104 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
2105
2106         * config/pa/pa.h (FUNCTION_VALUE): Remove macro.
2107         * config/pa/pa-protos.h (function_value): Remove.
2108         * config/pa/pa.c (pa_function_value): Rename from function_value.
2109         Make static, add 'outgoing' argument.
2110         (TARGET_FUNCTION_VALUE): Define.
2111
2112 2009-09-23  Anatoly Sokolov  <aesok@post.ru>
2113
2114         * config/avr/avr.c (avr_regs_to_save): Use current_function_is_leaf
2115         instead of cfun->machine->is_leaf.
2116         * config/avr/avr.h (machine_function): Remove is_leaf field.
2117
2118 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2119
2120         PR debug/41439
2121         * dwarf2out.c (address_of_int_loc_descriptor): Don't emit
2122         DW_OP_piece after DW_OP_stack_value, adjust size calculations
2123         for it, when DW_OP_stack_value and DW_OP_implicit_value has
2124         the same size, prefer DW_OP_stack_value.
2125         (loc_descriptor, loc_list_for_address_of_addr_expr_of_indirect_ref,
2126         loc_list_from_tree): Don't emit DW_OP_piece after DW_OP_stack_value.
2127
2128 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
2129
2130         PR debug/41353
2131         * var-tracking.c (add_with_sets): Sort MO_VAL_LOC last among uses.
2132
2133 2009-09-23  Alexandre Oliva  <aoliva@redhat.com>
2134
2135         PR debug/41248
2136         * cfgexpand.c (convert_debug_memory_address): New.
2137         (expand_debug_expr): Convert base address and offset to the same
2138         mode.  Use it to convert addresses to other modes.  Accept
2139         ptr_mode addresses.
2140
2141 2009-09-23  Richard Guenther  <rguenther@suse.de>
2142
2143         * alias.c (ao_ref_from_mem): Correct for negative MEM_OFFSET
2144         produced for bigendian targets with promoted subregs.
2145
2146 2009-09-23  Richard Guenther  <rguenther@suse.de>
2147
2148         * value-prof.c (gimple_ic): Purge old EH edges only after building
2149         the new ones.
2150
2151 2009-09-23  Nick Clifton  <nickc@redhat.com>
2152
2153         * config/arc/arc.c (arc_trampoline_init): Fix typo.
2154
2155 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2156
2157         PR bootstrap/41405
2158         * doc/invoke.texi: Document -gstrict-dwarf and -gno-strict-dwarf.
2159
2160         PR bootstrap/41436
2161         * cgraphunit.c (cgraph_lower_function): Set DECL_NO_STATIC_CHAIN
2162         on non-nested functions.
2163
2164 2009-09-23  Jakub Jelinek  <jakub@redhat.com>
2165             Jan Hubicka  <jh@suse.cz>
2166
2167         * dwarf2out.c (loc_list_plus_const): Only define if
2168         DWARF2_DEBUGGING_INFO.
2169         (address_of_int_loc_descriptor): Likewise.
2170
2171         PR debug/41411
2172         * dwarf2out.c (mem_loc_descriptor): Handle HIGH.
2173
2174 2009-09-23  Uros Bizjak  <ubizjak@gmail.com>
2175
2176         PR c/39779
2177         * c-typeck.c (build_binary_op) <short_shift>: Check that integer
2178         constant is more than zero.
2179
2180 2009-09-23  Alan Modra  <amodra@bigpond.net.au>
2181
2182         PR target/40473
2183         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
2184         call final to emit non-scheduled prologue, instead insert at entry.
2185
2186 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
2187             Joseph S. Myers  <joseph@codesourcery.com>
2188
2189         * doc/install.texi (*-*-freebsd*): Add proper format codes.
2190
2191 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
2192             Rafael Avila de Espindola  <espindola@google.com>
2193
2194         * gengtype.c (is_file_equal): New function.
2195         (close_output_files): Use is_file_equal. Free of->buf.
2196
2197 2009-09-22  Basile Starynkevitch  <basile@starynkevitch.net>
2198             Rafael Avila de Espindola  <espindola@google.com>
2199
2200         * gengtype.c (write_types, write_local): Add the output_header
2201         argument. Update all callers.
2202
2203 2009-09-22  Dodji Seketeli  <dodji@redhat.com>
2204
2205         * dwarf2out.c (template_parameter_pack_die,
2206         gen_formal_parameter_pack_die ): New functions.
2207         (make_ith_pack_parameter_name): Remove this function.
2208         (dwarf_tag_name): Support printing DW_TAG_template_parameter_pack and
2209         DW_TAG_formal_parameter_pack.
2210         (gen_generic_params_dies): Represent each template parameter pack
2211         by a DW_TAG_template_parameter_pack DIE. Argument pack elements are
2212         represented by usual DW_TAG_template_*_parameter DIEs that are
2213         children of the DW_TAG_template_parameter_pack element DIE.
2214         (generic_parameter_die): This doesn't deal with parameter pack
2215         names anymore. Don't generate DW_AT_name for some DIEs, e.g. children
2216         of parameter pack DIEs.
2217         (gen_formal_parameter_die): Add a flag to not emit DW_AT_name
2218         in certain cases, e.g. for pack elements.
2219         (gen_formal_types_die, gen_decl_die): Adjust usage of
2220         gen_formal_parameter_die.
2221         (gen_subprogram_die): Represent each function parameter pack by a
2222         DW_TAG_formal_parameter_pack DIE. Arguments of of the pack are
2223         represented by usual DW_TAG_formal_parameter DIEs that are children
2224         of the DW_TAG_formal_parameter_pack DIE. Remove references to
2225         ____builtin_va_alist decls as no part of the compiler uses those
2226         anymore.
2227         * langhooks.h (struct lang_hooks_for_decls): Add
2228         function_parm_expanded_from_pack_p, get_generic_function_decl
2229         and function_parameter_pack_p hooks.  Fix comment for
2230         get_innermost_generic_parms hook.
2231         * langhooks-def.h (LANG_HOOKS_FUNCTION_PARAMETER_PACK_P,
2232         LANG_HOOKS_FUNCTION_PARM_EXPANDED_FROM_PACK_P ): Declare new hook
2233         macros and use them to initialize lang_hook.
2234
2235 2009-09-22  Richard Henderson  <rth@redhat.com>
2236
2237         * system.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Poison.
2238         (TRAMPOLINE_ADJUST_ADDRESS): Poison.
2239         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): Don't conditionalize
2240         on TRAMPOLINE_TEMPLATE.
2241         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): Don't conditionalize on
2242         TRAMPOLINE_ADJUST_ADDRESS.
2243         * targhooks.c (default_asm_trampoline_template): Remove.
2244         (default_trampoline_adjust_address): Remove.
2245         (default_trampoline_init): Don't handle INITIALIZE_TRAMPOLINE.
2246         * targhooks.h: Update decls.
2247
2248 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2249
2250         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Enable.
2251         * config/i386/cygwin.h (LIBGCJ_SONAME): Define.
2252         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
2253
2254 2009-09-22  Alexandre Oliva  <aoliva@redhat.com>
2255
2256         PR debug/41295
2257         * reload1.c (reload): Reset debug insns with pseudos without
2258         equivalences.
2259
2260 2009-09-22  Janis Johnson  <janis187@us.ibm.com>
2261
2262         * config/i386/i386.c (ix86_scalar_mode_supported_p): Don't return
2263         unconditional true for decimal float modes.
2264         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Ditto.
2265         * config/s390/s390.c (s390_scalar_mode_supported_p): Ditto.
2266
2267 2009-09-22  Loren J. Rittle  <ljrittle@acm.org>
2268
2269         * unwind-dw2-fde-glibc.c: Define and use USE_PT_GNU_EH_FRAME.
2270         Enable a new case for __FreeBSD__ >= 7.
2271         * crtstuff.c:  Define USE_PT_GNU_EH_FRAME for __FreeBSD__ >= 7.
2272         * config/t-freebsd: Define LIB2ADDEH and LIB2ADDEHDEP.
2273         * config/freebsd-spec.h: Conditionally define LINK_EH_SPEC
2274         and USE_LD_AS_NEEDED.
2275
2276         * doc/install.texi (*-*-freebsd*): Update target information.
2277
2278 2009-09-22  Richard Guenther  <rguenther@suse.de>
2279
2280         PR middle-end/41395
2281         * tree-dfa.c (get_ref_base_and_extent): Handle trailing
2282         arrays really properly.
2283
2284 2009-09-22  Richard Henderson  <rth@redhat.com>
2285
2286         PR target/41246
2287         * target.h (struct gcc_target): Add asm_out.trampoline_template,
2288         calls.static_chain, calls.trampoline_init,
2289         calls.trampoline_adjust_address.
2290         * target-def.h (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2291         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2292         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2293         * builtins.c (expand_builtin_setjmp_receiver): Use
2294         targetm.calls.static_chain; only clobber registers.
2295         (expand_builtin_init_trampoline): Use targetm.calls.trampoline_init;
2296         set up memory attributes properly for the trampoline block.
2297         (expand_builtin_adjust_trampoline): Use
2298         targetm.calls.trampoline_adjust_address.
2299         * calls.c (prepare_call_address): Add fndecl argument.  Use
2300         targetm.calls.static_chain.
2301         * df-scan.c (df_need_static_chain_reg): Remove.
2302         (df_get_entry_block_def_set): Use targetm.calls.static_chain;
2303         consolodate static chain handling.
2304         * doc/tm.texi: Document new hooks.
2305         * emit-rtl.c (static_chain_rtx, static_chain_incoming_rtx): Remove.
2306         (init_emit_regs): Don't initialize them.
2307         * expr.h (prepare_call_address): Update decl.
2308         * final.c (profile_function): Use targetm.calls.static_chain.
2309         * function.c (expand_function_start): Likewise.
2310         * rtl.h (static_chain_rtx, static_chain_incoming_rtx): Remove.
2311         * stmt.c (expand_nl_goto_receiver): Use targetm.calls.static_chain;
2312         only clobber registers.
2313         * targhooks.c (default_static_chain): New.
2314         (default_asm_trampoline_template, default_trampoline_init): New.
2315         (default_trampoline_adjust_address): New.
2316         * targhooks.h: Declare them.
2317         * varasm.c (assemble_trampoline_template): Use
2318         targetm.asm_out.trampoline_template.  Make the memory block const
2319         and set its size.
2320
2321         * config/alpha/alpha.c (alpha_trampoline_init): Rename from
2322         alpha_initialize_trampoline.  Make static.  Merge VMS parameter
2323         differences into the TARGET_ABI_OPEN_VMS code block.
2324         (TARGET_TRAMPOLINE_INIT): New.
2325         * config/alpha/alpha.h (TRAMPOLINE_TEMPLATE): Remove.
2326         (TRAMPOLINE_SECTION, INITIALIZE_TRAMPOLINE): Remove.
2327         * config/alpha/vms.h (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Remove.
2328         (INITIALIZE_TRAMPOLINE): Remove.
2329
2330         * config/arc/arc.h (TRAMPOLINE_ALIGNMENT): New.
2331         (TRAMPOLINE_TEMPLATE): Merge with ...
2332         (INITIALIZE_TRAMPOLINE): ... this and move ...
2333         * config/arc/arc.c (arc_trampoline_init): ... here.
2334         (TARGET_TRAMPOLINE_INIT): New.
2335
2336         * config/arm/arm.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2337         (TARGET_TRAMPOLINE_INIT, TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2338         (arm_asm_trampoline_template): New.
2339         (arm_trampoline_init, arm_trampoline_adjust_address): New.
2340         * config/arm/arm.h (TRAMPOLINE_TEMPLATE, ARM_TRAMPOLINE_TEMPLATE,
2341         THUMB2_TRAMPOLINE_TEMPLATE, THUMB1_TRAMPOLINE_TEMPLATE): Move all
2342         code to arm_asm_trampoline_template.
2343         (TRAMPOLINE_ADJUST_ADDRESS): Move code to
2344         arm_trampoline_adjust_address.
2345         (INITIALIZE_TRAMPOLINE): Move code to arm_trampoline_init;
2346         adjust for target hook parameters.
2347
2348         * config/avr/avr.h (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE):
2349         Remove.
2350
2351         * config/bfin/bfin-protos.h (initialize_trampoline): Remove.
2352         * config/bfin/bfin.c (bfin_asm_trampoline_template): New.
2353         (bfin_trampoline_init): Rename from initialize_trampoline;
2354         make static; update for target hook parameters.
2355         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2356         * config/bfin/bfin.h (TRAMPOLINE_TEMPLATE): Move code to
2357         bfin_asm_trampoline_template.
2358         (INITIALIZE_TRAMPOLINE): Remove.
2359
2360         * config/cris/cris.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2361         TARGET_TRAMPOLINE_INIT, cris_asm_trampoline_template,
2362         cris_trampoline_init): New.
2363         * config/cris/cris.h (TRAMPOLINE_TEMPLATE): Move code to
2364         cris_asm_trampoline_template.
2365         (INITIALIZE_TRAMPOLINE): Move code to cris_trampoline_init;
2366         adjust for target hook parameters.
2367
2368         * config/crx/crx.h (INITIALIZE_TRAMPOLINE): Remove.
2369
2370         * config/fr30/fr30.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2371         TARGET_TRAMPOLINE_INIT, fr30_asm_trampoline_template,
2372         fr30_trampoline_init): New.
2373         * config/fr30/fr30.h (TRAMPOLINE_TEMPLATE): Move code to
2374         fr30_asm_trampoline_template.
2375         (INITIALIZE_TRAMPOLINE): Move code to fr30_trampoline_init;
2376         adjust for target hook parameters.
2377
2378         * config/frv/frv.c (TARGET_TRAMPOLINE_INIT): New.
2379         (frv_trampoline_init): Rename from frv_initialize_trampoline;
2380         make static, adjust arguments for TARGET_TRAMPOLINE_INIT hook.
2381         * config/frv/frv.h (INITIALIZE_TRAMPOLINE): Remove.
2382         * config/frv/frv-protos.h (frv_initialize_trampoline): Remove.
2383
2384         * config/h8300/h8300.c (h8300_trampoline_init): New.
2385         (TARGET_TRAMPOLINE_INIT): New.
2386         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Move code
2387         to h8300_trampoline_init and adjust for hook parameters.
2388
2389         * config/ia64/ia64-protos.h (ia64_initialize_trampoline): Remove.
2390         * config/ia64/ia64.c (TARGET_TRAMPOLINE_INIT): New.
2391         (ia64_trampoline_init): Rename from ia64_initialize_trampoline;
2392         make static; adjust for hook parameters.
2393         * config/ia64/ia64.h (INITIALIZE_TRAMPOLINE): Remove.
2394
2395         * config/iq2000/iq2000.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2396         (TARGET_TRAMPOLINE_INIT): New.
2397         (iq2000_asm_trampoline_template, iq2000_trampoline_init): New.
2398         * config/iq2000/iq2000.h (TRAMPOLINE_TEMPLATE): Move code to
2399         iq2000_asm_trampoline_template.
2400         (INITIALIZE_TRAMPOLINE): Move code to iq2000_trampoline_init.
2401         (TRAMPOLINE_CODE_SIZE): New.
2402         (TRAMPOLINE_SIZE): Use it.
2403         (TRAMPOLINE_ALIGNMENT): Follow Pmode.
2404
2405         * config/m32c/m32c-protos.h (m32c_initialize_trampoline): Remove.
2406         * config/m32c/m32c.c (TARGET_TRAMPOLINE_INIT): New.
2407         (m32c_trampoline_init): Rename from m32c_initialize_trampoline;
2408         adjust for hook parameters.
2409         * config/m32c/m32c.h (INITIALIZE_TRAMPOLINE): Remove.
2410
2411         * config/m32r/m32r.c (TARGET_TRAMPOLINE_INIT): New.
2412         (m32r_trampoline_init): New.
2413         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Move code to
2414         m32r_trampoline_init.
2415
2416         * config/m68hc11/m68hc11.c (TARGET_TRAMPOLINE_INIT): New.
2417         (m68hc11_trampoline_init): Rename from m68hc11_initialize_trampoline;
2418         make static; update for hook parameters.
2419         * config/m68hc11/m68hc11-protos.h: Update.
2420         * config/m68hc11/m68hc11.h (INITIALIZE_TRAMPOLINE): Remove.
2421
2422         * config/mcore/mcore.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2423         (TARGET_TRAMPOLINE_INIT): New.
2424         (mcore_function_value): Fix typo.
2425         (mcore_asm_trampoline_template, mcore_trampoline_init): New.
2426         * config/mcore/mcore.h (TRAMPOLINE_TEMPLATE): Move code
2427         to mcore_asm_trampoline_template.
2428         (INITIALIZE_TRAMPOLINE): Move code to mcore_trampoline_init.
2429
2430         * config/mep/mep.h (INITIALIZE_TRAMPOLINE): Remove.
2431         * config/mep/mep.c (TARGET_TRAMPOLINE_INIT): New.
2432         (mep_trampoline_init): Rename from mep_init_trampoline; make static;
2433         update for hook parameters.
2434         * config/mep/mep-protos.h (mep_init_trampoline): Remove.
2435
2436         * config/mips/mips.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2437         mips_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2438         mips_trampoline_init): New.
2439         * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Move code to
2440         mips_asm_trampoline_template.
2441         (INITIALIZE_TRAMPOLINE): Move code to mips_trampoline_init;
2442         update for hook parameters.
2443
2444         * gcc/config/mmix/mmix.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2445         (TARGET_TRAMPOLINE_INIT): New.
2446         (mmix_trampoline_size): Remove.
2447         (mmix_asm_trampoline_template): Rename from mmix_trampoline_template;
2448         make static.  Remove out-of-date tetra vs octa comment.
2449         (mmix_trampoline_init): Rename from mmix_initialize_trampoline;
2450         make static; update for hook parameters.
2451         * config/mmix/mmix.h (TRAMPOLINE_TEMPLATE): Remove.
2452         (INITIALIZE_TRAMPOLINE): Remove.
2453         (TRAMPOLINE_SIZE): Use a constant instead of mmix_trampoline_size.
2454         (TRAMPOLINE_ALIGNMENT): New.
2455         * gcc/config/mmix/mmix-protos.h: Update.
2456
2457         * config/mn10300/mn10300.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2458         mn10300_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2459         mn10300_trampoline_init): New.
2460         * config/mn10300/mn10300.h (TRAMPOLINE_TEMPLATE): Move code to
2461         mn10300_asm_trampoline_template.
2462         (INITIALIZE_TRAMPOLINE): Move code to mn10300_trampoline_init.
2463
2464         * config/moxie/moxie.c (moxie_static_chain,
2465         moxie_asm_trampoline_template, moxie_trampoline_init,
2466         TARGET_STATIC_CHAIN, TARGET_ASM_TRAMPOLINE_TEMPLATE,
2467         TARGET_TRAMPOLINE_INIT): New.
2468         * config/moxie/moxie.h (INITIALIZE_TRAMPOLINE): Move code to
2469         moxie_trampoline_init.
2470         (TRAMPOLINE_TEMPLATE): Move code to moxie_asm_trampoline_template.
2471         (STATIC_CHAIN, STATIC_CHAIN_INCOMING): Remove.
2472
2473         * gcc/config/pa/pa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE,
2474         pa_asm_trampoline_template, TARGET_TRAMPOLINE_INIT,
2475         pa_trampoline_init, TARGET_TRAMPOLINE_ADJUST_ADDRESS,
2476         pa_trampoline_adjust_address): New.
2477         * config/pa/pa.h (TRAMPOLINE_TEMPLATE): Move code to
2478         pa_asm_trampoline_template.
2479         (TRAMPOLINE_ALIGNMENT): New.
2480         (TRAMPOLINE_CODE_SIZE): Move to pa.c.
2481         (INITIALIZE_TRAMPOLINE): Move code to pa_trampoline_init;
2482         adjust for hook parameters.
2483         (TRAMPOLINE_ADJUST_ADDRESS): Move code to pa_trampoline_adjust_address.
2484
2485         * config/pdp11/pdp11.c (pdp11_trampoline_init): New.
2486         (TARGET_TRAMPOLINE_INIT): New.
2487         * config/pdp11/pdp11.h (TRAMPOLINE_TEMPLATE): Remove.
2488         (INITIALIZE_TRAMPOLINE): Move code to pdp11_trampoline_init.
2489
2490         * config/picochip/picochip.h (INITIALIZE_TRAMPOLINE): Remove.
2491
2492         * config/rs6000/rs6000-protos.h (rs6000_initialize_trampoline): Remove.
2493         * config/rs6000/rs6000.c (TARGET_TRAMPOLINE_INIT): New.
2494         (rs6000_trampoline_init): Rename from rs6000_initialize_trampoline;
2495         make static; adjust parameters for the hook.
2496         * config/rs6000/rs6000.h (INITIALIZE_TRAMPOLINE): Remove.
2497
2498         * config/s390/s390.c (s390_asm_trampoline_template): Rename from
2499         s390_trampoline_template; make static.
2500         (s390_trampoline_init): Rename from s390_initialize_trampoline;
2501         make static; adjust for target hook.
2502         (TARGET_ASM_TRAMPOLINE_TEMPLATE, TARGET_TRAMPOLINE_INIT): New.
2503         * config/s390/s390-protos.h: Remove trampoline decls.
2504         * config/s390/s390.h (INITIALIZE_TRAMPOLINE): Remove.
2505         (TRAMPOLINE_TEMPLATE): Remove.
2506         (TRAMPOLINE_ALIGNMENT): New.
2507
2508         * config/score/score-protos.h (score_initialize_trampoline): Remove.
2509         * config/score/score.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2510         (TARGET_TRAMPOLINE_INIT): New.
2511         (score_asm_trampoline_template): New.
2512         (score_trampoline_init): Rename from score_initialize_trampoline;
2513         make static; adjust for hook parameters.
2514         * config/score/score.h (TRAMPOLINE_TEMPLATE): Move code to
2515         score[37]_asm_trampoline_template.
2516         (INITIALIZE_TRAMPOLINE): Remove.
2517         * config/score/score3.c (score3_asm_trampoline_template): New.
2518         (score3_trampoline_init): Rename from score3_initialize_trampoline;
2519         adjust for target hook.
2520         * config/score/score7.c (score7_asm_trampoline_template): New.
2521         (score7_trampoline_init): Rename from score7_initialize_trampoline;
2522         adjust for target hook.
2523         * config/score/score3.h, config/score/score7.h: Update.
2524
2525         * config/sh/sh-protos.h (sh_initialize_trampoline): Remove.
2526         * config/sh/sh.c (TARGET_TRAMPOLINE_INIT): New.
2527         (TARGET_TRAMPOLINE_ADJUST_ADDRESS): New.
2528         (sh_trampoline_init): Rename from sh_initialize_trampoline;
2529         make static; adjust for target hook parameters.
2530         (sh_trampoline_adjust_address): New.
2531         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): New.
2532         (TRAMPOLINE_ADJUST_ADDRESS): Move code to sh_trampoline_adjust_address.
2533
2534         * config/sparc/sparc.c (TARGET_TRAMPOLINE_INIT): New.
2535         (sparc32_initialize_trampoline): Rename from
2536         sparc_initialize_trampoline; make static; replace tramp parameter
2537         with m_tramp and update memory accesses.
2538         (sparc64_initialize_trampoline): Similarly.
2539         (sparc_trampoline_init): New.
2540         * config/sparc/sparc-protos.h: Remove trampoline decls.
2541         * config/sparc/sparc.h (INITIALIZE_TRAMPOLINE): Remove.
2542         * config/sparc/sparc.md (nonlocal_goto): Don't use static_chain_rtx.
2543
2544         * config/spu/spu.c (TARGET_TRAMPOLINE_INIT): New.
2545         (array_to_constant): Make ARR parameter const.
2546         (spu_trampoline_init): Rename from spu_initialize_trampoline;
2547         make static; update for hook parameters.
2548         * config/spu/spu-protos.h: Update decls.
2549         * config/spu/spu.h (INITIALIZE_TRAMPOLINE): Remove.
2550
2551         * config/stormy16/stormy16.c (xstormy16_trampoline_init): Rename
2552         from xstormy16_initialize_trampoline; make static; update for
2553         hook parameters.
2554         (TARGET_TRAMPOLINE_INIT): New.
2555         * config/stormy16/stormy16.h (INITIALIZE_TRAMPOLINE): Remove.
2556
2557         * config/v850/v850.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2558         (TARGET_TRAMPOLINE_INIT): New.
2559         (v850_can_eliminate): Make static.
2560         (v850_asm_trampoline_template, v850_trampoline_init): New.
2561         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Move code to
2562         v850_asm_trampoline_template.
2563         (INITIALIZE_TRAMPOLINE): Move code to v850_trampoline_init
2564         and adjust for target hook parameters.
2565
2566         * config/vax/vax.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2567         (TARGET_TRAMPOLINE_INIT): New.
2568         (vax_asm_trampoline_template, vax_trampoline_init): New.
2569         * config/vax/vax.h (TRAMPOLINE_TEMPLATE): Move code to
2570         vax_asm_trampoline_template.
2571         (INITIALIZE_TRAMPOLINE): Move code to vax_trampoline_init.
2572
2573         * config/xtensa/xtensa.c (TARGET_ASM_TRAMPOLINE_TEMPLATE): New.
2574         (TARGET_TRAMPOLINE_INIT): New.
2575         (xtensa_asm_trampoline_template): Rename from
2576         xtensa_trampoline_template; make static.
2577         (xtensa_trampoline_init): Rename from xtensa_initialize_trampoline;
2578         make static; update for hook parameters.
2579         * config/xtensa/xtensa-protos.h: Remove trampoline decls.
2580         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Remove.
2581         (INITIALIZE_TRAMPOLINE): Remove.
2582
2583         * config/i386/i386.c (ix86_function_regparm): Do not issue an
2584         error for nested functions with regparm=3.
2585         (ix86_compute_frame_layout): Adjust frame pointer offset for
2586         ix86_static_chain_on_stack.
2587         (ix86_expand_prologue): Handle ix86_static_chain_on_stack.
2588         (ix86_emit_restore_reg_using_pop): Increment ix86_cfa_state->offset,
2589         don't reset to UNITS_PER_WORD.
2590         (ix86_emit_leave): Adjust ix86_cfa_state.
2591         (ix86_expand_epilogue): Handle ix86_static_chain_on_stack.
2592         (ix86_static_chain): New.
2593         (ix86_trampoline_init): Rename from x86_initialize_trampoline;
2594         make static; update for target hook parameters; use ix86_static_chain.
2595         (TARGET_STATIC_CHAIN, TARGET_TRAMPOLINE_INIT): New.
2596         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Remove.
2597         (INITIALIZE_TRAMPOLINE): Remove.
2598         (TRAMPOLINE_SIZE): Use 24 for 64-bit.
2599         (struct machine_function): Use BOOL_BITFIELD; rearrange bitfields
2600         to the end.  Add static_chain_on_stack.
2601         (ix86_static_chain_on_stack): New.
2602
2603         * config/m68k/m68k.c (TARGET_TRAMPOLINE_INIT): New.
2604         (m68k_output_mi_thunk): Don't use static_chain_rtx.
2605         (m68k_trampoline_init): New.
2606         * config/m68k/m68k.h (INITIALIZE_TRAMPOLINE): Move code to
2607         m68k_trampoline_init and adjust for hook parameters.
2608         * config/m68k/netbsd-elf.h (TRAMPOLINE_TEMPLATE): Remove.
2609         (TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE): Remove.
2610
2611 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2612
2613         * config/rs6000/rs6000.c (bdesc_2arg): Fix CODE_FOR_vector_gt* codes
2614         for __builtin_altivec_vcmpgt{sb,uh,sh,uw}.
2615
2616         * reload1.c (reload): Call wrap_constant when substituting
2617         reg for equiv inside of DEBUG_INSNs.
2618
2619         PR bootstrap/41405
2620         * dwarf2out.c (base_type_die, record_type_tag, gen_subprogram_die,
2621         add_call_src_coords_attributes, add_high_low_attributes,
2622         gen_compile_unit_die, gen_type_die_with_usage force_decl_die,
2623         gen_decl_die, dwarf2out_imported_module_or_decl_1, dwarf2out_finish,
2624         dwarf2out_imported_module_or_decl): Avoid using DWARF3 additions
2625         when -gdwarf-2 -gstrict-dwarf.
2626         (loc_list_from_tree): Likewise.  Avoid using DWARF4 additions when
2627         -gdwarf-[23] -gstrict-dwarf.
2628         (address_of_int_loc_descriptor, loc_descriptor,
2629         loc_list_for_address_of_addr_expr_of_indirect_ref): Avoid using
2630         DWARF4 additions when -gdwarf-[23] -gstrict-dwarf.
2631         * common.opt (gno-strict-dwarf, gstrict-dwarf): New options.
2632
2633 2009-09-22  Richard Guenther  <rguenther@suse.de>
2634
2635         PR tree-optimization/41428
2636         * tree-ssa-ccp.c (ccp_fold_stmt): New function.
2637         (ccp_finalize): Pass it to substitute_and_fold.
2638
2639 2009-09-22  Richard Guenther  <rguenther@suse.de>
2640
2641         * tree-ssa-propagate.h (ssa_prop_fold_stmt_fn): Declare.
2642         (substitute_and_fold): Adjust prototype.
2643         * tree-vrp.c (vrp_evaluate_conditional): Make static.
2644         (simplify_stmt_using_ranges): Likewise.
2645         (fold_predicate_in): Move here from tree-ssa-propagate.c.
2646         (vrp_fold_stmt): New function.
2647         (vrp_finalize): Pass it to substitute_and_fold.
2648         * tree-flow.h (vrp_evaluate_conditional): Remove.
2649         (simplify_stmt_using_ranges): Likewise.
2650         * tree-ssa-ccp.c (ccp_finalize): Adjust call to substitute_and_fold.
2651         * tree-ssa-copy.c (fini_copy_prop): Likewise.
2652         * tree-ssa-propagate.c (struct prop_stats_d): Rename num_pred_folded
2653         member.
2654         (fold_predicate_in): Move to tree-vrp.c.
2655         (substitute_and_fold): Use the callback instead of calling into
2656         tree-vrp.c functions directly.
2657
2658 2009-09-22  Jakub Jelinek  <jakub@redhat.com>
2659
2660         * dwarf2out.c (address_of_int_loc_descriptor): Avoid signed/unsigned
2661         comparison warning on rs6000.
2662
2663         PR middle-end/41429
2664         * tree-cfg.c (remove_useless_stmts_tc): Call gsi_next (gsi) even for
2665         GIMPLE_EH_MUST_NOT_THROW cleanup.
2666         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
2667
2668 2009-09-22  Jack Howarth  <howarth@bromo.med.uc.edu>
2669
2670         PR middle-end/41260
2671         * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
2672         * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
2673         LIB_SPEC for darwin10 and later since it always uses the unwinder in
2674         libSystem which is derived from the gcc 4.2.1 unwinder.
2675
2676 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2677
2678         PR middle-end/41357
2679         * varasm.c (default_encode_section_info): Copy TLS model into
2680         sym_ref flags regardless of backend support for TLS, for all
2681         model types except TLS_MODEL_EMULATED.
2682
2683 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2684
2685         PR bootstrap/41404
2686         * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
2687         we can handle it correctly.
2688
2689 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
2690
2691         * doc/install.texi (os2): Remove section.
2692
2693 2009-09-21  Gerald Pfeifer  <gerald@pfeifer.com>
2694
2695         * doc/standards.texi (Objective-C): Adjust two URLs.
2696
2697 2009-09-21  Giuseppe Scrivano <gscrivano@gnu.org>
2698
2699         * tree-tailcall.c (process_assignment): Don't check if a
2700         multiplication or an addition are already present.
2701         (find_tail_calls): Combine multiple additions and multiplications.
2702         (adjust_accumulator_values): Emit accumulators.
2703
2704 2009-09-21  Kai Tietz  <kai.tietz@onevision.com>
2705
2706         * config/i386/i386.c (ix86_expand_epilogue): Adjust offset for
2707         xmm register restore.
2708
2709 2009-09-21  Jan Hubicka  <jh@suse.cz>
2710
2711         * dwarf2out.c (decl_loc_table_eq): Allow decl_loc_table to be NULL.
2712         (dwarf2out_abstract_function): NULLify decl_loc_table at begginig and
2713         restore at the end.
2714
2715 2009-09-21  Eric Botcazou  <ebotcazou@adacore.com>
2716
2717         * stor-layout.c (layout_type): Remove obsolete code.
2718
2719 2009-09-20  H.J. Lu  <hongjiu.lu@intel.com>
2720
2721         PR middle-end/41395
2722         * opts.c (decode_options): Don't turn on flag_ipa_sra for opt2.
2723
2724 2009-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2725
2726         PR middle-end/30789
2727         * builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
2728         (do_mpc_ckconv): Accept FORCE_CONVERT parameter.
2729         (fold_builtin_2, do_mpc_arg1): Update accordingly.
2730         * fold-const.c (const_binop): Likewise.
2731         * real.h (do_mpc_arg2): Update prototype.
2732
2733 2009-09-20  Jan Hubicka  <jh@suse.cz>
2734
2735         * dwarf2out.c (add_const_value_attribute): Return true if successful.
2736         (add_location_or_const_value_attribute): Rewrite using
2737         loc_list_from_tree.
2738         (tree_add_const_value_attribute): Return true if successful.
2739         (tree_add_const_value_attribute_for_decl): Likewise.
2740
2741         * dwarf2out.c (address_of_int_loc_descriptor): Break out from ...
2742         (loc_descriptor): ... here;
2743         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2744         (cst_pool_loc_descr): Break out from ...; do not reffer constant
2745         pool items that was not marked for output.
2746         (loc_list_from_tree): ... here; handle special cases of ADDR_EXPR;
2747         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2748         (loc_list_for_address_of_addr_expr_of_indirect_ref): New function.
2749         handle ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, REALPART_EXPR,
2750         IMAGPART_EXPR; handle address of INTEGER_CST; improve handling of
2751         CONSTRUCTOR; handle REAL_CST, STRING_CST, COMPLEX_CST; use
2752         DW_OP_stack_value to get address of items that are not available
2753         as addresses.
2754         (dw_loc_list): Handle single element lists correctly.
2755
2756 2009-09-20  Kai Tietz  <kai.tietz@onevision.com>
2757             Pascal Obry  <obry@adacore.com>
2758
2759         * unwind-dw2-fde.c (classify_object_over_fdes):
2760         Cast the constant 1 to _Unwind_Ptr.
2761         (add_fdes): Likewise.
2762         (linear_search_fdes): Likewise.
2763
2764 2009-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2765
2766         * stor-layout.c (set_sizetype): Avoid useless type copy.
2767
2768 2009-09-20  Richard Sandiford  <rdsandiford@googlemail.com>
2769
2770         * configure.ac (gcc_cv_ld_mips_personality_relaxation): New
2771         feature check.
2772         (HAVE_LD_PERSONALITY_RELAXATION): New macro definition.
2773         * configure, config.in: Regenerate.
2774         * dwarf2asm.c (eh_data_format_name): Handle DW_EH_PE_indirect |
2775         DW_EH_PE_absptr.
2776         * config/mips/mips.h (TARGET_WRITABLE_EH_FRAME): New macro.
2777         (ASM_PREFERRED_EH_DATA_FORMAT): Define.  Use MIPS_EH_INDIRECT
2778         for global data if the output could be used in a shared library.
2779         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
2780         to 0 if TARGET_WRITABLE_EH_FRAME.
2781
2782 2009-09-20  Paolo Bonzini <bonzini@gnu.org>
2783
2784         PR rtl-optimization/39886
2785         * combine.c (update_cfg_for_uncondjump): Set EDGE_FALLTHRU
2786         just when insn is equal to BB_END (bb).
2787
2788 2009-09-19  Adam Nemet  <anemet@caviumnetworks.com>
2789
2790         * config/mips/mips.opt (mrelax-pic-calls): New option.
2791         * config/mips/mips.c (mips_strip_unspec_address): Move it up in
2792         the file.
2793         (mips_unspec_call): Change "unspec_call" expander into this.
2794         (mips_strip_unspec_call): New function.
2795         (mips_got_load): Call mips_unspec_call instead of
2796         gen_unspec_call<mode>.
2797         (mips16_build_call_stub): Fix comment for fp_code.  Adjust call to
2798         MIPS_CALL.
2799         (mips_cfg_in_reorg): New function.
2800         (mips16_lay_out_constants): Use it to decide whether to call
2801         CFG-aware insn splitting.
2802         (r10k_insert_cache_barriers): Move CFG set-up code from here to
2803         mips_reorg.  Move DF set-up code from here ...
2804         (mips_df_reorg): ... to here.  Call r10k_insert_cache_barriers
2805         from here.
2806         (mips_reorg): Call mips_df_reorg instead of
2807         r10k_insert_cache_barriers.  Move CFG set-up code here from
2808         r10k_insert_cache_barriers.
2809         (mips_call_expr_from_insn): New function.
2810         (mips_pic_call_symbol_from_set): Likewise.
2811         (mips_find_pic_call_symbol): Likewise.
2812         (mips_annotate_pic_call_expr): Likewise.
2813         (mips_get_pic_call_symbol): Likewise.
2814         (mips_annotate_pic_calls): Likewise.
2815         (mips_override_options): Disable -mrelax-pic-calls unless PIC
2816         calls are used.
2817         (mips_set_mips16_mode): Disable -mrelax-pic-calls for MIPS16.
2818         * config/mips/mips-protos.h (mips_get_pic_call_symbol): Declare it.
2819         * config/mips/mips.h (MIPS_CALL): Use it to print the .reloc
2820         directive.
2821         * config/mips/mips.md (UNSPEC_CALL_ATTR): New unspec.
2822         (unspec_call<mode>): Remove it.
2823         (sibcall_internal, sibcall_value_internal,
2824         sibcall_value_multiple_internal, call_internal, call_split,
2825         call_value_internal, call_value_split,
2826         call_value_multiple_internal, call_value_multiple_split): Pass
2827         SIZE_OPNO to MIPS_CALL.
2828         (call_internal_direct, call_direct_split,
2829         call_value_internal_direct, call_value_direct_split): Pass -1 as
2830         SIZE_OPNO to MIPS_CALL.
2831         * configure.ac <mips*-*-*>: Add test for .reloc R_MIPS_JALR.
2832         * configure: Regenerate.
2833         * doc/invoke.texi (Option Summary): Add -mrelax-pic-calls
2834         and -mno-relax-pic-calls.
2835         (MIPS Options): Document -mrelax-pic-calls and -mno-relax-pic-calls.
2836
2837 2009-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2838
2839         PR bootstrap/35619
2840         * Makefile.in (stmp-fixinc): Ensure `include-fixed' is created
2841         in the directory this rule is called from, rather than the
2842         toplevel 'gcc' directory, to fix in-tree build.
2843
2844 2009-09-19  Chris Demetriou  <cgd@google.com>
2845
2846         PR preprocessor/28435:
2847         * c-opts.c (c_common_handle_option): For -MD and -MMD, indicate
2848         to cpplib that the preprocessor output is needed.
2849
2850 2009-09-19  Jakub Jelinek  <jakub@redhat.com>
2851
2852         * config/rs6000/rs6000.md (*save_gpregs_<mode>, *save_fpregs_<mode>,
2853         *restore_gpregs_<mode>, *return_and_restore_gpregs_<mode>,
2854         *return_and_restore_fpregs_<mode>,
2855         *return_and_restore_fpregs_aix_<mode>): Remove 'z' operand modifier.
2856
2857         PR bootstrap/41397
2858         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Recurse
2859         instead of assuming it has always a REG inside of it.
2860
2861 2009-09-18  Gerald Pfeifer  <gerald@pfeifer.com>
2862
2863         * config/freebsd.h: Update comment on types.
2864         (WINT_TYPE): Define.
2865
2866 2009-09-18  Jason Merrill  <jason@redhat.com>
2867
2868         * c.opt: Add -fno-deduce-init-list.
2869
2870 2009-09-18  Neil Vachharajani  <nvachhar@google.com>
2871
2872         * value-prof.c (interesting_stringop_to_profile_p): Added output
2873         argument to indicate which parameter is the size parameter.
2874         * value-prof.c (gimple_stringop_fixed_value): Use
2875         INTERESTING_STRINGOP_TO_PROFILE_P to find size argument.
2876         * value-prof.c (gimple_stringops_transform): Update call sites to
2877         INTERESTING_STRINGOP_TO_PROFILE_P to reflect parameter change.
2878
2879 2009-09-18  Uros Bizjak  <ubizjak@gmail.com>
2880
2881         PR target/38288
2882         From David Binderman <dcb314@hotmail.com>:
2883         * gcc/config/i386/i386.c (ix86_function_regparm): Remove useless
2884         local variable f.  Remove stale comments.
2885         (ix86_compute_frame_layout): Remove useless local variable total_size.
2886         Remove #if 0'd code.
2887         (legitimate_address_p): Remove useless local variables
2888         reason_rtx and reason.
2889         (ix86_split_copysign_const): Remove useless local variable op1.
2890         (scale_counter): Remove useless local variable piece_size_mask.
2891
2892 2009-09-18  Jakub Jelinek  <jakub@redhat.com>
2893
2894         * stmt.c (expand_asm_operands): Set REG_ATTRS on the temporary from
2895         output decl.
2896
2897 2009-09-17  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
2898
2899         PR target/40913
2900         * config/pa/t-hpux-shlib: Set soname in libgcc_s.sl.
2901
2902 2009-09-17  Jakub Jelinek  <jakub@redhat.com>
2903
2904         * c-decl.c (finish_struct): Adjust DECL_SOURCE_LOCATION of
2905         TYPE_STUB_DECL.
2906
2907 2009-09-17  Alexandre Oliva  <aoliva@redhat.com>
2908
2909         * dwarf2out.c (loc_descriptor): Emit DW_OP_stack_value and
2910         DW_OP_implicit_value even without dwarf_version 4.
2911
2912 2009-09-17  Jan Hubicka  <jh@suse.cz>
2913
2914         * dwarf2out.c: Include tree-pass.h and gimple.h.
2915         (loc_list_plus_const): New function.
2916         (loc_descriptor_from_tree_1): Rename to ...
2917         (loc_descriptor_from_tree): ... remove original.
2918         (loc_list_from_tree): New function.
2919         (add_AT_location_description): Accept location list.
2920         (tls_mem_loc_descriptor): Update call of loc_descriptor_from_tree.
2921         (concatn_mem_loc_descriptor): Remove.
2922         (mem_loc_descriptor): Handle CONCAT/CONCATN and VAR_LOCATION by
2923         returning NULL.
2924         (secname_for_decl): Move up.
2925         (hidden_reference_p): New function; break out from ...
2926         (loc_by_refernece): ... here; move up.
2927         (dw_loc_list): New function.
2928         (single_element_loc_list): New function.
2929         (single_element_loc_list_p): New function.
2930         (add_loc_descr_to_each): New function.
2931         (add_loc_list): New function.
2932         (loc_descr_from_tree): Make wraper of loc_list_from_tree.
2933         (loc_list_from_tree): Reroganized from loc_descr_from_tree;
2934         add diagnostics why expansion failed.
2935         (add_location_or_const_value_attribute): Support location lists.
2936         (add_bound_info): Likewise.
2937         (descr_info_loc): Update call of loc_descriptor_from_tree.
2938         (gen_variable_die): Work on location lists.
2939         * final.c (pass_final): Add dump file.
2940         * Makefile.in (dwarf2out.o): Add new dependencies.
2941
2942 2009-09-17  Janis Johnson  <janis187@us.ibm.com>
2943
2944         PR c/41049
2945         * real.c decimal_from_integer, decimal_integer_string): New.
2946         (real_from_integer): Use them as special case for decimal float.
2947         * config/dfp-bit.c (_si_to_sd, _usi_to_sd): Use default rounding.
2948         (_di_to_sd, _di_to_dd, _di_to_td, _udi_to_sd, _udi_to_dd, _udi_to_td):
2949         Do not append zero after the decimal point in string to convert.
2950
2951 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
2952
2953         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2954         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
2955
2956 2009-09-17  Martin Jambor  <mjambor@suse.cz>
2957
2958         * common.opt (fipa-sra): New switch.
2959         * opts.c (decode_options): Turn flag_ipa_sra on for opt2.
2960         * timevar.def (TV_IPA_SRA): New timevar.
2961         * params.def (ipa-sra-ptr-growth-factor): New parameter.
2962         * doc/invoke.texi: Document -fipa-sra and ipa-sra-ptr-growth-factor.
2963         * tree-sra.c: Include cgraph.c.
2964         (enum sra_mode): Added SRA_MODE_EARLY_IPA.
2965         (struct access): Added fields stmt, grp_maybe_modified, grp_scalar_ptr
2966         and grp_not_necessarilly_dereferenced.
2967         (func_param_count): New variable.
2968         (encountered_apply_args): New variable.
2969         (bb_dereferences): New variable.
2970         (final_bbs): New variable.
2971         (no_accesses_representant): New variable.
2972         (no_accesses_p): New function.
2973         (dump_access): Dump the new fields.
2974         (sra_initialize): Set encountered_apply_args to false.
2975         (get_ssa_base_param): New function.
2976         (mark_parm_dereference): New function.
2977         (create_access): Caring for INIDRECT_REFs and different handling of
2978         varialble length accesses in early IPA SRA.  Store the stmt - a new
2979         parameter - to the new access.
2980         (build_access_from_expr_1): New parameter stmt, passed to
2981         create_access.  Handle INDIRECT_REFs.
2982         (build_access_from_expr): Pass the current statement to
2983         build_access_from_expr_1.
2984         (disqualify_ops_if_throwing_stmt): Trigger only in intraprocedural
2985         passes.
2986         (build_accesses_from_assign): Pass the current statement to
2987         build_access_from_expr_1.  Do not create assign links in IPA-SRA.
2988         (scan_function): Call handle_ssa_defs on phi nodes.  Set bits in
2989         final_bbs when necessary.  Check for calls to __builtin_apply_args.
2990         Fixup EH info if anythng was changed.
2991         (is_unused_scalar_param): New function.
2992         (ptr_parm_has_direct_uses): New function.
2993         (find_param_candidates): New function.
2994         (mark_maybe_modified): New function.
2995         (analyze_modified_params): New function.
2996         (propagate_dereference_distances): New function.
2997         (dump_dereferences_table): New function.
2998         (analyze_caller_dereference_legality): New function.
2999         (unmodified_by_ref_scalar_representative): New function.
3000         (splice_param_accesses): New function.
3001         (decide_one_param_reduction): New function.
3002         (enum ipa_splicing_result): New type.
3003         (splice_all_param_accesses): New function.
3004         (get_param_index): New function.
3005         (turn_representatives_into_adjustments): New function.
3006         (analyze_all_param_acesses): New function.
3007         (get_replaced_param_substitute): New function.
3008         (get_adjustment_for_base): New function.
3009         (replace_removed_params_ssa_names): New function.
3010         (sra_ipa_reset_debug_stmts): New function.
3011         (sra_ipa_modify_expr): New function.
3012         (sra_ipa_modify_assign): New function.
3013         (convert_callers): New function.
3014         (modify_function): New function.
3015         (ipa_sra_preliminary_function_checks): New function.
3016         (ipa_early_sra): New function.
3017         (ipa_early_sra_gate): New function.
3018         (pass_early_ipa_sra): New variable.
3019         * Makefile.in (tree-sra.o): Add cgraph.h to dependencies.
3020
3021 2009-09-17  Michael Matz  <matz@suse.de>
3022
3023         PR middle-end/41347
3024         * tree.c (build_type_attribute_qual_variant): Export.
3025         * tree.h (build_type_attribute_qual_variant): Declare.
3026         * tree-inline.c (remap_type_1): Use it to build variants with
3027         the original qualifiers and attributes.
3028
3029 2009-09-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3030
3031         * cfglayout.c (fixup_reorder_chain): Accept conditional jumps
3032         without a fallthrough edge.
3033
3034 2009-09-16  DJ Delorie  <dj@redhat.com>
3035
3036         * config/m32c/m32c.c (m32c_emit_epilogue): Check for R8C or M16C
3037         chip and ignore the "fast_interrupt" attribute if so.
3038
3039 2009-09-16  Richard Henderson  <rth@redhat.com>
3040
3041         PR middle-end/41360
3042         * cfgbuild.c (find_bb_boundaries): Really re-instate 2009-09-02
3043         barrier fix.
3044
3045 2009-09-16  Richard Henderson  <rth@redhat.com>
3046
3047         PR target/41246
3048         * tree-cfg.c (verify_gimple_call): Validate that gimple_call_chain
3049         is set only if DECL_NO_STATIC_CHAIN is unset.
3050         * tree-nested.c (iter_nestinfo_start, iter_nestinfo_next): New.
3051         (FOR_EACH_NEST_INFO): New.
3052         (walk_all_functions): Use it.
3053         (finalize_nesting_tree): Likewise.
3054         (unnest_nesting_tree): Likewise.
3055         (free_nesting_tree): Use iter_nestinfo_start, iter_nestinfo_next.
3056         (get_chain_decl, get_chain_field): Reset DECL_NO_STATIC_CHAIN.
3057         (convert_gimple_call): Early out if gimple_call_chain already set.
3058         (convert_all_function_calls): Iterate until no new functions
3059         require a static chain.
3060         (finalize_nesting_tree_1): Assert DECL_NO_STATIC_CHAIN is unset
3061         when building a trampoline.  Use dump_function_to_file instead
3062         of dump_function.
3063         (lower_nested_functions): Open dump_file.  Validate that decls
3064         that have DECL_NO_STATIC_CHAIN from the front end don't have that
3065         bit reset by this pass.
3066
3067 2009-09-16  Michael Matz  <matz@suse.de>
3068
3069         PR fortran/41212
3070         * tree.h (struct tree_decl_common): Add decl_restricted_flag,
3071         shorten decl_common_unused.
3072         (DECL_RESTRICTED_P): New accessor.
3073         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use it
3074         to disambiguate marked decls and restrict pointers.
3075
3076 2009-09-16  Richard Henderson  <rth@redhat.com>
3077
3078         PR middle-end/41360
3079         * cfgbuild.c (find_bb_boundaries): Re-instate 2009-09-02 barrier fix.
3080
3081 2009-09-16  Jakub Jelinek  <jakub@redhat.com>
3082
3083         * integrate.c (set_block_abstract_flags): Call
3084         set_decl_abstract_flags also on BLOCK_NONLOCALIZED_VARs.
3085
3086 2009-09-16  Richard Guenther  <rguenther@suse.de>
3087
3088         PR middle-end/34011
3089         * tree-flow-inline.h (may_be_aliased): Compute readonly variables
3090         as non-aliased.
3091
3092 2009-09-16  DJ Delorie  <dj@redhat.com>
3093             Kaz Kojima  <kkojima@gcc.gnu.org>
3094
3095         * config/sh/sh.c (output_stack_adjust): Add new argument frame_p.
3096         (sh_expand_prologue): Update calls to output_stack_adjust.
3097         (sh_expand_epilogue): Likewise.
3098
3099 2009-09-15  Adam Nemet  <anemet@caviumnetworks.com>
3100
3101         PR bootstrap/41349
3102         * reorg.c (redundant_insn): Don't count notes or DEBUG_INSNs when
3103         trying to limit the extent of searches in the insn stream.
3104
3105 2009-09-15  Nathan Froyd  <froydnj@codesourcery.com>
3106             Jakub Jelinek  <jakub@redhat.com>
3107
3108         PR target/41175
3109         PR target/40677
3110         * config/rs6000/rs6000.c (no_global_regs_above): Fix precedence
3111         problem.
3112         (SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
3113         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): New strategy bits.
3114         (rs6000_savres_strategy): Always save FP registers inline if the
3115         target doesn't support hardware double-precision.  Set the above
3116         bits in return value when needed.
3117         (rs6000_savres_routine_sym): Fix computation for cache selector.
3118         Mark the generated symbol as a function.  Rename exitp argument to
3119         lr.  Move code for determining the name of the symbol...
3120         (rs6000_savres_routine_name): ...here.  New function.  Add cases for
3121         getting the names right on AIX and 64-bit Linux.
3122         (savres_routine_name): New variable.
3123         (rs6000_make_savres_rtx): Rename exitp argument to lr.  Don't assert
3124         lr isn't set when savep.  Use r12 resp. r1 instead of r11 depending
3125         on what the target routine uses as a base register.  If savep && lr
3126         describe saving of r0 into memory slot.
3127         (rs6000_emit_prologue): Correct use of call_used_regs.  Fix out of
3128         line calls for AIX ABI.
3129         (rs6000_output_function_prologue): Use rs6000_savres_routine_name to
3130         determine FP save/restore functions.
3131         (rs6000_emit_stack_reset): Handle savres if sp_offset != 0 and
3132         frame_reg_rtx != sp_reg_rtx.  Use gen_add3_insn instead of
3133         gen_addsi3.
3134         (rs6000_emit_epilogue): Adjust computation of restore_lr.
3135         Duplicate restoration of LR and execute the appropriate one
3136         depending on whether GPRs are being restored inline.  Set r11 from
3137         offsetted frame_reg_rtx instead of sp_reg_rtx; if frame_reg_rtx is
3138         r11, adjust sp_offset.  Use gen_add3_insn instead of gen_addsi3.
3139         Fix out of line calls for AIX ABI.
3140         * config/rs6000/rs6000.md (*return_and_restore_fpregs_aix_<mode>):
3141         New insn.
3142         * config/rs6000/spe.md (*save_gpregs_spe): Use explicit match for
3143         register 11.
3144         (*restore_gpregs_spe): Likewise.
3145         (*return_and_restore_gpregs_spe): Likewise.
3146         * config/rs6000/linux64.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3147         Define to empty string unconditionally.
3148         * config/rs6000/sysv4.h (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX):
3149         Define to empty string unconditionally.
3150         (GP_SAVE_INLINE, FP_SAVE_INLINE): Handle TARGET_64BIT the same as
3151         !TARGET_64BIT.
3152
3153 2009-09-15  Jan Hubicka  <jh@suse.cz>
3154
3155         * doc/invoke.texi (inline-insns-auto): Drop from 60 to 50.
3156         * params.def (inline-insns-auto): Likewise.
3157
3158 2009-09-15  Martin Jambor  <mjambor@suse.cz>
3159
3160         * ipa-inline.c (estimate_function_body_sizes): Dump info about
3161         individual statements only at TDF_DETAILS dump level.  Format
3162         source for 80 characters per line.
3163
3164 2009-09-15  Christian Bruel  <christian.bruel@st.com>
3165
3166         * regrename.c (do_replace): Update REG_DEAD notes.
3167
3168 2009-09-15  Revital Eres  <eres@il.ibm.com>
3169
3170         * doc/tm.texi (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Document.
3171         * targhooks.c (default_builtin_support_vector_misalignment):
3172         New builtin function.
3173         * targhooks.h (default_builtin_support_vector_misalignment):
3174         Declare.
3175         * target.h (builtin_support_vector_misalignment):
3176         New field in struct gcc_target.
3177         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Call
3178         new builtin function.
3179         * target-def.h (TARGET_SUPPORT_VECTOR_MISALIGNMENT):
3180         Define.
3181         * config/rs6000/rs6000.c
3182         (rs6000_builtin_support_vector_misalignment): New function.
3183         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Define.
3184
3185 2009-09-15  Jie Zhang  <jie.zhang@analog.com>
3186
3187         * config/bfin/bfin.c (length_for_loop): Use NONDEBUG_INSN_P
3188         instead of INSN_P.
3189         (bfin_optimize_loop): Likewise.
3190         (bfin_gen_bundles): Likewise.
3191         (workaround_speculation): Likewise.
3192         (find_load): Return NULL_RTX for debug_insn.
3193
3194 2009-09-15  Uros Bizjak  <ubizjak@gmail.com>
3195
3196         * config/alpha/alpha.md (smaxsf3): Disable for IEEE mode.
3197         (sminsf3): Ditto.
3198
3199 2009-09-14  DJ Delorie  <dj@redhat.com>
3200
3201         * config/mep/mep.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
3202         * config/mep/mep.c (mep_emit_cbranch): Don't use BEQZ/BNEI in
3203         VLIW mode.
3204
3205 2009-09-14  Richard Henderson  <rth@redhat.com>
3206             Jakub Jelinek  <jakub@redhat.com>
3207
3208         * builtins.c (expand_builtin_synchronize): Use gimple_build_asm_vec.
3209         * cfgbuild.c (make_edges): Handle asm goto.
3210         * cfglayout.c (fixup_reorder_chain): Likewise.
3211         * cfgrtl.c (patch_jump_insn): Likewise.
3212         * gimple-pretty-print.c (dump_gimple_asm): Likewise.
3213         * gimple.c (gimple_build_asm_1): Add and use nlabels parameter.
3214         (gimple_build_asm_vec): Add and use labels parameter.
3215         (gimple_build_asm): Remove.
3216         (walk_gimple_asm): Walk labels too.
3217         * gimple.def (GIMPLE_ASM): Update docs.
3218         * gimple.h: Update decls.
3219         (struct gimple_statement_asm): Change nc to use unsigned char;
3220         add nl member.
3221         (gimple_asm_nlabels): New.
3222         (gimple_asm_label_op, gimple_asm_set_label_op): New.
3223         * gimplify.c (gimplify_asm_expr): Copy labels from ASM_EXPR
3224         into gimple_build_asm_vec.
3225         * jump.c (mark_jump_label_asm): New.
3226         (mark_jump_label): Use it.
3227         (redirect_jump_1): Handle asm goto.
3228         (invert_jump_1): Soft fail if X is null.
3229         * recog.c (extract_asm_operands): New.
3230         (asm_noperands): Use it; handle asm labels.
3231         (decode_asm_operands): Use extract_asm_operands.
3232         (asm_operand_ok): Properly handle empty string.
3233         * reg-stack.c (get_asm_operands_in_out): Rename from
3234         get_asm_operand_n_inputs; use extract_asm_operands; return both
3235         inputs and outputs by reference; update all callers.
3236         * rtl.def (ASM_OPERANDS): Add label vector as operand 6.
3237         * rtl.h (ASM_OPERANDS_LABEL_VEC): New.
3238         (ASM_OPERANDS_LABEL_LENGTH, ASM_OPERANDS_LABEL): New.
3239         (ASM_OPERANDS_SOURCE_LOCATION): Renumber.
3240         (extract_asm_operands): Declare.
3241         * stmt.c (expand_asm_operands): Add and use labels parameter.
3242         (check_unique_operand_names): Likewise.
3243         (resolve_asm_operand_names, resolve_operand_name_1): Likewise.
3244         (expand_asm_stmt): Handle asm labels.
3245         * tree-cfg.c (make_gimple_asm_edges): New.
3246         (make_edges): Use it.
3247         (cleanup_dead_labels): Handle asm labels.
3248         (is_ctrl_altering_stmt): Likewise.
3249         (gimple_redirect_edge_and_branch): Likewise.
3250         * tree.def (ASM_EXPR): Add 5th operand.
3251         * tree.h (ASM_LABELS): New.
3252         (resolve_asm_operand_names): Update decl.
3253
3254         * c-parser.c (c_parser_asm_statement): Parse asm goto.
3255         (c_parser_asm_goto_operands): New.
3256         * c-tree.h (build_asm_expr): Update decl.
3257         * c-typeck.c (build_asm_expr): Add and use labels parameter.
3258         * doc/extend.texi: Document asm goto.
3259
3260 2009-09-14  Richard Henderson  <rth@redhat.com>
3261
3262         * except.h: Update declarations.
3263         (struct pointer_map_t): Forward declare.
3264         (ERT_UNKNOWN, ERT_THROW, ERT_CATCH): Remove.
3265         (struct eh_landing_pad_d, eh_landing_pad): New.
3266         (struct eh_catch_d, eh_catch): New.
3267         (struct eh_region_d): Remove next_region_sharing_label, aka,
3268         label, tree_label, landing_pad, post_landing_pad, resume,
3269         may_contain_throw.  Rename region_number to index.  Remove
3270         u.eh_catch, u.eh_throw.  Rename u.eh_try.eh_catch to first_catch.
3271         Add u.must_not_throw, landing_pads, exc_ptr_reg, filter_reg.
3272         (VEC(eh_landing_pad,gc)): New.
3273         (struct eh_status): Remove last_region_number.  Add lp_array,
3274         throw_stmt_table, ttype_data, ehspec_data.
3275         (ehr_next, FOR_ALL_EH_REGION_AT): New.
3276         (FOR_ALL_EH_REGION_FN, FOR_ALL_EH_REGION): New.
3277         * except.c (lang_protect_cleanup_actions): Return tree.
3278         (struct ehl_map_entry): Remove.
3279         (init_eh_for_function): Push zero entries for region and lp_array.
3280         (gen_eh_region): Add to region_array immediately.
3281         (gen_eh_region_catch): Operate on eh_catch objects.
3282         (gen_eh_landing_pad): New.
3283         (get_eh_region_may_contain_throw, get_eh_region_tree_label): Remove.
3284         (get_eh_region_no_tree_label, set_eh_region_tree_label): Remove.
3285         (get_eh_region_from_number, get_eh_region_from_number_fn): New.
3286         (get_eh_landing_pad_from_number_fn): New.
3287         (get_eh_landing_pad_from_number): New.
3288         (get_eh_region_from_lp_number_fn): New.
3289         (get_eh_region_from_lp_number): New.
3290         (expand_resx_stmt, note_eh_region_may_contain_throw): Remove.
3291         (get_exception_pointer, get_exception_filter): Remove.
3292         (collect_eh_region_array, can_be_reached_by_runtime): Remove.
3293         (current_function_has_exception_handlers): Simplify.
3294         (bring_to_root, eh_region_replaceable_by_p): Remove.
3295         (replace_region, hash_type_list, hash_eh_region): Remove.
3296         (eh_regions_equal_p, merge_peers, remove_unreachable_regions): Remove.
3297         (label_to_region_map, num_eh_regions): Remove.
3298         (get_next_region_sharing_label, must_not_throw_labels): Remove.
3299         (find_exception_handler_labels): Remove.
3300         (duplicate_eh_regions_0, find_prev_try): Remove.
3301         (struct duplicate_eh_regions_data): New.
3302         (duplicate_eh_regions_1): Rewrite.
3303         (duplicate_eh_regions): Return a pointer map instead of an
3304         integer offset.
3305         (copy_eh_region_1, copy_eh_region, push_reachable_handler): Remove.
3306         (redirect_eh_edge_to_label): Remove.
3307         (eh_region_outermost): Rewrite using eh_region pointers
3308         instead of integers.
3309         (add_ttypes_entry): Update for ttype_data move to eh_status.
3310         (add_ehspec_entry): Rewrite with VEC instead of varray.
3311         (assign_filter_values): Likewise.  Export.
3312         (build_post_landing_pads, connect_post_landing_pads): Remove.
3313         (dw2_build_landing_pads): Rewrite to use lp_array.
3314         (struct sjlj_lp_info, sjlj_find_directly_reachable_regions): Remove.
3315         (sjlj_assign_call_site_values): Rewrite to use lp_array.
3316         (sjlj_emit_dispatch_table, sjlj_build_landing_pads): Likewise.
3317         (sjlj_mark_call_sites): Update for landing pad numbers.
3318         (finish_eh_generation): Rewrite.
3319         (gate_handle_eh): Do nothing for no eh tree.
3320         (pass_rtl_eh): Move up near finish_eh_generation.
3321         (remove_eh_landing_pad): New.
3322         (remove_eh_handler): Export.
3323         (remove_eh_region, remove_eh_handler_and_replace): Remove.
3324         (for_each_eh_label): Rewrite to use lp_array.
3325         (make_reg_eh_region_note): New.
3326         (make_reg_eh_region_note_nothrow_nononlocal): New.
3327         (insn_could_throw_p): New.
3328         (copy_reg_eh_region_note_forward): New.
3329         (copy_reg_eh_region_note_backward): New.
3330         (check_handled, add_reachable_handler): Remove.
3331         (reachable_next_level, foreach_reachable_handler): Remove.
3332         (arh_to_landing_pad, arh_to_label, reachable_handlers): Remove.
3333         (get_eh_region_and_lp_from_rtx): New.
3334         (get_eh_region_from_rtx): New.
3335         (can_throw_internal_1, can_throw_external_1): Remove.
3336         (can_throw_internal): Use get_eh_region_from_rtx.
3337         (can_throw_external): Use get_eh_region_and_lp_from_rtx.
3338         (insn_nothrow_p, can_nonlocal_goto): New.
3339         (expand_builtin_eh_common, expand_builtin_eh_pointer): New.
3340         (expand_builtin_eh_filter, expand_builtin_eh_copy_values): New.
3341         (add_action_record): Use VEC not varray.
3342         (collect_one_action_chain): Update for eh_region changes.
3343         (convert_to_eh_region_ranges): Make static.  Use VEC not varray.
3344         Use get_eh_region_and_lp_from_rtx.
3345         (gate_convert_to_eh_region_ranges): New.
3346         (pass_convert_to_eh_region_ranges): Use it.
3347         (push_uleb128, push_sleb128): Use VEC not varray.
3348         (output_one_function_exception_table): Likewise.
3349         (dump_eh_tree): Update for eh_region changes.
3350         (verify_eh_tree): Likewise.
3351         (verify_eh_region, default_init_unwind_resume_libfunc): Remove.
3352         * tree-eh.c: Include target.h.
3353         (add_stmt_to_eh_lp_fn): Rename from add_stmt_to_eh_region_fn.
3354         Don't disallow GIMPLE_RESX; adjust argument check.
3355         (add_stmt_to_eh_lp): Rename from add_stmt_to_eh_region.
3356         (record_stmt_eh_region): Update for landing pad numbers;
3357         generate a landing pad if necessary.
3358         (remove_stmt_from_eh_lp): Rename from remove_stmt_from_eh_region.
3359         (remove_stmt_from_eh_lp_fn): Similarly.
3360         (lookup_stmt_eh_lp_fn): Rename from lookup_stmt_eh_region_fn.
3361         Update for lp numbers; don't special case missing throw_stmt_table.
3362         (lookup_expr_eh_lp): Similarly.
3363         (lookup_stmt_eh_lp): Rename from lookup_stmt_eh_region.
3364         (eh_seq, eh_region_may_contain_throw): New.
3365         (struct leh_state): Add ehp_region.
3366         (struct leh_tf_state): Remove eh_label.
3367         (emit_post_landing_pad): New.
3368         (emit_resx, emit_eh_dispatch): New.
3369         (note_eh_region_may_contain_throw): New.
3370         (frob_into_branch_around): Take eh_region not eh label;
3371         emit eh code into eh_seq.
3372         (honor_protect_cleanup_actions): Early exit for no actions.  Don't
3373         handle EXC_PTR_EXPR, FILTER_EXPR.  Use gimple_build_eh_must_not_throw,
3374         lower_eh_must_not_throw.  Emit code to eh_seq.
3375         (lower_try_finally_nofallthru): Emit eh code to eh_seq.
3376         (lower_try_finally_onedest): Likewise.
3377         (lower_try_finally_copy): Likewise.
3378         (lower_try_finally_switch): Likewise.
3379         (lower_try_finally): Initialize ehp_region.
3380         (lower_catch): Update for eh_catch objects.
3381         (lower_eh_filter): Don't handle must_not_throw.
3382         (lower_eh_must_not_throw): New.
3383         (lower_cleanup): Don't set eh_label.
3384         (lower_eh_constructs_2): Resolve eh builtins.
3385         Handle GIMPLE_EH_MUST_NOT_THROW.
3386         (lower_eh_constructs): Initialize eh_region_may_contain_throw.
3387         Add eh_seq to the end of the function body.
3388         (make_eh_dispatch_edges): New.
3389         (make_eh_edge): Remove.
3390         (make_eh_edges): Simplify for landing pads.
3391         (redirect_eh_edge_1): New.
3392         (redirect_eh_edge): Use it.
3393         (redirect_eh_dispatch_edge): New.
3394         (stmt_could_throw_p): Use a switch.  Allow RESX.
3395         (stmt_can_throw_external): Use lookup_stmt_eh_lp.
3396         (stmt_can_throw_internal): Likewise.
3397         (maybe_clean_eh_stmt_fn, maybe_clean_eh_stmt): New.
3398         (maybe_clean_or_replace_eh_stmt): Update for landing pads.
3399         (maybe_duplicate_eh_stmt_fn, maybe_duplicate_eh_stmt): New.
3400         (gate_refactor_eh): New.
3401         (pass_refactor_eh): Use it.
3402         (lower_resx, execute_lower_resx, pass_lower_resx): New.
3403         (lower_eh_dispatch, execute_lower_eh_dispatch): New.
3404         (gate_lower_ehcontrol, pass_lower_eh_dispatch): New.
3405         (remove_unreachable_handlers): Rename from
3406         tree_remove_unreachable_handlers; rewrite for landing pads;
3407         call remove_eh_handler directly.
3408         (remove_unreachable_handlers_no_lp): New.
3409         (unsplit_eh, unsplit_all_eh): New.
3410         (tree_empty_eh_handler_p, all_phis_safe_to_merge): Remove.
3411         (cleanup_empty_eh_merge_phis, cleanup_empty_eh_move_lp): New.
3412         (cleanup_empty_eh_unsplit): New.
3413         (cleanup_empty_eh): Rewrite.
3414         (cleanup_all_empty_eh): New.
3415         (execute_cleanup_eh): Rename from cleanup_eh.  Remove unreachable
3416         handlers first.  Use unsplit_all_eh, cleanup_all_empty_eh.
3417         (gate_cleanup_eh): New.
3418         (pass_cleanup_eh): Use it.
3419         (verify_eh_edges): Move later in file.  Expect one EH edge.
3420         (verify_eh_dispatch_edge): New.
3421
3422         * Makefile.in (FUNCTION_H): Use vecprim.h, not varray.h.
3423         (gtype-desc.o): Add TARGET_H.
3424         (tree.o): Use EXCEPT_H, not except.h.
3425         (cfgbuild.o): Add EXPR_H.
3426         (GTFILES): Add vecprim.h.
3427         * builtins.c (expand_builtin): Handle BUILT_IN_EH_POINTER,
3428         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES.
3429         * builtins.def (BUILT_IN_UNWIND_RESUME, BUILT_IN_EH_POINTER,
3430         BUILT_IN_EH_FILTER, BUILT_IN_EH_COPY_VALUES): New.
3431         * calls.c (emit_call_1): Use make_reg_eh_region_note.
3432         * cfgbuild.c (control_flow_insn_p): Use can_nonlocal_goto; tidy
3433         calls to can_throw_internal.
3434         (rtl_make_eh_edge): Use get_eh_landing_pad_from_rtx.
3435         (make_edges): Don't handle RESX; use can_nonlocal_goto.
3436         * cfgexpand.c (expand_gimple_stmt_1): Don't handle RESX.
3437         (expand_gimple_stmt): Use make_reg_eh_region_note.
3438         (expand_debug_expr): Don't handle EXC_PTR_EXPR and FILTER_EXPR.
3439         (gimple_expand_cfg): Don't call convert_from_eh_region_ranges,
3440         or find_exception_handler_labels.
3441         * cfgrtl.c (rtl_verify_flow_info_1): Don't handle RESX.  Assert
3442         there is exacly one EH edge.  Use can_nonlocal_goto and
3443         can_throw_internal.
3444         * cgraphunit.c (update_call_expr): Use maybe_clean_eh_stmt_fn.
3445         (cgraph_materialize_all_clones): Use maybe_clean_or_replace_eh_stmt.
3446         * combine.c (can_combine_p, try_combine): Use insn_nothrow_p.
3447         * cse.c (count_reg_usage, insn_live_p): Use insn_could_throw_p.
3448         * dce.c (deletable_insn_p_1): Don't test may_trap_p.
3449         (deletable_insn_p): Use insn_nothrow_p; reorder nonjump insn test.
3450         * dse.c (scan_insn): Use insn_could_throw_p.
3451         * emit-rtl.c (try_split): Use copy_reg_eh_region_note_backward.
3452         * expr.c (expand_expr_real): Use make_reg_eh_region_note.
3453         (expand_expr_real_1): Don't handle RESX, EXC_PTR, or FILTER_EXPR.
3454         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't handle
3455         EXC_PTR_EXPR or FILTER_EXPR.
3456         (tree_expr_nonzero_warnv_p): Likewise.
3457         * function.h: Include vecprim.h, not varray.h
3458         (struct rtl_eh): Remove filter, exc_ptr, built_landing_pad members;
3459         move ttype_data and ehspec_data members to struct eh_status; change
3460         action_record_data member to a VEC.
3461         * gcse.c (hash_scan_set): Use can_throw_internal.
3462         * gengtype.c (open_base_files): Add target.h to gtype-desc.c.
3463         * gimple-iterator.c (gsi_replace): Use maybe_clean_or_replace_eh_stmt.
3464         * gimple-low.c (lower_stmt): Handle GIMPLE_EH_MUST_NOT_THROW.
3465         (block_may_fallthru): Don't handle RESX_EXPR.
3466         * gimple-pretty-print.c (dump_gimple_label): Dump EH_LANDING_PAD_NR.
3467         (dump_gimple_eh_must_not_throw, dump_gimple_eh_dispatch): New.
3468         (dump_gimple_stmt): Dump landing pad information with TDF_EH;
3469         handle GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH.
3470         * gimple.c (gss_for_code): Handle GIMPLE_EH_MUST_NOT_THROW,
3471         GIMPLE_EH_DISPATCH, GIMPLE_RESX.
3472         (gimple_size): Likewise.
3473         (gimple_build_eh_dispatch, gimple_build_eh_must_not_throw): New.
3474         (gimple_build_resx): Use gimple_build_with_ops.
3475         (DEFTREECODE): Don't handle EXC_PTR_EXPR, FILTER_EXPR.
3476         (is_gimple_val): Likewise.
3477         (is_gimple_stmt): Remove RESX_EXPR.
3478         * gimple.def (GIMPLE_EH_MUST_NOT_THROW, GIMPLE_EH_DISPATCH): New.
3479         (GIMPLE_RESX): Reorder with other EH constructs.
3480         * gimple.h (struct gimple_statement_eh_mnt): New.
3481         (struct gimple_statement_eh_ctrl): Rename from gimple_statement_resx.
3482         (gimple_eh_filter_must_not_throw): Remove.
3483         (gimple_eh_filter_set_must_not_throw): Remove.
3484         (gimple_eh_must_not_throw_fndecl): New.
3485         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region): New.
3486         (is_gimple_resx): New.
3487         * gimplify.c (gimplify_expr): Don't handle EXC_PTR_EXPR, RESX_EXPR.
3488         Don't copy EH_FILTER_MUST_NOT_THROW.
3489         * gsstruct.def (GSS_EH_MNT, GSS_EHCONTROL): New.
3490         * ipa-inline.c (estimate_function_body_sizes): Don't try to
3491         handle must_not_throw_labels specially.
3492         * ipa-pure-const.c (check_call): Update debug statement for LP.
3493         * ipa-type-escape.c (check_operand): Don't handle EXC_PTR or FILTER.
3494         * ipa-utils.c (get_base_var): Likewise.
3495         * libfunc.h (LTI_unwind_resume, unwind_resume_libfunc): Remove.
3496         * lower-subreg.c (move_eh_region_note): Remove.
3497         (resolve_simple_move): Use copy_reg_eh_region_note_forward.
3498         * omp-low.c (new_omp_context): Update for eh_lp_nr.
3499         (create_task_copyfn): Likewise.
3500         (maybe_catch_exception): Use gimple_build_eh_filter.
3501         * optabs.c (emit_libcall_block): Update test for no-nonlocal-goto
3502         REG_EH_REGION.  Use make_reg_eh_region_note_nothrow_nononlocal.
3503         * passes.c (init_optimization_passes): Add pass_lower_eh_dispatch
3504         and pass_lower_resx.
3505         * print-tree.c (print_node): Dump EH_LANDING_PAD_NR.
3506         * recog.c (peephole2_optimize): Use copy_reg_eh_region_note_backward,
3507         can_throw_internal, can_nonlocal_goto.
3508         * reload1.c (fixup_eh_region_note): Use insn_could_throw_p,
3509         copy_reg_eh_region_note_forward.
3510         (emit_input_reload_insns): Use copy_reg_eh_region_note_forward.
3511         (emit_output_reload_insns): Likewise.
3512         (copy_eh_notes): Remove.
3513         * rtl.def (RESX): Remove.
3514         * rtl.h: Update declarations.
3515         * sese.c (graphite_copy_stmts_from_block): Use maybe_duplicate_eh_stmt.
3516         * tree-cfg.c (make_edges): Handle GIMPLE_EH_DISPATCH.
3517         (update_eh_label): Remove.
3518         (cleanup_dead_labels_eh): New.
3519         (cleanup_deal_labels): Use it instead of update_eh_label.
3520         (gimple_merge_blocks): Update landing pad data structure when
3521         removing a landing pad label.
3522         (remove_useless_stmts_tc): Remove gimple_eh_filter_must_not_throw
3523         test; handle GIMPLE_EH_MUST_NOT_THROW.
3524         (is_ctrl_altering_stmt): Handle GIMPLE_EH_DISPATCH.
3525         (verify_gimple_assign_single): Don't handle EXC_PTR or FILTER_EXPR.
3526         (verify_types_in_gimple_stmt): Handle GIMPLE_EH_DISPATCH.
3527         (verify_stmt): Likewise.  Verify landing pads.
3528         (gimple_redirect_edge_and_branch): Handle GIMPLE_EH_DISPATCH.
3529         (gimple_duplicate_bb): Use maybe_duplicate_eh_stmt.
3530         (struct move_stmt_d): Add eh_map.
3531         (move_stmt_eh_region_nr, move_stmt_eh_region_tree_nr): New.
3532         (move_stmt_r): Remap eh region numbers in builtin calls,
3533         resx and eh_dispatch.
3534         (move_block_to_fn): Remove eh_offset parameter.  Use
3535         maybe_duplicate_eh_stmt_fn.
3536         (find_outermost_region_in_block): Operate on eh_region pointers
3537         instead of region numbers.
3538         (move_sese_region_to_fn): Expect eh_map instead of eh_offset from
3539         duplicate_eh_regions.
3540         * tree-cfgcleanup.c (tree_forwarder_block_p): Move entry block edge
3541         test earlier.  Disallow EH landing pads.
3542         * tree-cfa.c (create_tree_common_ann): Don't set ann->rn.
3543         * tree-flow.h: Update declarations.
3544         (struct tree_ann_common_d): Replace rn with lp_nr.
3545         * tree-inline.c (copy_tree_body_r): Don't handle RESX_EXPR.
3546         (remap_eh_region_nr, remap_eh_region_tree_nr): New.
3547         (remap_gimple_stmt): Remap eh region numbers in builtin calls,
3548         resx and eh_dispatch.
3549         (copy_bb): Use maybe_duplicate_eh_stmt_fn.
3550         (copy_edges_for_bb): Use make_eh_dispatch_edges.
3551         (copy_cfg_body): Expect eh_map instead of eh_region_offset
3552         from duplicate_eh_regions.
3553         (estimate_num_insns): Don't handle EXC_PTR_EXPR or FILTER_EXPR;
3554         update RESX; handle EH_DISPATCH.
3555         (expand_call_inline): Set eh_lp_nr, not eh_region.
3556         (maybe_inline_call_in_expr): Likewise.
3557         * tree-inline.h (struct copy_body_data): Replace eh_region with
3558         eh_lp_nr, eh_region_offset with eh_map.
3559         * tree-optimize.c (execute_fixup_cfg): Use maybe_clean_eh_stmt.
3560         * tree-pass.h (pass_lower_eh_dispatch, pass_lower_resx): New.
3561         * tree-pretty-print.c (dump_generic_node): Don't handle
3562         EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR.
3563         * tree-sra.c (scan_function): Use maybe_clean_eh_stmt.
3564         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Don't handle
3565         EXC_PTR_EXPR, FILTER_EXPR.
3566         * tree-ssa-operands.c (get_expr_operands): Likewise.
3567         * tree-ssa-propagate.c (valid_gimple_rhs_p): Likewise.
3568         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3569         (ao_ref_init_from_vn_reference): Likewise.
3570         * tree-ssa-sink.c (statement_sink_location): Likewise.
3571         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3572         (mark_virtual_phi_result_for_renaming): Export.  Tidy.
3573         * tree-ssa-pre.c (get_or_alloc_expr_for): Don't handle
3574         EXC_PTR_EXPR, FILTER_EXPR.
3575         (is_exception_related): Remove.
3576         (compute_avail): Don't call it.
3577         * tree-ssa-structalias.c: Remove VEC definitions for int and unsigned.
3578         * tree.c (find_decls_types_in_eh_region): Update for eh_region changes.
3579         (find_decls_types_in_node): Use FOR_ALL_EH_REGION_FN.
3580         (build_common_builtin_nodes): Add enable_cxa_end_cleanup parameter.
3581         Build EH builtins.
3582         (build_resx): Remove.
3583         * tree.def (EXC_PTR_EXPR, FILTER_EXPR, RESX_EXPR): Remove.
3584         * tree.h: Update declarations.
3585         (EH_FILTER_MUST_NOT_THROW): Remove.
3586         (struct tree_label_decl): Add eh_landing_pad_nr.
3587         (EH_LANDING_PAD_NR): New.
3588         * value-prof.c (gimple_ic): Tidy variable names.  Update for
3589         landing pad numbers.
3590         (gimple_stringop_fixed_value): Tidy variable names.  Assert
3591         that neither call stmt can throw.
3592         * vecprim.h (uchar): New.
3593         (VEC(uchar,heap), VEC(uchar,gc)): New.
3594
3595         * c-common.c (c_define_builtins): Update call to
3596         build_common_builtin_nodes.
3597         * c-parser.c (c_parse_file): Don't call
3598         default_init_unwind_resume_libfunc.
3599
3600 2009-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
3601
3602         * config/mips/mips-protos.h (mips_cfun_has_cprestore_slot_p): Declare.
3603         (mips_cprestore_address_p): Likewise.
3604         (mips_save_gp_to_cprestore_slot): Likewise.
3605         (mips_restore_gp): Rename to...
3606         (mips_restore_gp_from_cprestore_slot): ...this.
3607         (mips_must_initialize_gp_p): Declare.
3608         (mips_emit_save_slot_move): Likewise.
3609         (mips_output_load_label): Return nothing.
3610         (mips_eh_uses): Declare.
3611         * config/mips/mips.h (TARGET_SPLIT_CALLS): Require epilogue_completed.
3612         (TARGET_CPRESTORE_DIRECTIVE): New macro.
3613         (TARGET_ABSOLUTE_JUMPS): Likewise.
3614         (EH_USES): Likewise.
3615         (FIRST_PSEUDO_REGISTER): Update comment.
3616         (MIPS_ABSOLUTE_JUMP): New macro, extracted from...
3617         (MIPS_CALL): ...here.
3618         (REGISTER_NAMES): Add $cprestore.
3619         * config/mips/mips.c (machine_function): Remove has_gp_insn_p.
3620         Add load_label_length, has_inflexible_gp_insn_p,
3621         has_flexible_gp_insn_p, must_initialize_gp_p and
3622         must_restore_gp_when_clobbered_p.
3623         (mips_expand_call): Don't generate split instructions here.
3624         (mips_split_call): Update the call to mips_restore_gp after
3625         the above name change.
3626         (mips16_cfun_returns_in_fpr_p): Move earlier in file.
3627         (mips_find_gp_ref): New function.
3628         (mips_insn_has_inflexible_gp_ref_p): Likewise.
3629         (mips_cfun_has_inflexible_gp_ref_p): Likewise.
3630         (mips_insn_has_flexible_gp_ref_p): Likewise.
3631         (mips_cfun_has_flexible_gp_ref_p): Likewise.
3632         (mips_function_has_gp_insn): Delete.
3633         (mips_global_pointer): Drop the df_regs_ever_live_p check.
3634         Use the new functions above.  Only return INVALID_REGNUM
3635         for TARGET_ABSOLUTE_JUMPS.
3636         (mips_must_initialize_gp_p): New function.
3637         (mips_get_cprestore_base_and_offset): New function, extracted from...
3638         (mips_cprestore_slot): ...here.  Take a bool parameter.
3639         (mips_cfun_has_cprestore_slot_p): New function.
3640         (mips_cprestore_address_p): Likewise.
3641         (mips_save_gp_to_cprestore_slot): Likewise.
3642         (mips_restore_gp): Rename to...
3643         (mips_restore_gp_from_cprestore_slot): ...this.  Assert
3644         epilogue_completed.  Update the call to mips_cprestore_slot.
3645         Test cfun->machine->must_restore_gp_when_clobbered_p.
3646         (mips_direct_save_slot_move_p): New function.
3647         (mips_emit_save_slot_move): Likewise.
3648         (mips_output_cplocal): Test mips_must_initialize_gp_p () instead
3649         of cfun->machine->global_pointer.
3650         (mips_output_function_prologue): Check mips_must_initialize_gp_p ().
3651         (mips_save_reg): Use mips_emit_save_slot_move.
3652         (mips_expand_prologue): Set must_initialize_gp_p.
3653         Use mips_cfun_has_cprestore_slot_p.  Use gen_potential_cprestore
3654         for all cprestore saves.  Emit a use_cprestore instruction after
3655         setting up the cprestore slot.
3656         (mips_restore_reg): Use mips_emit_save_slot_move.
3657         (mips_process_load_label): New function.
3658         (mips_load_label_length): Likewise.
3659         (mips_output_load_label): Don't return asm: output it here instead.
3660         Use mips_process_load_label.
3661         (mips_adjust_insn_length): Adjust the length of branch instructions
3662         that have length MAX_PIC_BRANCH_LENGTH.
3663         (mips_output_conditional_branch): Update the call to
3664         mips_output_load_label.  Assume the branch target is OPERANDS[0]
3665         rather than OPERANDS[1].  Use MIPS_ABSOLUTE_JUMP for absolute jumps.
3666         (mips_output_order_conditional_branch): Swap the meaning of
3667         OPERANDS[0] and OPERANDS[1].
3668         (mips_variable_issue): Don't count ghost instructions.
3669         (mips_expand_ghost_gp_insns): New function.
3670         (mips_reorg): Rerun mips_reorg_process_insns if it returns true.
3671         (mips_output_mi_thunk): Set must_initialize_gp_p.
3672         (mips_eh_uses): New function.
3673         * config/mips/predicates.md (cprestore_save_slot_operand)
3674         (cprestore_load_slot_operand): New predicates.
3675         * config/mips/mips.md (UNSPEC_POTENTIAL_CPRESTORE): New unspec.
3676         (UNSPEC_MOVE_GP): Likewise.
3677         (UNSPEC_CPRESTORE, UNSPEC_RESTORE_GP, UNSPEC_EH_RETURN)
3678         (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT): Bump to make room.
3679         (CPRESTORE_SLOT_REGNUM): New register.
3680         (MAX_PIC_BRANCH_LENGTH): New constant.
3681         (jal_macro): Use MIPS_ABSOLUTE_JUMPS.
3682         (length): Use MAX_PIC_BRANCH_LENGTH as a placeholder for PIC long
3683         branches.  Fix commentary.
3684         (loadgp_newabi_<mode>): Change from unspec_volatile to unspec.
3685         Only split if mips_must_initialize_gp_p; expand to nothing otherwise.
3686         Change type to "ghost".
3687         (loadgp_absolute_<mode>): Likewise.
3688         (loadgp_rtp_<mode>): Likewise.
3689         (copygp_mips16): Likewise.
3690         (loadgp_blockage): Remove redundant mode attribute.
3691         (potential_cprestore): New instruction.
3692         (cprestore): Turn into an unspec set.
3693         (use_cprestore): New instruction.
3694         (*branch_fp): Swap operands 0 and 1.  Remove redundant mode attribute.
3695         (*branch_fp_inverted): Likewise.
3696         (*branch_order<mode>): Likewise.
3697         (*branch_order<mode>_inverted): Likewise.
3698         (*branch_equality<mode>): Likewise.
3699         (*branch_equality<mode>_inverted): Likewise.
3700         (*branch_bit<bbv><mode>): Likewise.
3701         (*branch_bit<bbv><mode>_inverted): Likewise.
3702         (*branch_equality<mode>_mips16): Remove redundant mode.
3703         (jump): Turn into a define_expand.
3704         (*jump_absolute): New instruction.
3705         (*jump_pic): Likewise.
3706         (*jump_mips16): Rename previously-unnamed pattern.  Remove
3707         redundant mode attribute.
3708         (restore_gp): Split on epilogue_completed rather than
3709         reload_completed.  Change type to "ghost".
3710         (move_gp<mode>): New instruction.
3711         * config/mips/mips-dsp.md (mips_bposge): Swap operands 0 and 1.
3712         Remove redundant mode attribute.
3713         * config/mips/mips-ps-3d.md (bc1any4t): Likewise.
3714         (bc1any4f, bc1any2t, bc1any2f): Likewise.
3715         (*branch_upper_lower, *branch_upper_lower_inverted): Likewise.
3716
3717 2009-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3718
3719         PR target/41210
3720         * config/rs6000/rs6000.c (rs6000_function_value): V2DF and V2DI
3721         are returned in the same register (vs34 or v2) that Altivec vector
3722         types are returned in.
3723         (rs6000_libcall_value): Ditto.
3724
3725         PR target/41331
3726         * config/rs6000/rs6000.c (rs6000_emit_move): Use gen_add3_insn
3727         instead of explicit addsi3/adddi3 calls.
3728         (rs6000_split_multireg_move): Ditto.
3729         (rs6000_emit_allocate_stack): Ditto.
3730         (rs6000_emit_prologue): Ditto.
3731         (rs6000_output_mi_thunk): Ditto.
3732
3733         * config/rs6000/rs6000.md (bswapdi*): Don't assume the pointer
3734         size is 64 bits if we can use 64-bit registers.
3735
3736 2009-09-14  Bernd Schmidt  <bernd.schmidt@analog.com>
3737
3738         * config/bfin/bfin.c (bfin_longcall_p): Don't use short calls for weak
3739         symbols.
3740
3741         From Jie Zhang <jie.zhang@analog.com>:
3742         * config/bfin/bfin.c (bfin_expand_prologue): Ask do_link to
3743         save FP and RETS with saveall attribute.
3744         (bfin_expand_epilogue): Ask do_unlink to restore FP and RETS
3745         with saveall attribute.
3746
3747         * config/bfin/bfin.c (bfin_expand_builtin,
3748         case BFIN_BUILTIN_MULT_1X32X32): Force constants to registers for the
3749         operands.
3750
3751         From Jie Zhang <jie.zhang@analog.com>:
3752         * config/bfin/bfin.c (bfin_expand_builtin): Initialize icodes
3753         before use in two places.
3754         * config/bfin/bfin.md (AREG): Define mode iterator.
3755         (reload_in, reload_out): Use mode iterator AREG.
3756
3757 2009-09-14  Richard Guenther  <rguenther@suse.de>
3758
3759         PR middle-end/41350
3760         * dwarf2out.c (dwarf2out_begin_prologue): Adjust non-CFI asm
3761         EH personality path.
3762
3763 2009-09-13  Richard Guenther  <rguenther@suse.de>
3764             Rafael Avila de Espindola  <espindola@google.com>
3765
3766         * langhooks-def.h (LANG_HOOKS_EH_RUNTIME_TYPE): Define.
3767         (LANG_HOOKS_EH_PERSONALITY): Likewise.
3768         (LANG_HOOKS_INITIALIZER): Adjust.
3769         (lhd_pass_through_t): Declare.
3770         * langhooks.h (struct lang_hooks): Add eh_runtime_type and
3771         eh_personality.
3772         * langhooks.c (lhd_pass_through_t): New function.
3773         * dwarf2out.c (output_call_frame_info, dwarf2out_do_cfi_startproc,
3774         dwarf2out_begin_prologue): Use personality from current_function_decl.
3775         * expr.h (get_personality_function): Declare.
3776         * expr.c (get_personality_function): New function.
3777         (build_personality_function): Likewise.
3778         * libfuncs.h (libfunc_index): Remove LTI_eh_personality.
3779         (eh_personality_libfunc): Remove.
3780         * optabs.c (build_libfunc_function): New function split out from ...
3781         (init_one_libfunc): ... here.
3782         * tree.h (DECL_FUNCTION_PERSONALITY): New.
3783         (tree_function_decl): Add personality.
3784         (lhd_gcc_personality): Declare.
3785         (build_personality_function): Likewise.
3786         * tree.c (gcc_eh_personality_decl): New.
3787         (lhd_gcc_personality): New function.
3788         * except.h (lang_eh_runtime_type): Remove.
3789         (enum eh_personality_kind): New.
3790         (build_personality_function): Declare.
3791         (function_needs_eh_personality): Declare.
3792         * except.c (lang_eh_runtime_type): Remove.
3793         (function_needs_eh_personality): New function.
3794         (add_type_for_runtime): Call lang_hooks.type_for_runtime instead.
3795         (sjlj_emit_function_enter, output_function_exception_table):
3796         Use personality from current_function_decl.
3797         * tree-eh.c (lower_eh_constructs): Set DECL_FUNCTION_PERSONALITY.
3798         * tree-inline.c (tree_can_inline_p): Do not inline across different
3799         EH personalities.
3800         (expand_call_inline): Likewise.  Adjust the callers EH personality.
3801         (tree_function_versioning): Copy DECL_FUNCTION_PERSONALITY.
3802         * cgraph.c (cgraph_add_new_function): Set DECL_FUNCTION_PERSONALITY.
3803         * Makefile.in (cgraph.o): Add $(EXCEPT_H) dependency.
3804         (c-parser.o): Likewise
3805         * c-tree.h (c_eh_initialized_p): Remove.
3806         (c_maybe_initialize_eh): Likewise.
3807         * c-decl.c (finish_decl): Don't call c_maybe_initialize_eh.
3808         (finish_decl): Don't call c_maybe_initialize_eh.
3809         (c_eh_initialized_p): Remove.
3810         (c_maybe_initialize_eh): Likewise.
3811         * c-parser.c (c_parser_omp_construct): Likewise.
3812         (c_parse_file): Initialize exception handling.
3813
3814 2009-09-13  Kai Tietz  <kai.tietz@onevision.com>
3815
3816         * config.gcc (tm_file): Remove i386/biarch32.h
3817         for i?86-w64-mingw* case.
3818         (i?86-*-mingw* andx86_64-*-mingw*): Add multilib
3819         support.
3820         * config.host: Set for x64 mingw the option
3821         use_long_long_for_widest_fast_int to yes.
3822
3823 2009-09-13  Eric Botcazou  <ebotcazou@adacore.com>
3824
3825         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
3826         * dbxout.c (dbxout_function_end): Do not test DECL_IGNORED_P.
3827         (dbxout_begin_function): Likewise.
3828         * final.c (dwarf2_debug_info_emitted_p): New predicate.
3829         (final_start_function): Do not emit debug info if DECL_IGNORED_P is
3830         set on the function.
3831         (final_end_function): Likewise.
3832         (final_scan_insn): Likewise.
3833         (rest_of_handle_final): Likewise.
3834         * varasm.c (assemble_start_function): Likewise.
3835         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
3836
3837 2009-09-12  Jason Merrill  <jason@redhat.com>
3838
3839         * dbgcnt.c (dbg_cnt_process_single_pair): constify.
3840         * opts.c (common_handle_option): constify.
3841
3842 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
3843
3844         * doc/install.texi (avr): Remove obsolete reference site.
3845
3846 2009-09-12  Gerald Pfeifer  <gerald@pfeifer.com>
3847
3848         * doc/install.texi (Binaries): Adjust AIX link.
3849
3850 2009-09-12  Akim Demaille  <demaille@gostai.com>
3851
3852         * doc/invoke.texi (-fstrict-aliasing): Correct two examples.
3853         Use an imperative sentence.
3854
3855 2009-09-11  Richard Henderson  <rth@redhat.com>
3856
3857         * gsstruct.def (DEFGSSTRUCT): Remove printable-name argument; add
3858         structure-name and has-tree-operands arguments; update all entries.
3859         * gimple.def (DEFGSCODE): Replace 3rd argument with GSS_symbol;
3860         update all entries.
3861         * gimple.c (gimple_ops_offset_): Use HAS_TREE_OP argument.
3862         (gsstruct_code_size): New.
3863         (gss_for_code_): New.
3864         (gss_for_code): Remove.
3865         (gimple_size): Rewrite using gsstruct_code_size.
3866         (gimple_statement_structure): Move to gimple.h.
3867         * gimple.h (gimple_ops_offset_, gss_for_code_): Declare.
3868         (gss_for_code, gimple_statement_structure): New.
3869         (gimple_ops): Use new arrays; tidy.
3870
3871 2009-09-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3872
3873         * config/pa/predicates.md (symbolic_operand): Require a CONST symbolic
3874         operand to be a PLUS expression.
3875         * config/pa/pa.c (pa_secondary_reload): Likewise.
3876
3877 2009-09-11  Jakub Jelinek  <jakub@redhat.com>
3878
3879         * combine.c (propagate_for_debug_subst): Call wrap_constant on top.
3880
3881         * print-rtl.c (print_rtx): Use JUMP_LABEL (in_rtx) instead of
3882         XEXP (in_rtx, 8).
3883
3884 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3885
3886         From Jie Zhang <jie.zhang@analog.com>:
3887         * doc/extend.texi (node Function Attributes): Document l2
3888         function attribute.
3889         (node Blackfin Variable Attributes): Document l2 variable attributes.
3890
3891 2009-09-11  Loren J. Rittle  <ljrittle@acm.org>
3892
3893         * config.gcc (*-*-freebsd*): Enable default_use_cxa_atexit
3894         to match the system compiler's configuration at inflection point.
3895         Add comment to remark a remaining difference with system compiler.
3896
3897         * configure.ac (*-*-freebsd*): Enable check for __stack_chk_fail.
3898         * configure: Regenerate.
3899
3900 2009-09-11  Bernd Schmidt  <bernd.schmidt@analog.com>
3901
3902         From Jie Zhang <jie.zhang@analog.com>:
3903         * config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
3904         (bfin_handle_l2_attribute): New.
3905         (bfin_attribute_table): Add l2 attribute.
3906
3907 2009-09-11  Michael Matz  <matz@suse.de>
3908
3909         PR middle-end/41275
3910         * tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
3911         on the local_decls list.
3912
3913 2009-09-11  Alexandre Oliva  <aoliva@redhat.com>
3914
3915         PR debug/41276
3916         PR debug/41307
3917         * cselib.c (cselib_expand_value_rtx_cb): Document callback
3918         interface.
3919         (cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
3920         for VALUEs, to implement the documented interface.
3921         * var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
3922         Adjust for VALUEs and anything else, to implement the
3923         documented interface.
3924
3925 2009-09-10  Nathan Froyd  <froydnj@codesourcery.com>
3926
3927         * config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
3928         with actual SPE/paired vector modes before using 64-bit alignment.
3929         Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.
3930
3931 2009-09-10  DJ Delorie  <dj@redhat.com>
3932
3933         * config/mep/mep.md (eh_epilogue): Defer until after epilogue is
3934         emitted.
3935
3936         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
3937         * config/mep/mep.c (mep_legitimate_constant_p): New.
3938         * config/mep/mep-protos.h: Prototype it.
3939
3940 2009-09-10  Richard Henderson  <rth@redhat.com>
3941
3942         * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
3943
3944 2009-09-10  Jason Merrill  <jason@redhat.com>
3945
3946         * tree.c (chain_index): New fn.
3947         * tree.h: Declare it.
3948
3949 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3950
3951         * config/sol2-c.c (cmn_err_length_specs): Initialize
3952         scalar_identity_flag.
3953
3954 2009-09-10  Richard Henderson  <rth@redhat.com>
3955
3956         * tree.h (struct tree_decl_common): Move align member earlier;
3957         move label_decl_uid member ...
3958         (struct tree_label_decl): ... here.
3959         (LABEL_DECL_UID): Update to match.
3960
3961         * tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
3962         not TDF_DETAILS.
3963
3964         * tree-cfg.c (gimple_redirect_edge_and_branch): Do
3965         gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
3966
3967         * tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
3968         dest_prev if the edge is complex.
3969
3970         * tree-cfg.c (is_ctrl_stmt): Use a switch.
3971
3972         * tree-cfg.c (gimple_can_merge_blocks_p): Move label and
3973         loop latch tests earlier.
3974
3975         * gimple-iterator.c (gimple_find_edge_insert_loc): Insert
3976         before GIMPLE_RETURN, not after its predecessor; insert
3977         before GIMPLE_RESX.
3978
3979         * gimple-iterator.c (gimple_find_edge_insert_loc): Use
3980         gimple_seq_empty_p to test for no PHI nodes.
3981         * tree-cfg.c (split_critical_edges): Likewise.
3982
3983         * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
3984
3985 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
3986
3987         * final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
3988         introduced by the VTA branch merge.
3989
3990 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
3991
3992         * ira-conflicts.c: Use fputs or putc instead of fprintf
3993         where appropriate.
3994         * cfg.c: Ditto.
3995         * toplev.c: Ditto.
3996         * tree-switch-conversion.c: Ditto.
3997
3998 2009-09-10  Hariharan Sandanagobalane  <hariharan@picochip.com>
3999
4000         * config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
4001         introduced by the VTA branch merge.
4002
4003 2009-09-10  Uros Bizjak  <ubizjak@gmail.com>
4004
4005         Revert:
4006         2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
4007
4008         PR rtl-optimization/39779
4009         * expr.c (convert_modes): Return when mode == oldmode after
4010         CONST_INTs are processed.
4011
4012 2009-09-10  Nick Clifton  <nickc@redhat.com>
4013
4014         * config/mep/mep.c (mep_encode_section_info): Copy weakness
4015         attribute and referring decl when creating renamed symbol.
4016
4017 2009-09-10  Richard Guenther  <rguenther@suse.de>
4018
4019         PR middle-end/41257
4020         * cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
4021         reachable nodes.
4022         (cgraph_finalize_compilation_unit): Compute reachability
4023         before emitting thunks.  Properly process aliases before
4024         possibly removing unreachable nodes.
4025
4026 2009-09-10  Richard Guenther  <rguenther@suse.de>
4027
4028         PR middle-end/41254
4029         * tree.c (struct free_lang_data_d): Add worklist member.
4030         (find_decls_types_r): Push onto the worklist instead of recursing.
4031         Handle TREE_BINFOs properly.
4032         (find_decls_types): New function wrapped around find_decls_types_r
4033         to process the worklist.
4034         (find_decls_types_in_eh_region): Use it.
4035         (find_decls_types_in_node): Likewise.
4036         (find_decls_types_in_var): Likewise.
4037         (free_lang_data_in_cgraph): Likewise.  Free the worklist.
4038         * tree.h (RECORD_OR_UNION_TYPE_P): New.
4039         (AGGREGATE_TYPE_P): Adjust.
4040
4041 2009-09-09  Jason Merrill  <jason@redhat.com>
4042
4043         * configure.ac: Check glibc version even if we have an in-tree
4044         assembler.
4045
4046 2009-09-09  Anthony Green  <green@moxielogic.com>
4047
4048         * config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
4049         the constant 0 when appropriate.
4050         * config/moxie/constraints.md: Add constraint O.
4051
4052         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
4053         to pass up to 6 32-bit argument values in registers.
4054         (moxie_function_arg): Ditto.
4055         (moxie_arg_partial_bytes): Ditto.
4056         * config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
4057         (REG_PARM_STACK_SPACE): Ditto.
4058         (FUNCTION_ARG_REGNO_P): Ditto.
4059
4060         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
4061         instruction to allocate stack space.
4062
4063 2009-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
4064
4065         * config/rs6000/rs6000.md (bswapdi2_64bit): Fix
4066         unnecessarily stringent constraints.  Fix address
4067         calculation in the splitters.
4068
4069 2009-09-09  Uros Bizjak  <ubizjak@gmail.com>
4070
4071         PR rtl-optimization/39779
4072         * expr.c (convert_modes): Return when mode == oldmode after
4073         CONST_INTs are processed.
4074
4075 2009-09-09  Kai Tietz  <kai.tietz@onevision.com>
4076
4077         PR/41315
4078         * config/i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
4079         (ix86_expand_prologue): Take frame.padding0 into logic of
4080         to_allocate checks.
4081         (ix86_expand_epilogue): Likewise.
4082
4083 2009-09-09  Jakub Jelinek  <jakub@redhat.com>
4084
4085         * config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
4086         New variables.
4087         (SHLIB_LINK, SHLIB_INSTALL): Use them.
4088         * config/t-slibgcc-libgcc: New file.
4089         * config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.
4090
4091 2009-09-09  Martin Jambor  <mjambor@suse.cz>
4092
4093         PR tree-optimization/41089
4094         * tree-sra.c (find_var_candidates): Do not consider va_lists in
4095         early SRA.
4096
4097 2009-09-09  Richard Henderson  <rth@redhat.com>
4098
4099         * gimple.h (CASE_GIMPLE_OMP): New.
4100         (is_gimple_omp): Use it.
4101         * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
4102         (verify_gimple_debug): Likewise.
4103
4104 2009-09-09  Richard Guenther  <rguenther@suse.de>
4105
4106         PR tree-optimization/41101
4107         * tree-ssa-pre.c (maximal_set): Remove.
4108         (compute_antic_aux): Treat the maximal set as implicitly all ones.
4109         Defer all blocks we didn't visit at least one successor.
4110         (add_to_exp_gen): Do not add to the maximal set.
4111         (make_values_for_phi): Likewise.
4112         (compute_avail): Likewise.
4113         (init_pre): Do not allocate the maximal set.
4114         (execute_pre): Do not dump it.
4115
4116 2009-09-09  Martin Jambor  <mjambor@suse.cz>
4117
4118         * tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
4119         an SSA_NAME rather than a is_gimple_variable.
4120
4121 2009-09-09  Richard Guenther  <rguenther@suse.de>
4122
4123         PR middle-end/41317
4124         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
4125         code dealing with plain pointer bases.
4126         (maybe_fold_offset_to_reference): Likewise.
4127         (maybe_fold_stmt_addition): Adjust.
4128
4129 2009-09-09  Richard Guenther  <rguenther@suse.de>
4130
4131         * tree.c (free_lang_data_in_type): Do not free the type variant
4132         chains.
4133         (free_lang_data): Merge char_type_node with its properly signed
4134         variant.
4135         (pass_ipa_free): Collect after freeing language specific data.
4136
4137 2009-09-09  Michael Matz  <matz@suse.de>
4138
4139         PR middle-end/41268
4140         * cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
4141         SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
4142         * rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
4143         to reflect reality.
4144
4145 2009-09-08  DJ Delorie  <dj@redhat.com>
4146
4147         * config/mep/mep.c (conversions[]): Add "ml" pattern.
4148
4149 2009-09-04  Jason Merrill  <jason@redhat.com>
4150
4151         * tree.c (tree_find_value): Remove.
4152         * tree.h: Remove prototype.
4153         * varasm.c (assemble_external): Use value_member instead.
4154
4155 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4156
4157         * toplev.c (process_options): Choose default debugging type when
4158         gtoggle enables debug info and type is unset.
4159
4160 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4161
4162         PR debug/41276
4163         PR debug/41307
4164         * cselib.c (cselib_expand_value_rtx_1): Don't return copy of
4165         invalid subreg.
4166
4167 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4168
4169         * configure: Rebuilt with modified libtool.m4.
4170
4171 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4172
4173         PR debug/41229
4174         PR debug/41291
4175         PR debug/41300
4176         * tree-ssa.c (execute_update_addresses_taken): Update debug insns.
4177
4178 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4179
4180         * tree-ssa-loop-ivopts.c (get_phi_with_result): Remove.
4181         (remove_statement): Likewise.
4182         (rewrite_use_nonlinear_expr): Adjust.
4183         (remove_unused_ivs): Collect SSA NAMEs to remove and call...
4184         * tree-ssa.c (release_defs_bitset): ... this.  New.
4185         * tree-flow.h (release_defs_bitset): Declare.
4186
4187 2009-09-08  Alexandre Oliva  <aoliva@redhat.com>
4188
4189         PR debug/41232
4190         * tree-ssa-phiopt.c (minmax_replacement): Skip debug stmts
4191         in the middle block.
4192
4193 2009-09-08  Kai Tietz  <kai.tietz@onevision.com>
4194
4195         * tree-ssa-reassoc.c (find_operand_rank): Cast pointer
4196         via intptr_t to long type.
4197         (insert_operand_rank): Cast long type via intptr_t to
4198         pointer type.
4199         * genattrtab.c (RTL_HASH): Use intptr_t to cast from
4200         pointer to scalar.
4201         * c-pretty-print.c (pp_c_tree_decl_identifier): Cast
4202         from pointer to unsigned via uintptr_t.
4203
4204         * configure.ac (GCC_STDINT_TYPES): Initialize intptr_t,
4205         uintptr_t, HAVE_INTTYPES_H, HAVE_STDINT_H, HAVE_UINTPTR_T,
4206         and HAVE_INTPTR_T.
4207         * configure: Regenerated.
4208         * config.in: Regenerated
4209         * system.h (stdint.h): Add include.
4210         (inttypes.h): Likewise.
4211         * Makefile.in (aclocal): Add config/stdint.m4.
4212         * aclocal.m4: Regenerated.
4213
4214 2009-09-08  Bernd Schmidt  <bernd.schmidt@analog.com>
4215
4216         * config/bfin/bfin.c (np_check_regno, np_after_branch): New static
4217         variables.
4218         (note_np_check_stores): New function.
4219         (harmless_null_pointer_p): New function.
4220         (trapping_loads_p): New args NP_REG and AFTER_NP_BRANCH.  Callers
4221         changed.  Take into account whether we're in the shadow of a condjump
4222         that tested NP_REG for NULL.
4223         Lose all code that tested for SEQUENCEs.
4224         (workaround_speculation): Avoid inserting NOPs for loads that are
4225         either always executed or a NULL pointer.
4226
4227 2009-09-08  Jan Hubicka  <jh@suse.cz>
4228
4229         * doc/invoke.texi (early-inlining-insns): Reduce from 12 to 8.
4230         * params.def (early-inlining-insns): Likewise.
4231
4232 2009-09-08  Jakub Jelinek  <jakub@redhat.com>
4233
4234         PR rtl-optimization/41239
4235         * sched-int.h (struct deps): Add last_function_call_may_noreturn field.
4236         * sched-rgn.c (deps_join): Join also last_function_call_may_noreturn
4237         lists.
4238         * sched-deps.c (sched_analyze_insn): Prevent moving trapping insns
4239         across calls, as the calls might not always return normally.
4240         (call_may_noreturn_p): New function.
4241         (deps_analyze_insn): Update last_function_call_may_noreturn list.
4242         (init_deps): Initialize it.
4243         (remove_from_deps): Also remove calls from
4244         last_function_call_may_noreturn list.
4245
4246 2009-09-07  Richard Henderson  <rth@redhat.com>
4247
4248         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
4249         more VR->OPERANDS than LHS operands.  Free LHS before returning.
4250
4251 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
4252
4253         * config/bfin/bfin.md (UNSPEC_VOLATILE_STALL): New constant.
4254         (attr "addrtype"): New member "spreg".
4255         Use it if mem_spfp_address_operand is true for the address.
4256         (attr "type"): New entry "stall".
4257         (cpu_unit "load"): New.
4258         (insn_reservations "load32", "loadp", "loadi"): Add reservation of
4259         "load".
4260         (insn_reservation "loadsp"): New.
4261         (insn_reservation "load_stall1"): New.
4262         (insn_reservation "load_stall3"): New.
4263         (stall): New insn.
4264         * config/bfin/predicates.md (const1_operand, const3_operand): New.
4265         (mem_p_address_operand): Exclude stack and frame pointer based
4266         addresses.
4267         (mem_spfp_address_operand): New; match them here.
4268         * config/bfin/bfin.c (add_sched_insns_for_speculation): New function.
4269         (bfin_reorg): Call it if scheduling insns.
4270         (bfin_gen_bundles): Remove dummy insns created by
4271         add_sched_insns_for_speculation.
4272
4273         From Jie Zhang <jie.zhang@analog.com>:
4274         * config/bfin/bfin-protos.h (enum bfin_cpu_type, bfin_cpu_type,
4275         bfin_si_revision, bfin_workarounds): Move these ...
4276         * config/bfin/bfin.h: ... here.
4277
4278         From Mike Frysinger  <michael.frysinger@analog.com>
4279         * config/bfin/bfin-protos.h (bfin_cpu_type): Add BFIN_CPU_BF542M,
4280         BFIN_CPU_BF544M, BFIN_CPU_BF547M, BFIN_CPU_BF548M, and BFIN_CPU_BF549M.
4281         * config/bfin/bfin.c (bfin_cpus[]): Add 0.3 for bf542m, bf544m,
4282         bf547m, bf548m, and bf549m.
4283         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF542M__
4284         for BFIN_CPU_BF542M, __ADSPBF544M__ for BFIN_CPU_BF544M,
4285         __ADSPBF547M__ for BFIN_CPU_BF547M, __ADSPBF548M__ for
4286         BFIN_CPU_BF548M, and __ADSPBF549M__ for BFIN_CPU_BF549M.
4287         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
4288         bf542m-none, bf544m-none, bf547m-none, bf548m-none, and bf549m-none.
4289         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
4290         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
4291         * doc/invoke.texi (Blackfin Options): Document that -mcpu now accepts
4292         bf542m, bf544m, bf547m, bf548m, and bf549m.
4293
4294         From Jie Zhang <jie.zhang@analog.com>:
4295         * config/bfin/predicates.md (p_register_operand): New predicate.
4296         (dp_register_operand): New predicate.
4297         * config/bfin/bfin-protos.h (WA_05000074): Define.
4298         (ENABLE_WA_05000074): Define.
4299         * config/bfin/bfin.c (bfin_cpus[]): Add WA_05000074 for all cpus.
4300         (bfin_gen_bundles): Put dsp32shiftimm instruction in slot[0].
4301         * config/bfin/bfin.md (define_attr type): Add dsp32shiftimm.
4302         (define_attr addrtype): Allow load/store register to be P register.
4303         (define_attr storereg): New.
4304         (define_cpu_unit anomaly_05000074): New.
4305         (define_insn_reservation dsp32shiftimm): New.
4306         (define_insn_reservation dsp32shiftimm_anomaly_05000074): New.
4307         (define_insn_reservation loadp): Cannot use slot2.
4308         (define_insn_reservation loadsp): Cannot use slot2.
4309         (define_insn_reservation storep): Cannot use slot2. Does not
4310         apply when working around 05000074.
4311         (define_insn_reservation storep_anomaly_05000074): New.
4312         (define_insn_reservation storei): Does not apply when working
4313         around 05000074.
4314         (define_insn_reservation storei_anomaly_05000074): New.
4315         (define_attr length): Add dsp32shiftimm case.
4316         (define_insn movsi_insn32, movsi_insv, ashlsi3_insn, ashrsi3,
4317         ror_one, rol_one, lshrsi3, lshrpdi3, ashrpdi3, movhiv2hi_low,
4318         movhiv2hi_high, composev2hi, packv2hi, movv2hi_hi,
4319         ssashiftv2hi3, ssashifthi3, ssashiftsi3, lshiftv2hi3, lshifthi3):
4320         Set type as dsp32shiftimm for dsp32shiftimm alternatives.
4321
4322 2009-09-07  Martin Jambor  <mjambor@suse.cz>
4323
4324         PR middle-end/41282
4325         * tree-sra.c (create_artificial_child_access): Return NULL if
4326         build_ref_for_offset fails.
4327         (propagate_subacesses_accross_link): Allow build_ref_for_offset
4328         and create_artificial_child_access to fail.
4329
4330 2009-09-06  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
4331
4332         PR c++/41214
4333         * unwind-dw2.c (uw_init_context_1): Mark noinline.
4334         * config/ia64/unwind-ia64.c (uw_init_context_1): Likewise.
4335         * config/xtensa/unwind-dw2-xtensa.c (uw_init_context_1): Likewise.
4336
4337 2009-09-07  Bernd Schmidt  <bernd.schmidt@analog.com>
4338
4339         * config/bfin/bfin.c (bfin_optimize_loop): When creating a new basic
4340         block, ensure it has an exit edge.  Emit a barrier after a jump.
4341
4342 2009-09-07  Nick Clifton  <nickc@redhat.com>
4343
4344         * gcc.c (this_is_linker_script): New variable.  Like
4345         this_is_library_file but for the %T constructor.
4346         (end_going_arg): If this_is_linker_script is set then locate the
4347         script and insert a --script switch before it
4348         (do_spec_2): Initialise this_is_linker_script.
4349         (do_spec_1): Likewise.  Handle %T construct.
4350         (eval_spec_function): Preserve this_is_linker_script.
4351         * doc/invoke.texi: Document %T construct in spec files.
4352         * config/m32c/m32c.h (LIB_SPEC): Use it.
4353
4354 2009-09-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4355
4356         * rtl.h (PREFETCH_SCHEDULE_BARRIER_P): New macro.
4357         * sched-deps.c (sched_analyze_2): Make prefetches a hard barrier
4358         when volatile flag is set.
4359         * doc/rtl.texi (PREFETCH_SCHEDULE_BARRIER_P): Add documentation pieces.
4360
4361 2009-09-06  Eric Botcazou  <ebotcazou@adacore.com>
4362
4363         PR bootstrap/41241
4364         * combine-stack-adj.c (try_apply_stack_adjustment): Handle stores.
4365         (combine_stack_adjustments_for_block): Allow insns between stack
4366         adjustments and stores with corresponding pre-(dec|inc)rement or
4367         pre-modify operation.
4368
4369 2009-09-06  Jakub Jelinek  <jakub@redhat.com>
4370
4371         PR bootstrap/41241
4372         * combine-stack-adj.c (struct csa_memlist): Rename to...
4373         (struct csa_reflist): ... this.  Rename mem field to ref.
4374         (free_csa_memlist): Rename to...
4375         (free_csa_reflist): ... this.
4376         (record_one_stack_memref): Rename to...
4377         (record_one_stack_ref): ... this.  Handle also REG_P.
4378         (try_apply_stack_adjustment): Handle also REG_P.
4379         (struct record_stack_memrefs_data): Rename to...
4380         (struct record_stack_refs_data): ... this.  Rename memlist field to
4381         reflist.
4382         (record_stack_memrefs): Rename to...
4383         (record_stack_refs): ... this.  For DEBUG_INSNs keep traversing
4384         subexpressions instead of failing when a MEM contains SP references.
4385         For SP itself in DEBUG_INSNs queue it also onto reflist chain.
4386         (combine_stack_adjustments_for_block): Adjust for mem to ref renaming.
4387
4388 2009-09-06  Richard Guenther  <rguenther@suse.de>
4389
4390         PR middle-end/41144
4391         * tree.c (build_array_type): Do not record types marked
4392         with structural equality in the canonical type hashtable.
4393
4394 2009-09-06  Richard Guenther  <rguenther@suse.de>
4395
4396         PR middle-end/41261
4397         * tree-ssa-alias.c (refs_may_alias_p_1): Bail out for function decls.
4398
4399 2009-09-05  Richard Guenther  <rguenther@suse.de>
4400
4401         PR middle-end/41181
4402         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Use the correct type.
4403
4404 2009-09-05  Richard Guenther  <rguenther@suse.de>
4405
4406         PR debug/41273
4407         * tree-ssa-operands.c (get_tmr_operands): Pass through opf_no_vops.
4408
4409 2009-09-05  Richard Guenther  <rguenther@suse.de>
4410
4411         PR middle-end/41271
4412         * tree-ssa.c (useless_type_conversion_p): Drop qualifiers
4413         before comparing function argument types.
4414
4415 2009-09-05  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4416
4417         PR target/41024
4418         * config/i386/mingw-w64.h (ASM_SPEC): Pass -v instead of -V to
4419         the assembler.
4420
4421 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4422
4423         Revert:
4424         2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
4425
4426         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
4427         locators before emit_insn is called.
4428
4429 2009-09-04  Vladimir Makarov  <vmakarov@redhat.com>
4430
4431         PR bootstrap/41241
4432         * ira.c (update_equiv_reg): Revert my previous patch for the PR.
4433         * reginfo.c (resize_reg_info): Call allocate_reg_info if necessary.
4434         (reginfo_init): Don't call allocate_reg_info.
4435
4436 2009-09-04  Uros Bizjak  <ubizjak@gmail.com>
4437
4438         PR target/41262
4439         * config/alpha/alpha.c (alpha_does_function_need_gp): Use
4440         NONDEBUG_INSN_P instead of INSN_P.
4441
4442 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4443
4444         PR debug/41225
4445         * tree-vect-stmts.c (vect_stmt_relevant_p): Skip debug uses.
4446
4447 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4448
4449         PR target/41252
4450         * config/arm/vfp.md (*cmpdf_split_vfp): Fix src mode in the second
4451         pattern of the split.
4452
4453 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4454
4455         * toplev.c (process_options): Move setter of flag_var_tracking
4456         before other tests that depend on it.  Move down setter of
4457         flag_rename_registers.  Don't enable var-tracking-assignments
4458         by default if selective scheduling is enabled.  Warn if both
4459         are enabled.
4460
4461 2009-09-04  Alexandre Oliva  <aoliva@redhat.com>
4462
4463         * var-tracking.c (dv_is_decl_p): Adjust NULL behavior to match
4464         comment.  Use switch statement to catch overlaps between rtx
4465         and tree codes.  Accept FUNCTION_DECLs in addition to those in...
4466         (IS_DECL_CODE): ... here. Remove.
4467         (check_value_is_not_decl): Remove.
4468         (dv_from_decl, dv_from_value): Check after conversion.
4469
4470 2009-09-04  Richard Guenther  <rguenther@suse.de>
4471
4472         PR middle-end/41257
4473         * (cgraph_finalize_compilation_unit): Move finalizing aliases
4474         after emitting tunks.  Move emitting thunks and ctors from ...
4475         (cgraph_optimize): ... here.  Remove redundant
4476         cgraph_analyze_functions.
4477         * varasm.c (find_decl_and_mark_needed): Remove no longer
4478         necessary check.
4479         (finish_aliases_1): Adjust check for thunk aliases.
4480
4481 2009-09-04  Daniel Gutson  <dgutson@codesourcery.com>
4482
4483         * config/arm/arm.md (ctzsi2): Added braces
4484         to avoid warning that broke booststrap.
4485
4486 2009-09-04  Martin Jambor  <mjambor@suse.cz>
4487
4488         PR tree-optimization/41112
4489         * tree-sra.c (build_ref_for_offset_1): Signal that we cannot
4490         handle variable-bounded arrays.
4491         (expr_with_var_bounded_array_refs_p): New function.
4492         (analyze_access_subtree): Call expr_with_var_bounded_array_refs_p.
4493
4494 2009-09-04  Wolfgang Gellerich  <gellerich@de.ibm.com>
4495
4496         * config/s390/2097.md: Removed two incorrect bypasses.
4497         (z10_fsimpdf): Fixed latency.
4498         (z10_fhex): New insn_reservation.
4499         (z10_floaddf): Fixed latency.
4500         (z10_floadsf): Fixed latency.
4501         (z10_ftrunctf): Fixed latency.
4502         (z10_ftruncdf): Fixed latency.
4503         * config/s390/s390.c (z10_cost): Fixed values.
4504         (s390_adjust_priority): Added z10 path.
4505         * config/s390/s390.md (type): Added fhex.
4506         (*mov<mode>_64dfp): Updated type attribute.
4507         (*mov<mode>_64): Updated type attribute.
4508         (*mov<mode>_31): Updated type attribute.
4509         (*mov<mode>"): Likewise.
4510         * config/s390/2084.md (x_fsimpdf): Updated condition.
4511
4512 2009-09-04  Andreas Krebbel  <krebbel1@de.ibm.com>
4513
4514         * config/s390/s390.md ("*fmadd<mode>", "*fmsub<mode>"): Enable mem
4515         RTXs in the predicate for operand 1.
4516
4517 2009-09-03  Daniel Gutson  <dgutson@codesourcery.com>
4518
4519         * config/arm/arm.md (UNSPEC_RBIT): New constant.
4520         (rbitsi2): New insn.
4521         (ctzsi2): New expand.
4522         * config/arm/arm.h (CTZ_DEFINED_VALUE_AT_ZERO): New macro.
4523
4524 2009-09-03  Martin Jambor  <mjambor@suse.cz>
4525
4526         * tree-sra.c (duplicate_expr_for_different_base): Removed.
4527         (create_artificial_child_access): Use build_ref_for_offset instead
4528         of duplicate_expr_for_different_base.
4529         (propagate_subacesses_accross_link): Likewise.
4530
4531 2009-09-03  Richard Sandiford  <rdsandiford@googlemail.com>
4532
4533         * config/mips/mips.c (USEFUL_INSN_P): Use NONDEBUG_INSN_P instead
4534         of INSN_P.
4535         (mips16e_collect_argument_saves): Skip debug instructions.
4536         (mips_74k_agen_init): Use CALL_P || JUMP_P instead of !NONJUMP_INSN_P.
4537         (mips16_lay_out_constants): Use USEFUL_INSN_P instead of INSN_P.
4538         (r10k_insert_cache_barriers): Likewise.
4539         (mips_reorg_process_insns): Likewise.
4540
4541 2009-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4542
4543         PR bootstrap/41241
4544         * ira.c (update_equiv_reg): Remove check on class likely spill.
4545
4546 2009-09-03  Jakub Jelinek  <jakub@redhat.com>
4547
4548         PR debug/41236
4549         * dwarf2out.c (loc_descriptor): Don't use SUBREG_REG macro on
4550         SIGN_EXTEND or ZERO_EXTEND.  Don't assume there is a REG inside of
4551         it or SUBREG.
4552
4553         PR debug/41238
4554         * function.c (assign_parm_find_stack_rtl): Don't set mem attributes on
4555         the stack slot if it is passed by invisible reference.
4556         * var-tracking.c (vt_add_function_parameters): Handle arguments passed
4557         by invisible reference.
4558
4559 2009-09-03  Bernd Schmidt  <bernd.schmidt@analog.com>
4560
4561         * config/bfin/linux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4562         * config/bfin/uclinux.h (TARGET_SUPPORTS_SYNC_CALLS): Define to 1.
4563         * config/bfin/bfin.h (TARGET_SUPPORTS_SYNC_CALLS): Provide default of
4564         0.
4565         * config/bfin/sync.md: New file.
4566         * config/bfin/bfin.md: Include it.
4567         (UNSPEC_ATOMIC): New.
4568         (UNSPEC_ONES): Provide a unique number.
4569
4570         From Jie Zhang <jie.zhang@analog.com>:
4571         * config/bfin/bfin.c (ret_regs): New.
4572         (must_save_fp_p): Don't return true because of frame_pointer_needed.
4573         (must_save_rets_p): New.
4574         (n_regs_saved_by_prologue): Use must_save_rets_p instead of
4575         current_function_is_leaf.
4576         (do_link): Likewise.
4577         (do_unlink): Likewise.
4578         (expand_interrupt_handler_prologue): Use ret_regs array.
4579         (expand_interrupt_handler_epilogue): Use ret_regs array and
4580         pass return register to gen_return_internal.
4581         (bfin_expand_epilogue): Pass return register to
4582         gen_return_internal.
4583         (bfin_expand_call): Explicitly clobber RETS.
4584         * config/bfin/bfin.h (FUNCTION_RETURN_REGISTERS): Define.
4585         * config/bfin/bfin.md (call_symbol_fdpic, call_value_symbol_fdpic,
4586         call_insn_fdpic, call_value_insn_fdpic, call_symbol,
4587         call_value_symbol, call_insn, call_value_insn): Explicitly clobber
4588         RETS.
4589         (return_internal): Take a reg rtx rather than the register number.
4590
4591 2009-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4592
4593         * tree-parloops.c (parallelize_loops): Cast to HOST_WIDE_INT
4594         when comparing against estimated_loop_iterations_int return.
4595
4596 2009-09-03  Richard Guenther  <rguenther@suse.de>
4597
4598         * dwarf2out.c (dwarf2out_do_cfi_asm): Remove check of
4599         eh_personality_libfunc.
4600
4601 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4602
4603         * tree-parloops.c (separate_decls_in_region): Add space.
4604
4605 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4606
4607         * tree-parloops.c (separate_decls_in_region): Change the condition
4608         checking if there are reductions in the loop.
4609
4610 2009-09-03  Razya Ladelsky  <razya@il.ibm.com>
4611
4612         PR tree-optimization/38275
4613         * tree-parloops.c (parallelize_loops): Replace profitability condition
4614         for expected number of iterations.
4615
4616 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4617
4618         * doc/invoke.texi (BUILD_CONFIG): Document --with-build-config.
4619         (bootstrap-debug): Explain conditions in which it becomes default.
4620         (bootstrap-debug-big): Rather than duplicate bootstrap-debug,
4621         make it add to it.
4622
4623 2009-09-03  Namhyung Kim  <namhyung@gmail.com>
4624
4625         * doc/invoke.texi (Optimize Options): Move
4626         -finline-small-functions to the -O2 list.
4627
4628 2009-09-03  Alexandre Oliva  <aoliva@redhat.com>
4629
4630         * toplev.c (process_options): Enable var-tracking-assignments
4631         by default if var-tracking is enabled.
4632
4633 2009-09-02  David Daney  <ddaney@caviumnetworks.com>
4634
4635         * cfgbuild.c (find_bb_boundaries): Split blocks containing a
4636         barrier.
4637         * emit-rtl.c (prev_nonnote_insn_bb): New function.
4638         * rtl.h (prev_nonnote_insn_bb): Declare it.
4639
4640 2009-09-03  Diego Novillo  <dnovillo@google.com>
4641
4642         * cgraph.c (cgraph_node_for_decl): New.
4643         * cgraph.h (cgraph_node_for_decl): Declare.
4644         * tree.c (host_integerp): Return 0 if T is NULL.
4645
4646 2009-09-03  Diego Novillo  <dnovillo@google.com>
4647
4648         * tree.h (struct alias_pair): Move from varasm.c.
4649         (alias_pairs): Likewise.
4650         (TYPE_MAXVAL): Define.
4651         (TYPE_MINVAL): Define.
4652         (iterative_hash_host_wide_int): Declare.
4653         (remove_unreachable_alias_pairs): Declare.
4654         * tree-pass.h (pass_ipa_free_lang_data): Declare.
4655         * diagnostic.c (default_diagnostic_starter): Make extern.
4656         (default_diagnostic_finalizer): Make extern.
4657         * diagnostic.h (default_diagnostic_starter): Declare.
4658         (default_diagnostic_finalizer): Declare.
4659         (default_tree_printer): Declare.
4660         * toplev.c (default_tree_printer): Make extern.
4661
4662 2009-09-03  Richard Guenther  <rguenther@suse.de>
4663             Diego Novillo  <dnovillo@google.com>
4664
4665         * cgraph.c (cgraph_add_new_function): Remove gimplification.
4666         * cgraphunit.c (cgraph_expand_function): Do not emit
4667         associated thunks from here.
4668         (cgraph_emit_thunks): New.
4669         (cgraph_optimize): Call it.
4670         Return if any IPA pass finds an error.
4671         * varasm.c (finish_aliases_1): Ignore errorneous aliases used
4672         by thunks.
4673
4674 2009-09-03  Simon Baldwin  <simonb@google.com>
4675             Rafael Espindola  <espindola@google.com>
4676             Richard Guenther  <rguenther@suse.de>
4677             Doug Kwan  <dougkwan@google.com>
4678             Diego Novillo  <dnovillo@google.com>
4679
4680         * tree.c: Include tree-pass.h, langhooks-def.h,
4681         diagnostic.h, cgraph.h, timevar.h, except.h and debug.h.
4682         (free_lang_data_in_type): New.
4683         (need_assembler_name_p): New.
4684         (free_lang_data_in_block): New.
4685         (free_lang_data_in_decl): New.
4686         (struct free_lang_data_d): New.
4687         (add_tree_to_fld_list): New.
4688         (find_decls_types_r): New.
4689         (get_eh_types_for_runtime): New.
4690         (find_decls_types_in_eh_region): New.
4691         (find_decls_types_in_node): New.
4692         (find_decls_types_in_var): New.
4693         (free_lang_data_in_cgraph): New.
4694         (free_lang_data): New.
4695         (gate_free_lang_data): New.
4696         (pass_ipa_free_lang_data): New.
4697
4698 2009-09-03  Diego Novillo  <dnovillo@google.com>
4699
4700         * timevar.def (TV_IPA_FREE_LANG_DATA): Define.
4701         * langhooks.h (struct lang_hooks): Add field free_lang_data.
4702         (lang_hooks): Remove const qualifier.
4703         * ipa.c (cgraph_remove_unreachable_nodes): Call
4704         remove_unreachable_alias_pairs.
4705         * except.c (add_type_for_runtime): Check if TYPE has
4706         already been converted.
4707         (lookup_type_for_runtime): Likewise.
4708         (check_handled): Handle converted types.
4709         * varasm.c (remove_unreachable_alias_pairs): New.
4710         * gimple.c: Include demangle.h.
4711         (gimple_decl_printable_name): New.
4712         (gimple_fold_obj_type_ref): New.
4713         * gimple.h (gimple_decl_printable_name): Declare.
4714         (gimple_fold_obj_type_ref): Declare.
4715         * passes.c (init_optimization_passes): Add pass
4716         pass_ipa_free_lang_data.
4717         * langhooks-def.h (LANG_HOOKS_FREE_LANG_DATA): Define.
4718         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_FREE_LANG_DATA.
4719
4720 2009-09-03  Diego Novillo  <dnovillo@google.com>
4721
4722         * c-lang.c (lang_hooks): Remove const qualifier.
4723
4724 2009-09-02  Loren James Rittle  <ljrittle@acm.org>
4725
4726         * doc/install.texi (*-*-freebsd*): Update target information.
4727
4728 2009-09-02  Anatoly Sokolov  <aesok@post.ru>
4729
4730         * hard-reg-set.h (call_fixed_regs): Remove.
4731         * reginfo.c (call_fixed_regs): Remove.
4732         (init_reg_sets_1): Remove initialization of call_fixed_regs.
4733         (globalize_reg): Don't use call_fixed_regs.
4734         * caller-save.c (init_caller_save): Use call_fixed_reg_set instead of
4735         call_fixed_regs.
4736
4737 2009-09-01  Michael Matz  <matz@suse.de>
4738
4739         * expr.h (emit_storent_insn, expand_expr_real_1,
4740         expand_expr_real_2): Declare.
4741         * expr.c (emit_storent_insn, expand_expr_real_1,
4742         expand_expr_real_2): Export.
4743         (store_expr): Setting and evaluating dont_return_target is useless.
4744         (expand_expr_real_1, <case GOTO_EXPR, RETURN_EXPR, SWITCH_EXPR,
4745         LABEL_EXPR and ASM_EXPR>): Move to gcc_unreachable.
4746         * except.c (expand_resx_expr): Rename to ...
4747         (expand_resx_stmt): ... this.  Rewrite to take gimple statement.
4748         * except.h (expand_resx_stmt): Declare.
4749         * stmt.c: Add include gimple.h
4750         (expand_asm_expr): Rename to ...
4751         (expand_asm_stmt): ... this. Rewrite to take gimple statement.
4752         (expand_case): Rewrite to take gimple statement.
4753         * tree.h (expand_asm_stmt): Declare.
4754         (expand_case): Change prototype.
4755         * Makefile.in (stmt.o): Depend on gimple.h.
4756         * builtins.c (expand_builtin_synchronize): Build gimple asm
4757         statement, not an ASM_EXPR.
4758         * cfgexpand.c (gimple_cond_pred_to_tree, set_expr_location_r,
4759         gimple_to_tree, release_stmt_tree): Remove.
4760         (expand_gimple_cond): Don't call gimple_cond_pred_to_tree or
4761         ggc_free, but hold comparison code and operands separately.
4762         Call jumpif_1 and jumpifnot_1 instead of jumpif and jumpifnot.
4763         (expand_call_stmt, expand_gimple_stmt_1,
4764         expand_gimple_stmt): New helpers.
4765         (expand_gimple_tailcall): Don't call gimple_to_tree, expand_expr_stmt,
4766         release_stmt_tree.  Call expand_gimple_stmt instead.
4767         (expand_gimple_basic_block): Ditto.
4768
4769         * calls.c (emit_call_1): Don't look at EH regions here, make
4770         fntree parameter useless.
4771         (expand_call): New local rettype for TREE_TYPE(exp), use it
4772         throughout.  Remove local p, use addr instead.
4773         Don't look at EH regions here.
4774
4775 2009-09-02  Vladimir Makarov  <vmakarov@redhat.com>
4776
4777         * doc/invoke.texi (-fsched-pressure): Document it.
4778         (-fsched-reg-pressure-heuristic): Remove it.
4779
4780         * reload.c (ira.h): Include.
4781         (find_reloads): Add choosing reload on number of small spilled
4782         classes.
4783
4784         * haifa-sched.c (ira.h): Include.
4785         (sched_pressure_p, sched_regno_cover_class, curr_reg_pressure,
4786         saved_reg_pressure, curr_reg_live, saved_reg_live,
4787         region_ref_regs): New variables.
4788         (sched_init_region_reg_pressure_info, mark_regno_birth_or_death,
4789         initiate_reg_pressure_info, setup_ref_regs,
4790         initiate_bb_reg_pressure_info, save_reg_pressure,
4791         restore_reg_pressure, dying_use_p, print_curr_reg_pressure): New
4792         functions.
4793         (setup_insn_reg_pressure_info): New function.
4794         (rank_for_schedule): Add pressure checking and insn issue time.
4795         Remove comparison of insn reg weights.
4796         (ready_sort): Set insn reg pressure info.
4797         (update_register_pressure, setup_insn_max_reg_pressure,
4798         update_reg_and_insn_max_reg_pressure,
4799         sched_setup_bb_reg_pressure_info): New functions.
4800         (schedule_insn): Add code for printing and updating reg pressure info.
4801         (find_set_reg_weight, find_insn_reg_weight): Remove.
4802         (ok_for_early_queue_removal): Do nothing if pressure_only_p.
4803         (debug_ready_list): Print reg pressure info.
4804         (schedule_block): Ditto.  Check insn issue time.
4805         (sched_init): Set up sched_pressure_p.  Allocate and set up some
4806         reg pressure related info.
4807         (sched_finish): Free some reg pressure related info.
4808         (fix_tick_ready): Make insn always ready if pressure_p.
4809         (init_h_i_d): Don't call find_insn_reg_weight.
4810         (haifa_finish_h_i_d): Free insn reg pressure info.
4811
4812         * ira-int.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4813         ira_memory_move_cost, ira_class_hard_regs,
4814         ira_class_hard_regs_num, ira_no_alloc_regs,
4815         ira_available_class_regs, ira_reg_class_cover_size,
4816         ira_reg_class_cover, ira_class_translate): Move to ira.h.
4817
4818         * ira-lives.c (single_reg_class): Check mode to find how many
4819         registers are necessary for operand.
4820         (ira_implicitly_set_insn_hard_regs): New.
4821
4822         * common.opt (fsched-pressure): New options.
4823         (fsched-reg-pressure-heuristic): Remove.
4824
4825         * ira.c (setup_eliminable_regset): Rename to
4826         ira_setup_eliminable_regset.  Make it external.
4827         (expand_reg_info): Pass cover class to setup_reg_classes.
4828         (ira): Call resize_reg_info instead of allocate_reg_info.
4829
4830         * sched-deps.c: Include ira.h.
4831         (implicit_reg_pending_clobbers, implicit_reg_pending_uses): New.
4832         (create_insn_reg_use, create_insn_reg_set, setup_insn_reg_uses,
4833         reg_pressure_info, insn_use_p, mark_insn_pseudo_birth,
4834         mark_insn_hard_regno_birth, mark_insn_reg_birth,
4835         mark_pseudo_death, mark_hard_regno_death, mark_reg_death,
4836         mark_insn_reg_store, mark_insn_reg_clobber,
4837         setup_insn_reg_pressure_info): New.
4838         (sched_analyze_1): Update implicit_reg_pending_uses.
4839         (sched_analyze_insn): Find implicit sets, uses, clobbers of regs.
4840         Use them to create dependencies.  Set insn reg uses and pressure
4841         info.  Process reg_pending_uses in one place.
4842         (free_deps): Free implicit sets.
4843         (remove_from_deps): Remove implicit sets if necessary.  Check
4844         implicit sets when clearing reg_last_in_use.
4845         (init_deps_global): Clear implicit_reg_pending_clobbers and
4846         implicit_reg_pending_uses.
4847
4848         * ira.h (ira_hard_regno_cover_class, ira_reg_class_nregs,
4849         ira_memory_move_cost, ira_class_hard_regs,
4850         ira_class_hard_regs_num, ira_no_alloc_regs,
4851         ira_available_class_regs, ira_reg_class_cover_size,
4852         ira_reg_class_cover, ira_class_translate): Move from ira-int.h.
4853         (ira_setup_eliminable_regset, ira_set_pseudo_classes,
4854         ira_implicitly_set_insn_hard_regs): New prototypes.
4855
4856         * ira-costs.c (pseudo_classes_defined_p, allocno_p,
4857         cost_elements_num): New variables.
4858         (allocno_costs, total_costs): Rename to costs and
4859         total_allocno_costs.
4860         (COSTS_OF_ALLOCNO): Rename to COSTS.
4861         (allocno_pref): Rename to pref.
4862         (allocno_pref_buffer): Rename to pref_buffer.
4863         (common_classes): Rename to regno_cover_class.
4864         (COST_INDEX): New.
4865         (record_reg_classes): Set allocno attributes only if allocno_p.
4866         (record_address_regs): Ditto.  Use COST_INDEX instead of ALLOCNO_NUM.
4867         (scan_one_insn): Use COST_INDEX and COSTS instead of ALLOCNO_NUM
4868         and COSTS_OF_ALLOCNO.
4869         (print_costs): Rename to print_allocno_costs.
4870         (print_pseudo_costs): New.
4871         (process_bb_node_for_costs): Split into 2 functions with new
4872         function process_bb_for_costs.  Pass BB to process_bb_for_costs.
4873         (find_allocno_class_costs): Rename to find_costs_and_classes.  Add
4874         new parameter dump_file.  Use cost_elements_num instead of
4875         ira_allocnos_num.  Make one iteration if preferred classes were
4876         already calculated for scheduler.  Make 2 versions of code
4877         depending on allocno_p.
4878         (setup_allocno_cover_class_and_costs): Check allocno_p.  Use
4879         regno_cover_class and COSTS instead of common_classes and
4880         COSTS_OF_ALLOCNO.
4881         (init_costs, finish_costs): New.
4882         (ira_costs): Set up allocno_p and cost_elements_num.  Call
4883         init_costs and finish_costs.
4884         (ira_set_pseudo_classes): New.
4885
4886         * rtl.h (allocate_reg_info): Remove.
4887         (resize_reg_info): Change return type.
4888         (reg_cover_class): New.
4889         (setup_reg_classes): Add new parameter.
4890
4891         * sched-int.h (struct deps_reg): New member implicit_sets.
4892         (sched_pressure_p, sched_regno_cover_class): New external definitions.
4893         (INCREASE_BITS): New macro.
4894         (struct reg_pressure_data, struct reg_use_data): New.
4895         (struct _haifa_insn_data): Remove reg_weight.  Add members
4896         reg_pressure, reg_use_list, reg_set_list, and
4897         reg_pressure_excess_cost_change.
4898         (struct deps): New member implicit_sets.
4899         (pressure_p): New variable.
4900         (COVER_CLASS_BITS, INCREASE_BITS): New macros.
4901         (struct reg_pressure_data, struct reg_use_data): New.
4902         (INSN_REG_WEIGHT): Remove.
4903         (INSN_REG_PRESSURE, INSN_MAX_REG_PRESSURE, INSN_REG_USE_LIST,
4904         INSN_REG_SET_LIST, INSN_REG_PRESSURE_EXCESS_COST_CHANGE): New macros.
4905         (sched_init_region_reg_pressure_info,
4906         sched_setup_bb_reg_pressure_info): New prototypes.
4907
4908         * reginfo.c (struct reg_pref): New member coverclass.
4909         (reg_cover_class): New function.
4910         (reginfo_init, pass_reginfo_init): Move after free_reg_info.
4911         (reg_info_size): New variable.
4912         (allocate_reg_info): Make static.  Setup reg_info_size.
4913         (resize_reg_info): Use reg_info_size.  Return flag of resizing.
4914         (setup_reg_classes): Add a new parameter.  Setup cover class too.
4915
4916         * Makefile.in (reload.o, haifa-sched.o, sched-deps.o): Add ira.h to
4917         the dependencies.
4918
4919         * sched-rgn.c (deps_join): Set up implicit_sets.
4920         (schedule_region): Set up region and basic blocks pressure
4921         relative info.
4922
4923         * passes.c (init_optimization_passes): Move
4924         pass_subregs_of_mode_init before pass_sched.
4925
4926 2009-09-02  Martin Jambor  <mjambor@suse.cz>
4927
4928         * tree-sra.c (struct access): New field grp_hint.
4929         (dump_access): Dump grp_hint.
4930         (sort_and_splice_var_accesses): Set grp_hint if a group is read
4931         multiple times.
4932         (analyze_access_subtree): Only scalarize accesses with grp_hint set or
4933         those which have been specifically read and somehow written to.
4934         (propagate_subacesses_accross_link): Set grp_hint of right child and
4935         also possibly of the left child.
4936
4937 2009-09-02  Jakub Jelinek  <jakub@redhat.com>
4938
4939         * tree-object-size.c (addr_object_size): Always use object_size_type
4940         0 or 2 when determining the pointer pointed object size.
4941
4942 2009-09-02  Richard Guenther  <rguenther@suse.de>
4943
4944         Revert
4945         2009-08-31  Richard Guenther  <rguenther@suse.de>
4946
4947         * builtins.c (fold_builtin_memory_op): Use the alias oracle
4948         to query if the memory regions for memmove overlap.
4949         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
4950         asserts on pointers, instead deal with odd trees.
4951         (ptr_derefs_may_alias_p): Likewise.
4952         (refs_may_alias_p_1): Constructor bases also never alias.
4953
4954 2009-08-01  Christian Bruel  <christian.bruel@st.com>
4955
4956         Revert:
4957         2009-07-31  Christian Bruel  <christian.bruel@st.com>
4958         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
4959
4960 2009-09-01  Alexandre Oliva  <aoliva@redhat.com>
4961
4962         * doc/invoke.texi (-fvar-tracking-assignments): New.
4963         (-fvar-tracking-assignments-toggle): New.
4964         (-fdump-final-insns=file): Mark filename as optional.
4965         (--param min-nondebug-insn-uid): New.
4966         (-gdwarf-@{version}): Mention version 4.
4967         * opts.c (common_handle_option): Accept it.
4968         * tree-vrp.c (find_assert_locations_1): Skip debug stmts.
4969         * regrename.c (regrename_optimize): Drop last.  Don't count debug
4970         insns as uses.  Don't reject change because of debug insn.
4971         (do_replace): Reject DEBUG_INSN as chain starter.  Take base_regno
4972         from the chain starter, and check for inexact matches in DEBUG_INSNS.
4973         (scan_rtx_reg): Accept inexact matches in DEBUG_INSNs.
4974         (build_def_use): Simplify and fix the marking of DEBUG_INSNs.
4975         * sched-ebb.c (schedule_ebbs): Skip boundary debug insns.
4976         * fwprop.c (forward_propagate_and_simplify): ...into debug insns.
4977         * doc/gimple.texi (is_gimple_debug): New.
4978         (gimple_debug_bind_p): New.
4979         (is_gimple_call, gimple_assign_cast_p): End sentence with period.
4980         * doc/install.texi (bootstrap-debug): More details.
4981         (bootstrap-debug-big, bootstrap-debug-lean): Document.
4982         (bootstrap-debug-lib): More details.
4983         (bootstrap-debug-ckovw): Update.
4984         (bootstrap-time): New.
4985         * tree-into-ssa.c (mark_def_sites): Skip debug stmts.
4986         (insert_phi_nodes_for): Insert debug stmts.
4987         (rewrite_stmt): Take iterator.  Insert debug stmts.
4988         (rewrite_enter_block): Adjust.
4989         (maybe_replace_use_in_debug_stmt): New.
4990         (rewrite_update_stmt): Use it.
4991         (mark_use_interesting): Return early for debug stmts.
4992         * tree-ssa-loop-im.c (rewrite_bittest): Propagate DEFs into debug
4993         stmts before replacing stmt.
4994         (move_computations_stmt): Likewise.
4995         * ira-conflicts.c (add_copies): Skip debug insns.
4996         * regstat.c (regstat_init_n_sets_and_refs): Discount debug insns.
4997         (regstat_bb_compute_ri): Skip debug insns.
4998         * tree-ssa-threadupdate.c (redirection_block_p): Skip debug stmts.
4999         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5000         check_loop_closed_ssa_stmt): Skip debug stmts.
5001         * tree-tailcall.c (find_tail_calls): Likewise.
5002         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5003         * tree.h (MAY_HAVE_DEBUG_STMTS): New.
5004         (build_var_debug_value_stat): Declare.
5005         (build_var_debug_value): Define.
5006         (target_for_debug_bind): Declare.
5007         * reload.c (find_equiv_reg): Skip debug insns.
5008         * rtlanal.c (reg_used_between_p): Skip debug insns.
5009         (side_effects_p): Likewise.
5010         (canonicalize_condition): Likewise.
5011         * ddg.c (create_ddg_dep_from_intra_loop_link): Check that non-debug
5012         insns never depend on debug insns.
5013         (create_ddg_dep_no_link): Likewise.
5014         (add_cross_iteration_register_deps): Use ANTI_DEP for debug insns.
5015         Don't add inter-loop dependencies for debug insns.
5016         (build_intra_loop_deps): Likewise.
5017         (create_ddg): Count debug insns.
5018         * ddg.h (struct ddg::num_debug): New.
5019         (num_backargs): Pair up with previous int field.
5020         * diagnostic.c (diagnostic_report_diagnostic): Skip notes on
5021         -fcompare-debug-second.
5022         * final.c (get_attr_length_1): Skip debug insns.
5023         (rest_of_clean-state): Don't dump CFA_RESTORE_STATE.
5024         * gcc.c (invoke_as): Call compare-debug-dump-opt.
5025         (driver_self_specs): Map -fdump-final-insns to
5026         -fdump-final-insns=..
5027         (get_local_tick): New.
5028         (compare_debug_dump_opt_spec_function): Test for . argument and
5029         compute output name.  Compute temp output spec without flag name.
5030         Compute -frandom-seed.
5031         (OPT): Undef after use.
5032         * cfgloopanal.c (num_loop_insns): Skip debug insns.
5033         (average_num_loop_insns): Likewise.
5034         * params.h (MIN_NONDEBUG_INSN_UID): New.
5035         * gimple.def (GIMPLE_DEBUG): New.
5036         * ipa-reference.c (scan_stmt_for_static_refs): Skip debug stmts.
5037         * auto-inc-dec.c (merge_in_block): Skip debug insns.
5038         (merge_in_block): Fix whitespace.
5039         * toplev.c (flag_var_tracking): Update comment.
5040         (flag_var_tracking_assignments): New.
5041         (flag_var_tracking_assignments_toggle): New.
5042         (process_options): Don't open final insns dump file if we're not
5043         going to write to it.  Compute defaults for var_tracking.
5044         * df-scan.c (df_insn_rescan_debug_internal): New.
5045         (df_uses_record): Handle debug insns.
5046         * haifa-sched.c (ready): Initialize n_debug.
5047         (contributes_to_priority): Skip debug insns.
5048         (dep_list_size): New.
5049         (priority): Use it.
5050         (rank_for_schedule): Likewise.  Schedule debug insns as soon as
5051         they're ready.  Disregard previous debug insns to make decisions.
5052         (queue_insn): Never queue debug insns.
5053         (ready_add, ready_remove_first, ready_remove): Count debug insns.
5054         (schedule_insn): Don't reject debug insns because of issue rate.
5055         (get_ebb_head_tail, no_real_insns_p): Skip boundary debug insns.
5056         (queue_to_ready): Skip and discount debug insns.
5057         (choose_ready): Let debug insns through.
5058         (schedule_block): Check boundary debug insns.  Discount debug
5059         insns, schedule them early.  Adjust whitespace.
5060         (set_priorities): Check for boundary debug insns.
5061         (add_jump_dependencies): Use dep_list_size.
5062         (prev_non_location_insn): New.
5063         (check_cfg): Use it.
5064         * tree-ssa-loop-ivopts.c (find-interesting_users): Skip debug
5065         stmts.
5066         (remove_unused_ivs): Reset debug stmts.
5067         * modulo-sched.c (const_iteration_count): Skip debug insns.
5068         (res_MII): Discount debug insns.
5069         (loop_single_full_bb_p): Skip debug insns.
5070         (sms_schedule): Likewise.
5071         (sms_schedule_by_order): Likewise.
5072         (ps_has_conflicts): Likewise.
5073         * caller-save.c (refmarker_fn): New.
5074         (save_call_clobbered_regs): Replace regs with saved mem in
5075         debug insns.
5076         (mark_referenced_regs): Take pointer, mark and arg.  Adjust.
5077         Call refmarker_fn mark for hardregnos.
5078         (mark_reg_as_referenced): New.
5079         (replace_reg_with_saved_mem): New.
5080         * ipa-pure-const.c (check_stmt): Skip debug stmts.
5081         * cse.c (cse_insn): Canonicalize debug insns.  Skip them when
5082         searching back.
5083         (cse_extended_basic_block): Skip debug insns.
5084         (count_reg_usage): Likewise.
5085         (is_dead_reg): New, split out of...
5086         (set_live_p): ... here.
5087         (insn_live_p): Use it for debug insns.
5088         * tree-stdarg.c (check_all_va_list_escapes): Skip debug stmts.
5089         (execute_optimize_stdarg): Likewise.
5090         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
5091         * tree-ssa-propagate.c (substitute_and_fold): Don't regard
5092         changes in debug stmts as changes.
5093         * sel-sched.c (moving_insn_creates_bookkeeping_block_p): New.
5094         (moveup_expr): Don't move across debug insns.  Don't move
5095         debug insn if it would create a bookkeeping block.
5096         (moveup_expr_cached): Don't use cache for debug insns that
5097         are heads of blocks.
5098         (compute_av_set_inside_bb): Skip debug insns.
5099         (sel_rank_for_schedule): Schedule debug insns first.  Remove
5100         dead code.
5101         (block_valid_for_bookkeeping_p); Support lax searches.
5102         (create_block_for_bookkeeping): Adjust block numbers when
5103         encountering debug-only blocks.
5104         (find_place_for_bookkeeping): Deal with debug-only blocks.
5105         (generate_bookkeeping_insn): Accept no place to insert.
5106         (remove_temp_moveop_nops): New argument full_tidying.
5107         (prepare_place_to_insert): Deal with debug insns.
5108         (advance_state_on_fence): Debug insns don't start cycles.
5109         (update_boundaries): Take fence as argument.  Deal with
5110         debug insns.
5111         (schedule_expr_on_boundary): No full_tidying on debug insns.
5112         (fill_insns): Deal with debug insns.
5113         (track_scheduled_insns_and_blocks): Don't count debug insns.
5114         (need_nop_to_preserve_insn_bb): New, split out of...
5115         (remove_insn_from_stream): ... this.
5116         (fur_orig_expr_not_found): Skip debug insns.
5117         * rtl.def (VALUE): Move up.
5118         (DEBUG_INSN): New.
5119         * tree-ssa-sink.c (all_immediate_uses_same_place): Skip debug stmts.
5120         (nearest_common_dominator_of_uses): Take debug_stmts argument.
5121         Set it if debug stmts are found.
5122         (statement_sink_location): Skip debug stmts.  Propagate
5123         moving defs into debug stmts.
5124         * ifcvt.c (first_active_insn): Skip debug insns.
5125         (last_active_insns): Likewise.
5126         (cond_exec_process_insns): Likewise.
5127         (noce_process_if_block): Likewise.
5128         (check_cond_move_block): Likewise.
5129         (cond_move_convert_if_block): Likewise.
5130         (block_jumps_and_fallthru_p): Likewise.
5131         (dead_or_predicable): Likewise.
5132         * dwarf2out.c (debug_str_hash_forced): New.
5133         (find_AT_string): Add comment.
5134         (gen_label_for_indirect_string): New.
5135         (get_debug_string_label): New.
5136         (AT_string_form): Use it.
5137         (mem_loc_descriptor): Handle non-TLS symbols.  Handle MINUS , DIV,
5138         MOD, AND, IOR, XOR, NOT, ABS, NEG, and CONST_STRING.  Accept but
5139         discard COMPARE, IF_THEN_ELSE, ROTATE, ROTATERT, TRUNCATE and
5140         several operations that cannot be represented with DWARF opcodes.
5141         (loc_descriptor): Ignore SIGN_EXTEND and ZERO_EXTEND.  Require
5142         dwarf_version 4 for DW_OP_implicit_value and DW_OP_stack_value.
5143         (dwarf2out_var_location): Take during-call mark into account.
5144         (output_indirect_string): Update comment.  Output if there are
5145         label and references.
5146         (prune_indirect_string): New.
5147         (prune_unused_types): Call it if debug_str_hash_forced.
5148         More in dwarf2out.c, from Jakub Jelinek <jakub@redhat.com>:
5149         (dw_long_long_const): Remove.
5150         (struct dw_val_struct): Change val_long_long type to rtx.
5151         (print_die, attr_checksum, same_dw_val_p, loc_descriptor): Adjust for
5152         val_long_long change to CONST_DOUBLE rtx from a long hi/lo pair.
5153         (output_die): Likewise.  Use HOST_BITS_PER_WIDE_INT size of each
5154         component instead of HOST_BITS_PER_LONG.
5155         (output_loc_operands): Likewise.  For const8* assert
5156         HOST_BITS_PER_WIDE_INT rather than HOST_BITS_PER_LONG is >= 64.
5157         (output_loc_operands_raw): For const8* assert HOST_BITS_PER_WIDE_INT
5158         rather than HOST_BITS_PER_LONG is >= 64.
5159         (add_AT_long_long): Remove val_hi and val_lo arguments, add
5160         val_const_double.
5161         (size_of_die): Use HOST_BITS_PER_WIDE_INT size multiplier instead of
5162         HOST_BITS_PER_LONG for dw_val_class_long_long.
5163         (add_const_value_attribute): Adjust add_AT_long_long caller.  Don't
5164         handle TLS SYMBOL_REFs.  If CONST wraps a constant, tail recurse.
5165         (dwarf_stack_op_name): Handle DW_OP_implicit_value and
5166         DW_OP_stack_value.
5167         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
5168         Handle DW_OP_implicit_value.
5169         (extract_int): Move prototype earlier.
5170         (mem_loc_descriptor): For SUBREG punt if inner
5171         mode size is wider than DWARF2_ADDR_SIZE.  Handle SIGN_EXTEND
5172         and ZERO_EXTEND by DW_OP_shl and DW_OP_shr{a,}.  Handle
5173         EQ, NE, GT, GE, LT, LE, GTU, GEU, LTU, LEU, SMIN, SMAX, UMIN,
5174         UMAX, SIGN_EXTRACT, ZERO_EXTRACT.
5175         (loc_descriptor): Compare mode size with DWARF2_ADDR_SIZE
5176         instead of Pmode size.
5177         (loc_descriptor): Add MODE argument.  Handle CONST_INT, CONST_DOUBLE,
5178         CONST_VECTOR, CONST, LABEL_REF and SYMBOL_REF if mode != VOIDmode,
5179         attempt to handle other expressions.  Don't handle TLS SYMBOL_REFs.
5180         (concat_loc_descriptor, concatn_loc_descriptor,
5181         loc_descriptor_from_tree_1): Adjust loc_descriptor callers.
5182         (add_location_or_const_value_attribute): Likewise.  For single
5183         location loc_lists attempt to use add_const_value_attribute
5184         for constant decls.  Add DW_AT_const_value even if
5185         NOTE_VAR_LOCATION is VAR_LOCATION with CONSTANT_P or CONST_STRING
5186         in its expression.
5187         * cfgbuild.c (inside_basic_block_p): Handle debug insns.
5188         (control_flow_insn_p): Likewise.
5189         * tree-parloops.c (eliminate_local_variables_stmt): Handle debug stmt.
5190         (separate_decls_in_region_debug_bind): New.
5191         (separate_decls_in_region): Process debug bind stmts afterwards.
5192         * recog.c (verify_changes): Handle debug insns.
5193         (extract_insn): Likewise.
5194         (peephole2_optimize): Skip debug insns.
5195         * dse.c (scan_insn): Skip debug insns.
5196         * sel-sched-ir.c (return_nop_to_pool): Take full_tidying argument.
5197         Pass it on.
5198         (setup_id_for_insn): Handle debug insns.
5199         (maybe_tidy_empty_bb): Adjust whitespace.
5200         (tidy_control_flow): Skip debug insns.
5201         (sel_remove_insn): Adjust for debug insns.
5202         (sel_estimate_number_of_insns): Skip debug insns.
5203         (create_insn_rtx_from_pattern): Handle debug insns.
5204         (create_copy_of_insn_rtx): Likewise.
5205         * sel-sched-.h (sel_bb_end): Declare.
5206         (sel_bb_empty_or_nop_p): New.
5207         (get_all_loop_exits): Use it.
5208         (_eligible_successor_edge_p): Likewise.
5209         (return_nop_to_pool): Adjust.
5210         * tree-eh.c (tre_empty_eh_handler_p): Skip debug stmts.
5211         * ira-lives.c (process_bb_node_lives): Skip debug insns.
5212         * gimple-pretty-print.c (dump_gimple_debug): New.
5213         (dump_gimple_stmt): Use it.
5214         (dump_bb_header): Skip gimple debug stmts.
5215         * regmove.c (optimize_reg_copy_1): Discount debug insns.
5216         (fixup_match_2): Likewise.
5217         (regmove_backward_pass): Likewise.  Simplify combined
5218         replacement.  Handle debug insns.
5219         * function.c (instantiate_virtual_regs): Handle debug insns.
5220         * function.h (struct emit_status): Add x_cur_debug_insn_uid.
5221         * print-rtl.h: Include cselib.h.
5222         (print_rtx): Print VALUEs.  Split out and recurse for VAR_LOCATIONs.
5223         * df.h (df_inns_rescan_debug_internal): Declare.
5224         * gcse.c (alloc_hash_table): Estimate n_insns.
5225         (cprop_insn): Don't regard debug insns as changes.
5226         (bypass_conditional_jumps): Skip debug insns.
5227         (one_pre_gcse_pass): Adjust.
5228         (one_code_hoisting_pass): Likewise.
5229         (compute_ld_motion_mems): Skip debug insns.
5230         (one_cprop_pass): Adjust.
5231         * tree-if-conv.c (tree_if_convert_stmt): Reset debug stmts.
5232         (if_convertible_stmt_p): Handle debug stmts.
5233         * init-regs.c (initialize_uninitialized_regs): Skip debug insns.
5234         * tree-vect-loop.c (vect_is_simple_reduction): Skip debug stmts.
5235         * ira-build.c (create_bb_allocnos): Skip debug insns.
5236         * tree-flow-inline.h (has_zero_uses): Discount debug stmts.
5237         (has_single_use): Likewise.
5238         (single_imm_use): Likewise.
5239         (num_imm_uses): Likewise.
5240         * tree-ssa-phiopt.c (empty_block_p): Skip debug stmts.
5241         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Skip debug stmts.
5242         (create_outofssa_var_map): Likewise.
5243         * lower-subreg.c (adjust_decomposed_uses): New.
5244         (resolve_debug): New.
5245         (decompose_multiword_subregs): Use it.
5246         * tree-dfa.c (find_referenced_vars): Skip debug stmts.
5247         * emit-rtl.c: Include params.h.
5248         (cur_debug_insn_uid): Define.
5249         (set_new_first_and_last_insn): Set cur_debug_insn_uid too.
5250         (copy_rtx_if_shared_1): Handle debug insns.
5251         (reset_used_flags): Likewise.
5252         (set_used_flags): LIkewise.
5253         (get_max_insn_count): New.
5254         (next_nondebug_insn): New.
5255         (prev_nondebug_insn): New.
5256         (make_debug_insn_raw): New.
5257         (emit_insn_before_noloc): Handle debug insns.
5258         (emit_jump_insn_before_noloc): Likewise.
5259         (emit_call_insn_before_noloc): Likewise.
5260         (emit_debug_insn_before_noloc): New.
5261         (emit_insn_after_noloc): Handle debug insns.
5262         (emit_jump_insn_after_noloc): Likewise.
5263         (emit_call_insn_after_noloc): Likewise.
5264         (emit_debug_insn_after_noloc): Likewise.
5265         (emit_insn_after): Take loc from earlier non-debug insn.
5266         (emit_jump_insn_after): Likewise.
5267         (emit_call_insn_after): Likewise.
5268         (emit_debug_insn_after_setloc): New.
5269         (emit_debug_insn_after): New.
5270         (emit_insn_before): Take loc from later non-debug insn.
5271         (emit_jump_insn_before): Likewise.
5272         (emit_call_insn_before): Likewise.
5273         (emit_debug_insn_before_setloc): New.
5274         (emit_debug_insn_before): New.
5275         (emit_insn): Handle debug insns.
5276         (emit_debug_insn): New.
5277         (emit_jump_insn): Handle debug insns.
5278         (emit_call_insn): Likewise.
5279         (emit): Likewise.
5280         (init_emit): Take min-nondebug-insn-uid into account.
5281         Initialize cur_debug_insn_uid.
5282         (emit_copy_of_insn_after): Handle debug insns.
5283         * cfgexpand.c (gimple_assign_rhs_to_tree): Do not overwrite
5284         location of single rhs in place.
5285         (maybe_dump_rtl_for_gimple_stmt): Dump lineno.
5286         (floor_sdiv_adjust): New.
5287         (cell_sdiv_adjust): New.
5288         (cell_udiv_adjust): New.
5289         (round_sdiv_adjust): New.
5290         (round_udiv_adjust): New.
5291         (wrap_constant): Moved from cselib.
5292         (unwrap_constant): New.
5293         (expand_debug_expr): New.
5294         (expand_debug_locations): New.
5295         (expand_gimple_basic_block): Drop hiding redeclaration.  Expand
5296         debug bind stmts.
5297         (gimple_expand_cfg): Expand debug locations.
5298         * cselib.c: Include tree-pass.h.
5299         (struct expand_value_data): New.
5300         (cselib_record_sets_hook): New.
5301         (PRESERVED_VALUE_P, LONG_TERM_PRESERVED_VALUE_P): New.
5302         (cselib_clear_table): Move, and implemnet in terms of...
5303         (cselib_reset_table_with_next_value): ... this.
5304         (cselib_get_next_unknown_value): New.
5305         (discard_useless_locs): Don't discard preserved values.
5306         (cselib_preserve_value): New.
5307         (cselib_preserved_value_p): New.
5308         (cselib_preserve_definitely): New.
5309         (cselib_clear_preserve): New.
5310         (cselib_preserve_only_values): New.
5311         (new_cselib_val): Take rtx argument.  Dump it in details.
5312         (cselib_lookup_mem): Adjust.
5313         (expand_loc): Take regs_active in struct.  Adjust.  Silence
5314         dumps unless details are requested.
5315         (cselib_expand_value_rtx_cb): New.
5316         (cselib_expand_value_rtx): Rename and reimplment in terms of...
5317         (cselib_expand_value_rtx_1): ... this.  Adjust.  Silence dumps
5318         without details.  Copy more subregs.  Try to resolve values
5319         using a callback.  Wrap constants.
5320         (cselib_subst_to_values): Adjust.
5321         (cselib_log_lookup): New.
5322         (cselib_lookup): Call it.
5323         (cselib_invalidate_regno): Don't count preserved values as useless.
5324         (cselib_invalidate_mem): Likewise.
5325         (cselib_record_set): Likewise.
5326         (struct set): Renamed to cselib_set, moved to cselib.h.
5327         (cselib_record_sets): Adjust.  Call hook.
5328         (cselib_process_insn): Reset table when it would be cleared.
5329         (dump_cselib_val): New.
5330         (dump_cselib_table): New.
5331         * tree-cfgcleanup.c (tree_forwarded_block_p): Skip debug stmts.
5332         (remove_forwarder_block): Support moving debug stmts.
5333         * cselib.h (cselib_record_sets_hook): Declare.
5334         (cselib_expand_callback): New type.
5335         (cselib_expand_value_rtx_cb): Declare.
5336         (cselib_reset_table_with_next_value): Declare.
5337         (cselib_get_next_unknown_value): Declare.
5338         (cselib_preserve_value): Declare.
5339         (cselib_preserved_value_p): Declare.
5340         (cselib_preserve_only_values): Declare.
5341         (dump_cselib_table): Declare.
5342         * cfgcleanup.c (flow_find_cross_jump): Skip debug insns.
5343         (try_crossjump_to_edge): Likewise.
5344         (delete_unreachable_blocks): Remove dominant GIMPLE blocks after
5345         dominated blocks when debug stmts are present.
5346         * simplify-rtx.c (delegitimize_mem_from_attrs): New.
5347         * tree-ssa-live.c (remove_unused_locals): Skip debug stmts.
5348         (set_var_live_on_entry): Likewise.
5349         * loop-invariant.c (find_invariants_bb): Skip debug insns.
5350         * cfglayout.c (curr_location, last_location): Make static.
5351         (set_curr_insn_source_location): Don't avoid bouncing.
5352         (get_curr_insn_source_location): New.
5353         (get_curr_insn_block): New.
5354         (duplicate_insn_chain): Handle debug insns.
5355         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Propagate
5356         into debug stmts.
5357         * common.opt (fcompare-debug): Move to sort order.
5358         (fdump-unnumbered-links): Likewise.
5359         (fvar-tracking-assignments): New.
5360         (fvar-tracking-assignments-toggle): New.
5361         * tree-ssa-dce.c (mark_stmt_necessary): Don't mark blocks
5362         because of debug stmts.
5363         (mark_stmt_if_obviously_necessary): Mark debug stmts.
5364         (eliminate_unnecessary_stmts): Walk dominated blocks before
5365         dominators.
5366         * tree-ssa-ter.c (find_replaceable_in_bb): Skip debug stmts.
5367         * ira.c (memref_used_between_p): Skip debug insns.
5368         (update_equiv_regs): Likewise.
5369         * sched-deps.c (sd_lists_size): Accept empty list.
5370         (sd_init_insn): Mark debug insns.
5371         (sd_finish_insn): Unmark them.
5372         (sd_add_dep): Reject non-debug deps on debug insns.
5373         (fixup_sched_groups): Give debug insns group treatment.
5374         Skip debug insns.
5375         (sched_analyze_reg): Don't mark debug insns for sched before call.
5376         (sched_analyze_2): Handle debug insns.
5377         (sched_analyze_insn): Compute next non-debug insn.  Handle debug
5378         insns.
5379         (deps_analyze_insn): Handle debug insns.
5380         (deps_start_bb): Skip debug insns.
5381         (init_deps): Initialize last_debug_insn.
5382         * tree-ssa.c (target_for_debug_bind): New.
5383         (find_released_ssa_name): New.
5384         (propagate_var_def_into_debug_stmts): New.
5385         (propagate_defs_into_debug_stmts): New.
5386         (verify_ssa): Skip debug bind stmts without values.
5387         (warn_uninialized_vars): Skip debug stmts.
5388         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Set default.
5389         * rtl.c (rtx_equal_p_cb): Handle VALUEs.
5390         (rtx_equal_p): Likewise.
5391         * ira-costs.c (scan_one_insn): Skip debug insns.
5392         (process_bb_node_for_hard_reg_moves): Likewise.
5393         * rtl.h (DEBUG_INSN_P): New.
5394         (NONDEBUG_INSN_P): New.
5395         (MAY_HAVE_DEBUG_INSNS): New.
5396         (INSN_P): Accept debug insns.
5397         (RTX_FRAME_RELATED_P): Likewise.
5398         (INSN_DELETED_P): Likewise
5399         (PAT_VAR_LOCATION_DECL): New.
5400         (PAT_VAR_LOCATION_LOC): New.
5401         (PAT_VAR_OCATION_STATUS): New.
5402         (NOTE_VAR_LOCATION_DECL): Reimplement.
5403         (NOTE_VAR_LOCATION_LOC): Likewise.
5404         (NOTE_VAR_LOCATION_STATUS): Likewise.
5405         (INSN_VAR_LOCATION): New.
5406         (INSN_VAR_LOCATION_DECL): New.
5407         (INSN_VAR_LOCATION_LOC): New.
5408         (INSN_VAR_LOCATION_STATUS): New.
5409         (gen_rtx_UNKNOWN_VAR_LOC): New.
5410         (VAR_LOC_UNKNOWN_P): New.
5411         (NOTE_DURING_CALL_P): New.
5412         (SCHED_GROUP_P): Accept debug insns.
5413         (emit_debug_insn_before): Declare.
5414         (emit_debug_insn_before_noloc): Declare.
5415         (emit_debug_insn_beore_setloc): Declare.
5416         (emit_debug_insn_after): Declare.
5417         (emit_debug_insn_after_noloc): Declare.
5418         (emit_debug_insn_after_setloc): Declare.
5419         (emit_debug_insn): Declare.
5420         (make_debug_insn_raw): Declare.
5421         (prev_nondebug_insn): Declare.
5422         (next_nondebug_insn): Declare.
5423         (delegitimize_mem_from_attrs): Declare.
5424         (get_max_insn_count): Declare.
5425         (wrap_constant): Declare.
5426         (unwrap_constant): Declare.
5427         (get_curr_insn_source_location): Declare.
5428         (get_curr_insn_block): Declare.
5429         * tree-inline.c (insert_debug_decl_map): New.
5430         (processing_debug_stmt): New.
5431         (remap_decl): Don't create new mappings in debug stmts.
5432         (remap_gimple_op_r): Don't add references in debug stmts.
5433         (copy_tree_body_r): Likewise.
5434         (remap_gimple_stmt): Handle debug bind stmts.
5435         (copy_bb): Skip debug stmts.
5436         (copy_edges_for_bb): Likewise.
5437         (copy_debug_stmt): New.
5438         (copy_debug_stmts): New.
5439         (copy_body): Copy debug stmts at the end.
5440         (insert_init_debug_bind): New.
5441         (insert_init_stmt): Take id.  Skip and emit debug stmts.
5442         (setup_one_parameter): Remap variable earlier, register debug mapping.
5443         (estimate_num_insns): Skip debug stmts.
5444         (expand_call_inline): Preserve debug_map.
5445         (optimize_inline_calls): Check for no debug_stmts left-overs.
5446         (unsave_expr_now): Preserve debug_map.
5447         (copy_gimple_seq_and_replace_locals): Likewise.
5448         (tree_function_versioning): Check for no debug_stmts left-overs.
5449         Init and destroy debug_map as needed.  Split edges unconditionally.
5450         (build_duplicate_type): Init and destroy debug_map as needed.
5451         * tree-inline.h: Include gimple.h instead of pointer-set.h.
5452         (struct copy_body_data): Add debug_stmts and debug_map.
5453         * sched-int.h (struct ready_list): Add n_debug.
5454         (struct deps): Add last_debug_insn.
5455         (DEBUG_INSN_SCHED_P): New.
5456         (BOUNDARY_DEBUG_INSN_P): New.
5457         (SCHEDULE_DEBUG_INSN_P): New.
5458         (sd_iterator_cond): Accept empty list.
5459         * combine.c (create_log_links): Skip debug insns.
5460         (combine_instructions): Likewise.
5461         (cleanup_auto_inc_dec): New.  From Jakub Jelinek: Make sure the
5462         return value is always unshared.
5463         (struct rtx_subst_pair): New.
5464         (auto_adjust_pair): New.
5465         (propagate_for_debug_subst): New.
5466         (propagate_for_debug): New.
5467         (try_combine): Skip debug insns.  Propagate removed defs into
5468         debug insns.
5469         (next_nonnote_nondebug_insn): New.
5470         (distribute_notes): Use it.  Skip debug insns.
5471         (distribute_links): Skip debug insns.
5472         * tree-outof-ssa.c (set_location_for_edge): Likewise.
5473         * resource.c (mark_target_live_regs): Likewise.
5474         * var-tracking.c: Include cselib.h and target.h.
5475         (enum micro_operation_type): Add MO_VAL_USE, MO_VAL_LOC, and
5476         MO_VAL_SET.
5477         (micro_operation_type_name): New.
5478         (enum emit_note_where): Add EMIT_NOTE_AFTER_CALL_INSN.
5479         (struct micro_operation_def): Update comments.
5480         (decl_or_value): New type.  Use instead of decls.
5481         (struct emit_note_data_def): Add vars.
5482         (struct attrs_def): Use decl_or_value.
5483         (struct variable_tracking_info_def): Add permp, flooded.
5484         (struct location_chain_def): Update comment.
5485         (struct variable_part_def): Use decl_or_value.
5486         (struct variable_def): Make var_part a variable length array.
5487         (valvar_pool): New.
5488         (scratch_regs): New.
5489         (cselib_hook_called): New.
5490         (dv_is_decl_p): New.
5491         (dv_is_value_p): New.
5492         (dv_as_decl): New.
5493         (dv_as_value): New.
5494         (dv_as_opaque): New.
5495         (dv_onepart_p): New.
5496         (dv_pool): New.
5497         (IS_DECL_CODE): New.
5498         (check_value_is_not_decl): New.
5499         (dv_from_decl): New.
5500         (dv_from_value): New.
5501         (dv_htab_hash): New.
5502         (variable_htab_hash): Use it.
5503         (variable_htab_eq): Support values.
5504         (variable_htab_free): Free from the right pool.
5505         (attrs_list_member, attrs_list_insert): Use decl_or_value.
5506         (attrs_list_union): Adjust.
5507         (attrs_list_mpdv_union): New.
5508         (tie_break_pointers): New.
5509         (canon_value_cmp): New.
5510         (unshare_variable): Return possibly-modified slot.
5511         (vars_copy_1): Adjust.
5512         (var_reg_decl_set): Adjust.  Split out of...
5513         (var_reg_set): ... this.
5514         (get_init_value): Adjust.
5515         (var_reg_delete_and_set): Adjust.
5516         (var_reg_delete): Adjust.
5517         (var_regno_delete): Adjust.
5518         (var_mem_decl_set): Split out of...
5519         (var_mem_set): ... this.
5520         (var_mem_delete_and_set): Adjust.
5521         (var_mem_delete): Adjust.
5522         (val_store): New.
5523         (val_reset): New.
5524         (val_resolve): New.
5525         (variable_union): Adjust.  Speed up merge of 1-part vars.
5526         (variable_canonicalize): Use unshared slot.
5527         (VALUED_RECURSED_INTO): New.
5528         (find_loc_in_1pdv): New.
5529         (struct dfset_merge): New.
5530         (insert_into_intersection): New.
5531         (intersect_loc_chains): New.
5532         (loc_cmp): New.
5533         (canonicalize_loc_order_check): New.
5534         (canonicalize_values_mark): New.
5535         (canonicalize_values_star): New.
5536         (variable_merge_over_cur): New.
5537         (variable_merge_over_src): New.
5538         (dataflow_set_merge): New.
5539         (dataflow_set_equiv_regs): New.
5540         (remove_duplicate_values): New.
5541         (struct dfset_post_merge): New.
5542         (variable_post_merge_new_vals): New.
5543         (variable_post_merge_perm_vals): New.
5544         (dataflow_post_merge_adjust): New.
5545         (find_mem_expr_in_1pdv): New.
5546         (dataflow_set_preserve_mem_locs): New.
5547         (dataflow_set_remove_mem_locs): New.
5548         (dataflow_set_clear_at_call): New.
5549         (onepart_variable_different_p): New.
5550         (variable_different_p): Use it.
5551         (dataflow_set_different_1): Adjust.  Make detailed dump more verbose.
5552         (track_expr_p): Add need_rtl parameter.  Don't generate rtl
5553         if not needed.
5554         (track_loc_p): Pass it true.
5555         (struct count_use_info): New.
5556         (find_use_val): New.
5557         (replace_expr_with_values): New.
5558         (log_op_type): New.
5559         (use_type): New, partially split out of...
5560         (count_uses): ... this.  Count new micro-ops.
5561         (count_uses_1): Adjust.
5562         (count_stores): Adjust.
5563         (count_with_sets): New.
5564         (VAL_NEEDS_RESOLUTION): New.
5565         (VAL_HOLDS_TRACK_EXPR): New.
5566         (VAL_EXPR_IS_COPIED): New.
5567         (VAL_EXPR_IS_CLOBBERED): New.
5568         (add_uses): Adjust.  Generate new micro-ops.
5569         (add_uses_1): Adjust.
5570         (add_stores): Generate new micro-ops.
5571         (add_with_sets): New.
5572         (find_src_status): Adjust.
5573         (find_src_set_src): Adjust.
5574         (compute_bb_dataflow): Use dataflow_set_clear_at_call.
5575         Handle new micro-ops.  Canonicalize value equivalances.
5576         (vt_find_locations): Compute total size of hash tables for
5577         dumping.  Perform merge for var-tracking-assignments.  Don't
5578         disregard single-block loops.
5579         (dump_attrs_list): Handle decl_or_value.
5580         (dump_variable): Take variable.  Deal with decl_or_value.
5581         (dump_variable_slot): New.
5582         (dump_vars): Use it.
5583         (dump_dataflow_sets): Adjust.
5584         (set_slot_part): New, extended to support one-part variables
5585         after splitting out of...
5586         (set_variable_part): ... this.
5587         (clobber_slot_part): New, split out of...
5588         (clobber_variable_part): ... this.
5589         (delete_slot_part): New, split out of...
5590         (delete_variable_part): .... this.
5591         (check_wrap_constant): New.
5592         (vt_expand_loc_callback): New.
5593         (vt_expand_loc): New.
5594         (emit_note_insn_var_location): Adjust.  Handle values.  Handle
5595         EMIT_NOTE_AFTER_CALL_INSN.
5596         (emit_notes_for_differences_1): Adjust.  Handle values.
5597         (emit_notes_for_differences_2): Likewise.
5598         (emit_notes_for_differences): Adjust.
5599         (emit_notes_in_bb): Take pointer to set.  Emit AFTER_CALL_INSN notes.
5600         Adjust.  Handle new micro-ops.
5601         (vt_add_function_parameters): Adjust.  Create and bind values.
5602         (vt_initialize): Adjust.  Initialize scratch_regs and
5603         valvar_pool, flooded and perm..  Initialize and use cselib.  Log
5604         operations.  Move some code to count_with_sets and add_with_sets.
5605         (delete_debug_insns): New.
5606         (vt_debug_insns_local): New.
5607         (vt_finalize): Release permp, valvar_pool, scratch_regs.  Finish
5608         cselib.
5609         (var_tracking_main): If var-tracking-assignments is enabled
5610         but var-tracking isn't, delete debug insns and leave.  Likewise
5611         if we exceed limits or fail the stack adjustments tests, and
5612         after all var-tracking processing.
5613         More in var-tracking, from Jakub Jelinek <jakub@redhat.com>:
5614         (dataflow_set): Add traversed_vars.
5615         (value_chain, const_value_chain): New typedefs.
5616         (value_chain_pool, value_chains): New variables.
5617         (value_chain_htab_hash, value_chain_htab_eq, add_value_chain,
5618         add_value_chains, add_cselib_value_chains, remove_value_chain,
5619         remove_value_chains, remove_cselib_value_chains): New functions.
5620         (shared_hash_find_slot_unshare_1, shared_hash_find_slot_1,
5621         shared_hash_find_slot_noinsert_1, shared_hash_find_1): New
5622         static inlines.
5623         (shared_hash_find_slot_unshare, shared_hash_find_slot,
5624         shared_hash_find_slot_noinsert, shared_hash_find): Update.
5625         (dst_can_be_shared): New variable.
5626         (unshare_variable): Unshare set->vars if shared, use shared_hash_*.
5627         Clear dst_can_be_shared.  If set->traversed_vars is non-NULL and
5628         different from set->vars, look up slot again instead of using the
5629         passed in slot.
5630         (dataflow_set_init): Initialize traversed_vars.
5631         (variable_union): Use shared_hash_*.  Use initially NO_INSERT
5632         lookup if set->vars is shared.  Don't keep slot cleared before
5633         calling unshare_variable.  Unshare set->vars if needed.  Adjust
5634         unshare_variable callers.  Clear dst_can_be_shared if needed.
5635         Even ->refcount == 1 vars must be unshared if set->vars is shared
5636         and var needs to be modified.
5637         (dataflow_set_union): Set traversed_vars during canonicalization.
5638         (VALUE_CHANGED, DECL_CHANGED): Define.
5639         (set_dv_changed, dv_changed_p): New static inlines.
5640         (track_expr_p): Clear DECL_CHANGED.
5641         (dump_dataflow_sets): Set it.
5642         (variable_was_changed): Call set_dv_changed.
5643         (emit_note_insn_var_location): Likewise.
5644         (changed_variables_stack): New variable.
5645         (check_changed_vars_1, check_changed_vars_2): New functions.
5646         (emit_notes_for_changes): Do nothing if changed_variables is
5647         empty.  Traverse changed_variables with check_changed_vars_1,
5648         call check_changed_vars_2 on each changed_variables_stack entry.
5649         (emit_notes_in_bb): Add SET argument.  Just clear it at the
5650         beginning, use it instead of local &set, don't destroy it at the end.
5651         (vt_emit_notes): Call dataflow_set_clear early on all
5652         VTI(bb)->out sets, never use them, instead use emit_notes_in_bb
5653         computed set, dataflow_set_clear also VTI(bb)->in when we are
5654         done with the basic block.  Initialize changed_variables_stack,
5655         free it afterwards.  If ENABLE_CHECKING verify that after noting
5656         differences to an empty set value_chains hash table is empty.
5657         (vt_initialize): Initialize value_chains and value_chain_pool.
5658         (vt_finalize): Delete value_chains htab, free value_chain_pool.
5659         (variable_tracking_main): Call dump_dataflow_sets before calling
5660         vt_emit_notes, not after it.
5661         * tree-flow.h (propagate_defs_into_debug_stmts): Declare.
5662         (propagate_var_def_into_debug_stmts): Declare.
5663         * df-problems.c (df_lr_bb_local_compute): Skip debug insns.
5664         (df_set_note): Reject debug insns.
5665         (df_whole_mw_reg_dead_p): Take added_notes_p argument.  Don't
5666         add notes to debug insns.
5667         (df_note_bb_compute): Adjust.  Likewise.
5668         (df_simulate_uses): Skip debug insns.
5669         (df_simulate_initialize_backwards): Likewise.
5670         * reg-stack.c (subst_stack_regs_in_debug_insn): New.
5671         (subst_stack_regs_pat): Reject debug insns.
5672         (convert_regs_1): Handle debug insns.
5673         * Makefile.in (TREE_INLINE_H): Take pointer-set.h from GIMPLE_H.
5674         (print-rtl.o): Depend on cselib.h.
5675         (cselib.o): Depend on TREE_PASS_H.
5676         (var-tracking.o): Depend on cselib.h and TARGET_H.
5677         * sched-rgn.c (rgn_estimate_number_of_insns): Discount debug insns.
5678         (init_ready_list): Skip boundary debug insns.
5679         (add_branch_dependences): Skip debug insns.
5680         (free_block_dependencies): Check for blocks with only debug insns.
5681         (compute_priorities): Likewise.
5682         * gimple.c (gss_for_code): Handle GIMPLE_DEBUG.
5683         (gimple_build_with_ops_stat): Take subcode as unsigned.  Adjust
5684         all callers.
5685         (gimple_build_debug_bind_stat): New.
5686         (empty_body_p): Skip debug stmts.
5687         (gimple_has_side_effects): Likewise.
5688         (gimple_rhs_has_side_effects): Likewise.
5689         * gimple.h (enum gimple_debug_subcode, GIMPLE_DEBUG_BIND): New.
5690         (gimple_build_debug_bind_stat): Declare.
5691         (gimple_build_debug_bind): Define.
5692         (is_gimple_debug): New.
5693         (gimple_debug_bind_p): New.
5694         (gimple_debug_bind_get_var): New.
5695         (gimple_debug_bind_get_value): New.
5696         (gimple_debug_bind_get_value_ptr): New.
5697         (gimple_debug_bind_set_var): New.
5698         (gimple_debug_bind_set_value): New.
5699         (GIMPLE_DEBUG_BIND_NOVALUE): New internal temporary macro.
5700         (gimple_debug_bind_reset_value): New.
5701         (gimple_debug_bind_has_value_p): New.
5702         (gsi_next_nondebug): New.
5703         (gsi_prev_nondebug): New.
5704         (gsi_start_nondebug_bb): New.
5705         (gsi_last_nondebug_bb): New.
5706         * sched-vis.c (print_pattern): Handle VAR_LOCATION.
5707         (print_insn): Handle DEBUG_INSN.
5708         * tree-cfg.c (remove_bb): Walk stmts backwards.  Let loc
5709         of first insn prevail.
5710         (first_stmt): Skip debug stmts.
5711         (first_non_label_stmt): Likewise.
5712         (last_stmt): Likewise.
5713         (has_zero_uses_1): New.
5714         (single_imm_use_1): New.
5715         (verify_gimple_debug): New.
5716         (verify_types_in_gimple_stmt): Handle debug stmts.
5717         (verify_stmt): Likewise.
5718         (debug_loop_num): Skip debug stmts.
5719         (remove_edge_and_dominated_blocks): Remove dominators last.
5720         * tree-ssa-reasssoc.c (rewrite_expr_tree): Propagate into debug stmts.
5721         (linearize_expr): Likewise.
5722         * config/i386/i386.c (ix86_delegitimize_address): Call
5723         default implementation.
5724         * config/ia64/ia64.c (ia64_safe_itanium_class): Handle debug insns.
5725         (group_barrier_needed): Skip debug insns.
5726         (emit_insn_group_barriers): Likewise.
5727         (emit_all_insn_group_barriers): Likewise.
5728         (ia64_variable_issue): Handle debug insns.
5729         (ia64_dfa_new_cycle): Likewise.
5730         (final_emit_insn_group_barriers): Skip debug insns.
5731         (ia64_dwarf2out_def_steady_cfa): Take frame argument.  Don't
5732         def cfa without frame.
5733         (process_set): Likewise.
5734         (process_for_unwind_directive): Pass frame on.
5735         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
5736         (rs6000_delegitimize_address): New.
5737         (rs6000_debug_adjust_cost): Handle debug insns.
5738         (is_microcoded_insn): Likewise.
5739         (is_cracked_insn): Likewise.
5740         (is_nonpipeline_insn): Likewise.
5741         (insn_must_be_first_in_group): Likewise.
5742         (insn_must_be_last_in_group): Likewise.
5743         (force_new_group): Likewise.
5744         * cfgrtl.c (rtl_split_block): Emit INSN_DELETED note if block
5745         contains only debug insns.
5746         (rtl_merge_blocks): Skip debug insns.
5747         (purge_dead_edges): Likewise.
5748         (rtl_block_ends_with_call_p): Skip debug insns.
5749         * dce.c (deletable_insn_p): Handle VAR_LOCATION.
5750         (mark_reg_dependencies): Skip debug insns.
5751         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): New.
5752         * tree-ssanames.c (release_ssa_name): Propagate def into debug stmts.
5753         * tree-ssa-threadedge.c
5754         (record_temporary_equivalences_from_stmts): Skip debug stmts.
5755         * regcprop.c (replace_oldest_value_addr): Skip debug insns.
5756         (replace_oldest_value_mem): Use ALL_REGS for debug insns.
5757         (copyprop_hardreg_forward_1): Handle debug insns.
5758         * reload1.c (reload): Skip debug insns.  Replace unassigned
5759         pseudos in debug insns with their equivalences.
5760         (eliminate_regs_in_insn): Skip debug insns.
5761         (emit_input_reload_insns): Skip debug insns at first, adjust
5762         them later.
5763         * tree-ssa-operands.c (add_virtual_operand): Reject debug stmts.
5764         (get_indirect_ref_operands): Pass opf_no_vops on.
5765         (get_expr_operands): Likewise.  Skip debug stmts.
5766         (parse_ssa_operands): Scan debug insns with opf_no_vops.
5767
5768 2009-09-01  Richard Henderson  <rth@redhat.com>
5769
5770         * tree-ssa-ccp.c (ccp_initialize): Make sure to simulate
5771         stmt_ends_pp_p statements at least once.
5772         * tree-vrp.c (vrp_initialize): Likewise.
5773         (vrp_visit_stmt): Be prepared for non-interesting stmts.
5774
5775 2009-09-01  Dodji Seketeli  <dodji@redhat.com>
5776
5777         PR bootstrap/41205
5778         Fix AIX bootstrap after PR debug/30161
5779         * dwarf2out.c (make_ith_pack_parameter_name): Don't used strnlen
5780         that is a GNU extension.
5781         (tmpl_value_parm_die_table): Move the definition of this global
5782         outside #ifdef DWARF2_DEBUGGING_INFO region.
5783
5784 2009-09-01  Richard Guenther  <rguenther@suse.de>
5785
5786         * tree.c (tree_expr_size): New function.
5787         * tree.h (tree_expr_size): Declare.
5788         * rtlanal.c (rtx_addr_can_trap_p_1): Adjust comment.
5789         * builtins.c (fold_builtin_memory_op): Use tree_expr_size.
5790         * langhooks.c (lhd_expr_size): Remove.
5791         * langhooks.h (struct lang_hooks): Remove expr_size.
5792         * explow.c (expr_size): Use tree_expr_size.
5793         (int_expr_size): Likewise.
5794         * langhooks-def.h (lhd_expr_size): Remove.
5795         (LANG_HOOKS_EXPR_SIZE): Likewise.
5796         (LANG_HOOKS_INITIALIZER): Adjust.
5797
5798 2009-09-01  Richard Guenther  <rguenther@suse.de>
5799
5800         * tree-flow.h (mark_addressable): Move declaration ...
5801         * tree.h (mark_addressable): ... here.
5802         * stmt.c (expand_asm_operands): Use mark_addressable, not
5803         lang_hooks.mark_addressable.
5804         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
5805         LANG_HOOKS_MARK_ADDRESSABLE.
5806         * langhooks.h (struct lang_hooks): Remove mark_addressable langhook.
5807         * c-objc-common.h (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
5808
5809 2009-08-31  Chris Demetriou  <cgd@google.com>
5810
5811         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Never
5812         vectorize if not TARGET_SSE2.
5813
5814 2009-08-31  DJ Delorie  <dj@redhat.com>
5815
5816         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Exclude coprocessor
5817         registers if no coprocessor is enabled.
5818
5819 2009-08-31  Dodji Seketeli  <dodji@redhat.com>
5820
5821         PR debug/30161
5822         * cgraph.h (cgraph_get_node): Declare ...
5823         * cgraph.c (cgraph_get_node): ... new function.
5824         * dwarf2out.c (gen_generic_params_dies,
5825         generic_parameter_die, tree_add_const_value_attribute_for_decl,
5826         make_ith_pack_parameter_name,
5827         append_entry_to_tmpl_value_parm_die_table,
5828         gen_remaining_tmpl_value_param_die_attribute): New functions.
5829         (gen_subprogram_die): Generate debug info for template parameters
5830         if debug info level is higher than DINFO_LEVEL_TERSE.
5831         Use tree_add_const_value_attribute_for_decl instead of
5832         tree_add_const_value_attribute.
5833         (gen_const_die): Use tree_add_const_value_attribute_for_decl
5834         instead of tree_add_const_value_attribute.
5835         (gen_struct_or_union_type_die): Generate debug
5836         info for template parameters if debug info level is higher than
5837         DINFO_LEVEL_TERSE.
5838         (tree_add_const_value_attribute): Handle integral and pointer
5839         constants. Update comment.
5840         (dwarf_tag_name): Support DW_TAG_GNU_template_template_param.
5841         (dwarf_attr_name): Support DW_AT_GNU_template_name.
5842         (reference_to_unused): Fix thinko. Remove redundant predicates from
5843         tests.
5844         (tree_add_const_value_attribute): Make this work for constant
5845         expressions only.
5846         tree_add_const_value_attribute_for_decl is to be used for variable
5847         DECLs now.
5848         (add_location_or_const_value_attribute): Use
5849         tree_add_const_value_attribute_for_decl now.
5850         (dwarf2out_finish): Emit the DW_AT_const_value attribute of
5851         DW_TAG_template_value_param DIEs after function DIEs have been
5852         emitted.
5853         * langhooks.h (lang_hooks_for_types): Add
5854         get_argument_pack_elems.
5855         (lang_hooks_for_decls): Add generic_generic_parameter_decl_p.
5856         (lang_hooks): Added get_innermost_generic_parms,
5857         get_innermost_generic_args.
5858         * langhooks-def.h (LANG_HOOKS_GET_INNERMOST_GENERIC_PARMS,
5859         LANG_HOOKS_GET_INNERMOST_GENERIC_ARGS,
5860         LANG_HOOKS_GET_ARGUMENT_PACK_ELEMS,
5861         LANG_HOOKS_GENERIC_GENERIC_PARAMETER_DECL_P): New language hooks.
5862
5863 2009-08-31  DJ Delorie  <dj@redhat.com>
5864
5865         * config/mep/mep.c (machine_function): Add frame_locked flag.  Set
5866         it once we start generating the prologue or epilogue.
5867         (mep_call_saves_register): If the frame is locked, re-use
5868         cached values.
5869         (mep_assign_save_slots): New, broken out from mep_expand_prologue.
5870         (mep_expand_prologue): Call it.
5871         (mep_expand_epilogue): Likewise.
5872         (mep_start_function): Use the same logic as mep_expand_prologue.
5873         (mep_pass_by_reference): Make logic more readable.
5874         (mep_return_in_memory): Zero-sized objects are passed in memory.
5875         (mep_reorg_noframe): Make sure we have accurate REG_DEAD notes.
5876
5877 2009-08-31  Richard Guenther  <rguenther@suse.de>
5878
5879         * builtins.c (fold_builtin_memory_op): Use the alias oracle
5880         to query if the memory regions for memmove overlap.
5881         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Relax the
5882         asserts on pointers, instead deal with odd trees.
5883         (ptr_derefs_may_alias_p): Likewise.
5884         (refs_may_alias_p_1): Constructor bases also never alias.
5885
5886 2009-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5887
5888         * doc/install.texi (Final install): Adjust reference on where to
5889         order printed manuals.
5890
5891 2009-08-30  Olivier Hainque  <hainque@adacore.com>
5892
5893         * dwarf2out.c (switch_to_frame_table_section): Move
5894         definition prior to first use.
5895
5896 2009-08-30  Richard Guenther  <rguenther@suse.de>
5897
5898         PR tree-optimization/41186
5899         * tree-ssa-alias.c (ptr_deref_may_alias_ref_p): Remove.
5900         (ao_ref_init_from_ptr_and_size): New function.
5901         (ref_maybe_used_by_call_p_1): Be more precise tracking
5902         used ranges for builtin functions.
5903         (ref_maybe_used_by_call_p): Adjust.
5904         (call_may_clobber_ref_p_1): Be more precise tracking clobbered
5905         ranges for builtin functions.
5906         * tree-ssa-alias.h (ao_ref_init_from_ptr_and_size): Declare.
5907
5908 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
5909
5910         PR target/41081
5911         * fwprop.c (get_reg_use_in): Delete.
5912         (free_load_extend): New function.
5913         (forward_propagate_subreg): Use it.
5914
5915 2009-08-29  Kaz Kojima  <kkojima@gcc.gnu.org>
5916
5917         * config.gcc (sh*-*-elf): Add superh stuff only for sh*-superh-elf.
5918
5919 2009-08-29  Kai Tietz<kai.tietz@onevision.com>
5920
5921         PR/41184
5922         * config/i386.c (ix86_expand_epilogue): Correct stack adjustment for
5923         padding.
5924
5925 2009-08-29  Douglas B Rupp  <rupp@gnat.com>
5926
5927         * crtstuff.c (__do_global_dtors_aux): Use atexit if no
5928         fini or fini_array section.
5929
5930 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5931
5932         * graphite-dependences.c (graphite_legal_transform_bb): Call
5933         pbb_remove_duplicate_pdrs.
5934         * graphite-poly.c (can_collapse_pdr): Removed.
5935         (pdr_find_duplicate): Removed.
5936         (can_collapse_pdrs): New.
5937         (pbb_remove_duplicate_pdrs): New.
5938         (new_poly_dr): Do not look for duplicates.
5939         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
5940         (PBB_PDR_DUPLICATES_REMOVED): New.
5941         (pbb_remove_duplicate_pdrs): Declared.
5942
5943 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5944
5945         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
5946         the strides by multiplying by PDR_NB_REFS.
5947         * graphite-poly.c (can_collapse_pdr): New.
5948         (pdr_find_duplicate): New.
5949         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
5950         Initialize PDR_NB_REFS.
5951         * graphite-poly.h (struct poly_dr): Add field nb_refs.
5952         (PDR_NB_REFS): New.
5953         (new_poly_dr): Number of subscripts is a graphite_dim_t.
5954
5955 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5956
5957         PR middle-end/40965
5958         * graphite-poly.c (apply_poly_transforms): Remove legality test before
5959         any transform.
5960
5961 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5962
5963         * graphite-dependences.c (pddr_original_scattering): Return NULL
5964         for read-read dependence relations.
5965         * graphite-poly.h (enum poly_dr_type): Fix comment.
5966         (pdr_read_p): New.
5967         (pdr_write_p): New.
5968         (pdr_may_write_p): New.
5969
5970 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
5971
5972         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
5973         (struct poly_dr): Same.
5974         (new_poly_dr): Same.
5975         * graphite-poly.c (new_poly_dr): Same.
5976         * graphite-dependences.c (dot_deps): Disable call to system.
5977
5978 2009-08-28  Cary Coutant  <ccoutant@google.com>
5979
5980         PR debug/41063
5981         * dwarf2out.c (gen_type_die_with_usage): Use proper context for
5982         struct/union/enum types local to a function.
5983
5984 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
5985             Sebastian Pop  <sebastian.pop@amd.com>
5986
5987         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
5988         pbb_strip_mine_time_depth.  Changed the implementation so that
5989         transformation is expressed as a transformation on
5990         time (scatttering) dimensions.  Also, ensures that the 2d+1
5991         scheduling format is preserved.
5992         (pbb_strip_mine_profitable_p): Profitability is based on the
5993         iteration number of a given time (scattering) dimension,
5994         and not on a original loop depth dimension.
5995         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
5996         (pbb_do_strip_mine): Call psct_dynamic_dim.
5997         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
5998         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
5999         (pbb_nb_dynamic_scattering_transform): New.
6000         (psct_dynamic_dim): New.
6001
6002 2009-08-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
6003
6004         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6005         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
6006         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
6007         * graphite-interchange.c (build_linearized_memory_access): Same.
6008         (memory_stride_in_loop): Same.
6009
6010 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6011
6012         * graphite-dependences.c (pddr_original_scattering): New.
6013         (graphite_legal_transform_dr): Call pddr_original_scattering.
6014         (dot_deps_1): New.
6015         (dot_deps): New.
6016         * graphite-dependences.h (dot_deps): Declared.
6017         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
6018         (print_pdr): Print PDR_ID.
6019         * graphite-poly.h (struct poly_dr): Add field id.
6020         (PDR_ID): New.
6021         (pbb_index): New.
6022         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
6023
6024 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6025
6026         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
6027         not delete the original dependence relation.
6028
6029 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6030
6031         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
6032         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
6033         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
6034         (free_poly_ddr): New.
6035         (pddr_is_empty): New.
6036         (dependence_polyhedron_1): Now returns a poly_ddr_p.
6037         (dependence_polyhedron): Same.  Remove useless gcc_assert.
6038         Remove fprintfs.
6039         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
6040         (graphite_carried_dependence_level_k): Call pddr_is_empty.
6041         * graphite-dependences.h (enum poly_dependence_kind): New.
6042         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
6043         (PDRP_SOURCE): Renamed PDDR_SOURCE.
6044         (PDRP_SINK): Renamed PDDR_SINK.
6045         (PDRP_DDP): Renamed PDDR_DDP.
6046         (PDDR_KIND): New.
6047         (free_poly_ddr): Declared.
6048         * graphite-poly.c (new_scop): Use the new hash function names.
6049         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
6050         into original_pddrs.
6051         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
6052
6053 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6054
6055         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
6056         bounds with LT_EXPR to make niter analysis more precise on code
6057         generated by Graphite.
6058
6059 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
6060
6061         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
6062         (graphite_legal_transform_bb): Same.
6063         (poly_drs_may_alias_p): Same.
6064
6065 2009-08-28  Richard Guenther  <rguenther@suse.de>
6066
6067         * tree.def: Remove note about obsolete TYPE_NONCOPIED_PARTS.
6068
6069 2009-08-28  Jan Beulich  <jbeulich@novell.com>
6070
6071         * config/i386/netware.c: Include langhooks.h.
6072         (i386_nlm_encode_section_info): Simplify.
6073         (netware_override_options): Delete.
6074         * config/i386/netware.h (netware_override_options): Delete
6075         declaration.
6076         (OVERRIDE_OPTIONS): Delete definition.
6077         (SUBTARGET_OVERRIDE_OPTIONS): Define.
6078         (ASM_COMMENT_START): Define.
6079         * config/i386/nwld.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
6080
6081 2009-08-28  Jan Beulich  <jbeulich@novell.com>
6082
6083         * configure.ac: For in-tree ld, do a plain version check to
6084         determine whether comdat groups are supported.
6085         * configure: Regenerate.
6086
6087 2009-08-28  Olivier Hainque  <hainque@adacore.com>
6088
6089         * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
6090         always defined.  Reflect definition or absence of such for
6091         COLLECT_EXPORT_LIST.  Readability helper.
6092         (scanfilter): New enum, to help control what symbols
6093         are to be considered or ignored by scan_prog_file.
6094         (enum pass): Rename as "scanpass", moved together with scanfilter
6095         prior to scan_prog_file's prototype.
6096         (scan_prog_file): Accept and honor scanpass and scanfilter arguments.
6097         Group prototype with the scanpass/scanfilter definitions, factorize
6098         head comments for the several implementations at the prototype.
6099         (main): Reorganize the first pass link control to let AIX
6100         drag only the needed frame tables in executables.  Prevent
6101         frame tables collection during the scan aimed at static ctors.
6102         Pre-link and scan for frame tables later to compensate.
6103         * doc/tm.texi (ASM_OUTPUT_DWARF_TABLE_REF): New macro.
6104         A C statement to issue assembly directives that create a reference
6105         to the given DWARF table identifier label from the current function
6106         section.
6107         * dwarf2out.c (switch_to_eh_frame_section): Add a BACK argument
6108         to differentiate first time section entry.  Only emit a .data
6109         tables start identifier label the first time around.
6110         (switch_to_frame_table_section): New function.  Helper for
6111         output_call_frame_info to switch possibly BACK into the eh_frame
6112         or the debug_frame section depending on FOR_EH.
6113         (output_call_frame_info): Use helper to first enter the proper
6114         frame section.
6115         (output_fde): Use ASM_OUTPUT_DWARF_TABLE_REF when defined to
6116         emit a link to the frame table start label from each function
6117         section.
6118         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
6119         New function.  Implementation of ASM_OUTPUT_DWARF_TABLE_REF.
6120         * config/rs6000/rs6000-protos.h: Declare it.
6121         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Define.
6122
6123 2009-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
6124
6125         * config/sh/sh.c (split_branches): Check the result of
6126         next_active_insn.
6127
6128 2009-08-27  Steve Ellcey  <sje@cup.hp.com>
6129
6130         * config/ia64/hpux.h (LIB_SPEC): Add -lrt for when
6131         using -pthread -fopenmp
6132
6133 2009-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
6134
6135         * doc/service.texi (service directory): Update URL.
6136
6137 2009-08-27  Uros Bizjak  <ubizjak@gmail.com>
6138
6139         PR rtl-optimization/40861
6140         * simplify-rtx.c (simplify_subreg): Do not call simplify_gen_subreg to
6141         extract word from a multi-word subreg for negative byte positions.
6142
6143 2009-08-27  Tristan Gingold  <gingold@adacore.com>
6144             Douglas B Rupp  <rupp@gnat.com>
6145
6146         * config/ia64/ia64.c (ia64_attribute_table): Add "common_object" entry.
6147         (SECTION_VMS_OVERLAY): Define.
6148         (ia64_vms_common_object_attribute): Added.  Handle the "common_object"
6149         attribute.
6150         (ia64_vms_elf_asm_named_section): Added.  Generate .section pseudo-op
6151         for common_object.
6152         (ia64_vms_output_aligned_decl_common): Added.  Generate pseudo-op for
6153         common_object declarations.
6154         (ia64_section_type_flags): Set section flag for common_object.
6155         * config/ia64/ia64-protos.h
6156         (ia64_vms_output_aligned_decl_common): Declare.
6157         (ia64_vms_elf_asm_named_section): Declare.
6158
6159 2009-08-27  Michael Matz  <matz@suse.de>
6160
6161         * expr.c (expand_expr_real_2): New function taking exploded
6162         unary or binary expression, split out from ...
6163         (expand_expr_real_1): ... here.  Move over all unary/binary
6164         switch parts to above function, in particular these codes:
6165         PAREN_EXPR, NOP_EXPR, CONVERT_EXPR, POINTER_PLUS_EXPR, PLUS_EXPR,
6166         MINUS_EXPR, MULT_EXPR, TRUNC_DIV_EXPR, FLOOR_DIV_EXPR, CEIL_DIV_EXPR,
6167         ROUND_DIV_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, TRUNC_MOD_EXPR,
6168         FLOOR_MOD_EXPR, CEIL_MOD_EXPR, ROUND_MOD_EXPR, FIXED_CONVERT_EXPR,
6169         FIX_TRUNC_EXPR, FLOAT_EXPR, NEGATE_EXPR, ABS_EXPR, MAX_EXPR, MIN_EXPR,
6170         BIT_NOT_EXPR, TRUTH_AND_EXPR, BIT_AND_EXPR, TRUTH_OR_EXPR,
6171         BIT_IOR_EXPR, TRUTH_XOR_EXPR, BIT_XOR_EXPR, LROTATE_EXPR, RROTATE_EXPR,
6172         LSHIFT_EXPR, RSHIFT_EXPR, LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR,
6173         NE_EXPR, UNORDERED_EXPR, ORDERED_EXPR, UNLT_EXPR, UNLE_EXPR, UNGT_EXPR,
6174         UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR, TRUTH_NOT_EXPR, COMPLEX_EXPR,
6175         WIDEN_SUM_EXPR, REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR,
6176         VEC_EXTRACT_EVEN_EXPR, VEC_EXTRACT_ODD_EXPR, VEC_INTERLEAVE_HIGH_EXPR,
6177         VEC_INTERLEAVE_LOW_EXPR, VEC_LSHIFT_EXPR, VEC_RSHIFT_EXPR,
6178         VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR, VEC_UNPACK_FLOAT_HI_EXPR,
6179         VEC_UNPACK_FLOAT_LO_EXPR, VEC_WIDEN_MULT_HI_EXPR,
6180         VEC_WIDEN_MULT_LO_EXPR, VEC_PACK_TRUNC_EXPR, VEC_PACK_SAT_EXPR,
6181         VEC_PACK_FIX_TRUNC_EXPR.
6182         (<case PAREN_EXPR>): Call set_mem_attributes() with type, not the
6183         full expression.
6184
6185 2009-08-27  Richard Guenther  <rguenther@suse.de>
6186
6187         * gengtype.c (main): Handle uint64_t.
6188         * ipa-utils.c (get_base_var): Indent properly.
6189         * tree-ssa-live.c (debug_scope_block): New function.
6190         * tree-flow.h (debug_scope_block): Declare.
6191         * tree-ssa-copy.c (replace_exp_1): Add vertical space.
6192         * basic-block.h (enum profile_status): Rename to
6193         enum profile_status_d.
6194         (x_profile_status): Adjust type.
6195
6196 2009-08-27  Dodji Seketeli  <dodji@redhat.com>
6197
6198         PR debug/41170
6199         * dwarf2out.c (get_context_die): Declare this static function.
6200         (gen_type_die_with_usage): Make sure a DIE is a generated for
6201         the context of a typedef.
6202
6203 2009-08-26  Anatoly Sokolov  <aesok@post.ru>
6204
6205         * doc/invoke.texi (AVR Options): Remove documentation of -minit-stack
6206         switch.
6207
6208 2009-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
6209
6210         * config/mips/mips-protos.h (mips_output_sync): Declare.
6211         (mips_sync_loop_insns): Likewise.
6212         (mips_output_sync_loop): Replace first two parameters with an rtx.
6213         * config/mips/mips.c (mips_multi_member): New structure.
6214         (mips_multi_members): New variable.
6215         (mips_multi_start): New function.
6216         (mips_multi_add): Likewise.
6217         (mips_multi_add_insn): Likewise.
6218         (mips_multi_add_label): Likewise.
6219         (mips_multi_last_index): Likewise.
6220         (mips_multi_copy_insn): Likewise.
6221         (mips_multi_set_operand): Likewise.
6222         (mips_multi_write): Likewise.
6223         (mips_print_operand_punctuation): Remove '%|' and '%-'.
6224         (mips_init_print_operand_punct): Update accordingly.
6225         (mips_start_ll_sc_sync_block): New function.
6226         (mips_end_ll_sc_sync_block): Likewise.
6227         (mips_output_sync): Likewise.
6228         (mips_sync_insn1_template): Likewise.
6229         (mips_sync_insn2_template): Likewise.
6230         (mips_get_sync_operand): Likewise.
6231         (mips_process_sync_loop): Likewise.
6232         (mips_output_sync_loop): Use mips_process_sync_loop.
6233         (mips_sync_loop_insns): New function.
6234         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Delete.
6235         (MIPS_COMPARE_AND_SWAP_12): Likewise.
6236         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP): Likewise.
6237         (MIPS_COMPARE_AND_SWAP_12_NONZERO_OP): Likewise.
6238         (MIPS_SYNC_OP, MIPS_SYNC_OP_12): Likewise.
6239         (MIPS_SYNC_OP_12_AND, MIPS_SYNC_OP_12_XOR): Likewise.
6240         (MIPS_SYNC_OLD_OP_12): Likewise.
6241         (MIPS_SYNC_OLD_OP_12_AND, MIPS_SYNC_OLD_OP_12_XOR): Likewise.
6242         (MIPS_SYNC_NEW_OP_12): Likewise.
6243         (MIPS_SYNC_NEW_OP_12_AND, MIPS_SYNC_NEW_OP_12_XOR): Likewise.
6244         (MIPS_SYNC_OLD_OP, MIPS_SYNC_NEW_OP): Likewise.
6245         (MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND, MIPS_SYNC_NEW_NAND): Likewise.
6246         (MIPS_SYNC_EXCHANGE, MIPS_SYNC_EXCHANGE_12): Likewise.
6247         (MIPS_SYNC_EXCHANGE_12_ZERO_OP): Likewise.
6248         (MIPS_SYNC_EXCHANGE_12_NONZER_OP): Likewise.
6249         * config/mips/mips.md (sync_mem): New attribute.
6250         (sync_oldval, sync_newval, sync_inclusive_mask): Likewise.
6251         (sync_exclusive_mask, sync_required_oldval): Likewise.
6252         (sync_insn1_op2, sync_insn1, sync_insn2): Likewise.
6253         (sync_release_barrier): Likewise.
6254         (length): Handle sync loops.
6255         (sync): Use mips_output_sync.
6256         * config/mips/sync.md (*memory_barrier): Use mips_output_sync.
6257         (sync_compare_and_swap<mode>): Set the new sync_* attributes
6258         and use mips_output_sync_loop.
6259         (compare_and_swap_12, sync_add<mode>, sync_<optab>_12): Likewise.
6260         (sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12): Likewise.
6261         (sync_old_nand_12, sync_new_nand_12, sync_sub<mode>): Likewise.
6262         (sync_old_add<mode>, sync_old_sub<mode>): Likewise.
6263         (sync_new_add<mode>, sync_new_sub<mode>): Likewise.
6264         (sync_<optab><mode>, sync_old_<optab><mode>): Likewise.
6265         (sync_new_<optab><mode>, sync_nand<mode>): Likewise.
6266         (sync_old_nand<mode>, sync_new_nand<mode>): Likewise.
6267         (sync_lock_test_and_set<mode>, test_and_set_12): Likewise.
6268
6269 2009-08-26  Richard Guenther  <rguenther@suse.de>
6270
6271         PR middle-end/41163
6272         * gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
6273         the types to not match.
6274         * tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
6275         verification.
6276         * tree-ssa.c (useless_type_conversion_p): Conversions to
6277         pointers to unprototyped functions are useless.
6278
6279 2009-08-26  Richard Guenther  <rguenther@suse.de>
6280
6281         * tree-ssa-structalias.c (create_variable_info_for): Remove strange
6282         whole-program condition, prepare to be called for non-globals.
6283         (intra_create_variable_infos): For restrict qualified DECL_BY_REFERENCE
6284         params build a representative with known type and track its fields.
6285
6286 2009-08-26  Uros Bizjak  <ubizjak@gmail.com>
6287
6288         * config/alpha/sync.md: Update comment about unpredictable LL/SC lock
6289         clearing by a taken branch.
6290         (sync_<fetchop_name><mode>): Split when epilogue_completed is set,
6291         effectively after bbro pass.
6292         (sync_nand<mode>): Ditto.
6293         (sync_old_<fetchop_name><mode>): Ditto.
6294         (sync_old_nand<mode>): Ditto.
6295         (sync_new_<fetchop_name><mode>): Dito.
6296         (sync_new_nand<mode>): Ditto.
6297         (sync_compare_and_swap<mode>_1): Ditto.
6298         (*sync_compare_and_swap<mode>): Ditto.
6299         (sync_lock_test_and_set<mode>_1): Ditto.
6300         ("sync_lock_test_and_set<mode>): Ditto.
6301
6302 2009-08-25  Douglas B Rupp  <rupp@gnat.com>
6303
6304         * hwint.h (HOST_LONG_FORMAT): New macro
6305         * bitmap.c, c-decl.c, mips-tfile.c, print-rtl.c, print-tree.c:
6306         Use HOST_PTR_PRINTF.
6307         * system.h (HOST_PTR_PRINTF): Resurrect old macro
6308         * doc/hostconfig.texi (HOST_LONG_FORMAT): Document.
6309         (HOST_PTR_PRINTF): Document.
6310
6311 2009-08-25 Jan Hubicka  <jh@suse.cz>
6312
6313         * config/i386/bmmintrin.h: Replace by #error.
6314
6315         Revert:
6316         Michael Meissner  <michael.meissner@amd.com>
6317         Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
6318         Tony Linthicum  <tony.linthicum@amd.com>
6319
6320         * config/i386/i386.h (TARGET_SSE5): New macro for SSE5.
6321         (TARGET_ROUND): New macro for the round/ptest instructions which
6322         are shared between SSE4.1 and SSE5.
6323         (OPTION_MASK_ISA_ROUND): Ditto.
6324         (OPTION_ISA_ROUND): Ditto.
6325         (TARGET_FUSED_MADD): New macro for -mfused-madd swtich.
6326         (TARGET_CPU_CPP_BUILTINS): Add SSE5 support.
6327
6328         * config/i386/i386.opt (-msse5): New switch for SSE5 support.
6329         (-mfused-madd): New switch to give users control over whether the
6330         compiler optimizes to use the multiply/add SSE5 instructions.
6331
6332         * config/i386/i386.c (enum pta_flags): Add PTA_SSE5.
6333         (ix86_handle_option): Turn off 3dnow if -msse5.
6334         (override_options): Add SSE5 support.
6335         (print_operand): %Y prints comparison codes for SSE5 com/pcom
6336         instructions.
6337         (ix86_expand_sse_movcc): Add SSE5 support.
6338         (ix86_expand_sse5_unpack): New function to use pperm to unpack a
6339         vector type to the next largest size.
6340         (ix86_expand_sse5_pack): New function to use pperm to pack a
6341         vector type to the next smallest size.
6342         (IX86_BUILTIN_FMADDSS): New for SSE5 intrinsic.
6343         (IX86_BUILTIN_FMADDSD): Ditto.
6344         (IX86_BUILTIN_FMADDPS): Ditto.
6345         (IX86_BUILTIN_FMADDPD): Ditto.
6346         (IX86_BUILTIN_FMSUBSS): Ditto.
6347         (IX86_BUILTIN_FMSUBSD): Ditto.
6348         (IX86_BUILTIN_FMSUBPS): Ditto.
6349         (IX86_BUILTIN_FMSUBPD): Ditto.
6350         (IX86_BUILTIN_FNMADDSS): Ditto.
6351         (IX86_BUILTIN_FNMADDSD): Ditto.
6352         (IX86_BUILTIN_FNMADDPS): Ditto.
6353         (IX86_BUILTIN_FNMADDPD): Ditto.
6354         (IX86_BUILTIN_FNMSUBSS): Ditto.
6355         (IX86_BUILTIN_FNMSUBSD): Ditto.
6356         (IX86_BUILTIN_FNMSUBPS): Ditto.
6357         (IX86_BUILTIN_FNMSUBPD): Ditto.
6358         (IX86_BUILTIN_PCMOV_V2DI): Ditto.
6359         (IX86_BUILTIN_PCMOV_V4SI): Ditto.
6360         (IX86_BUILTIN_PCMOV_V8HI): Ditto.
6361         (IX86_BUILTIN_PCMOV_V16QI): Ditto.
6362         (IX86_BUILTIN_PCMOV_V4SF): Ditto.
6363         (IX86_BUILTIN_PCMOV_V2DF): Ditto.
6364         (IX86_BUILTIN_PPERM): Ditto.
6365         (IX86_BUILTIN_PERMPS): Ditto.
6366         (IX86_BUILTIN_PERMPD): Ditto.
6367         (IX86_BUILTIN_PMACSSWW): Ditto.
6368         (IX86_BUILTIN_PMACSWW): Ditto.
6369         (IX86_BUILTIN_PMACSSWD): Ditto.
6370         (IX86_BUILTIN_PMACSWD): Ditto.
6371         (IX86_BUILTIN_PMACSSDD): Ditto.
6372         (IX86_BUILTIN_PMACSDD): Ditto.
6373         (IX86_BUILTIN_PMACSSDQL): Ditto.
6374         (IX86_BUILTIN_PMACSSDQH): Ditto.
6375         (IX86_BUILTIN_PMACSDQL): Ditto.
6376         (IX86_BUILTIN_PMACSDQH): Ditto.
6377         (IX86_BUILTIN_PMADCSSWD): Ditto.
6378         (IX86_BUILTIN_PMADCSWD): Ditto.
6379         (IX86_BUILTIN_PHADDBW): Ditto.
6380         (IX86_BUILTIN_PHADDBD): Ditto.
6381         (IX86_BUILTIN_PHADDBQ): Ditto.
6382         (IX86_BUILTIN_PHADDWD): Ditto.
6383         (IX86_BUILTIN_PHADDWQ): Ditto.
6384         (IX86_BUILTIN_PHADDDQ): Ditto.
6385         (IX86_BUILTIN_PHADDUBW): Ditto.
6386         (IX86_BUILTIN_PHADDUBD): Ditto.
6387         (IX86_BUILTIN_PHADDUBQ): Ditto.
6388         (IX86_BUILTIN_PHADDUWD): Ditto.
6389         (IX86_BUILTIN_PHADDUWQ): Ditto.
6390         (IX86_BUILTIN_PHADDUDQ): Ditto.
6391         (IX86_BUILTIN_PHSUBBW): Ditto.
6392         (IX86_BUILTIN_PHSUBWD): Ditto.
6393         (IX86_BUILTIN_PHSUBDQ): Ditto.
6394         (IX86_BUILTIN_PROTB): Ditto.
6395         (IX86_BUILTIN_PROTW): Ditto.
6396         (IX86_BUILTIN_PROTD): Ditto.
6397         (IX86_BUILTIN_PROTQ): Ditto.
6398         (IX86_BUILTIN_PROTB_IMM): Ditto.
6399         (IX86_BUILTIN_PROTW_IMM): Ditto.
6400         (IX86_BUILTIN_PROTD_IMM): Ditto.
6401         (IX86_BUILTIN_PROTQ_IMM): Ditto.
6402         (IX86_BUILTIN_PSHLB): Ditto.
6403         (IX86_BUILTIN_PSHLW): Ditto.
6404         (IX86_BUILTIN_PSHLD): Ditto.
6405         (IX86_BUILTIN_PSHLQ): Ditto.
6406         (IX86_BUILTIN_PSHAB): Ditto.
6407         (IX86_BUILTIN_PSHAW): Ditto.
6408         (IX86_BUILTIN_PSHAD): Ditto.
6409         (IX86_BUILTIN_PSHAQ): Ditto.
6410         (IX86_BUILTIN_FRCZSS): Ditto.
6411         (IX86_BUILTIN_FRCZSD): Ditto.
6412         (IX86_BUILTIN_FRCZPS): Ditto.
6413         (IX86_BUILTIN_FRCZPD): Ditto.
6414         (IX86_BUILTIN_CVTPH2PS): Ditto.
6415         (IX86_BUILTIN_CVTPS2PH): Ditto.
6416         (IX86_BUILTIN_COMEQSS): Ditto.
6417         (IX86_BUILTIN_COMNESS): Ditto.
6418         (IX86_BUILTIN_COMLTSS): Ditto.
6419         (IX86_BUILTIN_COMLESS): Ditto.
6420         (IX86_BUILTIN_COMGTSS): Ditto.
6421         (IX86_BUILTIN_COMGESS): Ditto.
6422         (IX86_BUILTIN_COMUEQSS): Ditto.
6423         (IX86_BUILTIN_COMUNESS): Ditto.
6424         (IX86_BUILTIN_COMULTSS): Ditto.
6425         (IX86_BUILTIN_COMULESS): Ditto.
6426         (IX86_BUILTIN_COMUGTSS): Ditto.
6427         (IX86_BUILTIN_COMUGESS): Ditto.
6428         (IX86_BUILTIN_COMORDSS): Ditto.
6429         (IX86_BUILTIN_COMUNORDSS): Ditto.
6430         (IX86_BUILTIN_COMFALSESS): Ditto.
6431         (IX86_BUILTIN_COMTRUESS): Ditto.
6432         (IX86_BUILTIN_COMEQSD): Ditto.
6433         (IX86_BUILTIN_COMNESD): Ditto.
6434         (IX86_BUILTIN_COMLTSD): Ditto.
6435         (IX86_BUILTIN_COMLESD): Ditto.
6436         (IX86_BUILTIN_COMGTSD): Ditto.
6437         (IX86_BUILTIN_COMGESD): Ditto.
6438         (IX86_BUILTIN_COMUEQSD): Ditto.
6439         (IX86_BUILTIN_COMUNESD): Ditto.
6440         (IX86_BUILTIN_COMULTSD): Ditto.
6441         (IX86_BUILTIN_COMULESD): Ditto.
6442         (IX86_BUILTIN_COMUGTSD): Ditto.
6443         (IX86_BUILTIN_COMUGESD): Ditto.
6444         (IX86_BUILTIN_COMORDSD): Ditto.
6445         (IX86_BUILTIN_COMUNORDSD): Ditto.
6446         (IX86_BUILTIN_COMFALSESD): Ditto.
6447         (IX86_BUILTIN_COMTRUESD): Ditto.
6448         (IX86_BUILTIN_COMEQPS): Ditto.
6449         (IX86_BUILTIN_COMNEPS): Ditto.
6450         (IX86_BUILTIN_COMLTPS): Ditto.
6451         (IX86_BUILTIN_COMLEPS): Ditto.
6452         (IX86_BUILTIN_COMGTPS): Ditto.
6453         (IX86_BUILTIN_COMGEPS): Ditto.
6454         (IX86_BUILTIN_COMUEQPS): Ditto.
6455         (IX86_BUILTIN_COMUNEPS): Ditto.
6456         (IX86_BUILTIN_COMULTPS): Ditto.
6457         (IX86_BUILTIN_COMULEPS): Ditto.
6458         (IX86_BUILTIN_COMUGTPS): Ditto.
6459         (IX86_BUILTIN_COMUGEPS): Ditto.
6460         (IX86_BUILTIN_COMORDPS): Ditto.
6461         (IX86_BUILTIN_COMUNORDPS): Ditto.
6462         (IX86_BUILTIN_COMFALSEPS): Ditto.
6463         (IX86_BUILTIN_COMTRUEPS): Ditto.
6464         (IX86_BUILTIN_COMEQPD): Ditto.
6465         (IX86_BUILTIN_COMNEPD): Ditto.
6466         (IX86_BUILTIN_COMLTPD): Ditto.
6467         (IX86_BUILTIN_COMLEPD): Ditto.
6468         (IX86_BUILTIN_COMGTPD): Ditto.
6469         (IX86_BUILTIN_COMGEPD): Ditto.
6470         (IX86_BUILTIN_COMUEQPD): Ditto.
6471         (IX86_BUILTIN_COMUNEPD): Ditto.
6472         (IX86_BUILTIN_COMULTPD): Ditto.
6473         (IX86_BUILTIN_COMULEPD): Ditto.
6474         (IX86_BUILTIN_COMUGTPD): Ditto.
6475         (IX86_BUILTIN_COMUGEPD): Ditto.
6476         (IX86_BUILTIN_COMORDPD): Ditto.
6477         (IX86_BUILTIN_COMUNORDPD): Ditto.
6478         (IX86_BUILTIN_COMFALSEPD): Ditto.
6479         (IX86_BUILTIN_COMTRUEPD): Ditto.
6480         (IX86_BUILTIN_PCOMEQUB): Ditto.
6481         (IX86_BUILTIN_PCOMNEUB): Ditto.
6482         (IX86_BUILTIN_PCOMLTUB): Ditto.
6483         (IX86_BUILTIN_PCOMLEUB): Ditto.
6484         (IX86_BUILTIN_PCOMGTUB): Ditto.
6485         (IX86_BUILTIN_PCOMGEUB): Ditto.
6486         (IX86_BUILTIN_PCOMFALSEUB): Ditto.
6487         (IX86_BUILTIN_PCOMTRUEUB): Ditto.
6488         (IX86_BUILTIN_PCOMEQUW): Ditto.
6489         (IX86_BUILTIN_PCOMNEUW): Ditto.
6490         (IX86_BUILTIN_PCOMLTUW): Ditto.
6491         (IX86_BUILTIN_PCOMLEUW): Ditto.
6492         (IX86_BUILTIN_PCOMGTUW): Ditto.
6493         (IX86_BUILTIN_PCOMGEUW): Ditto.
6494         (IX86_BUILTIN_PCOMFALSEUW): Ditto.
6495         (IX86_BUILTIN_PCOMTRUEUW): Ditto.
6496         (IX86_BUILTIN_PCOMEQUD): Ditto.
6497         (IX86_BUILTIN_PCOMNEUD): Ditto.
6498         (IX86_BUILTIN_PCOMLTUD): Ditto.
6499         (IX86_BUILTIN_PCOMLEUD): Ditto.
6500         (IX86_BUILTIN_PCOMGTUD): Ditto.
6501         (IX86_BUILTIN_PCOMGEUD): Ditto.
6502         (IX86_BUILTIN_PCOMFALSEUD): Ditto.
6503         (IX86_BUILTIN_PCOMTRUEUD): Ditto.
6504         (IX86_BUILTIN_PCOMEQUQ): Ditto.
6505         (IX86_BUILTIN_PCOMNEUQ): Ditto.
6506         (IX86_BUILTIN_PCOMLTUQ): Ditto.
6507         (IX86_BUILTIN_PCOMLEUQ): Ditto.
6508         (IX86_BUILTIN_PCOMGTUQ): Ditto.
6509         (IX86_BUILTIN_PCOMGEUQ): Ditto.
6510         (IX86_BUILTIN_PCOMFALSEUQ): Ditto.
6511         (IX86_BUILTIN_PCOMTRUEUQ): Ditto.
6512         (IX86_BUILTIN_PCOMEQB): Ditto.
6513         (IX86_BUILTIN_PCOMNEB): Ditto.
6514         (IX86_BUILTIN_PCOMLTB): Ditto.
6515         (IX86_BUILTIN_PCOMLEB): Ditto.
6516         (IX86_BUILTIN_PCOMGTB): Ditto.
6517         (IX86_BUILTIN_PCOMGEB): Ditto.
6518         (IX86_BUILTIN_PCOMFALSEB): Ditto.
6519         (IX86_BUILTIN_PCOMTRUEB): Ditto.
6520         (IX86_BUILTIN_PCOMEQW): Ditto.
6521         (IX86_BUILTIN_PCOMNEW): Ditto.
6522         (IX86_BUILTIN_PCOMLTW): Ditto.
6523         (IX86_BUILTIN_PCOMLEW): Ditto.
6524         (IX86_BUILTIN_PCOMGTW): Ditto.
6525         (IX86_BUILTIN_PCOMGEW): Ditto.
6526         (IX86_BUILTIN_PCOMFALSEW): Ditto.
6527         (IX86_BUILTIN_PCOMTRUEW): Ditto.
6528         (IX86_BUILTIN_PCOMEQD): Ditto.
6529         (IX86_BUILTIN_PCOMNED): Ditto.
6530         (IX86_BUILTIN_PCOMLTD): Ditto.
6531         (IX86_BUILTIN_PCOMLED): Ditto.
6532         (IX86_BUILTIN_PCOMGTD): Ditto.
6533         (IX86_BUILTIN_PCOMGED): Ditto.
6534         (IX86_BUILTIN_PCOMFALSED): Ditto.
6535         (IX86_BUILTIN_PCOMTRUED): Ditto.
6536         (IX86_BUILTIN_PCOMEQQ): Ditto.
6537         (IX86_BUILTIN_PCOMNEQ): Ditto.
6538         (IX86_BUILTIN_PCOMLTQ): Ditto.
6539         (IX86_BUILTIN_PCOMLEQ): Ditto.
6540         (IX86_BUILTIN_PCOMGTQ): Ditto.
6541         (IX86_BUILTIN_PCOMGEQ): Ditto.
6542         (IX86_BUILTIN_PCOMFALSEQ): Ditto.
6543         (IX86_BUILTIN_PCOMTRUEQ): Ditto.
6544         (enum multi_arg_type): New enum for describing the various SSE5
6545         intrinsic argument types.
6546         (bdesc_multi_arg): New table for SSE5 intrinsics.
6547         (ix86_init_mmx_sse_builtins): Add SSE5 intrinsic support.
6548         (ix86_expand_multi_arg_builtin): New function for creating SSE5
6549         intrinsics.
6550         (ix86_expand_builtin): Add SSE5 intrinsic support.
6551         (ix86_sse5_valid_op_p): New function to validate SSE5 3 and 4
6552         operand instructions.
6553         (ix86_expand_sse5_multiple_memory): New function to split the
6554         second memory reference from SSE5 instructions.
6555         (type_has_variadic_args_p): Delete in favor of stdarg_p.
6556         (ix86_return_pops_args): Use stdarg_p to determine if the function
6557         has variable arguments.
6558         (ix86_setup_incoming_varargs): Ditto.
6559         (x86_this_parameter): Ditto.
6560
6561         * config/i386/i386-protos.h (ix86_expand_sse5_unpack): Add
6562         declaration.
6563         (ix86_expand_sse5_pack): Ditto.
6564         (ix86_sse5_valid_op_p): Ditto.
6565         (ix86_expand_sse5_multiple_memory): Ditto.
6566
6567         * config/i386/i386.md (UNSPEC_SSE5_INTRINSIC): Add new UNSPEC
6568         constant for SSE5 support.
6569         (UNSPEC_SSE5_UNSIGNED_CMP): Ditto.
6570         (UNSPEC_SSE5_TRUEFALSE): Ditto.
6571         (UNSPEC_SSE5_PERMUTE): Ditto.
6572         (UNSPEC_SSE5_ASHIFT): Ditto.
6573         (UNSPEC_SSE5_LSHIFT): Ditto.
6574         (UNSPEC_FRCZ): Ditto.
6575         (UNSPEC_CVTPH2PS): Ditto.
6576         (UNSPEC_CVTPS2PH): Ditto.
6577         (PCOM_FALSE): Add new constant for true/false SSE5 comparisons.
6578         (PCOM_TRUE): Ditto.
6579         (COM_FALSE_S): Ditto.
6580         (COM_FALSE_P): Ditto.
6581         (COM_TRUE_S): Ditto.
6582         (COM_TRUE_P): Ditto.
6583         (type attribute): Add ssemuladd, sseiadd1, ssecvt1, sse4arg types.
6584         (unit attribute): Add support for ssemuladd, ssecvt1, sseiadd1 sse4arg
6585         types.
6586         (memory attribute): Ditto.
6587         (sse4_1_round<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6588         Use SSE4_1_ROUND_* constants instead of hard coded numbers.
6589         (rint<mode>2): Use TARGET_ROUND instead of TARGET_SSE4_1.
6590         (floor<mode>2): Ditto.
6591         (ceil<mode>2): Ditto.
6592         (btrunc<mode>2): Ditto.
6593         (nearbyintdf2): Ditto.
6594         (nearbyintsf2): Ditto.
6595         (sse_setccsf): Disable if SSE5.
6596         (sse_setccdf): Ditto.
6597         (sse5_setcc<mode>): New support for SSE5 conditional move.
6598         (sse5_pcmov_<mode>): Ditto.
6599
6600         * config/i386/sse.md (SSEMODE1248): New mode iterator for SSE5.
6601         (SSEMODEF4): Ditto.
6602         (SSEMODEF2P): Ditto.
6603         (ssemodesuffixf4): New mode attribute for SSE5.
6604         (ssemodesuffixf2s): Ditto.
6605         (ssemodesuffixf2c): Ditto.
6606         (sserotatemax): Ditto.
6607         (ssescalarmode): Ditto.
6608         (sse_maskcmpv4sf3): Disable if SSE5.
6609         (sse_maskcmpv2df3): Ditto.
6610         (sse_vmmaskcmpv4sf3): Ditto.
6611         (sse5_fmadd<mode>4): Add SSE5 floating point multiply/add instructions.
6612         (sse5_vmfmadd<mode>4): Ditto.
6613         (sse5_fmsub<mode>4): Ditto.
6614         (sse5_vmfmsub<mode>4): Ditto.
6615         (sse5_fnmadd<mode>4): Ditto.
6616         (sse5_vmfnmadd<mode>4): Ditto.
6617         (sse5_fnmsub<mode>4): Ditto.
6618         (sse5_vmfnmsub<mode>4): Ditto.
6619         (sse5i_fmadd<mode>4): Ditto.
6620         (sse5i_fmsub<mode>4): Ditto.
6621         (sse5i_fnmadd<mode>4): Ditto.
6622         (sse5i_fnmsub<mode>4): Ditto.
6623         (sse5i_vmfmadd<mode>4): Ditto.
6624         (sse5i_vmfmsub<mode>4): Ditto.
6625         (sse5i_vmfnmadd<mode>4): Ditto.
6626         (sse5i_vmfnmsub<mode>4): Ditto.
6627         (mulv16qi3): Add SSE5 support.
6628         (mulv4si3): Ditto.
6629         (sse5_mulv4si3): New insn for 32-bit multiply support on SSE5.
6630         (sse2_mulv4si3): Disable if SSE5.
6631         (sse4_1_roundpd): Use TARGET_ROUND instead of TARGET_SSE4_1.
6632         (sse4_1_roundps): Ditto.
6633         (sse4_1_roundsd): Ditto.
6634         (sse4_1_roundss): Ditto.
6635         (sse_maskcmpv4sf3): Disable if SSE5 so the SSE5 instruction will
6636         be generated.
6637         (sse_maskcmpsf3): Ditto.
6638         (sse_vmmaskcmpv4sf3): Ditto.
6639         (sse2_maskcmpv2df3): Ditto.
6640         (sse2_maskcmpdf3): Ditto.
6641         (sse2_vmmaskcmpv2df3): Ditto.
6642         (sse2_eq<mode>3): Ditto.
6643         (sse2_gt<mode>3): Ditto.
6644         (sse5_pcmov_<mode>): Add SSE5 support.
6645         (vec_unpacku_hi_v16qi): Ditto.
6646         (vec_unpacks_hi_v16qi): Ditto.
6647         (vec_unpacku_lo_v16qi): Ditto.
6648         (vec_unpacks_lo_v16qi): Ditto.
6649         (vec_unpacku_hi_v8hi): Ditto.
6650         (vec_unpacks_hi_v8hi): Ditto.
6651         (vec_unpacku_lo_v8hi): Ditto.
6652         (vec_unpacks_lo_v8hi): Ditto.
6653         (vec_unpacku_hi_v4si): Ditto.
6654         (vec_unpacks_hi_v4si): Ditto.
6655         (vec_unpacku_lo_v4si): Ditto.
6656         (vec_unpacks_lo_v4si): Ditto.
6657         (sse5_pmacsww): New SSE5 intrinsic insn.
6658         (sse5_pmacssww): Ditto.
6659         (sse5_pmacsdd): Ditto.
6660         (sse5_pmacssdd): Ditto.
6661         (sse5_pmacssdql): Ditto.
6662         (sse5_pmacssdqh): Ditto.
6663         (sse5_pmacsdqh): Ditto.
6664         (sse5_pmacsswd): Ditto.
6665         (sse5_pmacswd): Ditto.
6666         (sse5_pmadcsswd): Ditto.
6667         (sse5_pmadcswd): Ditto.
6668         (sse5_pcmov_<move>): Conditional move support on SSE5.
6669         (sse5_phaddbw): New SSE5 intrinsic insn.
6670         (sse5_phaddbd): Ditto.
6671         (sse5_phaddbq): Ditto.
6672         (sse5_phaddwd): Ditto.
6673         (sse5_phaddwq): Ditto.
6674         (sse5_phadddq): Ditto.
6675         (sse5_phaddubw): Ditto.
6676         (sse5_phaddubd): Ditto.
6677         (sse5_phaddubq): Ditto.
6678         (sse5_phadduwd): Ditto.
6679         (sse5_phadduwq): Ditto.
6680         (sse5_phaddudq): Ditto.
6681         (sse5_phsubbw): Ditto.
6682         (sse5_phsubwd): Ditto.
6683         (sse5_phsubdq): Ditto.
6684         (sse5_pperm): Ditto.
6685         (sse5_pperm_sign_v16qi_v8hi): New insns for pack/unpack with SSE5.
6686         (sse5_pperm_zero_v16qi_v8hi): Ditto.
6687         (sse5_pperm_sign_v8hi_v4si): Ditto.
6688         (sse5_pperm_zero_v8hi_v4si): Ditto.
6689         (sse5_pperm_sign_v4si_v2di): Ditto.
6690         (sse5_pperm_sign_v4si_v2di): Ditto.
6691         (sse5_pperm_pack_v2di_v4si): Ditto.
6692         (sse5_pperm_pack_v4si_v8hi): Ditto.
6693         (sse5_pperm_pack_v8hi_v16qi): Ditto.
6694         (sse5_perm<mode>): New SSE5 intrinsic insn.
6695         (rotl<mode>3): Ditto.
6696         (sse5_rotl<mode>3): Ditto.
6697         (sse5_ashl<mode>3): Ditto.
6698         (sse5_lshl<mode>3): Ditto.
6699         (sse5_frcz<mode>2): Ditto.
6700         (sse5s_frcz<mode>2): Ditto.
6701         (sse5_cvtph2ps): Ditto.
6702         (sse5_cvtps2ph): Ditto.
6703         (sse5_vmmaskcmp<mode>3): Ditto.
6704         (sse5_com_tf<mode>3): Ditto.
6705         (sse5_maskcmp<mode>3): Ditto.
6706         (sse5_maskcmp_uns<mode>3): Ditto.
6707         (sse5_maskcmp_uns2<mode>3): Ditto.
6708         (sse5_pcom_tf<mode>3): Ditto.
6709
6710         * config/i386/predicates.md (sse5_comparison_float_operator):
6711         New predicate to match the comparison operators supported by
6712         the SSE5 com instruction.
6713         (ix86_comparison_int_operator): New predicate to match just the
6714         signed int comparisons.
6715         (ix86_comparison_uns_operator): New predicate to match just the
6716         unsigned int comparisons.
6717
6718         * doc/invoke.texi (-msse5): Add documentation.
6719         (-mfused-madd): Ditto.
6720
6721         * doc/extend.texi (x86 intrinsics): Document new SSE5 intrinsics.
6722
6723         * config.gcc (i[34567]86-*-*): Include bmmintrin.h and
6724         mmintrin-common.h.
6725         (x86_64-*-*): Ditto.
6726
6727         * config/i386/cpuid.h (bit_SSE5): Define SSE5 bit.
6728
6729         * config/i386/bmmintrin.h: New file, provide common x86 compiler
6730         intrinisics for SSE5.
6731
6732         * config/i386/smmintrin.h: Move instructions shared with SSE5 to
6733         mmintrin-common.h.
6734
6735         * config/i386/mmintrin-common.h: New file, to contain common
6736         instructions between SSE4.1 and SSE5.
6737
6738         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration): Use
6739         FOREACH_FUNCTION_ARGS to iterate over the argument list.
6740         (gen_regparm_prefix): Ditto.
6741
6742         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix): Use
6743         FOREACH_FUNCTION_ARGS to iterate over the argument list.  Use
6744         prototype_p to determine if a function is prototyped.
6745
6746 2009-08-25 Ville Voutilainen <ville.voutilainen@gmail.com>
6747
6748         * c-common.c (c_common_reswords) add the alignof keyword,
6749         with same RID as __alignof and __alignof__
6750
6751 2009-08-25  Anatoly Sokolov  <aesok@post.ru>
6752
6753         * hooks.h (hook_bool_const_int_const_int_true): Declare.
6754         * hooks.c (hook_bool_const_int_const_int_true): New function.
6755         * target.h (struct gcc_target): Add can_eliminate field.
6756         * target-def.h (TARGET_CAN_ELIMINATE): Define.
6757         (TARGET_INITIALIZER): Use TARGET_CAN_ELIMINATE.
6758         * ira.c (setup_eliminable_regset): Use can_eliminate target hook.
6759         * reload1.c (update_eliminables, init_elim_table): (Ditto.).
6760         (elim_table): Revise comment.
6761         * system.h (CAN_ELIMINATE): Poison.
6762         * defaults.h (CAN_ELIMINATE): Remove.
6763         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
6764
6765         * config/alpha/vms.h (CAN_ELIMINATE): Remove macro.
6766         * config/alpha/alpha.c (TARGET_CAN_ELIMINATE) [TARGET_ABI_OPEN_VMS]:
6767         Define macro.
6768         (alpha_vms_can_eliminate): Declare as static, change return type to
6769         bool.
6770         * config/alpha/alpha-protos.h (alpha_vms_can_eliminate): Remove.
6771
6772         * config/arm/arm.h (CAN_ELIMINATE): Remove macro.
6773         * config/arm/arm.c (TARGET_CAN_ELIMINATE): Define macro.
6774         (arm_can_eliminate): New function.
6775
6776         * config/avr/avr.h (CAN_ELIMINATE): Remove macro.
6777         * config/avr/avr.c (TARGET_CAN_ELIMINATE): Define macro.
6778         (avr_can_eliminate): Declare as static.
6779         * config/avr/avr-protos.h (avr_can_eliminate): Remove.
6780
6781         * config/bfin/bfin.h (CAN_ELIMINATE): Remove macro.
6782         * config/bfin/bfin.c (TARGET_CAN_ELIMINATE): Define macro.
6783         (bfin_can_eliminate): New function.
6784
6785         * config/crx/crx.h (CAN_ELIMINATE): Remove macro.
6786         * config/crx/crx.c (TARGET_CAN_ELIMINATE): Define macro.
6787         (crx_can_eliminate): New function.
6788
6789         * config/fr30/fr30.h (CAN_ELIMINATE): Remove macro.
6790         * config/fr30/fr30.c (TARGET_CAN_ELIMINATE): Define macro.
6791         (fr30_can_eliminate): New function.
6792
6793         * config/frv/frv.h (CAN_ELIMINATE): Remove macro.
6794         * config/frv/frv.c (TARGET_CAN_ELIMINATE): Define macro.
6795         (frv_can_eliminate): New function.
6796
6797         * config/h8300/h8300.h (CAN_ELIMINATE): Remove macro.
6798         * config/h8300/h8300.c (TARGET_CAN_ELIMINATE): Define macro.
6799         (h8300_can_eliminate): New function.
6800
6801         * config/i386/i386.h (CAN_ELIMINATE): Remove macro.
6802         * config/i386/i386.c (TARGET_CAN_ELIMINATE): Define macro.
6803         (i386_can_eliminate): Declare as static, change return type to bool.
6804         * config/i386/i386-protos.h (i386_can_eliminate): Remove.
6805
6806         * config/ia64/ia64.h (CAN_ELIMINATE): Remove macro.
6807         * config/ia64/ia64.c (TARGET_CAN_ELIMINATE): Define macro.
6808         (ia64_can_eliminate): New function.
6809
6810         * config/iq2000/iq2000.h (CAN_ELIMINATE): Remove macro.
6811         * config/iq2000/iq2000.c (TARGET_CAN_ELIMINATE): Define macro.
6812         (iq2000_can_eliminate): New function.
6813
6814         * config/m32r/m32r.h (CAN_ELIMINATE): Remove macro.
6815         * config/m32r/m32r.c (TARGET_CAN_ELIMINATE): Define macro.
6816         (m32r_can_eliminate): New function.
6817
6818         * config/m68hc11/m68hc11.h (CAN_ELIMINATE): Remove macro.
6819         * config/m68hc11/m68hc11.c (TARGET_CAN_ELIMINATE): Define macro.
6820         (m68hc11_can_eliminate): New function.
6821
6822         * config/m68k/m68k.h (CAN_ELIMINATE): Remove macro.
6823         * config/m68k/m68k.c (TARGET_CAN_ELIMINATE): Define macro.
6824         (m68k_can_eliminate): New function.
6825
6826         * config/mep/mep.h (CAN_ELIMINATE): Remove macro.
6827         * config/mep/mep.c (TARGET_CAN_ELIMINATE): Define macro.
6828         (mep_can_eliminate): New function.
6829
6830         * config/mips/mips.h (CAN_ELIMINATE): Remove macro.
6831         * config/mips/mips.c (TARGET_CAN_ELIMINATE): Define macro.
6832         (mips_can_eliminate): New function.
6833
6834         * config/rs6000/rs6000.h (CAN_ELIMINATE): Remove macro.
6835         * config/rs6000/rs6000.c (TARGET_CAN_ELIMINATE): Define macro.
6836         (rs6000_can_eliminate): New function.
6837
6838         * config/s390/s390.h (CAN_ELIMINATE): Remove macro.
6839         * config/s390/s390.c (TARGET_CAN_ELIMINATE): Define macro.
6840         (s390_can_eliminate): Declare as static.
6841         * config/s390/s390-protos.h (sparc_can_eliminate): Remove.
6842
6843         * config/score/score.h (CAN_ELIMINATE): Remove macro.
6844         * config/score/score.c (TARGET_CAN_ELIMINATE): Define macro.
6845         (score_can_eliminate): New function.
6846
6847         * config/sparc/sparc.h (CAN_ELIMINATE): Remove macro.
6848         * config/sparc/sparc.c (TARGET_CAN_ELIMINATE): Define macro.
6849         (sparc_can_eliminate): Declare as static.
6850         * config/sparc/sparc-protos.h (sparc_can_eliminate): Remove.
6851
6852         * config/stormy16/stormy16.h (CAN_ELIMINATE): Remove macro.
6853         * config/stormy16/stormy16.c (TARGET_CAN_ELIMINATE): Define macro.
6854         (xstormy16_can_eliminate): New function.
6855
6856         * config/v850/v850.h (CAN_ELIMINATE): Remove macro.
6857         * config/v850/v850.c (TARGET_CAN_ELIMINATE): Define macro.
6858         (v850_can_eliminate): New function.
6859
6860 2009-08-25  Uros Bizjak  <ubizjak@gmail.com>
6861
6862         * config/alpha/alpha.md (*cmpdf_ieee_ext[123]): Remove.
6863         (*cmpdf_internal): Enable for all ALPHA_FPTM levels.
6864         (*movdfcc_ext[1234]): Disable for IEEE mode.
6865
6866 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
6867
6868         * gimplify.c (prepare_gimple_addressable): New static function.
6869         (gimplify_modify_expr_to_memcpy): Invoke it on the RHS before marking
6870         it addressable.
6871         (gimplify_addr_expr): Invoke it similarly on the operand instead of
6872         manually fiddling with it.
6873
6874 2009-08-25  Michael Matz  <matz@suse.de>
6875
6876         * expr.h (jumpifnot_1, jumpif_1, do_jump_1): Declare.
6877         * dojump.c (do_jump_by_parts_greater): Take two operands instead of
6878         full expression.
6879         (do_jump_by_parts_equality, do_compare_and_jump): Ditto.
6880         (jumpifnot_1, jumpif_1): New wrappers for do_jump_1.
6881         (do_jump): Split out code for simple binary comparisons into ...
6882         (do_jump_1): ... this, taking the individual operands and code.
6883         Change callers to helper function above accordingly.
6884         * expr.c (expand_expr_real_1): Use jumpifnot_1 for simple binary
6885         comparisons.
6886
6887 2009-08-25  Michael Matz  <matz@suse.de>
6888
6889         * expr.h (struct separate_ops, sepops): New type for passing
6890         around an exploded simple expression.
6891         * optabs.c (expand_widen_pattern_expr, expand_vec_shift_expr):
6892         Use this structure instead of expression tree.
6893         (get_vcond_icode, expand_vec_cond_expr_p): Don't take whole
6894         expression, only its type.
6895         (expand_vec_cond_expr): Take type and individual operands instead
6896         of full expression.
6897         * optabs.h (expand_widen_pattern_expr, expand_vec_cond_expr,
6898         expand_vec_shift_expr): Change prototype accordingly.
6899         * tree-vect-stmts.c (vectorizable_condition): Change call of
6900         expand_vec_cond_expr_p to pass only type.
6901         * expr.c (do_store_flags): Change prototype and implementation
6902         to take an exploded expression.
6903         (expand_expr_real_1): New local ops initialized with details
6904         of the full expression.  Use it instead of full
6905         expression in calls to do_store_flags, expand_vec_cond_expr,
6906         expand_widen_pattern_expr and expand_vec_shift_expr.
6907
6908 2009-08-25  Michael Matz  <matz@suse.de>
6909
6910         * expr.c (expand_expr_real_1): New local treeop0, treeop1,
6911         treeop2 initialized with first three operands of the full expression.
6912         Substitute all TREE_OPERAND (exp, [012]) calls with them.
6913
6914 2009-08-25  Kai Tietz  <kai.tietz@onevision.com>
6915
6916         * gcc/gthr-win32.h (__UNUSED_PARAM): Define, if not already present.
6917         (__gthread_objc_condition_allocate): Mark arguments as unused.
6918         (__gthread_objc_condition_deallocate): Likewise.
6919         (__gthread_objc_condition_wait): Likewise.
6920         (__gthread_objc_condition_broadcast): Likewise.
6921         (__gthread_objc_condition_signal): Likewise.
6922         (__gthread_objc_thread_detach): Cast via INT_PTR to pointer.
6923         (__gthread_objc_thread_id): Likewise.
6924
6925 2009-08-25  Janus Weil  <janus@gcc.gnu.org>
6926
6927         PR middle-end/41149
6928         * tree-pretty-print.c (print_call_name): Print the correct call name
6929         for procedure pointer components.
6930
6931 2009-08-24  Steve Ellcey  <sje@cup.hp.com>
6932
6933         * config/ia64/ia64.c (ia64_promote_function_mode): Call
6934         default_promote_function_mode when not VMS.
6935
6936 2009-08-24  Olivier Hainque  <hainque@adacore.com>
6937
6938         * convert.c (convert_to_integer): Don't assume an input pointer is
6939         POINTER_SIZE wide.  Fetch from the type instead.
6940
6941 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6942
6943         * configure.ac (AC_PREREQ): Bump to 2.64.
6944
6945 2009-08-24  Rafael Avila de Espindola  <espindola@google.com>
6946
6947         * gcc.c (standard_exec_prefix_1,standard_exec_prefix_2): Remove.
6948         (process_command): Don't search standard_exec_prefix_1 and
6949         standard_exec_prefix_2.
6950
6951 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6952
6953         * config/arm/arm.c (output_return_instruction): Handle for
6954         unified syntax.
6955
6956 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6957
6958         * config/arm/arm.c (arm_select_cc_mode): Handle subreg.
6959
6960 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6961
6962         * config/arm/vfp.md (*arm_movdi_vfp): Mark as predicable.
6963         (*arm_movdf_vfp): Likewise.
6964
6965 2009-08-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6966
6967         * config/arm/neon.md (vashl<mode>3): Rename from ashl<mode>3.
6968         (vashr<mode>3): Rename from ashr<mode>3.
6969         (vlshr<mode>3): Rename from lshr<mode>3.
6970
6971 2009-08-24  Kai Tietz  <kai.tietz@onevision.com>
6972
6973         PR/40786
6974         * c-format.c (format_wanted_type): Add new member scalar_identity_flag.
6975         (check_format_info_main): Use scalar_identify_flag.
6976         (check_format_types): Check for scalar size identity if
6977         scalar_identify_flag is set.
6978         (printf_length_specs): Extend by new field.
6979         (asm_fprintf_length_specs): Likewise.
6980         (gcc_diag_length_specs): Likewise.
6981         (scanf_length_specs): Likewise.
6982         (strfmon_length_specs): Likewise.
6983         (gcc_gfc_length_specs): Likewise.
6984         * config/i386/msformat-c.c (ms_printf_length_specs): Likewise.
6985         (ms_printf_flag_specs): Likewise.
6986         * c-format.h (format_length_info): Add new member scalar_identity_flag.
6987
6988 2009-08-23  Uros Bizjak  <ubizjak@gmail.com>
6989
6990         PR target/40718
6991         * config/i386/i386.c (*call_pop_1): Disable for sibling calls.
6992         (*call_value_pop_1): Ditto.
6993         (*sibcall_pop_1): New insn pattern.
6994         (*sibcall_value_pop_1): Ditto.
6995
6996 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
6997
6998         PR target/41081
6999         * config/rs6000/rs6000.md (rotlsi3_64, ashlsi3_64, lshrsi3_64,
7000         ashrsi3_64): New.
7001
7002 2009-08-23  Alan Modra  <amodra@bigpond.net.au>
7003
7004         PR target/41081
7005         * fwprop.c (try_fwprop_subst): Allow multiple sets.
7006         (get_reg_use_in): New function.
7007         (forward_propagate_subreg): Propagate through subreg of zero_extend
7008         or sign_extend.
7009
7010 2009-08-22  Kaz Kojima  <kkojima@gcc.gnu.org>
7011
7012         * config/sh/t-sh (TARGET_LIBGCC2_CFLAGS): Define.
7013         * config/sh/t-netbsd (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7014
7015 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7016
7017         * configure.ac: Remove --with-datarootdir, --with-docdir,
7018         --with-htmldir switches.  No need to call AC_SUBST for
7019         datarootdir, docdir, htmldir any more.
7020         * configure: Regenerate.
7021         * doc/install.texi (Configuration): Document --datarootdir,
7022         --docdir, --htmldir, --pdfdir; update documentation for
7023         --infodir, --mandir.
7024         (Prerequisites): Bump Autoconf version to 2.64, Automake to 1.11,
7025         M4 to 1.4.6.
7026
7027         * aclocal.m4: Regenerate.
7028         * config.in: Regenerate.
7029         * configure: Regenerate.
7030
7031 2009-08-21  Douglas B Rupp  <rupp@gnat.com>
7032             Olivier Hainque  <hainque@adacore.com>
7033
7034         * config/ia64/ia64.c: Include libfuncs.h.
7035         (TARGET_PROMOTE_FUNCITON_MODE): Define target macro.
7036         (ia64_expand_call): Use reg 25 on VMS.
7037         (ia64_initialize_trampoline): Fix for VMS ABI.
7038         (ia64_function_arg_offset): Always returns 0 when TARGET_ABI_OPEN_VMS.
7039         (ia64_function_arg): Initialize reg 25 on VMS.
7040         Fix OpenVMS ABI issues for varargs.
7041         For OpenVMS, emit the Argument Information register set in the
7042         incoming/sibcall case as well.
7043         (ia64_arg_type): New function.
7044         (ia64_function_arg_advance): Keep track of cum->words.
7045         Fix OpenVMS ABI issues for varargs.
7046         (ia64_function_value): On VMS, promote mode of non-aggregate types.
7047         (ia64_override_options): Set flag_no_common on VMS.
7048         (ia64_init_builtins): Disable FWRITE builtin.
7049         (ia64_asm_output_external): Call DO_CRTL_NAMES.
7050         (ia64_vms_init_libfuncs): Add decc$ routines.
7051         (ia64_vms_valid_pointer_mode): New function.
7052         (ia64_struct_value_rtx): Allways NULL_RTX on VMS.
7053         (ia64_promote_function_mode): New function
7054         * config/ia64/ia64.h (TARGET_ABI_OPEN_VMS): Define as 0 for default.
7055         (LONG_DOUBLE_TYPE_SIZE): Force to 64 on VMS.
7056         (LIBCGC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
7057         (INIT_CUMULATIVE_ARGS): Add atypes for VMS.
7058         (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
7059         (ASM_OUTPUT_DEF): Use ISDIGIT instead of isdigit.
7060         Suppress trailing '#' if VALUE is numeric.
7061         * config/ia64/vms.h (PROMOTE_FUNCTION_MODE): Remove, code moved to
7062         ia64_promote_function_mode.
7063         (TARGET_VALID_POINTER_MODE): Define.
7064
7065 2009-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
7066
7067         PR target/40671
7068         * config/rs6000/rs6000.c (rs6000_override_options): Use
7069         TARGET_64BIT instead of TARGET_POWERPC64 to set the size of pointers.
7070
7071         PR target/41145
7072         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Fix
7073         reporting of vector + decimal/boolean/complex error.
7074
7075 2009-08-21  Jakub Jelinek  <jakub@redhat.com>
7076
7077         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix type of
7078         __vector double TYPE_DECL.
7079
7080 2009-08-21  Richard Earnshaw  <rearnsha@arm.com>
7081
7082         * arm.h (MACHMODE): New define.  Include insn-modes.h if available.
7083         (CUMULATIVE_ARGS): Use MACHMODE for declaration of aapcs_vfp_mode.
7084         * arm.c (aapcs_vfp_is_call_or_return_candidate): Change base_mode
7085         to pointer to enum machine_mode.  Update all callers as needed.
7086
7087 2009-08-21 Uros Bizjak <ubizjak@gmail.com>
7088
7089         * config/alpha/alpha.md (exception_receiver): Emit alternative
7090         GP load sequence if flag_reorder_blocks_and_partition is set.
7091         (*exception_receiver_2): Also enable when
7092         flag_reorder_blocks_and_partition is set.
7093
7094 2009-08-20  Matt Rice  <ratmice@gmail.com>
7095             Diego Novillo  <dnovillo@google.com>
7096
7097         * Makefile.in (PLUGIN_HEADERS): Include incpath.h and
7098         tree-ssa-sccvn.h.
7099
7100 2009-08-20  Richard Guenther  <rguenther@suse.de>
7101
7102         * c-objc-common.h (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Do not define.
7103         * c-tree.h (c_dup_lang_specific_decl): Remove.
7104         (struct lang_decl, struct lang_type): Move definitions ...
7105         * c-lang.h: ... here.  New file.
7106         * c-decl.c: Include c-lang.h.
7107         (c_dup_lang_specific_decl): Remove.
7108         * c-typeck.c: Include c-lang.h.
7109         * Makefile.in (c-decl.o): Add c-lang.h dependency.
7110         (c-typeck.o): Likewise.
7111         * c-config-lang.in (gtfiles): Add c-lang.h.
7112         * gengtype.c (get_output_file_with_visibility): Handle c-lang.h
7113         like c-tree.h.
7114
7115 2009-08-20  Uros Bizjak  <ubizjak@gmail.com>
7116
7117         * config/alpha/alpha.c (alpha_end_function): Do not clear
7118         crtl->emit structure and free insn locators if cfun->is_thunk is true,
7119         this is now handled in generic code.
7120
7121 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7122
7123         * config/s390/s390.c (Z10_PREDICT_DISTANCE): New macro.
7124         (s390_z10_fix_long_loop_prediction): New function.
7125         (s390_z10_optimize_cmp): INSN walk moved to callee - s390_reorg.
7126         (s390_reorg): Walk over the INSNs and invoke
7127         s390_z10_fix_long_loop_prediction and s390_z10_optimize_cmp.
7128
7129 2009-08-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7130
7131         * config/s390/s390.md ("*brx_stage1_<GPR:mode>", "*brxg_64bit",
7132         "*brx_64bit", "*brx_31bit"): New patterns.
7133         * config/s390/s390.c ('E'): New output modifier.
7134
7135 2009-08-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7136             Richard Earnshaw  <richard.earnshaw@arm.com>
7137
7138         * config/arm/arm.c (arm_emit_movpair): Handle CONST_INT.
7139         * config/arm/arm.md (*arm_movtas_ze): New pattern for movt.
7140
7141 2009-08-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7142
7143         * pa.md (reload_inhi, reload_outhi, reload_inqi, reload_outqi): New
7144         patterns.
7145         * pa.c (emit_move_sequence): Check if address of operand1 is valid
7146         for mode mode of operand0 when doing secondary reload for SAR.
7147
7148 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
7149
7150         PR middle-end/41123
7151         * expr.c (expand_expr_real_1) <normal_inner_ref>: Handle all kinds
7152         of CONCAT, not just bitpos 0 bitsize size of the whole CONCAT.
7153
7154 2009-08-19  Jason Merrill  <jason@redhat.com>
7155
7156         * doc/invoke.texi (C++ Dialect Options): Note change of minimum
7157         supported template depth in C++0x.
7158
7159 2009-08-19  Jakub Jelinek  <jakub@redhat.com>
7160
7161         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Don't call
7162         free_after_compilation.
7163         * config/score/score7.c (score7_output_mi_thunk): Likewise.
7164         * config/score/score3.c (score3_output_mi_thunk): Likewise.
7165         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7166         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
7167         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7168         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
7169         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7170
7171 2009-08-19  Ian Lance Taylor  <iant@google.com>
7172
7173         * doc/md.texi (Insn Canonicalizations): Correct canonicalization
7174         of (plus (mult (neg B) C) A).
7175
7176 2009-08-18  Michael Matz  <matz@suse.de>
7177
7178         * omp-low.c (optimize_omp_library_calls): Use types_compatible_p
7179         instead of comparing TYPE_MAIN_VARIANT for equality.
7180         * tree-vect-patterns.c (vect_recog_dot_prod_pattern,
7181         vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern): Ditto.
7182         * tree-vect-loop.c (vect_is_simple_reduction): Ditto.
7183         * gimplify.c (goa_lhs_expr_p): Ditto and use
7184         STRIP_USELESS_TYPE_CONVERSION.
7185
7186 2009-08-18  Michael Matz  <matz@suse.de>
7187
7188         * tree-ssa-structalias.c (create_variable_info_for): Also mark
7189         first field in a struct.
7190         (intra_create_variable_infos): Don't deal with flag_argument_noalias.
7191
7192 2009-08-18  Uros Bizjak  <ubizjak@gmail.com>
7193
7194         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Allocate insn
7195         locators before emit_insn is called.  Remove assert that
7196         cfun->is_thunk.
7197         (alpha_end_function): Clear crtl->emit structure and free insn
7198         locators if cfun->is_thunk is true.
7199
7200 2009-08-18  Jason Merrill  <jason@redhat.com>
7201
7202         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
7203         type if available.
7204         * configure.ac: Test for it.
7205         * configure, config.in: Regenerate.
7206         * doc/install.texi: Document --enable-gnu-unique-object.
7207
7208 2009-08-18  Richard Guenther  <rguenther@suse.de>
7209
7210         PR middle-end/41094
7211         * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
7212         pow(x,y*z) only if x is nonnegative.
7213
7214 2009-08-18  Jakub Jelinek  <jakub@redhat.com>
7215
7216         * bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump
7217         on jumps.
7218
7219         PR target/40971
7220         * config/rs6000/rs6000.c (rs6000_legitimize_address): For
7221         [DT][FDI]mode ensure the offset isn't 4/8/12 bytes below 0x8000.
7222
7223 2009-08-17  DJ Delorie  <dj@redhat.com>
7224
7225         * config/m32c/m32c.md (UNS_FSETB, UNS_FREIT): New.
7226         * config/m32c/prologue.md (epilogue_freit): New.
7227         (fset_b): New.
7228         * config/m32c/m32c.c (m32c_function_needs_enter): Add prototype.
7229         (bank_switch_p): Likewise.
7230         (fast_interrupt_p): Likewise.
7231         (interrupt_p): Likewise.
7232         (m32c_conditional_register_usage): Round memregs size up.
7233         (need_to_save): We only need to save $a0 when we use ENTER.
7234         (interrupt_p): Check for fast_interrupt too.
7235         (bank_switch_p): New.
7236         (fast_interrupt_p): New.
7237         (m32c_attribute_table): Add bank_switch and fast_interrupt.
7238         (m32c_emit_prolog): Support bank switching and fast interrupts.
7239         * doc/extend.texi (Function Attributes): Add bank_switch and
7240         fast_interrupt.
7241
7242 2009-08-17  Douglas B Rupp  <rupp@gnat.com>
7243
7244         * config/alpha/alpha.c (vms_valid_pointer_mode): New function.
7245         * config/alpha/vms.h (TARGET_VALID_POINTER_MODE): Define.
7246
7247 2009-08-16  Douglas B Rupp  <rupp@gnat.com>
7248
7249         * doc/invoke.texi (Target options): Add new option list for IA-64/VMS.
7250         (menu): Add IA-64/VMS Options.
7251         (IA-64/VMS Options): Likewise.
7252
7253 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
7254
7255         PR target/38599
7256         * config/mips/mips.md (*lwxs): Use :P for pointer values.
7257
7258 2009-08-16  Richard Sandiford  <rdsandiford@googlemail.com>
7259
7260         * config/mips/mips-protos.h (mips_push_asm_switch): New function.
7261         (mips_pop_asm_switch): Likewise.
7262         * config/mips/mips.c (set_noreorder, set_nomacro, set_noat): Replace
7263         with...
7264         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7265         (mips_push_asm_switch_1, mips_pop_asm_switch_1): New functions.
7266         (mips_push_asm_switch, mips_pop_asm_switch): Likewise.
7267         (mips_print_operand_punctuation): Use them.  Check mips_noreorder
7268         instead of set_noreorder.
7269         (mips_output_function_prologue): Use the new functions.
7270         (mips_output_function_epilogue): Likewise.
7271         (mips_need_noat_wrapper_p): New function, split out from...
7272         (mips_final_prescan_insn, mips_final_postscan_insn): ...here.
7273         Use mips_push_asm_switch and mips_pop_asm_switch.
7274         * config/mips/mips.h (FUNCTION_PROFILER): Use mips_push_asm_switch
7275         and mips_pop_asm_switch.
7276         (ASM_OUTPUT_REG_POP): Likewise.
7277         (DBR_OUTPUT_SEQEND): Remove boilerplate comment.
7278         Use mips_pop_asm_switch.
7279         (mips_asm_switch): New structure.
7280         (set_noreorder, set_nomacro): Replace with...
7281         (mips_noreorder, mips_nomacro, mips_noat): ...these new variables.
7282         * config/mips/mips.md (fix_truncdfsi2_macro): Use mips_nomacro
7283         instead of set_nomacro.
7284         (fix_truncsfsi2_macro): Likewise.
7285         (cprestore): Likewise.
7286         (hazard): Use mips_noreorder instead of set_noreorder.
7287         * config/mips/sdemtk.h (FUNCTION_PROFILER): As for mips.h.
7288
7289 2009-08-16  Uros Bizjak  <ubizjak@gmail.com>
7290
7291         * config/alpha/alpha.c (alpha_end_function): Handle NULL_RTX returned
7292         from prev_active_insn.
7293
7294 2009-08-16  Anatoly Sokolov  <aesok@post.ru>
7295
7296         * config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
7297         * config/avr/avr.c (avr_override_options): Initialize
7298         avr_current_arch variable.
7299         (avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
7300         __AVR_HAVE_16BIT_SP__ according to the device type.
7301         (expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
7302         TARGET_TINY_STACK.
7303         (expand_epilogue): Use correct QI mode frame pointer for tiny stack.
7304         Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.
7305
7306 2009-08-16  Dodji Seketeli  <dodji@redhat.com>
7307
7308         PR debug/37801
7309         * gcc/dwarf2out.c (gen_inlined_subroutine_die): Concentrate on
7310         generating inlined subroutine die only. We shouldn't be
7311         called for anything else.
7312         (gen_block_die): Don't generate inline subroutine debug info for
7313         abstract blocks.
7314
7315 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
7316
7317         * graphite-poly.c (print_pbb): Print PBB index.
7318
7319 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
7320
7321         PR middle-end/40981
7322         * graphite-interchange.c (ppl_max_for_le): Moved...
7323         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
7324         * graphite-ppl.c (ppl_max_for_le): ... here.  Correct the use of
7325         ppl_Pointset_Powerset_C_Polyhedron_maximize.
7326         * graphite-ppl.h (ppl_max_for_le): Declared.
7327
7328 2009-08-14  Olatunji Ruwase <tjruwase@google.com>
7329
7330         * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
7331         supported on all platforms.
7332         * target.h (struct gcc_target): Remove handle_pragma_redefine_extname.
7333         * c-cppbuiltin.c: Remove use of targetm.handle_pragma_redefine_extname.
7334         * c-pragma.c: Likewise.
7335         * target-def.h (TARGET_INITIALIZER): Remove
7336         TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7337         * config/sol2.h: Remove use of TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
7338
7339 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
7340
7341         * config/ia64/fde-vms.c: New file.
7342         * config/ia64/fde-glibc.c (_Unwind_FindTableEntry): Add dummy arg.
7343         * config/ia64/unwind-ia64.c (UNW_ accessors): Move to unwind-ia64.h
7344         (MD_UNW_COMPATIBLE_PERSONALITY_P): Provide default.
7345         (uw_frame_state_for): Only register a personality routine if it is
7346         known to be compatible with our expectations.
7347         (_Unwind_FindEnclosingFunction, uw_frame_state_for):
7348         Declare unw_table_entry stack variable and
7349         mod all calls to _Unwind_FindTableEntry to add arg.
7350         * config/ia64/unwind-ia64.h (UNW_ accessors): Move here.
7351         (_Unwind_FindTableEntry): Add arg to prototype.
7352
7353 2009-08-14  Eric Botcazou  <ebotcazou@adacore.com>
7354
7355         * config/ia64/unwind-ia64.c (struct _Unwind_Context): Add new
7356         field 'signal_pfs_loc'.
7357         (uw_frame_state_for): Remove duplicate code dealing with leaf
7358         procedures without unwind info.
7359         If in the frame after unwinding through a signal handler, restore
7360         the AR.PFS register instead of the CFM if AR.PFS has not been saved.
7361         * config/ia64/linux-unwind.h (ia64_fallback_frame_state): Do not set
7362         'pfs_loc' to the AR.PFS location in the signal context; instead
7363         set 'signal_pfs_loc'.
7364         Manually generate the unwind info for the AR.PFS register.
7365         (ABI_MARKER_OLD_LINUX_SIGTRAMP, ABI_MARKER_OLD_LINUX_INTERRUPT,
7366         ABI_MARKER_LINUX_SIGTRAMP, ABI_MARKER_LINUX_INTERRUPT): Define.
7367         (ia64_handle_unwabi): Test 'fs->unwabi' against them.
7368         Do not set 'pfs_loc' to the AR.PFS location in the signal context;
7369         instead set 'signal_pfs_loc'.
7370         Remove code preventing the AR.PFS register from being restored
7371         from the signal context.
7372
7373 2009-08-14  Douglas B Rupp  <rupp@gnat.com>
7374             Tristan Gingold  <gingold@adacore.com>
7375
7376         * config.gcc (ia64-hp-*vms*): Insert ia64/t-ia64 in tmake_file.
7377         * config/ia64/t-vms: New file.
7378         * config/ia64/vms64.h: New file.
7379         * config/ia64/vms.h: New file.
7380         * config/ia64/vms-crtinit.asm: New file.
7381         * config/ia64/vms_symvec_libgcc_s.opt: New file.
7382         * config/ia64/vms-unwind.h: New file.
7383
7384 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
7385
7386         * config/alpha/alpha.c (alpha_emit_conditional_move): Handle
7387         TFmode compares.
7388
7389 2009-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7390
7391         PR middle-end/30789
7392         * builtins.c (do_mpc_arg2): Make extern, define for any MPC version.
7393         Move declaration...
7394         * real.h (do_mpc_arg2): ... here.
7395         * fold-const.c (const_binop): Use MPC for complex MULT_EXPR
7396         and RDIV_EXPR.
7397
7398 2009-08-14  Rafael Avila de Espindola  <espindola@google.com>
7399
7400         * final.c (add_debug_prefix_map): Don't use GC memory for
7401         old_prefix and new_prefix.
7402
7403 2009-08-14  Richard Guenther  <rguenther@suse.de>
7404
7405         * ipa-prop.c (compute_complex_pass_through): If we cannot
7406         compute a non-varying offset for IPA_JF_ANCESTOR punt.
7407
7408 2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7409
7410         * c-lex.c (c_lex_with_flags): Increase size of local variable
7411         to avoid memory clobber.
7412
7413 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
7414
7415         PR target/40934
7416         * config/i386/i386.c (ix86_fp_comparison_strategy):
7417         Only enable/disable sahf at function granularity.
7418
7419 2009-08-14  Hans-Peter Nilsson  <hp@axis.com>
7420
7421         PR rtl-optimization/41064
7422         * reload1.c (reload_as_needed): Don't call extract_insn
7423         for known invalid replacements after calling
7424         validate_replace_rtx_group and verify_changes.
7425
7426 2009-08-14  Uros Bizjak  <ubizjak@gmail.com>
7427
7428         PR target/41019
7429         * config/i386/sse.md (SSEMODE124C8): New mode iterator.
7430         (vcond<SSEMODEF2P:mode>): Assert that operation is supported by
7431         ix86_expand_fp_vcond.
7432         (vcond<SSEMODE124C8:mode>): Use SSEMODE124C8 instead of SSEMODE124.
7433         Assert that operation is supported by ix86_expand_int_vcond.
7434         (vcondu<SSEMODE124C8:mode>): Ditto.
7435
7436 2009-08-13  DJ Delorie  <dj@redhat.com>
7437
7438         * config/i386/djgpp-stdint.h: New.
7439         * config.gcc (djgpp): Use it.
7440
7441 2009-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7442
7443         * config/sh/sh.c (sh_override_options): When flag_exceptions or
7444         flag_unwind_tables is on, turn flag_reorder_blocks_and_partition off.
7445
7446 2009-08-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
7447
7448         * tree-ssa-loop-prefetch.c
7449         (prune_ref_by_group_reuse): Enhance probabilistic analysis
7450         for long-stride pruning.
7451         (compute_miss_rate): New function to compute the probability
7452         that two memory references access different cache lines.
7453
7454 2009-08-13  Dave Korn  <dave.korn.cygwin@gmail.com>
7455
7456         * gcc/config/i386/cygwin.h (LINK_SPEC): Add --enable-auto-image-base.
7457
7458 2009-08-13  Richard Guenther  <rguenther@suse.de>
7459
7460         PR middle-end/41047
7461         * tree-ssa-ccp.c (ccp_fold): When folding pointer additions
7462         use the constant pointer type.
7463         * gimplify.c (canonicalize_addr_expr): Canonicalize independent
7464         of CV qualifiers on the target pointer type.
7465         * tree-ssa.c (useless_type_conversion_p): Move incomplete pointer
7466         conversion check before restrict check.
7467
7468 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7469
7470         PR target/41029
7471         * config/sh/sh.md (reload_outdf__RnFRm+4): Fix thinko.
7472
7473 2009-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7474
7475         * config/sh/sh.c (sh_promote_function_mode): Add ATTRIBUTE_UNUSED.
7476
7477 2009-08-12  Richard Guenther  <rguenther@suse.de>
7478
7479         PR tree-optimization/41011
7480         * ipa-cp.c (ipcp_lattice_from_jfunc): Deal with failing fold
7481         and reference constructing.
7482
7483 2009-08-12  Xinliang David Li  <davidxl@google.com>
7484
7485         PR tree-optimization/41012
7486         * tree-flow.h : New external interface.
7487         * gimple-low.c (check_call_arg): Change to public function.
7488         Remove argument mismatch check in lowering.
7489         * tree-inline.h (tree_can_inline_p): Interface change.
7490         * tree-inline.c (tree_can_inline_p): Fold argument mismatch check
7491         into this function.
7492         * ipa-inline.c (cgraph_decide_inlining_of_small_functions):
7493         Call change to tree_can_inline_p function.
7494         (cgraph_decide_inlining_incrementally): Ditto.
7495
7496 2009-08-12  Richard Sandiford  <rdsandiford@googlemail.com>
7497
7498         PR tree-optimization/41031
7499         * tree-outof-ssa.c (insert_value_copy_on_edge): Use promote_decl_mode
7500         on the partition variable rather than promote_mode on the source
7501         type.  Assert that the partition variable's type has the same
7502         mode as the source value's.
7503
7504 2009-08-12  Paolo Bonzini  <bonzini@gnu.org>
7505
7506         * doc/tm.texi (TARGET_PROMOTE_FUNCTION_MODE): Add documentation
7507         for for_return == 2.
7508         * function.c (assign_parm_setup_reg): Use for_return == 2, improve
7509         comments.
7510         * calls.c (expand_call): Fix typo.
7511         * explow.c (promote_decl_mode): Use for_return == 2 for RESULT_DECL
7512         and PARM_DECL.
7513         * stmt.c (expand_value_return): Use promote_function_mode to copy out
7514         of pseudo.
7515         * targhooks.c (default_promote_function_mode): Handle for_return == 2.
7516         * config/cris/cris.c (cris_promote_function_mode): Likewise.
7517         * config/mmix/mmix.c (mmix_promote_function_mode): Likewise.
7518         * config/pa/pa.c (pa_promote_function_mode): Likewise.
7519
7520 2009-08-12  Andrew Haley  <aph@redhat.com>
7521
7522         * config/arm/arm.c (arm_init_libfuncs): Add __sync_synchronize.
7523
7524 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7525
7526         PR bootstrap/40103
7527         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
7528
7529 2009-08-12  Richard Guenther  <rguenther@suse.de>
7530
7531         * alias.c (get_alias_set): Honor TYPE_STRUCTURAL_EQUALITY_P.
7532         * gimplify.c (gimplify_modify_expr): Do not use
7533         lang_hooks.types_compatible_p.
7534         * tree-ssa.c (useless_type_conversion_p): For aggregates
7535         just return false if the canonical types differ.
7536
7537 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7538
7539         PR middle-end/40980
7540         * sese.c (convert_for_phi_arg): New.
7541         (add_guard_exit_phis): Use convert_for_phi_arg.
7542
7543 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7544
7545         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
7546         unknown subscript upper bounds.
7547
7548 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7549             Pranav Garg  <pranav.garg2107@gmail.com>
7550
7551         * graphite-interchange.c (gather_access_strides): Removed.
7552         (ppl_max_for_le): New.
7553         (build_linearized_memory_access): New.
7554         (memory_stride_in_loop): New.
7555         (pbb_interchange_profitable_p): Reimplemented.
7556         * graphite-ppl.h (ppl_new_id_map): New.
7557         (ppl_interchange): New.
7558
7559 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7560
7561         * graphite-interchange.c (compute_subscript): Removed.
7562         (compute_array_size_cstr): Removed.
7563         (compute_array_size_poly): Removed.
7564         (compute_array_size): Removed.
7565         (gather_access_strides_poly): Removed.
7566         (gather_access_strides): Empty.
7567
7568 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7569
7570         * graphite-dependences.c (dependence_polyhedron_1): Replace
7571         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
7572         (graphite_legal_transform_dr): Same.
7573         (graphite_carried_dependence_level_k): Same.
7574         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
7575         Initialize PDR_NB_SUBSCRIPTS.
7576         (print_pdr_access_layout): Replace pdr_nb_subscripts with
7577         PDR_NB_SUBSCRIPTS.
7578         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
7579         (PDR_NB_SUBSCRIPTS): New.
7580         (pdr_nb_subscripts): Removed.
7581         (pdr_dim): Simplified.
7582         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
7583         with PDR_NB_SUBSCRIPTS.
7584
7585 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7586
7587         * graphite-interchange.c (compute_array_size): Remove use of
7588         PDR_DATA_CONTAINER.
7589         * graphite-poly.c (new_poly_dr): Remove argument data_container.
7590         Do not initialize PDR_DATA_CONTAINER.
7591         (print_pdr): Do not print PDR_DATA_CONTAINER.
7592         * graphite-poly.h (struct poly_dr): Remove data_container field.
7593         (PDR_DATA_CONTAINER): Removed.
7594         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
7595         PDR_DATA_CONTAINER.
7596         (build_poly_dr): Same.
7597
7598 2009-08-12  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
7599             Sebastian Pop  <sebastian.pop@amd.com>
7600
7601         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
7602         copy of the dependence polyhedron.  Free the temporary objects.
7603         (graphite_carried_dependence_level_k): Free unused objects before
7604         returning.
7605
7606 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7607
7608         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
7609         Early return without analyzing the data dependences if no
7610         transform has been done.  Call restore_scattering if the transform
7611         is not legal.
7612         (graphite-interchange.c): Same.
7613         * graphite-poly.c (print_scattering_function): Test for
7614         PBB_TRANSFORMED.
7615         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
7616         (apply_poly_transforms): Do not gcc_assert that
7617         the transform is legal.
7618         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED and PBB_ORIGINAL.
7619         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
7620         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
7621         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
7622         * graphite-poly.h (struct poly_scattering): New.
7623         (struct poly_bb): Add original, transformed, and saved fields.
7624         Remove transformed_scattering, original_scattering,
7625         nb_local_variables and nb_scattering_transform fields.
7626         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
7627         (poly_scattering_new): New.
7628         (poly_scattering_free): New.
7629         (poly_scattering_copy): New.
7630         (store_scattering_pbb): New.
7631         (store_scattering): New.
7632         (restore_scattering_pbb): New.
7633         (restore_scattering): New.
7634         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7635         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
7636
7637 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7638
7639         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
7640         (print_scop): Same.
7641
7642 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7643
7644         * Makefile.in (graphite.o): Depends on PREDICT_H.
7645         * graphite.c: Include predict.h.
7646         (graphite_finalize): Call tree_estimate_probability.
7647         * predict.c (predict_loops): Do not call scev_initialize and
7648         scev_finalize.
7649         (tree_estimate_probability_bb): New.
7650         (tree_estimate_probability): Do not initialize loops: move that
7651         code to the driver.  Call tree_estimate_probability_bb.
7652         (tree_estimate_probability_driver): New.
7653         (pass_profile): Use tree_estimate_probability_driver.
7654         * predict.h (tree_estimate_probability): Declared.
7655
7656 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
7657
7658         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
7659         * graphite-dependences.c (graphite_legal_transform): Add time to
7660         TV_GRAPHITE_DATA_DEPS.
7661         (dependency_between_pbbs_p): Same.
7662         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
7663
7664 2009-08-12  Andrey Belevantsev  <abel@ispras.ru>
7665
7666         PR rtl-optimization/41033
7667         * alias.c (nonoverlapping_component_refs_p): Punt when strict
7668         aliasing is disabled.
7669
7670 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
7671
7672         * config/mips/predicates.md (qi_mask_operand, hi_mask_operand,
7673         si_mask_operand, and_load_operand, low_bitmask_operand,
7674         and_reg_operand, and_operand): New predicates.
7675         * config/mips/constraints.md (Yb, Yh, Yw, Yz): New constraints.
7676         * config/mips/mips.c (and_operands_ok): New function.
7677         * config/mips/mips-protos.h (and_operands_ok): Declare it.
7678         * config/mips/mips.md (move_type): Add ext_ins and logical.
7679         (type): Handle them.
7680         (and<mode>3): Use and_reg_operand as the second operand's predicate.
7681         (*and<mode>3): Add alternatives for lbu, lhu, lwu, <d>ext and
7682         shift_shift.  Remove commutative constraint modifier.
7683         (*and<mode>3_mips16): Add alternatives for lbu, lhu, lwu and
7684         shift_shift.
7685         (*clear_upper32_dext): Remove define_insn_and_split.
7686         (*clear_upper32): Turn this define_insn_and_split ...
7687         (splitter for ANDing register with 0xffff_ffff): .. into this.
7688
7689 2009-08-11  Adam Nemet  <anemet@caviumnetworks.com>
7690
7691         * combine.c (try_widen_shift_mode): Factor out code to check if an
7692         integer constant is a low-order bitmask from here ...
7693         * rtlanal.c (low_bitmask_len): ... to here.
7694         * rtl.h (low_bitmask_len): Declare.
7695
7696 2009-08-11  Uros Bizjak  <ubizjak@gmail.com>
7697
7698         PR target/8603
7699         * config/alpha/alpha.md (addsi3): Remove expander.
7700         (addsi3): Rename from *addsi3_internal insn pattern.
7701         (subsi3): Remove expander.
7702         (subsi3): Rename from *subsi3_internal insn pattern.
7703
7704 2009-08-11  Douglas B Rupp  <rupp@gnat.com>
7705
7706         * config/alpha/alpha.c (alpha_init_builtins): Nullify FWRITE and
7707         FWRITE_UNLOCKED.
7708
7709 2009-08-11  Vasiliy Fofanov  <fofanov@adacore.com>
7710             Eric Botcazou  <botcazou@adacore.com>
7711             Douglas B Rupp  <rupp@gnat.com>
7712
7713         * config/alpha/alpha.c (alpha_return_in_memory): On VMS, ensure
7714         that records that fit in 64 bits are returned by immediate value,
7715         as required by OpenVMS Calling Standard.
7716         (function_value): Adjust for above modification.
7717         (alpha_va_start) <TARGET_ABI_OPEN_VMS>: Use
7718         virtual_incoming_args_rtx as base object, not next_arg.
7719         * config/alpha/vms.h: (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7720
7721 2009-08-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7722
7723         * reload.c (find_reloads_subreg_address): Check the original
7724         req_equiv_mem address to detect the case where an address is
7725         not valid in the outer mode.
7726
7727 2009-08-11  Richard Guenther  <rguenther@suse.de>
7728
7729         PR bootstrap/40788
7730         * builtins.c (gimplify_va_arg_expr): Do not call SET_EXPR_LOCATION.
7731
7732 2009-08-10  Douglas B Rupp  <rupp@gnat.com>
7733
7734         * config/alpha/vms.h (OPTIMIZATION_OPTIONS): Remove
7735         (OVERRIDE_OPTIONS): Incorporate removed OPTIMIZATION_OPTIONS.
7736
7737 2009-08-10  Olivier Hainque  <hainqueu@adacore.com>
7738             Douglas B Rupp  <rupp@gnat.com>
7739
7740         * config/alpha/alpha.c (alpha_sa_size): Force procedure type to
7741         PT_STACK when frame_pointer_needed on OpenVMS.
7742         (alpha_pv_save_size, alpha_using_fp): Remove.
7743         (alpha_vms_can_eliminate): New function. Support for CAN_ELIMINATE
7744         with proper processing for PT_NULL.
7745         (alpha_vms_initial_elimination_offset): New function. Support for
7746         INITIAL_ELIMINATION_OFFSET with proper processing for PT_NULL.
7747         (alpha_sa_size): Force procedure type to PT_STACK when
7748         frame_pointer_needed on OpenVMS.
7749         * config/alpha/alpha-protos.h (alpha_pv_save_size): Remove prototype.
7750         (alpha_using_fp): Likewise.
7751         (alpha_vms_can_eliminate): Add prototype.
7752         (alpha_vms_initial_elimination_offset): Likewise.
7753         * config/alpha/vms.h (CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET):
7754         Call alpha_vms_can_eliminate and alpha_vms_initial_elimination_offset.
7755
7756 2009-08-10  Eric Botcazou  <botcazou@adacore.com>
7757             Douglas B Rupp  <rupp@gnat.com>
7758
7759         * config/alpha/alpha.c (common_object_handler): New function.
7760         (vms_attribute_table): Declare a single attribute "common_object".
7761         (vms_output_aligned_decl_common): New global function.
7762         (SECTION_VMS_OVERLAY): Delete.
7763         (SECTION_VMS_GLOBAL): Likewise.
7764         (SECTION_VMS_INITIALIZE): Likewise.
7765         (vms_asm_named_section): Remove support for above flags.
7766         (vms_section_type_flags): Delete.
7767         (TARGET_SECTION_TYPE_FLAGS): Likewise.
7768         * config/alpha/alpha-protos.h (vms_output_aligned_decl_common): New.
7769         * config/alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Delete.
7770         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New macro.
7771
7772 2009-08-10  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7773
7774         PR target/41015
7775         * longlong.h [__sh__] (udiv_qrnnd): Add T register to clobber list.
7776         (sub_ddmmss): Likewise.
7777
7778 2009-08-10  Andreas Tobler  <a.tobler@schweiz.org>
7779
7780         PR bootstrap/41018
7781         * config/rs6000/freebsd.h: Define SVR4_ASM_SPEC. Adjust copyright
7782         year.
7783
7784 2009-08-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7785
7786         PR target/37053
7787         * reload1.c (reload_as_needed): Use cancel_changes to completely
7788         undo a failed replacement attempt.
7789
7790 2009-08-10  Richard Guenther  <rguenther@suse.de>
7791
7792         PR middle-end/41006
7793         * tree-ssa.c (useless_type_conversion_p_1): Fold into ...
7794         (useless_type_conversion_p): ... here.  Require pointer targets
7795         to be compatible.
7796
7797 2009-08-10  Dodji Seketeli  <dodji@redhat.com>
7798
7799         PR c++/40866
7800         * tree-inline.c (copy_statement_list): The resulting copy shouldn't
7801         loose the original type of the statement list.
7802
7803 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7804
7805         * config/alpha/alpha.c: Include libfuncs.h
7806         (avms_asm_output_extern): New function.
7807         (alpha_init_libfuncs): Init some decc libfuncs.
7808         * config/alpha/alpha-protos.h (avms_asm_output_external): Declare.
7809         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Define.
7810         (DO_CRTL_NAMES): Define.
7811         (LIB_SPEC): Remove.
7812         * config/alpha/vms64.h: (POINTERS_EXTEND_UNSIGNED): Remove undef.
7813         (LONG_TYPE_SIZE): Define.
7814         (TARGET_OS_CPP_BUILTINS): Define with __LONG_POINTERS=1
7815         (SUBTARGET_SWITCHES): Define malloc64 switch.
7816         (TARGET_DEFAULT): Default MASK_MALLOC64 set.
7817         (MASK_RETURN_ADDR): Define.
7818         doc/invoke.texi (mmalloc64): Document switch.
7819
7820 2009-08-09  Olivier Hainque  <hainque@adacore.com>
7821             Douglas B Rupp  <rupp@gnat.com>
7822
7823         * config/alpha/alpha.c (struct machine_function): New flag for VMS,
7824         uses_condition_handler.
7825         (alpha_expand_builtin_establish_vms_condition_handler): New expander.
7826         (alpha_expand_builtin_revert_vms_condition_handler): New expander.
7827         (enum alpha_builtin): New ALPHA_BUILTIN_REVERT_VMS_CONDITION_HANDLER
7828         and ALPHA_BUILTIN_ESTABLISH_VMS_CONDITION_HANDLER values.
7829         (code_for_builtin): New insn codes for the new alpha_builtins.
7830         (alpha_init_builtins): Register the new functions as BUILT_IN_MD.
7831         (alpha_sa_size): Account for uses_condition_handler.
7832         (alpha_expand_prologue): Likewise.
7833         (alpha_start_function): Likewise.
7834         (alpha_expand_epilogue): Likewise.
7835         * config/alpha/alpha-protos.h: Prototype the new alpha.c builtin
7836         establish/revert expanders.
7837         * config/alpha/alpha.h (DWARF_FRAME_REGNUM): Define.
7838         * config/alpha/alpha.md (builtin_establish_vms_condition_handler):
7839         New expander, resorting to the alpha.c associated function.
7840         (builtin_revert_vms_condition_handler): Likewise.
7841         * config/alpha/vms-gcc_shell_handler.c: New file. Implements
7842         __gcc_shell_handler, the static VMS condition handler used as
7843         an indirection wrapper to the current dynamically established
7844         handler.
7845         * config/alpha/vms-unwind.h: Complete rewrite.
7846         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms-gcc_shell_handler.c
7847         * config/alpha/vms.h (MD_UNWIND_SUPPORT):
7848
7849 2009-08-09  Eric Botcazou  <botcazou@adacore.com>
7850             Douglas B Rupp  <rupp@gnat.com>
7851
7852         * config/alpha/alpha.c (alpha_links): Add 'target' field.
7853         (alpha_need_linkage): Handle aliases.  Return function symbol.
7854         (alpha_use_linkage): Rename 'linkage' argument to 'func'.
7855         Use ultimate alias target for the linkage name.
7856         * config/alpha/alpha.md (movmemdi): Use the symbol returned
7857         by alpha_need_linkage for the function symbol.
7858         (setmemdi): Likewise.
7859
7860 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7861
7862         * config/alpha/alpha.c (TARGET_ASM_UNALIGNED_*_OP): Define if on VMS.
7863         * config/alpha/vms.h (OBJECT_FORMAT_ELF): Define.
7864         (ASM_WEAKEN_LABEL): Define.
7865         (CRT_CALL_STATIC_FUNCTION): Define.
7866         (STARTFILE_SPEC): Add crtbegin.o crtbeginS.o.
7867         (ENDFILE_SPEC): Define.
7868         (INIT_SECTION_ASM_OP): Define.
7869         * config/alpha/vms-dwarf2eh.asm (__EH_FRAME_BEGIN__): Remove.
7870         * config/alpha/t-vms (EXTRA_PARTS): Add crtbegin.o crtbeginS.o
7871         crtend.o crtendS.o.
7872         (MULTILIB_OSDIRNAMES): Define.
7873         (shlib_version): Define.
7874         (SHLIB_EXT): Define.
7875         (SHLIB_OBJS): Define.
7876         (SHLIB_NAME): Define.
7877         (SHLIB_MULTILIB): Define.
7878         (SHLIB_INSTALL): Define.
7879         (SHLIB_SYMVEC): Define.
7880         (SHLIB_SYMVECX2): Define.
7881         (SHLIB_LINK): Define.
7882
7883 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7884
7885         * config/alpha/alpha.c (alpha_initialize_trampoline):
7886         Initialize VMS trampoline IAW ABI for bounded procedure calls.
7887         (alpha_start_function): Emit transfer address on nested functions
7888         for VMS trampoline call.
7889         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Remove vms_tramp.asm
7890         since no longer used.
7891         * config/alpha/vms-tramp.asm: Remove.
7892         * config/alpha/vms.h (TRAMPOLINE_TEMPLATE): Leave undefined
7893         since now only data initialized at runtime.
7894
7895 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7896
7897         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Define.
7898         (LINK_GCC_C_SEQUENCE_SPEC): Define.
7899         (MD_EXEC_PREFIX): Remove, no longer used.
7900         (MD_STARTFILE_PREFIX): Likewise.
7901         (INCLUDE_DEFAULTS): Likewise.
7902         * config/alpha/t-vms:
7903         (vms-dwarf2.o, vms-dwarf2eh.o): Use GCC_FOR_TARGET to compile.
7904
7905 2009-08-09  Richard Guenther  <rguenther@suse.de>
7906
7907         PR tree-optimization/41016
7908         * tree-ssa-ifcombine.c (get_name_for_bit_test): Fix tuplification bug.
7909         (operand_precision): Remove.
7910         (integral_operand_p): Likewise.
7911         (recognize_single_bit_test): Adjust.
7912
7913 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7914
7915         * c-common.c (c_fully_fold_internal): Issue a warning if a binary
7916         operation overflows.  Likewise non-cast unary arithmetic.
7917         If one arm of a conditional expression is always taken,
7918         inhibit evaluation warnings for the other arm.  Likewise inhibit
7919         evaluation warnings for the second && or || operand if the first
7920         operand is enough to determine the result.
7921         * c-typeck.c (build_conditional_expr): Apply the same inhibition
7922         rules here.
7923         (build_binary_op): Prevent duplicate evaluation warnings.
7924
7925 2009-08-09  Richard Sandiford  <rdsandiford@googlemail.com>
7926
7927         * tree-out-of-ssa.c (insert_value_copy_on_edge): If the source
7928         and destination have different modes, Use promote_mode to
7929         determine the signedness of the conversion.  Assert that the
7930         promoted source mode matches the destination mode.  Don't pass
7931         the destination and destination mode to expand_expr if the source
7932         mode is different.  Simplify conversion logic.
7933
7934 2009-08-09  Ira Rosen  <irar@il.ibm.com>
7935
7936         PR tree-optimization/41008
7937         * tree-vect-loop.c (vect_is_simple_reduction): Get operands
7938         from condition only in case it's a comparison. Adjust checks.
7939
7940 2009-08-09  Bernd Schmidt  <bernd.schmidt@analog.com>
7941
7942         * tree-dfa.c (renumber_gimple_stmt_uids_in_blocks): New function.
7943         * tree-flow.h (renumber_gimple_stmt_uids_in_blocks): Declare it.
7944         * tree-ssa-loop-ivopts.c (comp_cost): Make COST an integer.
7945         (enum iv_position): Add IP_AFTER_USE and IP_BEFORE_USE.
7946         (dump_cand): Handle them.
7947         (struct iv_cand): New members COST_STEP and AINC_USE.
7948         (stmt_after_increment): Likewise.
7949         (stmt_after_inc_pos): Renamed from stmt_after_ip_original_pos.  All
7950         callers changed.  Use gimple_uid comparison instead of scanning.
7951         (add_candidate_1): When looking for identical candidates, take
7952         AINC_USE into account.  Set it for new candidates.
7953         (force_expr_to_var_cost): Cast target_spill_cost to int.
7954         (get_address_cost): New arguments STMT_AFTER_INC and MAY_AUTOINC.
7955         All callers changed.  Check for availability of autoinc addressing
7956         modes, both in general for a given mode, and in the specific use case.
7957         (get_computation_cost_at): New argument CAN_AUTOINC.  All callers
7958         changed.
7959         (get_computation_cost): Likewise.
7960         (autoinc_possible_for_pair, set_autoinc_for_original_candidates,
7961         add_autoinc_candidates): New static functions.
7962         (add_candidate): Call add_autoinc_candidates for candidates based on
7963         a USE_ADDRESS use.
7964         (find_iv_candidates): Call set_autoinc_for_original_candidates.
7965         (determine_use_iv_cost_address): If we have an autoinc candidate at
7966         the matching use, verify autoinc is possible and subtract the cost
7967         of the candidate's step from the cost.
7968         (determine_iv_cost): Record the cost of the increment in the COST_STEP
7969         member of the candidate.
7970         (tree_ssa_iv_optimize_loop): Swap the calls to determine_iv_costs and
7971         determine_use_iv_costs.  Call renumber_gimple_stmt_uids_in_blocks.
7972
7973 2009-08-09  Douglas B Rupp  <rupp@gnat.com>
7974
7975         * config.build (ia64-hp-*vms*): New target.
7976         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7977         with ia64-hp-*vms*.
7978         * config.gcc (ia64-hp-*vms*): New target.
7979         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7980         with ia64-hp-*vms*.
7981         * config.host (ia64-hp-*vms*): New target.
7982         (alpha64-dec-*vms*,alpha*-dec-*vms*): Fix for config/vms and unify
7983         with ia64-hp-*vms*.
7984
7985 2009-08-08  Richard Guenther  <rguenther@suse.de>
7986
7987         PR tree-optimization/40991
7988         * tree-ssa-pre.c (eliminate): Delay purging EH edges.
7989
7990 2009-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
7991
7992         * combine.c (gen_lowpart_or_truncate): Exclude CONST_INTs from
7993         mode check.  Do truncations in an integer mode.
7994         (force_to_mode): Handle subregs for all mode types.  Only do
7995         arithmetic simplifications on integer modes.
7996
7997 2009-08-07  Richard Guenther  <rguenther@suse.de>
7998
7999         PR tree-optimization/40999
8000         * tree-ssa-ccp.c (get_symbol_constant_value): Handle CONST_DECLs.
8001         (maybe_fold_reference): Lookup constant initializers.
8002         (fold_gimple_assign): Likewise.
8003
8004 2009-08-07  Richard Guenther  <rguenther@suse.de>
8005
8006         * tree-ssa.c (useless_type_conversion_p_1): Only for types
8007         that require structural equality defer to the langhook.
8008
8009 2009-08-07  Martin Jambor  <mjambor@suse.cz>
8010
8011         * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
8012         comments.
8013         (struct ipa_pass_through_data): New type.
8014         (struct ipa_ancestor_jf_data): New type.
8015         (union jump_func_value): Removed field formal_id, added fields
8016         pass_through and ancestor.
8017         (struct ipa_param_call_note): Changed type of formal_id to int from
8018         unsigned.
8019         * ipa-prop.c (ipa_print_node_jump_functions): Print pass through with
8020         operations jump functions and ancestor jump functions.
8021         (compute_complex_pass_through): New function.
8022         (compute_scalar_jump_functions): Call compute_complex_pass_through,
8023         reflect changes in the jump function strucutre.
8024         (update_jump_functions_after_inlining): Ignore complex pass-through
8025         and ancestor jump functions.
8026         * ipa-cp.c (ipcp_lattice_from_jfunc): Added support for ancestor and
8027         polynomial pass-through with operation jump functions.
8028
8029 2009-08-07  Jakub Jelinek  <jakub@redhat.com>
8030
8031         * dwarf2out.c (output_fde): When doing hot/cold partitioning, use
8032         fde->dw_fde_begin as begin label instead of hot/cold label.
8033         Use LLSDAC label instead of LLSDA for second section lsda.
8034         (dwarf2out_do_cfi_startproc): Add SECOND argument.  Use LLSDAC
8035         label instead of LLSDA if it is true.
8036         (dwarf2out_begin_prologue, dwarf2out_switch_text_section): Adjust
8037         callers.
8038         * except.c (add_call_site, dw2_size_of_call_site_table): Add
8039         SECTION argument.  Use it as index into crtl->eh.call_site_record
8040         array.
8041         (dw2_output_call_site_table): Likewise.  Add CS_FORMAT argument,
8042         use it to determine how to print table entries instead of using
8043         #ifdef HAVE_AS_LEB128.  For SECTION > 0 use hot resp. cold
8044         label instead of normal begin label as base.
8045         (sjlj_assign_call_site_values): Adjust add_call_site caller.
8046         (convert_to_eh_region_ranges): When doing hot/cold partitioning,
8047         ensure no EH range spans between sections and that landing pads
8048         are always in the corresponding section.
8049         (sjlj_size_of_call_site_table, sjlj_output_call_site_table): Adjust
8050         for crtl->eh.call_site_record being an array rather than scalar.
8051         (output_one_function_exception_table): New function, copied
8052         from output_function_exception_table.  Adjust
8053         dw2_size_of_call_site_table, dw2_output_call_site_table
8054         callers.  For SECOND section use *C suffixed labels.
8055         (output_function_exception_table): Call
8056         output_one_function_exception_table and, when doing hot/cold
8057         partitioning, also another time for the second section.
8058         * opts.c: Include except.h.
8059         (decode_options): Allow -freorder-blocks-and-partition with
8060         exceptions, unless SJLJ or TARGET_UNWIND_INFO.
8061         * Makefile.in (opts.o): Depend on $(EXCEPT_H).
8062         * function.h (struct rtl_eh): Change call_site_record from
8063         scalar into array of 2 elements.
8064
8065 2009-08-07  Martin Jambor  <mjambor@suse.cz>
8066
8067         * ipa-prop.c (count_formal_params_1): New function.
8068         (ipa_get_vector_of_formal_parms): New function.
8069         (get_vector_of_formal_parm_types): New function.
8070         (ipa_modify_formal_parameters): New function.
8071         (ipa_modify_call_arguments): New function.
8072         (index_in_adjustments_multiple_times_p): New function.
8073         (ipa_combine_adjustments): New function.
8074         (ipa_dump_param_adjustments): New function.
8075         * ipa-prop.h (struct ipa_parm_adjustment): New type.
8076         (ipa_get_vector_of_formal_parms): Declare.
8077         (ipa_modify_formal_parameters): Declare.
8078         (ipa_modify_call_arguments): Declare.
8079         (ipa_combine_adjustments): Declare.
8080         (ipa_dump_param_adjustments): Declare.
8081         (build_ref_for_offset): Declare.
8082         * Makefile.in (tree-sra.o): Add ipa-prop.h to dependencies.
8083         * tree-sra.c: Include ipa-prop.c.
8084         (build_ref_for_offset): Make public.
8085
8086 2009-08-06  Neil Vachharajani  <nvachhar@gmail.com>
8087
8088         * value-prof.c (init_pid_map): Replace xmalloc with XCNEWVEC.
8089
8090 2009-08-06  Thomas Schwinge  <tschwinge@gnu.org>
8091
8092         * gcc/doc/extend.texi (__builtin_extract_return_address)
8093         (__builtin_frob_return_address): Document.
8094
8095 2009-08-06  Paul Brook  <paul@codesourcery.com>
8096
8097         * config/arm/lib1funcs.asm (ARM_DIV_BODY): Add Thumb-2 implementation.
8098         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Only use Thumb-1
8099         implementation on ARMv6-M.
8100
8101 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8102
8103         * doc/extend.texi (pcs): Document new attribute for ARM.
8104
8105 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8106
8107         * arm.c (pcs_attribute_args): Comment out unsupported attribute
8108         variants.
8109
8110 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8111
8112         * arm.c (arm_handle_pcs_attribute): Pass the entire name object to
8113         warning ().
8114
8115 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8116
8117         * arm.c (arm_handle_pcs_attribute): Use %qE in warning.
8118
8119 2009-08-06  Richard Earnshaw  <rearnsha@arm.com>
8120
8121         Merge ARM/hard_vfp_branch to trunk.
8122
8123         2009-08-04  Richard Earnshaw  <rearnsha@arm.com>
8124
8125         * arm.c (libcall_eq): New function.
8126         (libcall_hash): New function.
8127         (add_libcall): New function.
8128         (arm_libcall_uses_aapcs_base): New function.
8129         (arm_libcall_value): Use arm_libcall_uses_aapcs_base to check for
8130         libcalls using the base PCS.
8131         (arm_init_cumulative_args): Likewise.
8132
8133         2009-07-20  Joseph Myers  <joseph@codesourcery.com>
8134
8135         * config/arm/arm.c (arm_libcall_value, arm_init_cumulative_args):
8136         Use base ABI for conversion libfuncs between HFmode and SFmode.
8137
8138         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8139
8140         * config/arm/arm.c (aapcs_vfp_sub_candidate): Use V2SImode and
8141         V4SImode as representatives of all 64-bit and 128-bit vector
8142         types.  Allow vector types without vector modes.
8143         (aapcs_vfp_is_call_or_return_candidate): Handle vector types
8144         without vector modes like BLKmode.
8145         (aapcs_vfp_allocate): Handle TImode for non-TARGET_NEON like
8146         BLKmode.  Avoid unsupported vector modes or TImode moves for
8147         non-TARGET_NEON.
8148         (aapcs_vfp_allocate_return_reg): Likewise.
8149         (arm_vector_mode_supported_p): Only support V2SImode, V4HImode and
8150         V8QImode if TARGET_NEON || TARGET_IWMMXT.
8151
8152         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8153
8154         * config/arm/arm.c (arm_handle_pcs_attribute): New.
8155         (arm_get_pcs_model): Pass attribute arguments to
8156         arm_pcs_from_attribute.
8157         (arm_init_cumulative_args): Use base AAPCS for conversions from
8158         floating-point types to DImode.
8159         (arm_attribute_table): Add pcs attribute.
8160         (arm_handle_pcs_attribute): New.
8161         * config/arm/bpabi.h (DECLARE_LIBRARY_RENAMES): When renaming
8162         conversions from floating-point types to DImode, also declare them
8163         to use base AAPCS and declare functions they call to use base
8164         AAPCS and their RTABI names.
8165
8166         2009-05-12  Joseph Myers  <joseph@codesourcery.com>
8167
8168         * doc/invoke.texi (-mfloat-abi=@var{name}): Remove statement about
8169         -mfloat-abi=hard not being supported for VFP.
8170
8171         2009-05-11  Kazu Hirata  <kazu@codesourcery.com>
8172
8173         * config/sparc/sparc.c (sparc_emit_float_lib_cmp): Pass a libcall
8174         SYMBOL_REF to hard_libcall_value.
8175
8176         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
8177             Richard Earnshaw  <rearnsha@arm.com>
8178
8179         * config/arm/arm.c (aapcs_layout_arg): Once a co-processor argument
8180         has been put on the stack, all remaining co-processory arguments for
8181         that co-processor also go on the stack.
8182
8183         2009-03-05  Joseph Myers  <joseph@codesourcery.com>
8184
8185         * config/arm/arm.c (arm_return_in_memory): Handle returning
8186         vectors of suitable size in registers also for AAPCS case.
8187
8188         2009-01-13  Richard Earnshaw <rearnsha@arm.com>
8189
8190         * doc/tm.texi (TARGET_LIBCALL_VALUE): Add missing end statement.
8191
8192         2008-12-09  Richard Earnshaw <rearnsha@arm.com>
8193
8194         ARM Hard-VFP calling convention
8195         * target-def.h (TARGET_LIBCALL_VALUE): New hook.
8196         * target.h (gcc_target): Add libcall_value to table of call hooks.
8197         * targhooks.h (default_libcall_value): Default implementation.
8198         * targhooks.c (default_libcall_value): Likewise.
8199         * doc/tm.texi (TARGET_LIBCALL_VALUE): Document it.
8200         * optabs.c (expand_unop): Use it.
8201         * expr.h (hard_libcall_value): Pass the function RTX through.
8202         * calls.c (emit_library_call_value_1): Update call to
8203         hard_libcall_value.
8204         * explow.c (hard_libcall_value): Use new target hook.
8205         * testsuite/lib/target-supports.exp
8206         (check_effective_target_arm_hard_vfp_ok): New hook.
8207         (check_effective_target_arm_neon_ok): Improve test for neon
8208         availability.
8209         * testsuite/gcc.target/arm/eabi1.c: Only run test in base variant.
8210         * config/arm/arm.c: Include cgraph.h
8211         (TARGET_FUNCTION_VALUE): Override default hook.
8212         (arm_pcs_default): New variable.
8213         (arm_override_options): Don't fault hard calling convention with VFP.
8214         Add support for AAPCS variants.
8215         (arm_function_value): Make static.  Handle AAPCS variants.
8216         (arm_libcall_value): New function.
8217         (arm_apply_result_size): Handle VFP registers in results.
8218         (arm_return_in_memory): Rework all AAPCS variants; handle hard-vfp
8219         conventions.
8220         (pcs_attribute_args): New variable.
8221         (arm_pcs_from_attribute): New function.
8222         (arm_get_pcs_model): New function.
8223         (aapcs_vfp_cum_init): New function.
8224         (aapcs_vfp_sub_candidate): New function.
8225         (aapcs_vfp_is_return_candidate): New function.
8226         (aapcs_vfp_is_call_candidate): New function.
8227         (aapcs_vfp_allocate): New function.
8228         (aapcs_vfp_allocate_return_reg): New function.
8229         (aapcs_vfp_advance): New function.
8230         (aapcs_cp_arg_layout): New variable.
8231         (aapcs_select_call_coproc): New function.
8232         (aapcs_select_return_coproc): New function.
8233         (aapcs_allocate_return_reg): New function.
8234         (aapcs_libcall_value): New function.
8235         (aapcs_layout_arg): New function.
8236         (arm_init_cumulative_args): Initialize AAPCS args data.
8237         (arm_function_arg): Handle AAPCS variants using new interface.
8238         (arm_arg_parital_bytes): Likewise.
8239         (arm_function_arg_advance): New function.
8240         (arm_function_ok_for_sibcall): Ensure that sibling calls agree on
8241         calling conventions.
8242         (arm_setup_incoming_varargs): Handle new AAPCS args data.
8243         * arm.h (NUM_VFP_ARG_REGS): Define.
8244         (LIBCALL_VALUE): Update.
8245         (FUNCTION_VALUE): Delete.
8246         (FUNCTION_VALUE_REGNO_P): Add VFP regs.
8247         (arm_pcs): New enum.
8248         (CUMULATIVE_ARGS): New data to support AAPCS argument marshalling.
8249         (FUNCTION_ARG_ADVANCE): Call arm_function_arg_advance.
8250         (FUNCTION_ARG_REGNO_P): Add VFP regs.
8251         * arm-protos.h (arm_function_arg_advance): Add.
8252         (aapcs_libcall_value): Add.
8253         (arm_function_value): Delete.
8254
8255 2009-08-06  Uros Bizjak  <ubizjak@gmail.com>
8256             H.J. Lu  <hongjiu.lu@intel.com>
8257
8258         PR target/40957
8259         * config/i386/i386.c (standard_sse_mode_p): Remove.
8260         (standard_sse_constant_p): Return 2 for integer mode
8261         vector_all_ones_operand when SSE2 is enabled.
8262         (standard_sse_constant_opcode)<case 2>: Always return [v]pcmpeqd.
8263         (ix86_expand_vector_move): Do not check for negative values from
8264         standard_sse_constant_p.
8265
8266 2009-08-06  Richard Guenther  <rguenther@suse.de>
8267
8268         * tree-ssa.c (useless_type_conversion_p_1): Make function and
8269         array type comparisons frontend independent.
8270         * Makefile.in (tree-ssa.o): Add $(TARGET_H) dependency.
8271         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Always fill
8272         out array reference lower bound and element size operands.
8273         (ao_ref_init_from_vn_reference): Properly compute the offset
8274         for ARRAY_RANGE_REF.
8275         (vn_reference_fold_indirect): Fill out array reference lower
8276         bound and element size operands.
8277         * tree-ssa-pre.c (phi_translate_1): Fail if we have to translate
8278         a non gimple valued reference operand which can happen for
8279         array reference lower bound or element size.
8280         (create_component_ref_by_pieces_1): Properly generate the
8281         element size operand for array references.
8282
8283 2009-08-06  Richard Guenther  <rguenther@suse.de>
8284
8285         PR tree-optimization/40964
8286         * tree.c (iterative_hash_host_wide_int): Export.
8287         * tree.h (iterative_hash_host_wide_int): Declare.
8288         * tree-ssa-structalias.c (heapvar_map): New struct.
8289         (heapvar_map_eq): New function.
8290         (heapvar_map_hash): Likewise.
8291         (heapvar_lookup): Adjust.
8292         (heapvar_insert): Likewise.
8293         (make_constraint_from_heapvar): Allow multiple heap variables
8294         per decl at different offsets.
8295         (init_alias_heapvars): Adjust.
8296
8297 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
8298
8299         * config/mips/mips.h (TARGET_SYNC_AFTER_SC): New macro.
8300         * mips_output_sync_loop (mips_output_sync_loop): Only emit
8301         trailing sync if TARGET_SYNC_AFTER_SC.
8302
8303 2009-08-05  David Daney  <ddaney@caviumnetworks.com>
8304
8305         * gcc/config/mips/sync.md (sync_compare_and_swap<mode>,
8306         compare_and_swap_12, sync_add<mode>, sync_<optab>_12,
8307         sync_old_<optab>_12, sync_new_<optab>_12, sync_nand_12,
8308         sync_old_nand_12, sync_new_nand_12, sync_sub<mode>,
8309         sync_old_add<mode>, sync_old_sub<mode>, sync_new_add<mode>,
8310         sync_new_sub<mode>, sync_<optab><mode>, sync_old_<optab><mode>,
8311         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
8312         sync_new_nand<mode>, sync_lock_test_and_set<mode>,
8313         test_and_set_12): Rewrite calls to mips_output_sync_loop.
8314         * gcc/config/mips/mips-protos.h (mips_output_sync_loop): Make
8315         the prototype declaration match the definition.
8316         * gcc/config/mips/mips.c (mips_output_sync_loop):  Emit sync
8317         instructions explicitly.  Add barrier_before and operands
8318         parameters.
8319         * gcc/config/mips/mips.h (MIPS_COMPARE_AND_SWAP,
8320         MIPS_COMPARE_AND_SWAP_12, MIPS_SYNC_OP, MIPS_SYNC_OP_12,
8321         MIPS_SYNC_OLD_OP_12, MIPS_SYNC_NEW_OP_12, MIPS_SYNC_OLD_OP,
8322         MIPS_SYNC_NEW_OP, MIPS_SYNC_NAND, MIPS_SYNC_OLD_NAND,
8323         MIPS_SYNC_NEW_NAND, MIPS_SYNC_EXCHANGE,
8324         MIPS_SYNC_EXCHANGE_12): Remove sync instructions.
8325
8326 2009-08-05  Andrew Pinski  <pinskia@gmail.com>
8327
8328         * tree-ssa-alias.c: Fix intervals to use [) syntax.
8329
8330 2009-08-05  Uros Bizjak  <ubizjak@gmail.com>
8331             Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
8332
8333         PR target/40906
8334         * config/i386/i386.c (ix86_split_long_move): Fix push of multi-part
8335         source operand.
8336
8337 2009-08-05  Jakub Jelinek  <jakub@redhat.com>
8338
8339         PR rtl-optimization/40924
8340         * dse.c (canon_address): Before calling cselib_expand_value_rtx
8341         make sure canon_rtx (mem_address) isn't simpler than
8342         canon_rtx (expanded_mem_address).
8343
8344 2009-08-05  Li Feng  <nemokingdom@gmail.com>
8345
8346         * graphite-sese-to-poly.c (build_pbb_drs): Remove build alias set
8347         for each poly_bb_p.
8348         (build_scop_drs): Build alias set for each SCoP.
8349
8350 2009-08-04  Sandra Loosemore  <sandra@codesourcery.com>
8351
8352         * doc/invoke.texi (MIPS Options): Document new 1004K -march options.
8353         * config/mips/mips.c (mips_cpu_info_table): Add 1004K cores.
8354         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Add pattern for 1004K.
8355         (MIPS_ARCH_FLOAT_SPEC): Likewise.
8356         (BASE_DRIVER_SELF_SPECS): Likewise.
8357
8358 2009-08-04  Andrew Pinski  <pinskia@gmail.com>
8359
8360         * tree-ssa-alias.c: Fix some comment typos.
8361
8362 2009-08-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8363
8364         * config/sh/linux-atomic.asm (ATOMIC_BOOL_COMPARE_AND_SWAP,
8365         ATOMIC_OP_AND_FETCH, ATOMIC_COMBOP_AND_FETCH): Define.
8366
8367 2009-08-03  Janis Johnson  <janis187@us.ibm.com>
8368
8369         PR c/39902
8370         * simplify-rtx.c (simplify_binary_operation_1): Disable
8371         simplifications for decimal float operations.
8372
8373 2009-08-03  Jakub Jelinek  <jakub@redhat.com>
8374
8375         PR middle-end/40943
8376         * tree-ssa.c (warn_uninitialized_var): Even on LHS warn for
8377         operand of INDIRECT_REF.
8378
8379 2009-08-03  Uros Bizjak  <ubizjak@gmail.com>
8380
8381         * config/alpha/alpha.c (alpha_legitimate_constant_p): Reject CONST
8382         constants referencing TLS symbols.
8383
8384 2009-08-03  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
8385
8386         * config/sh/linux-atomic.asm (ATOMIC_COMPARE_AND_SWAP): Rename
8387         __sync_compare_and_swap_* to __sync_val_compare_and_swap_*.
8388
8389 2009-08-03  Richard Guenther  <rguenther@suse.de>
8390
8391         * tree.c (make_vector_type): Build a main variant first,
8392         get the canonical one and then build the variant.
8393         * tree-ssa.c (useless_type_conversion_p_1): Handle
8394         fixed-point types.
8395         (useless_type_conversion_p): Conversions to pointers to
8396         incomplete record types are useless.
8397
8398 2009-08-03  Richard Guenther  <rguenther@suse.de>
8399
8400         * tree-cfg.c (pass_warn_unused_result): Mark name that no dump
8401         file will be created.
8402         * omp-low.c (pass_diagnose_omp_blocks): Likewise.
8403         * toplev.c (compile_file): Adjust comment.
8404
8405 2009-08-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8406
8407         * config/sh/sh-protos.h (sh_promote_function_mode): Remove.
8408         * config/sh/sh.c (sh_promote_function_mode): Wrap long lines.
8409         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8410         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8411         (sh_promote_function_mode): Fix typo.
8412
8413 2009-08-03  Andreas Krebbel  <krebbel1@de.ibm.com>
8414
8415         * explow.c (promote_mode): Mark TYPE and PUNSIGNEDP as possibly unused.
8416
8417 2009-08-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8418
8419         * pa.c (pa_promote_function_mode): Remove ATTRIBUTE_UNUSED from
8420         declaration arguments.
8421
8422 2009-08-02  Uros Bizjak  <ubizjak@gmail.com>
8423
8424         * config/i386/i386.c (ix86_expand_fp_compare): Use const0_rtx instead
8425         of GEN_INT (0x00) and const1_rtx instead of GEN_INT (0x01).
8426         (ix86_split_ashl): Ditto.
8427         (ix86_expand_vector_init_one_nonzero): Ditto.
8428         (ix86_expand_vector_set): Ditto.
8429         (ix86_expand_reduc_v4sf): Ditto.
8430
8431 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8432
8433         * explow.c (promote_function_mode): Remove assert.
8434         * config/sh/sh.c (sh_promote_function_mode): Declare.
8435
8436 2009-08-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8437
8438         * config/pa/pa.c (pa_promote_function_mode): Declare.
8439         Change to static.  Fix promote_mode call.
8440
8441         * gthr-dce.h (CONST_CAST2): Define if not defined.
8442         (__gthread_setspecific): Use CONST_CAST2 to fix warning.
8443
8444         * config.gcc (hppa[12]*-*-hpux10*): Add stdint support.
8445
8446 2009-08-01  Paolo Bonzini  <bonzini@gnu.org>
8447
8448         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8449         now write-only variable unsignedp.
8450         (expand_expr_real_1): Use promote_decl_mode.
8451         * expr.h (promote_function_mode, promote_decl_mode): New.
8452         (promote_mode): Remove last argument.
8453         * function.c (assign_temp): Drop last argument of promote_mode.
8454         (assign_parm_find_data_types): Use promote_function_mode.
8455         (assign_parm_setup_reg): Likewise.
8456         (expand_function_end): Use promote_function_mode.
8457         * calls.c (initialize_argument_information): Use promote_function_mode.
8458         (precompute_arguments): Use promote_mode instead of checking if
8459         only PROMOTE_FUNCTION_MODE is defined.
8460         (expand_call): When making sibcall decisions, use promote_function_mode.
8461         Below, remove an if for targetm.calls.promote_function_return and
8462         and use promote_function_mode.
8463         (emit_library_call_value_1): Use promote_function_mode, fix bug
8464         where promote_mode was passed FOR_CALL == 0 for a return value in an
8465         assertion.
8466         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8467         * explow.c (promote_function_mode, promote_decl_mode): New.
8468         (promote_mode): Keep only the FOR_CALL == 0 case.
8469         * combine.c (setup_incoming_promotion): Remove test of
8470         promote_function_args.  Use promote_function_mode.
8471         * stmt.c (expand_value_return): Use promote_decl_mode.
8472         (expand_decl): Use promote_decl_mode.
8473
8474         * expr.c (store_constructor): Use promote_decl_mode.  Remove
8475         now write-only variable unsignedp.
8476         (expand_expr_real_1): Use promote_decl_mode.
8477         * expr.h (promote_function_mode, promote_decl_mode): New.
8478         (promote_mode): Remove last argument.
8479         * function.c (assign_temp): Drop last argument of promote_mode.
8480         (assign_parm_find_data_types): Use promote_function_mode.
8481         (assign_parm_setup_reg): Likewise.
8482         (expand_function_end): Use promote_function_mode.
8483         * calls.c (initialize_argument_information): Use promote_function_mode.
8484         (precompute_arguments): Use promote_mode instead of checking if
8485         only PROMOTE_FUNCTION_MODE is defined.
8486         (expand_call): When making sibcall decisions, use promote_function_mode.
8487         Below, remove an if for targetm.calls.promote_function_return and
8488         and use promote_function_mode.
8489         (emit_library_call_value_1): Use promote_function_mode, fix bug
8490         where promote_mode was passed FOR_CALL == 0 for a return value in an
8491         assertion.
8492         * cfgexpand.c (expand_one_register_var): Use promote_decl_mode.
8493         * explow.c (promote_function_mode, promote_decl_mode): New.
8494         (promote_mode): Keep only the FOR_CALL == 0 case.
8495         * combine.c (setup_incoming_promotion): Remove test of
8496         promote_function_args.  Use promote_function_mode.
8497         * stmt.c (expand_value_return): Use promote_decl_mode.
8498         (expand_decl): Use promote_decl_mode.
8499
8500         * explow.c (promote_function_mode): Just call the target hook.
8501         * targhooks.c (default_promote_function_mode,
8502         default_promote_function_mode_always_promote): New.
8503         * targhooks.h (default_promote_function_mode,
8504         default_promote_function_mode_always_promote): Declare.
8505         * target.h (promote_function_args, promote_function_return): Remove.
8506         (promote_function_mode): New.
8507         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS,
8508         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8509         (TARGET_PROMOTE_FUNCTION_MODE): New.
8510         (TARGET_CALLS): Adjust.
8511         * system.h (TARGET_PROMOTE_FUNCTION_ARGS,
8512         TARGET_PROMOTE_FUNCTION_RETURN, PROMOTE_FUNCTION_MODE): Poison.
8513
8514         * config/s390/s390.h (PROMOTE_FUNCTION_MODE): Move...
8515         * config/s390/s390.c (s390_promote_function_mode): ... here,
8516         with pointer handling.
8517         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8518         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8519
8520         * config/sparc/sparc.h (PROMOTE_FUNCTION_MODE): Move...
8521         * config/sparc/sparc.c (sparc_promote_function_mode): ... here,
8522         with pointer handling.
8523         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8524         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8525
8526         * config/sh/sh-protos.h (sh_promote_function_mode): New.
8527         * config/sh/sh.c (sh_promote_function_mode): New.
8528         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8529         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8530
8531         * config/cris/cris.h (PROMOTE_FUNCTION_MODE): Move...
8532         * config/cris/cris.c (cris_promote_function_mode): ... here.
8533         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8534         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8535
8536         * config/mmix/mmix.h (PROMOTE_FUNCTION_MODE): Move...
8537         * config/mmix/mmix.c (mmix_promote_function_mode): ... here.
8538         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8539         (TARGET_PROMOTE_FUNCTION_ARGS): Remove.
8540
8541         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Move...
8542         * config/arm/arm.c (arm_promote_function_mode): ... here, without
8543         complex type handling.
8544         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8545         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8546
8547         * config/pa/pa.c (pa_promote_function_mode): New.
8548         (TARGET_PROMOTE_FUNCTION_MODE): Define.
8549         (TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8550
8551         * config/alpha/alpha.c (TARGET_PROMOTE_FUNCTION_ARGS,
8552         TARGET_PROMOTE_FUNCTION_RETURN): Remove.
8553         (TARGET_PROMOTE_FUNCTION_MODE): Define equivalently.
8554         * config/xtensa/xtensa.c: Likewise.
8555         * config/stormy16/stormy16.c: Likewise.
8556         * config/iq2000/iq2000.c: Likewise.
8557         * config/rs6000/rs6000.c: Likewise.
8558         * config/picochip/picochip.c: Likewise.
8559         * config/arc/arc.c: Likewise.
8560         * config/mcore/mcore.c: Likewise.
8561         * config/score/score.c: Likewise.
8562         * config/mips/mips.c: Likewise.
8563         * config/bfin/bfin.c: Likewise.
8564         * config/ia64/ia64.c: Likewise (disabled though).
8565
8566         * config/frv/frv.h: Remove pointless remark.
8567
8568         * doc/tm.texi (PROMOTE_FUNCTION_MODE,
8569         TARGET_PROMOTE_FUNCTION_ARGS,
8570         TARGET_PROMOTE_FUNCTION_RETURN): Consolidate into...
8571         (TARGET_PROMOTE_FUNCTION_MODE): ... this.
8572
8573 2009-08-01  Sebastian Pop  <sebastian.pop@amd.com>
8574
8575         * doc/invoke.texi (-fgraphite-force-parallel): Renamed
8576         -floop-parallelize-all.
8577         * toplev.c (process_options): Rename flag_graphite_force_parallel to
8578         flag_loop_parallelize_all.
8579         * tree-ssa-loop.c (gate_graphite_transforms): Same.
8580         * graphite.c (graphite_transform_loops): Same.
8581         * common.opt: Same.
8582         * graphite-poly.c (apply_poly_transforms): Same.
8583
8584 2009-07-31  Richard Earnshaw  <rearnsha@arm.com>
8585
8586         PR tree-optimization/40914
8587         * ipa-prop.c (ipa_get_ptr_load_param): New argument use_delta,
8588         if set, then check the delta field of the PMF record.
8589         (ipa_get_stmt_member_ptr_load_param): Propagate new param use_delta.
8590         (ipa_analyze_call_uses): Handle machines where the vbit for a PMF
8591         call is stored in the delta.
8592
8593 2009-07-31  Adam Nemet  <anemet@caviumnetworks.com>
8594
8595         * config/mips/mips.md (*clear_upper32_dext): New pattern.
8596
8597 2009-07-31  Uros Bizjak  <ubizjak@gmail.com>
8598
8599         * config/i386/bsd.h (ASM_BYTE): New define.
8600         * config/i386/darwin.h (ASM_BYTE): Rename from ASM_BYTE_OP.
8601         * config/i386/att.h (ASM_BYTE): New define. Use ASM_BYTE instead of
8602         .byte.  Use fputs or putc instead of fprintf where appropriate.
8603         * config/i386/i386-interix.h: Use ASM_BYTE instead of .byte.  Use
8604         fputs or putc instead of fprintf where appropriate.
8605         * config/i386/i386elf.h: Ditto.
8606         * config/i386/sysv4.h: Ditto.
8607
8608         * config/i386/i386.c (TARGET_ASM_BYTE_OP): New define.
8609         * config/i386/i386.md (x86_sahf_1): Use ASM_BYTE instead of .byte.
8610         (*tls_global_dynamic_64): Ditto.
8611
8612 2009-07-31  Christian Bruel  <christian.bruel@st.com>
8613
8614         * gcc/config.gcc (sh*-*-elf): test with_libgloss.
8615
8616 2009-07-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8617
8618         * config/arm/arm.c (arm_arm_address_cost): Fix typo.
8619         Remove dead code for MINUS.
8620
8621 2009-07-31  Anthony Green  <green@moxielogic.com>
8622
8623         * config/moxie/moxie.c (moxie_expand_prologue): Use $r5 instead of
8624         $r12 in prologue.
8625         (moxie_expand_epilogue): Ditto for epilogue.
8626         (moxie_setup_incoming_varargs): ABI change.  Use 5 registers for
8627         incoming arguments.
8628         (moxie_function_arg): Ditto.
8629         (moxie_pass_by_reference): Ditto.
8630         (moxie_arg_partial_bytes): Ditto.
8631         * config/moxie/moxie.h (CALL_USED_REGISTERS): Ditto.
8632         (FUNCTION_ARG_ADVANCE) Ditto.
8633         (REG_PARM_STACK_SPACE) Ditto.
8634         (FUNCTION_ARG_REGNO_P) Dito.
8635
8636         * config.gcc: Add moxie linux config support.
8637         * gcc/config/moxie/uclinux.h: New file.
8638
8639 2009-07-31  DJ Delorie  <dj@redhat.com>
8640
8641         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
8642         (UNSPECV_SP_SWITCH_E): New.
8643         (sp_switch_1): Change to an unspec.
8644         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
8645         replace $r15.
8646         * config/sh/sh.c (sh_expand_prologue): Use the constant pool to
8647         reference the new stack's address
8648
8649 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8650
8651         * Makefile.in (OBJS-common): Added dependence on graphite-blocking.o,
8652         graphite-clast-to-gimple.o, graphite-dependences.o,
8653         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8654         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o.
8655         (graphite-blocking.o,
8656         graphite-clast-to-gimple.o, graphite-dependences.o,
8657         graphite-interchange.o, graphite-poly.o, graphite-ppl.o,
8658         graphite-scop-detection.o, graphite-sese-to-poly.o, and sese.o): New.
8659         * cfgloop.c (alloc_loop): Set loop->can_be_parallel to false.
8660         * cfgloop.h (struct loop): Add can_be_parallel field.
8661         * common.opt (fgraphite-identity): Moved up.
8662         (fgraphite-force-parallel): New flag.
8663         * graphite.c: Rewrite.
8664         * graphite.h: Rewrite.
8665         * passes.c (init_optimization_passes): Schedule a pass of DCE and LIM
8666         after Graphite.
8667         * toplev.c (graphite_out_file): New file descriptor.
8668         (graphite_in_file): New.
8669         (process_options): flag_graphite_force_parallel cannot be used without
8670         Graphite.
8671         * tree-ssa-loop.c: Include toplev.h.
8672         (gate_graphite_transforms): Enable flag_graphite for
8673         flag_graphite_force_parallel.
8674
8675 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8676
8677         * ChangeLog.graphite: New.
8678         * graphite-blocking.c: New.
8679         * graphite-clast-to-gimple.c: New.
8680         * graphite-clast-to-gimple.h: New.
8681         * graphite-dependences.c: New.
8682         * graphite-dependences.h: New.
8683         * graphite-interchange.c: New.
8684         * graphite-poly.c: New.
8685         * graphite-poly.h: New.
8686         * graphite-ppl.c: New.
8687         * graphite-ppl.h: New.
8688         * graphite-scop-detection.c: New.
8689         * graphite-scop-detection.h: New.
8690         * graphite-sese-to-poly.c: New.
8691         * graphite-sese-to-poly.h: New.
8692         * sese.c: New.
8693         * sese.h: New.
8694
8695 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8696
8697         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
8698         * tree-chrec.h (evolution_function_right_is_integer_cst): Declared.
8699
8700 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8701
8702         * tree-chrec.c (operator_is_linear): Handle BIT_NOT_EXPR.
8703         (scev_is_linear_expression): Return false if the evolution is not
8704         affine multivariate.
8705
8706 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8707
8708         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
8709         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
8710
8711 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8712
8713         * tree-data-ref.c (debug_data_references): New.
8714         (debug_data_reference): New.
8715         * tree-data-ref.h (debug_data_references): Declared.
8716         (debug_data_reference): Declared.
8717
8718 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8719
8720         * tree-data-ref.c (stmt_simple_memref_p: Removed.
8721         * tree-data-ref.h (scop_p): Removed.
8722         (struct data_reference): Remove field scop.
8723         (DR_SCOP): Removed.
8724         (stmt_simple_memref_p): Removed.
8725
8726 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8727
8728         * cfgloop.h (create_empty_loop_on_edge): Pass an extra argument.
8729         * cfgloopmanip.c (create_empty_loop_on_edge): Leave the loop_latch
8730         basic block empty.
8731
8732 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8733
8734         * doc/invoke.texi (-fgraphite-force-parallel): Documented.
8735
8736 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8737
8738         * doc/invoke.texi (-fgraphite-identity): Documented.
8739
8740 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8741
8742         * tree-scalar-evolution.c: Fix comment.
8743         (instantiate_scev_1): Return unknow from scev instantiation if the
8744         result is not above instantiate_below.
8745
8746 2009-07-30  Sebastian Pop  <sebastian.pop@amd.com>
8747
8748         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
8749         static anymore.  Instantiate the symbols that may have been introduced
8750         by chrec_apply.
8751         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
8752         Declared.
8753
8754 2009-07-30  DJ Delorie  <dj@redhat.com>
8755
8756         * config/mep/mep.c (mep_asm_init_sections): Add section flags and
8757         .vliw directive to VLIW sections.
8758
8759 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8760
8761         * Makefile.in (AUTOCONF, ACLOCAL, ACLOCAL_AMFLAGS, aclocal_deps):
8762         New variables.
8763         ($(srcdir)/configure, $(srcdir)/aclocal.m4): New rules.
8764         (AUTOHEADER): New variable.
8765         ($(srcdir)/cstamp-h.in): Use it.
8766
8767 2009-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8768             Pat Haugen  <pthaugen@us.ibm.com>
8769             Revital Eres <ERES@il.ibm.com>
8770
8771         * config/rs6000/vector.md (VEC_F): Add VSX support.
8772         (VEC_A): Ditto.
8773         (VEC_N): Ditto.
8774         (mov<mode>): Ditto.
8775         (vector_load_<mode>): Ditto.
8776         (vector_store_<mode>): Ditto.
8777         (vector GPR move split): Ditto.
8778         (vec_reload_and_plus_<mptrsize>): Ditto.
8779         (vec_reload_and_reg_<mptrsize>): Ditto.
8780         (add<mode>3): Ditto.
8781         (sub<mode>3): Ditto.
8782         (mul<mode>3): Ditto.
8783         (neg<mode>2): Ditto.
8784         (abs<mode>2): Ditto.
8785         (smin<mode>3): Ditto.
8786         (smax<mode>3): Ditto.
8787         (vector_eq<mode>): Ditto.
8788         (vector_gt<mode>): Ditto.
8789         (vector_ge<mode>): Ditto.
8790         (vector_gtu<mode>): Ditto.
8791         (vector_select_<mode>_uns): Ditto.
8792         (vector_eq_<mode>_p): Ditto.
8793         (vector_gt_<mode>_p): Ditto.
8794         (vector_ge_<mode>_p): Ditto.
8795         (vector_gtu_<mode>_p): Ditto.
8796         (cr6_test_for_zero): Ditto.
8797         (cr6_test_for_zero_reverse): Ditto.
8798         (cr6_test_for_lt): Ditto.
8799         (cr6_test_for_lt_reverse): Ditto.
8800         (xor<mode>3): Ditto.
8801         (ior<mode>3): Ditto.
8802         (and<mode>3): Ditto.
8803         (one_cmpl<mode>2): Ditto.
8804         (nor<mode>2): Ditto.
8805         (andc<mode>2): Ditto.
8806         (float<VEC_int<mode>2): Ditto.
8807         (unsigned_float<VEC_int><mode>2): Ditto.
8808         (fix_trunc<mode><VEC_int>2): Ditto.
8809         (fixuns_trunc<mode><VEC_int>2): Ditto.
8810         (vec_init<mode>):
8811         (vec_set<mode>): Ditto.
8812         (vec_extract<mode>): Ditto.
8813         (vec_interleave_highv4sf): Ditto.
8814         (vec_interleave_lowv4sf): Ditto.
8815         (vec_realign_load_<mode>): Ditto.
8816         (vec_shl_<mode>): Ditto.
8817         (vec_shr_<mode>): Ditto.
8818         (div<mode>3): New patterns for VSX.
8819         (vec_interleave_highv2df): Ditto.
8820         (vec_interleave_lowv2df): Ditto.
8821         (vec_pack_trunc_v2df): Ditto.
8822         (vec_pack_sfix_trunc_v2df): Ditto.
8823         (vec_pack_ufix_trunc_v2df): Ditto.
8824         (vec_unpacks_hi_v4sf): Ditto.
8825         (vec_unpacks_lo_v4sf): Ditto.
8826         (vec_unpacks_float_hi_v4si): Ditto.
8827         (vec_unpacks_float_lo_v4si): Ditto.
8828         (vec_unpacku_float_hi_v4si): Ditto.
8829         (vec_unpacku_float_lo_v4si): Ditto.
8830         (movmisalign<mode>): Ditto.
8831         (vector_ceil<mode>2): New patterns for vectorizing math library.
8832         (vector_floor<mode>2): Ditto.
8833         (vector_btrunc<mode>2): Ditto.
8834         (vector_copysign<mode>3): Ditto.
8835
8836         * config/rs6000/predicates.md (easy_vector_constant_msb): New
8837         predicate for setting the high bit in each word, used for copysign.
8838
8839         * config/rs6000/ppc-asm.h (f19): Whitespace.
8840         (f32-f63): Define if VSX.
8841         (v0-v31): Define if Altivec.
8842         (vs0-vs63): Define if VSX.
8843
8844         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power7.md and vsx.md.
8845
8846         * config/rs6000/power7.md: New file, provide tuning parameters for
8847         -mcpu=power7.
8848
8849         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): Add VSX support.
8850         (rs6000_cpu_cpp_builtins): Ditto.
8851         (altivec_overloaded_builtins): Ditto.
8852         (altivec_resolve_overloaded_builtin): Ditto.
8853
8854         * config/rs6000/rs6000.opt (-mno-vectorize-builtins): Add new
8855         debug switch to disable vectorizing simple math builtin
8856         functions.
8857
8858         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8859         Vectorize simple math builtin functions.
8860         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
8861         hook to vectorize math builtins.
8862         (rs6000_override_options): Enable -mvsx on -mcpu=power7.
8863         (rs6000_builtin_conversion): Add VSX/power7 support.
8864         (rs6000_builtin_vec_perm): Ditto.
8865         (vsplits_constant): Add support for loading up a vector constant
8866         with just the high bit set in each part.
8867         (rs6000_expand_vector_init): Add VSX/power7 support.
8868         (rs6000_expand_vector_set): Ditto.
8869         (rs6000_expand_vector_extract): Ditto.
8870         (rs6000_emit_move): Ditto.
8871         (bdesc_3arg): Ditto.
8872         (bdesc_2arg): Ditto.
8873         (bdesc_1arg): Ditto.
8874         (rs6000_expand_ternop_builtin): Ditto.
8875         (altivec_expand_builtin): Ditto.
8876         (rs6000_expand_unop_builtin): Ditto.
8877         (rs6000_init_builtins): Ditto.
8878         (altivec_init_builtins): Ditto.
8879         (builtin_function_type): Ditto.
8880         (rs6000_common_init_builtins): Ditto.
8881         (rs6000_handle_altivec_attribute); Ditto.
8882         (rs6000_mangle_type): Ditto.
8883         (rs6000_vector_mode_supported_p): Ditto.
8884         (rs6000_mode_dependent_address): Altivec addresses with AND -16
8885         are mode dependent.
8886
8887         * config/rs6000/vsx.md: New file for VSX support.
8888
8889         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): New macro for
8890         identifing values with just the most significant bit set.
8891         (enum rs6000_builtins): Add builtins for VSX.  Add simple math
8892         vectorized builtins.
8893
8894         * config/rs6000/altivec.md (UNSPEC_VRFIP): Delete.
8895         (UNSPEC_VRFIM): Delete.
8896         (splitter for loading up vector with most significant bit): New
8897         splitter for vectorizing copysign.
8898         (altivec_vrfiz): Rename from altivec_fturncv4sf2.  Add support for
8899         vectorizing simple math functions.
8900         (altivec_vrfip): Add support for vectorizing simple math functions.
8901         (altivec_vrfim): Ditto.
8902         (altivec_copysign_v4sf3): New insn for Altivec copysign support.
8903
8904         * config/rs6000/rs6000.md (UNSPEC_BPERM): New constant.
8905         (power7.md, vsx.md): Include for power7 support.
8906         (copysigndf3): Use VSX instructions if -mvsx.
8907         (negdf2_fpr): Ditto.
8908         (absdf2_fpr): Ditto.
8909         (nabsdf2_fpr): Ditto.
8910         (adddf3_fpr): Ditto.
8911         (subdf3_fpr): Ditto.
8912         (muldf3_fpr): Ditto.
8913         (divdf3_fpr): Ditto.
8914         (fix_truncdfdi2_fpr): Ditto.
8915         (cmpdf_internal1): Ditto.
8916         (fred, fred_fpr): Convert into expander/insn to add VSX support.
8917         (btruncdf2, btruncdf2_fpr): Ditto.
8918         (ceildf2, ceildf2_fpr): Ditto.
8919         (floordf2, floordf2_fpr): Ditto.
8920         (floatdidf2, floatdidf2_fpr): Ditto.
8921         (fmadddf4_fpr): Name insn.  Use VSX instructions if -mvsx.
8922         (fmsubdf4_fpr): Ditto.
8923         (fnmadddf4_fpr_1): Ditto.
8924         (fnmadddf4_fpr_2): Ditto.
8925         (fnmsubdf4_fpr_1): Ditto.
8926         (fnmsubdf4_fpr_2): Ditto.
8927         (fixuns_truncdfdi2): Add expander for VSX support.
8928         (fix_truncdfdi2): Ditto.
8929         (fix_truncdfsi2): Ditto.
8930         (ftruncdf2): Ditto.
8931         (btruncsf2): Whitespace.
8932         (movdf_hardfloat32): Add support for VSX registers.
8933         (movdf_softfloat32): Ditto.
8934         (movdf_hardfloat64): Ditto.
8935         (movdf_hardfloat64_mfpgpr): Ditto.
8936         (movdf_softfloat64): Ditto.
8937         (movti splitters): Add check for vector registers supporting
8938         TImode in the future.
8939         (bpermd): Add power7 bpermd instruction.
8940
8941         * config/rs6000/altivec.h (vec_div): Define if VSX.
8942         (vec_mul): Ditto.
8943         (vec_msub): Ditto.
8944         (vec_nmadd): Ditto.
8945         (vec_nearbyint): Ditto.
8946         (vec_rint): Ditto.
8947         (vec_sqrt): Ditto.
8948         (all predicates): Use the generic builtin function, and not the V4SF
8949         specific function so that the predicates will work with VSX's V2DF.
8950         (vec_all_*): Ditto.
8951         (vec_any_*): Ditto.
8952
8953         * doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
8954         Document new VSX functions and types.
8955
8956         * doc/invoke.texi (PowerPc options): Document -mpopcntd, -mvsx
8957         switches.
8958
8959         * doc/md.texi (PowerPC constraints): Document "wd", "wf", "ws",
8960         "wa", and "j" constraints.  Modify "v" to talk about Altivec
8961         instead of just vector.
8962
8963 2009-07-30  Andrew MacLeod  <amacleod@redhat.com>
8964
8965         PR debug/26475
8966         * tree-into-ssa.c (insert_phi_nodes_for, rewrite_add_phi_arguments): Set
8967         location for phi arguments.
8968         (rewrite_update_phi_arguments): Find locations for reaching defs.
8969         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
8970         Add location to add_phi_arg calls.
8971         * tree-loop-districbution.c (update_phis_for_loop_copy): Add locations.
8972         * tree-ssa-loop-manip.c (create_iv, add_exit_phis_edge,
8973         split_loop_exit_edge, tree_transform_and_unroll_loop): Add locations.
8974         * tree-tailcall.c (add_successor_phi_arg, eliminate_tail_call,
8975         create_tailcall_accumulator, tree_optimize_tail_calls_1): Add locations.
8976         * tree.h (struct phi_arg_d): Add location_t to PHI arguments.
8977         * tree-phinodes.c (make_phi_node): Initialize location.
8978         (resize_phi_node): Initialize location to UNKNOWN_LOCATION.
8979         (add_phi_arg): Add location parameter.
8980         (remove_phi_arg_num): Move location when moving phi argument.
8981         * omp-low.c (expand_parallel_call, expand_omp_for_static_chunk): Set
8982         location.
8983         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop,
8984         slpeel_update_phi_nodes_for_guard1,
8985         slpeel_update_phi_nodes_for_guard2,
8986         slpeel_tree_duplicate_loop_to_edge_cfg, set_prologue_iterations,
8987         vect_loop_versioning): Set locations.
8988         * tree-parloops.c (create_phi_for_local_result,
8989         transform_to_exit_first_loop, create_parallel_loop): Add locations.
8990         * gimple-pretty-print.c (dump_gimple_phi): Dump lineno's if present.
8991         * tree-vect-loop.c (get_initial_def_for_induction,
8992         vect_create_epilog_for_reduction, vect_finalize_reduction): Add
8993         locations.
8994         * tree-flow-inline.h (gimple_phi_arg_location): New.  Return locus.
8995         (gimple_phi_arg_location_from_edge): New.  Return locus from an edge.
8996         (gimple_phi_arg_set_location): New.  Set locus.
8997         (gimple_phi_arg_has_location): New.  Check for locus.
8998         (redirect_edge_var_map_location): New.  Return locus from var_map.
8999         * tree-vect-data-refs.c (vect_setup_realignment): Set location.
9000         * tree-ssa-phiopt.c (conditional_replacement): Set locus when
9001         combining PHI arguments.
9002         (cond_store_replacement): Set location.
9003         * cfgexpand.c (gimple_assign_rhs_to_tree): Transfer locus if possible.
9004         * grpahite.c (add_loop_exit_phis, add_guard_exit_phis,
9005         scop_add_exit_phis_edge): Add locations.
9006         * tree-cfgcleanup.c (remove_forwarder_block,
9007         remove_forwarder_block_with_phi): Add locations.
9008         * tree-ssa-pre.c (insert_into_preds_of_block): Add locations.
9009         * tree-predcom.c (initialize_root_vars, initialize_root_vars_lm): Add
9010         locations.
9011         * tree-ssa-dce.c (forward_edge_to_pdom): Add locations.
9012         * tree-ssa.c (redirect_edge_var_map_add, ssa_redirect_edge,
9013         flush_pending_stmts): Add source location.
9014         * lambda-code.c (perfect_nestify): Maintain location stack with argument
9015         stack to preserve locations.
9016         * tree-vect-stmts.c (vectorizable_load): Add location.
9017         * tree-inline.c (copy_phis_for_bb): Copy locus.
9018         (setup_one_parameter): Add call locus to inlined parameter stmts.
9019         (initialize_inlined_parameters): Pass in call location as parameter
9020         assignment locus.
9021         (tree_function_versioning): Pass location to setup_one_parameter.
9022         * tree-ssa-phiprop.c (phiprop_insert_phi): Set locations.
9023         * tree-outof-ssa.c (struct _elim_graph): Add source_location vecs for
9024         copy and edge lists.
9025         (insert_partition_copy_on_edge, insert_value_copy_on_edge,
9026         insert_rtx_to_part_on_edge, insert_part_to_rtx_on_edge): Provide a
9027         locus parameter and override the stmt default if provided.
9028         (new_elim_graph, clear_elim_graph, delete_elim_graph,
9029         elim_graph_add_edge, elim_graph_remove_succ_edge,
9030         FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED, eliminate_build,
9031         elim_forward, elim_unvisited_predecessor, elim_backward, elim_create,
9032         eliminate_phi):  Add locus info in elimination graph for each edge and
9033         value copy.
9034         (insert_backedge_copies): Copy locus if present.
9035         * tree-flow.h (struct _edge_var_map): Add locus field.
9036         * tree-switch_conversions.c (fix_phi_nodes): Add locations.
9037         * tree-cfg.c (reinstall_phi_args, gimple_make_forwarder_block,
9038         add_phi_args_after_copy_edge, gimple_lv_adjust_loop_header_phi): Add
9039         locations.
9040         * ipa-struct-reorg.c (make_edge_and_fix_phis_of_dest): Add locations.
9041
9042 2009-07-30  Martin Jambor  <mjambor@suse.cz>
9043
9044         PR tree-optimization/40570
9045         * ipa-inline.c (cgraph_decide_inlining): Watch out for dead single
9046         use inlining loops.
9047
9048 2009-07-30  Razya Ladelsky <razya@il.ibm.com>
9049
9050         * ssa-loop-manip.c: Include langhooks.h.
9051         (rewrite_phi_with_iv): New.
9052         (rewrite_all_phi_nodes_with_iv): New.
9053         (canonicalize_loop_ivs): Move here from tree-parloops.c.
9054         Remove reduction_list argument. Use rewrite_all_phi_nodes_with_iv.
9055         * tree-parloops.c (loop_parallel_p): Move out all conditions
9056         except dependency check.
9057         (canonicalize_loop_ivs): Move to tree-ssa-loop-manip.c.
9058         (gen_parallel_loop): Call canonicalize_loop_ivs without
9059         reduction_list argument.
9060         (build_new_reduction): New.
9061         (gather_scalar_reductions): New.
9062         (try_get_loop_niter): New.
9063         (try_create_reduction_list): New.
9064         (parallleize_loops): Change the parallel conditions check.
9065         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
9066         * Makefile.in (tree-ssa-loop-manip.o): Add langhooks.h dependency.
9067
9068 2009-07-30  Dave Korn  <dave.korn.cygwin@gmail.com>
9069
9070         * opt-functions.awk (opt_args): Allow argument to be enclosed in
9071         curly braces.
9072         * doc/options.texi (Option properties):  Mention new quoting syntax.
9073
9074 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9075
9076         * config/alpha/alpha.c (alpha_start_function):
9077         Handle VMS_DEBUG_MAIN_POINTER
9078         * config/alpha/vms.h (VMS_DEBUG_MAIN_POINTER): Define new macro.
9079         * doc/invoke.texi: Document -mdebug-main switch.
9080
9081 2009-07-29  Richard Henderson  <rth@redhat.com>
9082
9083         * cgraph.c (cgraph_set_call_stmt_including_clones): Tidy.
9084         (cgraph_create_edge_including_clones): Likewise.
9085         * tree-inline.c (copy_bb): Operate on the correct edges
9086         when updating the callgraph.
9087
9088 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9089
9090         * config/alpha/vms-cc.c: Deleted.
9091         * config/alpha/vms-ld.c: Deleted.
9092         * config/alpha/t-vms64: Moved to config/vms
9093         * config/alpha/vms-crt0-64.c: Moved to config/vms
9094         * config/alpha/vms-crt0.c: Moved to config/vms
9095         * config/alpha/vms-psxcrt0-64.c: Moved to config/vms
9096         * config/alpha/vms-psxcrt0.c: Moved to config/vms
9097         * config/alpha/xm-vms.h: Moved to config/vms
9098         * config/alpha/x-vms: Moved to config/vms
9099         * config/alpha/t-vms (vcrt0.o, pcrt0.o): Move rules to new file
9100         config/vms/t-vms.
9101         * config/vms/t-vms: Moved here from config/alpha. Alpha specific
9102         parts removed. (STMP_FIXPROTO, STMP_FIXINC, LIMITS_H_TEST): Set.
9103         (version): Set.
9104         * config/vms/t-vms64: Moved here from config/alpha
9105         * config/vms/vms-crt0-64.c: Moved here from config/alpha.
9106         (argc,argv,envp): Enforce 32bit malloc'ing.
9107         * config/vms/vms-psxcrt0-64.c: Likewise.
9108         * config/vms/vms-crt0.c: Moved here from config/alpha.
9109         * config/vms/vms-psxcrt0.c: Likewise.
9110         * config/vms/vms-crtl-64.h: New file.
9111         * config/vms/vms-crtl.h: New file.
9112         * config/vms/vms.opt: New file.
9113         * config/vms/xm-vms64.h: New file.
9114         * config/vms/xm-vms.h: Moved here from config/alpha.
9115         (STANARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX, STANDARD_INCLUDE_DIR):
9116         Set.
9117         * config/vms/x-vms: Moved here from config/alpha.
9118         (version, VMS_EXTRA_PARTS): Moved to t-vms.
9119         (vms-ld.o, vms-cc.o): Removed.
9120         (LN, LN_S, USE_COLLECT2, POD2MAN): Set.
9121
9122 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9123
9124         * dwarf2out.c (add_name_and_src_coords_attributes): Push on the
9125         correct stack (obvious VMS fix).
9126
9127 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
9128
9129         * dwarf2out.c (output_file_names): Output VMS style file name, size,
9130         date, version info if VMS_DEBUGGING_INFO defined.
9131         * vmsdgbout.c (vms_file_stats_name): New functon. VMS style file name,
9132         size, date calculating code moved here.
9133
9134 2009-07-29  Paul Brook  <paul@codesourcery.com>
9135
9136         * config/arm/lib1funcs.asm (clear_cache): Use ARM_FUNC_START and
9137         do_push/do_pop.
9138
9139 2009-07-29  Uros Bizjak  <ubizjak@gmail.com>
9140
9141         PR target/40577
9142         * config/alpha/alpha.c (alpha_expand_unaligned_store): Convert src
9143         to DImode when generating insq_le insn.
9144
9145 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
9146
9147         * dwarf2out.c (DWARF2_INDIRECT_STRING_SUPPORT_MISSING_ON_TARGET):
9148         New macro set for VMS_DEBUGGGING_INFO.
9149         (AT_string_form): Use it.
9150
9151 2009-07-28  DJ Delorie  <dj@redhat.com>
9152
9153         * config/mep/mep.c (vtext_section): New.
9154         (vftext_section): New.
9155         (ftext_section): New.
9156         (mep_select_section): Add support for functions.
9157         (mep_unique_section): Likewise.
9158         (mep_asm_init_sections): Likewise.
9159         (mep_encode_section_info): Remove it from here.
9160
9161         * config/mep/mep.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
9162
9163 2009-07-28  Paolo Bonzini  <bonzinI@gnu.org>
9164
9165         * tree.h (TREE_DEPRECATED): Document it is used for types too.
9166         (TYPE_VECTOR_OPAQUE): Use default_def_flag
9167
9168 2009-07-28  Douglas B Rupp  <rupp@gnat.com>
9169
9170         * dwarf2out.c (output_file_names): Test new macro
9171         DWARF2_DIR_SHOULD_END_WITH_SEPARATOR.
9172         (add_comp_dir_attribute): Likewise.
9173
9174 2009-07-28  Kai Tietz  <kai.tietz@onevision.com>
9175
9176         * config/i386/mingw-w64.h (LINK_SPEC): Add
9177         separating space between commands.
9178
9179 2009-07-28  Jan Hubicka  <jh@suse.cz>
9180
9181         PR tree-optimization/40759
9182         * tree-ssa-dce.c (mark_virtual_phi_result_for_renaming): Mark all uses
9183         for renaming.
9184
9185 2009-07-27  DJ Delorie  <dj@redhat.com>
9186
9187         * config/mep/mep.c (mep_expand_builtin_saveregs): Make sure 64-bit
9188         types are dword-aligned.
9189         (mep_expand_va_start): Likewise.
9190
9191 2009-07-27  Olivier Hainque  <hainque@adacore.com>
9192             Douglas B Rupp  <rupp@gnat.com>
9193
9194         * convert.c (convert_to_pointer): Don't assume the target
9195         pointer type is POINTER_SIZE long. Fetch its precision instead.
9196
9197 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
9198
9199         * system.h (fopen): Undefine if macro.
9200
9201 2009-07-27  Jakub Jelinek  <jakub@redhat.com>
9202
9203         * dwarf2out.c (output_cfi_p): Removed.
9204         (output_cfis): New function.
9205         (output_fde): New function, split from output_call_frame_info.
9206         (output_call_frame_info): Use it.
9207         (dwarf2out_switch_text_section): Use output_cfis.
9208
9209 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
9210
9211         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Error build when
9212         TARGET_BI_ARCH is specified without enabling SJLJ.
9213         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Define MD_UNWIND_SUPPORT,
9214         if TARGET_64BIT and TARGET_BI_ARCH aren't defined.
9215
9216 2009-07-26  Mikael Pettersson <mikpe@it.uu.se>
9217
9218         * arm.md (negdi2): Use DImode if forcing a value into a register.
9219
9220 2009-07-26  Ira Rosen  <irar@il.ibm.com>
9221
9222         PR tree-optimization/40801
9223         * tree-vect-stmts.c (vectorizable_call): Get previous copy
9224         of vector operand from the previous copy of vector statement.
9225         Pass the correct definition type value to
9226         vect_get_vec_def_for_stmt_copy().
9227
9228 2009-07-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9229
9230         * collect2.c (scan_libraries): Use CONST_CAST2 to perform char ** to
9231         const char ** conversion.
9232
9233 2009-07-25 David Daney <ddaney@caviumnetworks.com>
9234
9235         * system.h (gcc_assert): Invoke __builtin_unreachable() instead of
9236         fancy_abort() if !ENABLE_ASSERT_CHECKING.
9237         (gcc_unreachable): Invoke __builtin_unreachable() if
9238         !ENABLE_ASSERT_CHECKING.
9239
9240 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
9241
9242         PR rtl-optimization/40445
9243         * emit-rtl.c (next_nonnote_insn_bb): New function.
9244         * rtl.h (next_nonnote_insn_bb): Declare new function.
9245         * cfgcleanup.c (try_optimize_cfg): Don't remove an empty block
9246         with no successors that is the successor of the ENTRY_BLOCK.
9247         Continue from the top after removing an empty fallthrough block.
9248         * cfgrtl.c (get_last_bb_insn): Call next_nonnote_insn_bb instead
9249         of next_nonnote_insn.
9250
9251 2009-07-25  David Daney  <ddaney@caviumnetworks.com>
9252
9253         * cfgcleanup.c (old_insns_match_p): Handle the case of empty blocks.
9254
9255 2009-07-25  Martin Jambor  <mjambor@suse.cz>
9256
9257         * c-common.c (c_common_attribute_table): New element for noclone.
9258         (handle_noclone_attribute): New function. Forward-declare.
9259         * tree-inline.c (tree_versionable_function_p): Check for noclone
9260         attribute.
9261         * doc/extend.texi (Labels as Values): Document need for noclone.
9262         (Function Attributes): Document noclone attribute.
9263
9264 2009-07-25  Jakub Jelinek  <jakub@redhat.com>
9265
9266         PR rtl-optimization/34999
9267         * dwarf2out.c (struct dw_fde_struct): Add dw_fde_switch_cfi
9268         and dw_fde_switched_cold_to_hot fields.
9269         (output_cfi_p): New function.
9270         (output_call_frame_info): If fde->dw_fde_switched_sections,
9271         output 2 FDEs instead of one with corrupted header.
9272         (dwarf2out_do_cfi_startproc): New function.
9273         (dwarf2out_begin_prologue): Use it.  Initialize fde->dw_fde_switch_cfi
9274         and fde->dw_fde_switched_cold_to_hot.
9275         (dwarf2out_switch_text_section): Compute
9276         fde->dw_fde_switched_cold_to_hot.  Switch to new text section here.
9277         If dwarf2out_do_cfi_asm, emit .cfi_endproc before it and call
9278         dwarf2out_do_cfi_startproc plus emit again currently active CFI insns.
9279         Otherwise, compute fde->dw_fde_switch_cfi.
9280
9281 2009-07-24  Cary Coutant  <ccoutant@google.com>
9282
9283         * tree-cfg.c (assign_discriminator): Add explicit parentheses.
9284
9285 2009-07-24  Cary Coutant  <ccoutant@google.com>
9286
9287         * cfghooks.c (split_block): Copy discriminator to new block.
9288         * tree-cfg.c (assign_discriminator): Check location of last
9289         instruction in block as well as first.
9290
9291 2009-07-24  Uros Bizjak  <ubizjak@gmail.com>
9292
9293         * config/i386/linux.c: Use fputs or putc instead of fprintf
9294         where appropriate.
9295         * config/i386/gas.h: Ditto.
9296         * config/i386/x86-64.h: Ditto.
9297         * config/i386/att.h: Ditto.
9298
9299 2009-07-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9300
9301         * expmed.c (emit_store_flag): Use a recursive call to optimize the
9302         xor case.
9303
9304 2009-07-24  Martin Jambor  <mjambor@suse.cz>
9305
9306         * ipa-prop.h (struct ipa_node_params): New flag node_enqued.
9307         (ipa_push_func_to_list_1): Declare.
9308         (ipa_push_func_to_list): New function.
9309
9310         * ipa-prop.c (ipa_push_func_to_list_1): New function.
9311         (ipa_init_func_list): Call ipa_push_func_to_list_1.
9312         (ipa_push_func_to_list): Removed.
9313         (ipa_pop_func_from_list): Clear node_enqueued flag.
9314
9315 2009-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
9316
9317         * config/s390/s390.c (override_options): Default
9318         max-unrolled-insns to 100 for z10 tuning.
9319
9320 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
9321
9322         * Makefile.in (TREE_DATA_REF_H, tree-vrp.o, tree-cfg.o, tree-if-conv.o
9323         tree-ssa-loop.o, tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o,
9324         tree-ssa-loop-prefetch.o, tree-predcom.o, tree-affine.o,
9325         tree-scalar-evolution.o, tree-data-ref.o, tree-vect-loop.o,
9326         tree-vect-data-refs.o, tree-loop-linear.o, tree-loop-distribution.o
9327         tree-parloops.o, tree-pretty-printer.o, fold-const.o, tree-ssa-dce.o,
9328         lambda-code.o, params.o): Cleanup use of SCEV_H and TREE_DATA_REF_H.
9329
9330 2009-07-24  Kai Tietz  <kai.tietz@onevision.com>
9331
9332         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR): Remove and
9333         use default set in mingw32.h header.
9334         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Use for 32-bit and
9335         64-bit /mingw/include path.
9336         (STANDARD_STARTFILE_PREFIX_1): Use for 32-bit and 64-bit /mingw/lib
9337         path.
9338
9339 2009-07-23  Neil Vachharajani  <nvachhar@google.com>
9340
9341         PR rtl-optimization/40209
9342         * loop-iv.c (iv_analysis_loop_init): Call df_note_add_problem.
9343
9344 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
9345
9346         * config/i386/i386.c: Use ASM_LONG instead of .long.  Concatenate
9347         ASM_LONG, LPREFIX, MCOUNT_NAME and PROFILE_COUNT_REGISTER strings
9348         with the rest of string where appropriate.  Use fputs or putc
9349         instead of fprintf where appropriate.
9350
9351 2009-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
9352             Pat Haugen  <pthaugen@us.ibm.com>
9353             Revital Eres <ERES@il.ibm.com>
9354
9355         * config/rs6000/vector.md: New file.  Move most of the vector
9356         expander support here from altivec.md to allow for the VSX vector
9357         unit in the future.  Add support for secondary_reload patterns.
9358         Rewrite the patterns for vector comparison, and vector comparison
9359         predicate instructions so that the RTL expresses the desired
9360         behavior, instead of using unspec.
9361
9362         * config/rs6000/constraints.md ("f" constraint): Use
9363         rs6000_constraints to hold the precalculated register class.
9364         ("d" constraint): Ditto.
9365         ("wd" constraint): New constraint for VSX.
9366         ("wf" constraint): Ditto.
9367         ("ws" constraint): Ditto.
9368         ("wa" constraint): Ditto.
9369         ("wZ" constraint): Ditto.
9370         ("j" constraint): Ditto.
9371
9372         * config/rs6000/predicates.md (vsx_register_operand): New
9373         predicate for VSX.
9374         (vfloat_operand): New predicate for vector.md.
9375         (vint_operand): Ditto.
9376         (vlogical_operand): Ditto.
9377         (easy_fp_constant): If VSX, 0.0 is an easy constant.
9378         (easy_vector_constant): Add VSX support.
9379         (altivec_indexed_or_indirect_operand): New predicate for
9380         recognizing Altivec style memory references with AND -16.
9381
9382         * config/rs6000/rs6000.c (rs6000_vector_reload): New static global
9383         for vector secondary reload support.
9384         (rs6000_vector_reg_class): Delete, replacing it with
9385         rs6000_constraints.
9386         (rs6000_vsx_reg_class): Ditto.
9387         (rs6000_constraints): New array to hold the register classes of
9388         each of the register constraints that can vary at runtime.
9389         (builtin_mode_to_type): New static array for builtin function type
9390         creation.
9391         (builtin_hash_table): New static hash table for builtin function
9392         type creation.
9393         (TARGET_SECONDARY_RELOAD): Define target hook.
9394         (TARGET_IRA_COVER_CLASSES): Ditto.
9395         (rs6000_hard_regno_nregs_internal): If -mvsx, floating point
9396         registers are 128 bits if VSX memory reference instructions are used.
9397         (rs6000_hard_regno_mode_ok): For VSX, only check if the VSX memory
9398         unit is being used.
9399         (rs6000_debug_vector_unit): Move into rs6000_debug_reg_global.
9400         (rs6000_debug_reg_global): Move -mdebug=reg statements here.
9401         Print several of the scheduling related parameters.
9402         (rs6000_init_hard_regno_mode_ok): Switch to putting constraints in
9403         rs6000_constraints instead of rs6000_vector_reg_class.  Move
9404         -mdebug=reg code to rs6000_debug_reg_global.  Add support for
9405         -mvsx-align-128 debug switch.  Drop testing float_p if VSX or
9406         Altivec.  Add VSX support.  Setup for secondary reload support on
9407         Altivec/VSX registers.
9408         (rs6000_override_options): Make power7 set the scheduling groups
9409         like the power5.  Add support for new debug switches to override
9410         the scheduling defaults.  Temporarily disable -mcpu=power7 from
9411         setting -mvsx.  Add support for debug switches -malways-hint,
9412         -msched-groups, and -malign-branch-targets.
9413         (rs6000_buitlin_conversion): Add support for returning unsigned
9414         vector conversion functions to fix regressions due to stricter
9415         type checking.
9416         (rs6000_builtin_mul_widen_even): Ditto.
9417         (rs6000_builtin_mul_widen_odd): Ditto.
9418         (rs6000_builtin_vec_perm): Ditto.
9419         (rs6000_vec_const_move): On VSX, use xxlxor to clear register.
9420         (rs6000_expand_vector_init): Initial VSX support for using xxlxor
9421         to zero a register.
9422         (rs6000_emit_move): Fixup invalid const symbol_ref+reg that is
9423         generated upstream.
9424         (bdesc_3arg): Add builtins for unsigned types.  Add builtins for
9425         VSX types for bit operations.  Changes to accomidate vector.md.
9426         (bdesc_2arg): Ditto.
9427         (bdesc_1arg): Ditto.
9428         (struct builtin_description_predicates): Rewrite predicate
9429         handling so that RTL describes the operation, instead of passing
9430         the instruction to be used as a string argument.
9431         (bdesc_altivec_preds): Ditto.
9432         (altivec_expand_predicate_builtin): Ditto.
9433         (altivec_expand_builtin): Ditto.
9434         (rs6000_expand_ternop_builtin): Use a switch instead of an if
9435         statement for vsldoi support.
9436         (altivec_expand_ld_builtin): Change to use new names from vector.md.
9437         (altivec_expand_st_builtin): Ditto.
9438         (paired_expand_builtin): Whitespace changes.
9439         (rs6000_init_builtins): Add V2DF/V2DI types.  Initialize the
9440         builtin_mode_to_type table for secondary reload.  Call
9441         builtin_function_type to build random builtin functions.
9442         (altivec_init_builtins): Change to use builtin_function_type to
9443         create builtin function types dynamically as we need them.
9444         (builtin_hash_function): New support for hashing the tree types
9445         for builtin function as we need it, rather than trying to build
9446         all of the trees that we need.  Add initial preliminary VSX support.
9447         (builtin_function_type): Ditto.
9448         (builtin_function_eq): Ditto.
9449         (builtin_hash_struct): Ditto.
9450         (rs6000_init_builtins): Ditto.
9451         (rs6000_common_init_builtins): Ditto.
9452         (altivec_init_builtins): Ditto.
9453         (rs6000_common_init_builtins): Ditto.
9454         (enum reload_reg_type): New enum for simplifing reg classes.
9455         (rs6000_reload_register_type): Simplify register classes into GPR,
9456         Vector, and other registers.  Altivec and VSX addresses in reload.
9457         (rs6000_secondary_reload_inner): Ditto.
9458         (rs6000_ira_cover_classes): New target hook, that returns the
9459         appropriate cover classes, based on -mvsx being used or not.
9460         (rs6000_secondary_reload_class): Add VSX support.
9461         (get_vec_cmp_insn): Delete, rewrite vector conditionals.
9462         (get_vsel_insn): Ditto.
9463         (rs6000_emit_vector_compare): Rewrite vector conditional support
9464         so that where we can, we use RTL operators, instead of blindly use
9465         UNSPEC.
9466         (rs6000_emit_vector_select): Ditto.
9467         (rs6000_emit_vector_cond_expr): Ditto.
9468         (rs6000_emit_minmax): Directly generate min/max under altivec, vsx.
9469         (create_TOC_reference): Add -mdebug=addr support.
9470         (emit_frame_save): VSX loads/stores need register indexed addressing.
9471
9472         * config/rs6000/rs6000.md: Include vector.md.
9473
9474         * config/rs6000/t-rs6000 (MD_INCLUDES): Add vector.md.
9475
9476         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9477         support for V2DI, V2DF in logical, permute, select operations.
9478
9479         * config/rs6000/rs6000.opt (-mvsx-scalar-double): Add new debug
9480         switch for vsx/power7.
9481         (-mvsx-scalar-memory): Ditto.
9482         (-mvsx-align-128): Ditto.
9483         (-mallow-movmisalign): Ditto.
9484         (-mallow-df-permute): Ditto.
9485         (-msched-groups): Ditto.
9486         (-malways-hint): Ditto.
9487         (-malign-branch-targets): Ditto.
9488
9489         * config/rs6000/rs6000.h (IRA_COVER_CLASSES): Delete, use target
9490         hook instead.
9491         (IRA_COVER_CLASSES_PRE_VSX): Cover classes if not -mvsx.
9492         (IRA_COVER_CLASSES_VSX): Cover classes if -mvsx.
9493         (rs6000_vector_reg_class): Delete.
9494         (rs6000_vsx_reg_class): Ditto.
9495         (enum rs6000_reg_class_enum): New enum for the constraints that
9496         vary based on target switches.
9497         (rs6000_constraints): New array to hold the register class for all
9498         of the register constraints that vary based on the switches used.
9499         (ALTIVEC_BUILTIN_*_UNS): Add unsigned builtin functions.
9500         (enum rs6000_builtins): Add unsigned varients for the builtin
9501         declarations returned by target hooks for expanding multiplies,
9502         select, and permute operations.  Add VSX builtins.
9503         (enum rs6000_builtin_type_index): Add entries for VSX.
9504         (V2DI_type_node): Ditto.
9505         (V2DF_type_node): Ditto.
9506         (unsigned_V2DI_type_node): Ditto.
9507         (bool_long_type_node): Ditto.
9508         (intDI_type_internal_node): Ditto.
9509         (uintDI_type_internal_node): Ditto.
9510         (double_type_internal_node): Ditto.
9511
9512         * config/rs6000/altivec.md (whole file): Move all expanders to
9513         vector.md from altivec.md.  Rename insn matching functions to be
9514         altivec_foo.
9515         (UNSPEC_VCMP*): Delete, rewrite vector comparisons.
9516         (altivec_vcmp*): Ditto.
9517         (UNSPEC_VPERM_UNS): New, add for unsigned types using vperm.
9518         (VM): New iterator for moves that includes the VSX types.
9519         (altivec_vperm_<mode>): Add VSX types.  Add unsigned types.
9520         (altivec_vperm_<mode>_uns): New, for unsigned types.
9521         (altivec_vsel_*): Rewrite vector comparisons and predicate builtins.
9522         (altivec_eq<mode>): Ditto.
9523         (altivec_gt<mode>): Ditto.
9524         (altivec_gtu<mode>): Ditto.
9525         (altivec_eqv4sf): Ditto.
9526         (altivec_gev4sf): Ditto.
9527         (altivec_gtv4sf): Ditto.
9528         (altivec_vcmpbfp_p): Ditto.
9529
9530 2009-07-23  Richard Earnshaw  <rearnsha@arm.com>
9531
9532         * arm.md (split for ior/xor with shift and zero-extend): Cast op3 to
9533         unsigned HWI.
9534
9535 2009-07-23  Uros Bizjak  <ubizjak@gmail.com>
9536
9537         PR target/40832
9538         * config/i386/i386.c (output_387_ffreep): Rewrite to use
9539         ASM_SHORT instead of .word.
9540         * config/i386/i386.md (*tls_global_dynamic_64): Use ASM_SHORT
9541         instead of .word in asm template.
9542
9543 2009-07-22  Vladimir Makarov  <vmakarov@redhat.com>
9544
9545         PR target/37488
9546         * ira-lives.c (bb_has_abnormal_call_pred): New function.
9547         (process_bb_node_lives): Use it.
9548
9549         * ira.c (setup_cover_and_important_classes): Don't setup
9550         ira_important_class_nums.  Add cover classes to the end of
9551         important classes.
9552         (cover_class_order, comp_reg_classes_func, reorder_important_classes):
9553         New.
9554         (find_reg_class_closure): Use reorder_important_classes.
9555
9556         * config/i386/i386.h (IRA_COVER_CLASSES): Remove.
9557
9558         * config/i386/i386.c (i386_ira_cover_classes): New function.
9559         (TARGET_IRA_COVER_CLASSES): Redefine.
9560
9561         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Add a comment about
9562         importance of order of cover classes in the array.
9563
9564 2009-07-22  Diego Novillo  <dnovillo@google.com>
9565
9566         * tree-pass.h (TDF_EH): Define.
9567         * gimple-pretty-print.c (dump_gimple_stmt): If FLAGS
9568         contains TDF_EH, print the EH region number holding GS.
9569         * tree-dump.c (dump_options): Add "eh".
9570         * doc/invoke.texi: Document it.
9571
9572 2009-07-22  Doug Kwan  <dougkwan@google.com>
9573
9574         * config/arm/arm.md (subdi3) Copy non-reg values to DImode registers.
9575
9576 2009-07-22  Michael Matz  <matz@suse.de>
9577
9578         PR tree-optimization/35229
9579         PR tree-optimization/39300
9580
9581         * tree-ssa-pre.c (includes): Include tree-scalar-evolution.h.
9582         (inhibit_phi_insertion): New function.
9583         (insert_into_preds_of_block): Call it for REFERENCEs.
9584         (init_pre): Initialize and finalize scalar evolutions.
9585         * Makefile.in (tree-ssa-pre.o): Depend on tree-scalar-evolution.h .
9586
9587 2009-07-22  Uros Bizjak  <ubizjak@gmail.com>
9588
9589         * config/i386/predicates.md (zero_extended_scalar_load_operand):
9590         Use CONST_VECTOR_NUNITS to determine number of elements.
9591
9592 2009-07-22  Andreas Krebbel  <krebbel1@de.ibm.com>
9593
9594         * config/s390/constraints.md (ZQ, ZR, ZS, ZT): New constraints.
9595         (U, W): Constraints are now deprecated and will be removed if we
9596         run out of letters.
9597         * config/s390/s390.md (U, W): Replaced with ZQZR, ZSZT throughout
9598         the file.
9599         ("prefetch"): Add the stcmh instruction for prefetching.
9600         * config/s390/s390.c (s390_symref_operand_p): Function moved. No
9601         changes.
9602         (s390_short_displacement): Return always true if compiling for
9603         machines not providing the long displacement facility.
9604         (s390_mem_constraint): Support the new constraint letter Z.
9605         (s390_check_qrst_address): New function.
9606
9607 2009-07-21  DJ Delorie  <dj@redhat.com>
9608
9609         * config/mep/mep.c (mep_legitimize_arg): Leave control registers
9610         alone too.
9611
9612 2009-07-21  Jason Merrill  <jason@redhat.com>
9613
9614         * c-common.c (max_tinst_depth): Increase default to 1024.
9615
9616 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9617
9618         * config/i386/sse.md (vec_unpacku_float_hi_v4si): New expander.
9619         (vec_unpacku_float_lo_v4si): Ditto.
9620
9621 2009-07-21  Uros Bizjak  <ubizjak@gmail.com>
9622
9623         PR target/40811
9624         * config/i386/sse.md (sse2_cvtudq2ps): New expander.
9625         (enum ix86_builtins): Add IX86_BUILTIN_CVTUDQ2PS.
9626         (builtin_description): Add __builtin_ia32_cvtudq2ps.
9627         (ix86_vectorize_builtin_conversion): Handle IX86_BUILTIN_CVTUDQ2PS.
9628
9629 2009-07-21  Jakub Jelinek  <jakub@redhat.com>
9630
9631         PR tree-optimization/40813
9632         * tree-inline.c (copy_bb): Regimplify RHS after last stmt, not before
9633         it.
9634
9635 2009-07-21  Kaz Kojima  <kkojima@gcc.gnu.org>
9636
9637         * config/sh/sh.c (sh_gimplify_va_arg_expr): Wrap the result
9638         with a NOP_EXPR if needed.
9639
9640 2009-07-21  Paul Brook <paul@codesourcery.com>
9641
9642         * tree-vectorizer.c (increase_alignment): Handle nested arrays.
9643         Terminate debug dump with newline.
9644
9645 2009-07-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9646
9647         * pa.c (compute_zdepwi_operands): Limit deposit length to 32 - lsb.
9648         Cast "1" to unsigned HOST_WIDE_INT.
9649         (compute_zdepdi_operands): Limit maximum length to 64 bits.  Limit
9650         deposit length to the maximum length - lsb.  Extend length if
9651         HOST_BITS_PER_WIDE_INT is 32.
9652
9653 2009-07-20  Olatunji Ruwase <tjruwase@google.com>
9654
9655         * cgraph.h (constant_pool_htab): New function.
9656         (constant_descriptor_tree): Move from varasm.c.
9657         * varasm.c (constant_pool_htab): New function.
9658         (constant_descriptor_tree): Move to cgraph.h.
9659
9660 2009-07-20  Olatunji Ruwase  <tjruwase@google.com>
9661
9662         * toplev.c: Invoke FINISH_UNIT callbacks before call to finalize().
9663
9664 2009-07-20  Shujing Zhao  <pearly.zhao@oracle.com>
9665
9666         * Makefile.in (TREE_INLINE_H, tree-inline.o, cgraph.o): Remove
9667         $(VARRAY_H).
9668
9669 2009-07-20  Xinliang David Li  <davidxl@google.com>
9670
9671         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add length check.
9672
9673 2009-07-20  Adam Nemet  <anemet@caviumnetworks.com>
9674
9675         * config/mips/mips.md (move_type): Add arith.
9676         (type): Handle arith.
9677         (zero_extendsidi2): Rename this into ...
9678         (*zero_extendsidi2): ... this.  Don't match if ISA_HAS_EXT_INS.
9679         (zero_extendsidi2): New expander.
9680         (*zero_extendsidi2_dext): New pattern.
9681
9682 2009-07-20  Nick Clifton  <nickc@redhat.com>
9683
9684         * config.gcc (mips64-*-*): Add definition of tm_defines in order
9685         to set MIPS_ABI_DEFAULT.
9686         * config/mips/vr.h (MIPS_ABI_DEFAULT): Remove definition.
9687
9688 2009-07-20  Jakub Jelinek  <jakub@redhat.com>
9689
9690         * tree-object-size.c (addr_object_size): Handle unions with
9691         array in it as last field of structs in __bos (, 1) as __bos (, 0).
9692
9693         PR tree-optimization/40792
9694         * tree.c (build_function_type_skip_args): Remove bogus assert.
9695
9696 2009-07-20  Jan Hubicka  <jh@suse.cz>
9697             Martin Jambor  <mjambor@suse.cz>
9698
9699         * cgraph.h (combined_args_to_skip): New field.
9700         * cgraph.c (cgraph_create_virtual_clone): Properly handle
9701         combined_args_to_skip and args_to_skip.
9702         * tree-inline.c (update_clone_info): New function.
9703         (tree_function_versioning): Call update_clone_info.
9704         * cgraphunit.c: (cgraph_materialize_clone): Dump materialized
9705         functions.
9706         (cgraph_materialize_all_clones): More extensive dumping, working
9707         with combined_args_to_skip rather than args_to_skip.
9708
9709 2009-07-20  Ira Rosen  <irar@il.ibm.com>
9710
9711         * tree-vectorizer.h (vectorizable_condition): Add parameters.
9712         * tree-vect-loop.c (vect_is_simple_reduction): Support COND_EXPR.
9713         (get_initial_def_for_reduction): Likewise.
9714         (vectorizable_reduction): Skip the check of first operand in case
9715         of COND_EXPR. Add check that it is outer loop vectorization if
9716         nested cycle was detected. Call vectorizable_condition() for
9717         COND_EXPR. If reduction epilogue cannot be created do not fail for
9718         nested cycles (if it is not double reduction). Assert that there
9719         is only one type in the loop in case of COND_EXPR. Call
9720         vectorizable_condition() to vectorize COND_EXPR.
9721         * tree-vect-stmts.c (vectorizable_condition): Update comment.
9722         Add parameters. Allow nested cycles if called from
9723         vectorizable_reduction(). Use reduction vector variable if provided.
9724         (vect_analyze_stmt): Call vectorizable_reduction() before
9725         vectorizable_condition().
9726         (vect_transform_stmt): Update call to vectorizable_condition().
9727
9728 2009-07-20  Christian Bruel  <christian.bruel@st.com>
9729
9730         * config/sh/sh.opt (-mfmovd): Resurrect and document.
9731         * doc/invoke.texi (-mfmovd): Likewise.
9732         * config/sh/sh.h (TARGET_FMOVD, MASK_FMOVD): Remove default setting.
9733
9734 2009-07-20  Jan Hubicka  <jh@suse.cz>
9735
9736         * tree-ssa-dce.c (remove_dead_phis): Only look for abnormal PHIs
9737         when handling SSA name.
9738
9739 2009-07-19  Jan Hubicka  <jh@suse.cz>
9740
9741         PR tree-optimization/40676
9742         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do renaming on all
9743         virtual PHIs in empty BBs.
9744
9745 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9746
9747         * combine.c (make_compound_operation) <SUBREG>: If force_to_mode
9748         re-expanded the compound use gen_lowpart instead to convert to the
9749         desired mode.
9750
9751 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9752
9753         * combine.c (try_widen_shift_mode): Add COUNT, OUTER_CODE and
9754         OUTER_CONST arguments.
9755         <LSHIFTRT>: Use them to allow widening if the bits shifted in from
9756         the new wider mode will be masked off.
9757         (simplify_shift_const_1): Adjust calls to try_widen_shift_mode.
9758
9759 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9760
9761         * combine.c (try_widen_shift_mode) <LSHIFTRT>: Allow widening if the
9762         high-order bits are zero.
9763
9764 2009-07-18  Adam Nemet  <anemet@caviumnetworks.com>
9765
9766         * combine.c (simplify_shift_const_1): Split code to determine
9767         shift_mode into ...
9768         (try_widen_shift_mode): ... here.  Allow widening for ASHIFTRT if the
9769         new bits shifted in are identical to the old sign bit.
9770
9771 2009-07-18  Richard Guenther  <rguenther@suse.de>
9772
9773         PR c/40787
9774         * gimplify.c (gimplify_call_expr): Reject code using results from
9775         functions returning void.
9776
9777 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
9778
9779         * doc/md.texi: Document the new PowerPC "es" constraint.
9780         Document that "m" can include automodified addresses on this target,
9781         and explain how %U must be used.  Extend the "Q" and "Z" documentation
9782         to suggest "es" as well as "m".
9783         * config/rs6000/constraints.md (es): New memory constraint.
9784         (Q, Z): Update strings to match new documentation.
9785
9786 2009-07-18  Richard Sandiford  <r.sandiford@uk.ibm.com>
9787
9788         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Allow any
9789         offset from virtual_stack_vars_rtx and arg_pointer_rtx.
9790         * config/rs6000/predicates.md (volatile_mem_operand): Use
9791         offsettable_nonstrict_memref_p.
9792         * config/rs6000/rs6000.md (*floatsidf2_internal): Remove split check.
9793         (*floatunssidf2_internal): Likewise.
9794         (*fix_truncdfsi2_internal): Likewise.
9795         (*fix_trunctfsi2_internal): Likewise.
9796
9797 2009-07-17  Anatoly Sokolov  <aesok@post.ru>
9798
9799         * config/avr/avr-devices.c (avr_mcu_t): Add atmega8u2, atmega16u2 and
9800         atmega32u2 devices.
9801         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9802
9803 2009-07-17  Richard Guenther  <rguenther@suse.de>
9804
9805         PR c/40401
9806         * tree-pass.h (pass_diagnose_omp_blocks): Declare.
9807         (pass_warn_unused_result): Likewise.
9808         (TODO_set_props): Remove.
9809         * omp-low.c (diagnose_omp_structured_block_errors): Change to
9810         run as a pass.
9811         (pass_diagnose_omp_blocks): Define.
9812         * c-decl.c (pop_file_scope): Do not finalize the CU here.
9813         (c_gimple_diagnostics_recursively): Remove.
9814         (finish_function): Do not call it.
9815         (c_write_global_declarations): Continue after errors.
9816         Finalize the CU here.
9817         * c-gimplify.c (c_genericize): Do not gimplify here.
9818         * c-common.c (c_warn_unused_result): Move ...
9819         * tree-cfg.c (do_warn_unused_result): ... here.
9820         (run_warn_unused_result): New function.
9821         (gate_warn_unused_result): New function.
9822         (pass_warn_unused_result): New pass.
9823         * c-common.h (c_warn_unused_result): Remove.
9824         * flags.h (flag_warn_unused_result): Declare.
9825         * c-opts.c (c_common_init_options): Enable flag_warn_unused_result.
9826         * opts.c (flag_warn_unused_result): Initialize to false.
9827         * toplev.c (compile_file): Add comment.
9828         * omp-low.c (create_omp_child_function): Do not register
9829         the function with the frontend.
9830         (diagnose_omp_structured_block_errors): Prepare to be
9831         called as optimization pass.
9832         (gate_diagnose_omp_blocks): New function.
9833         (pass_diagnose_omp_blocks): New pass.
9834         * cgraph.h (cgraph_optimize): Remove.
9835         (cgraph_analyze_function): Likewise.
9836         * cgraph.c (cgraph_add_new_function): Gimplify C++ thunks.
9837         * cgraphunit.c (cgraph_lower_function): Lower nested functions
9838         before their parents here.
9839         (cgraph_finalize_function): Not here.
9840         (cgraph_analyze_function): Gimplify functions here.
9841         (cgraph_finalize_compilation_unit): Continue after errors.
9842         Optimize the callgraph from here.
9843         (cgraph_optimize): Make static.
9844         * langhooks.c (write_global_declarations): Finalize the CU.
9845         * gimplify.c (gimplify_asm_expr): Do not emit ASMs with errors.
9846         (gimplify_function_tree): Assert we gimplify only once.
9847         Set PROP_gimple_any property.
9848         * tree-nested.c (gimplify_all_functions): New function.
9849         (lower_nested_functions): Gimplify all nested functions.
9850         * gimple.h (diagnose_omp_structured_block_errors): Remove.
9851         * passes.c (init_optimization_passes): Add pass_warn_unused_result
9852         and pass_diagnose_omp_blocks after gimplification.  Do not
9853         set TODO_set_props on all_lowering_passes.
9854         (execute_one_pass): Do not handle TODO_set_props.
9855         * Makefile.in (cgraphunit.o): Add $(TREE_DUMP_H) dependency.
9856         (gimplify.o): Add tree-pass.h dependency.
9857         * tree-inline.c (copy_statement_list): Properly copy STATEMENT_LIST.
9858         (copy_tree_body_r): Properly handle TARGET_EXPR like SAVE_EXPR.
9859         (unsave_r): Likewise.
9860         * c-omp.c (c_finish_omp_atomic): Set DECL_CONTEXT on the
9861         temporary variable.
9862
9863 2009-07-17  Sandra Loosemore  <sandra@codesourcery.com>
9864
9865         * doc/service.texi (Service): Restore previously removed link,
9866         which isn't broken after all.
9867
9868 2009-07-17  Richard Guenther  <rguenther@suse.de>
9869
9870         PR tree-optimization/40321
9871         * tree-ssa-pre.c (add_to_exp_gen): Also add names defined by
9872         PHI nodes to the maximal set.
9873         (make_values_for_phi): Add PHI arguments to the maximal set.
9874         (execute_pre): Dump PHI_GEN and the maximal set.
9875
9876 2009-07-17  Jakub Jelinek  <jakub@redhat.com>
9877
9878         PR c++/40780
9879         * gimplify.c (gimplify_conversion): Don't change non-conversions into
9880         VIEW_CONVERT_EXPR.
9881
9882 2009-07-16  Sandra Loosemore  <sandra@codesourcery.com>
9883
9884         * doc/extend.texi (Nested Functions): Replace broken link with
9885         textual reference.
9886         * doc/service.texi (Service): Remove broken link.
9887
9888 2009-07-16  H.J. Lu  <hongjiu.lu@intel.com>
9889
9890         PR bootstrap/40781
9891         * builtins.c (expand_builtin_memcmp): Use loc instead of
9892         EXPR_LOCATION (exp).
9893         (expand_builtin_strncmp): Likewise.
9894
9895 2009-07-17  Aldy Hernandez  <aldyh@redhat.com>
9896             Manuel López-Ibáñez  <manu@gcc.gnu.org>
9897
9898         PR 40435
9899         * tree-complex.c, tree-loop-distribution.c, tree.c, tree.h,
9900         builtins.c, fold-const.c, omp-low.c, cgraphunit.c, tree-ssa-ccp.c,
9901         tree-ssa-dom.c, gimple-low.c, expr.c, tree-ssa-ifcombine.c,
9902         c-decl.c, stor-layout.c, tree-if-conv.c, c-typeck.c, gimplify.c,
9903         calls.c, tree-sra.c, tree-mudflap.c, tree-ssa-copy.c,
9904         tree-ssa-forwprop.c, c-convert.c, c-omp.c, varasm.c,
9905         tree-inline.c, c-common.c, c-common.h, gimple.c,
9906         tree-switch-conversion.c, gimple.h, tree-cfg.c, c-parser.c,
9907         convert.c: Add location argument to fold_{unary,binary,ternary},
9908         fold_build[123], build_call_expr, build_size_arg,
9909         build_fold_addr_expr, build_call_array, non_lvalue, size_diffop,
9910         fold_build1_initializer, fold_build2_initializer,
9911         fold_build3_initializer, fold_build_call_array,
9912         fold_build_call_array_initializer, fold_single_bit_test,
9913         omit_one_operand, omit_two_operands, invert_truthvalue,
9914         fold_truth_not_expr, build_fold_indirect_ref, fold_indirect_ref,
9915         combine_comparisons, fold_builtin_*, fold_call_expr,
9916         build_range_check, maybe_fold_offset_to_address, round_up,
9917         round_down.
9918
9919 2009-07-16  Jason Merrill  <jason@redhat.com>
9920
9921         PR libstdc++/37907
9922         * c-common.c (c_common_reswords): Add __is_standard_layout
9923         and __is_trivial.
9924         * c-common.h (enum rid): Add RID_IS_STD_LAYOUT and RID_IS_TRIVIAL.
9925         * doc/implement-cxx.texi: New.
9926         * doc/gcc.texi: Include it.
9927
9928 2009-07-16  DJ Delorie  <dj@redhat.com>
9929
9930         * config/m32c/m32c.c (m32c_compare_redundant): Avoid removing
9931         compares that may be indirectly affected by previous instructions.
9932
9933 2009-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9934
9935         * builtins.c (do_mpc_arg2): New.
9936         (fold_builtin_2): Fold builtin cpow.
9937         * real.h (HAVE_mpc_pow): New.
9938
9939 2009-07-16  Bingfeng Mei  <bmei@broadcom.com>
9940
9941         * modulo-sched.c (sms_schedule): stage_count <= 1 as correct
9942         comparison to skip unprofitable schedule
9943
9944 2009-07-16  Simon Baldwin  <simonb@google.com>
9945
9946         * gcc.c (option_map): New flag -no-canonical-prefixes.
9947         * (display_help): Print help text for new flag.
9948         * (process_command): Move options translation and language specifics
9949         and handle new flag early.  Use it to set a function pointer to a
9950         prefix builder.  Replace make_relative_prefix calls with calls to
9951         the function pointed to.  Ignore new flag in regular options handling.
9952         * doc/invoke.texi (Overall Options): Documented -no-canonical-prefixes.
9953
9954 2009-07-15  DJ Delorie  <dj@redhat.com>
9955
9956         * config/mep/mep.md (sibcall_internal): Change register to avoid
9957         argument registers.
9958         (sibcall_value_internal): Likewise.
9959
9960 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
9961
9962         PR rtl-optimization/40710
9963         * resource.c (mark_target_live_regs): Reset DF problem to LR.
9964
9965 2009-07-15  Adam Nemet  <anemet@caviumnetworks.com>
9966
9967         * config/mips/mips.md (*extenddi_truncate<mode>,
9968         *extendsi_truncate<mode>): Change type attribute to move_type
9969         with shift_shift.  Split out code handling exts from here ...
9970         (*extend<GPR:mode>_truncate<SHORT:mode>_exts): ... to this new
9971         pattern.
9972         (*extendhi_truncateqi): Change type attribute to move_type with
9973         shift_shift.  Split out code handling exts from here ...
9974         (*extendhi_truncateqi_exts): ... to this new pattern.
9975
9976 2009-07-15  Uros Bizjak  <ubizjak@gmail.com>
9977
9978         * config/i386/sse.md (copysign<mode>3): Use "and-not" SSE instruction
9979         instead of "and" with inverted sign bit mask value.  Use
9980         "nonimmediate_operand" for operand 1 and operand 2 predicate.
9981         Allocate registers only for operand 4 and operand 5.
9982
9983 2009-07-15  Jakub Jelinek  <jakub@redhat.com>
9984
9985         PR middle-end/40747
9986         * fold-const.c (fold_cond_expr_with_comparison): When folding
9987         < and <= to MIN, make sure the MIN uses the same type as the
9988         comparison's operands.
9989
9990 2009-07-15  Richard Earnshaw  <rearnsha@arm.com>
9991
9992         * arm.md (ior_xor): New code iterator.
9993         (split for ior/xor with shift and zero-extend): New split pattern.
9994         * arm/predicates.md (subreg_lowpart_operator): New special predicate.
9995
9996 2009-07-15  Richard Guenther  <rguenther@suse.de>
9997
9998         * tree-ssa-structalias.c (make_constraint_from_heapvar): Initialize
9999         offset member.
10000
10001 2009-07-15  Richard Guenther  <rguenther@suse.de>
10002
10003         PR middle-end/40753
10004         * alias.c (ao_ref_from_mem): Reject FUNCTION_DECL and LABEL_DECL bases.
10005
10006 2009-07-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
10007
10008         * config/m68k/linux-unwind.h (m68k_fallback_frame_state): Update to
10009         handle 2.6.30 kernel.
10010
10011 2009-07-15  DJ Delorie  <dj@redhat.com>
10012
10013         * config/mep/mep.md (sibcall_internal): Change register to allow
10014         for 24-bit addresses.
10015         (sibcall_value_internal): Likewise.
10016
10017 2009-07-14  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10018
10019         * doc/invoke.texi: Added descriptions of the  scheduling heuristics
10020         that are enabled/disabled by the flags introduced by a previous patch.
10021
10022 2009-07-14  DJ Delorie  <dj@redhat.com>
10023
10024         * config/mep/mep.md (sibcall_internal): Include non-toggling
10025         non-jmp case.
10026         (sibcall_value_internal): Likewise.
10027
10028 2009-07-14  Taras Glek  <tglek@mozilla.com>
10029             Rafael Espindola  <espindola@google.com>
10030
10031         * doc/sourcebuild.texi: Document install-plugin target.
10032         * configure.ac: Added install-plugin target to language makefiles.
10033         * configure: Regenerate.
10034         * Makefile.in: (install-plugin): Install more headers,
10035         depend on lang.install-plugin.
10036
10037 2009-07-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10038
10039         * tree-vrp.c (vrp_evaluate_conditional): Mark strings for
10040         translation.
10041
10042 2009-07-14  DJ Delorie  <dj@redhat.com>
10043
10044         * config/mep/mep.c (mep_vliw_jmp_match): New function.
10045         * config/mep/mep-protos.h (mep_vliw_jmp_match): Prototype it.
10046         * config/mep/mep.md (sibcall_internal): Change test from
10047         mep_vliw_mode_match to mep_vliw_jmp_match.
10048         (sibcall_value_internal): Likewise.
10049
10050 2009-07-14  Uros Bizjak  <ubizjak@gmail.com>
10051
10052         * config/i386/sse.md (copysign<mode>3): New expander.
10053         * config/i386/i386-protos.h (ix86_build_signbit_mask): New prototype.
10054         * config/i386/i386.c (ix86_build_signbit_mask): Make public.
10055         Use ix86_build_const_vector.
10056         (enum ix86_builtins): Add IX86_BUILTIN_CPYSGNPS and
10057         IX86_BUILTIN_CPYSGNPD.
10058         (builtin_description): Add __builtin_ia32_copysignps and
10059         __builtin_ia32_copysignpd.
10060         (ix86_builtin_vectorized_function): Handle BUILT_IN_COPYSIGN
10061         and BUILT_IN_COPYSIGNF.
10062
10063 2009-07-13  Jason Merrill  <jason@redhat.com>
10064
10065         * builtins.c (can_trust_pointer_alignment): New fn.
10066         (get_pointer_alignment): Factor it out from here.
10067         * tree.h: Declare it.
10068
10069 2009-07-14  David Edelsohn  <edelsohn@gnu.org>
10070
10071         * config/rs6000/predicates.md (offsettable_mem_operand): Test
10072         RTX_AUTOINC class.
10073
10074 2009-07-14  Dodji Seketeli  <dodji@redhat.com>
10075
10076         PR debug/40705
10077         PR c++/403057
10078         * dwarf2.out.c (gen_type_die_with_usage): Added comment.
10079
10080 2009-07-14  Richard Guenther  <rguenther@suse.de>
10081             Andrey Belevantsev <abel@ispras.ru>
10082
10083         PR middle-end/40745
10084         * cfgexpand.c (partition_stack_vars): Do not bother to update
10085         alias information when not optimizing.
10086
10087 2009-07-14  Richard Guenther  <rguenther@suse.de>
10088             Andrey Belevantsev <abel@ispras.ru>
10089
10090         * tree-ssa-alias.h (refs_may_alias_p_1): Declare.
10091         (pt_solution_set): Likewise.
10092         * tree-ssa-alias.c (refs_may_alias_p_1): Export.
10093         * tree-ssa-structalias.c (pt_solution_set): New function.
10094         * final.c (rest_of_clean_state): Free SSA data structures.
10095         * print-rtl.c (print_decl_name): Remove.
10096         (print_mem_expr): Implement in terms of print_generic_expr.
10097         * alias.c (ao_ref_from_mem): New function.
10098         (rtx_refs_may_alias_p): Likewise.
10099         (true_dependence): Query alias-export info.
10100         (canon_true_dependence): Likewise.
10101         (write_dependence_p): Likewise.
10102         * tree-dfa.c (get_ref_base_and_extent): For void types leave
10103         size unknown.
10104         * emit-rtl.c (component_ref_for_mem_expr): Remove.
10105         (mem_expr_equal_p): Use operand_equal_p.
10106         (set_mem_attributes_minus_bitpos): Do not use
10107         component_ref_for_mem_expr.
10108         * cfgexpand.c (add_partitioned_vars_to_ptset): New function.
10109         (update_alias_info_with_stack_vars): Likewise.
10110         (partition_stack_vars): Call update_alias_info_with_stack_vars.
10111         * tree-ssa.c (delete_tree_ssa): Do not release SSA names
10112         explicitly nor clear stmt operands.
10113         Free the decl-to-pointer map.
10114         * tree-optimize.c (execute_free_datastructures): Do not free
10115         SSA data structures here.
10116         * tree-flow.h (struct gimple_df): Add decls_to_pointers member.
10117         * Makefile.in (emit-rtl.o): Add pointer-set.h dependency.
10118         (alias.o): Add tree-ssa-alias.h, pointer-set.h and $(TREE_FLOW_H)
10119         dependencies.
10120         (print-rtl.o): Add $(DIAGNOSTIC_H) dependency.
10121
10122 2009-07-13  DJ Delorie  <dj@redhat.com>
10123
10124         * config/mep/mep.h (CC1_SPEC): Tweak parameters to trigger
10125         unrolling at the right iteration count.
10126
10127         * config/mep/mep.c (mep_expand_prologue): Fix frame pointer
10128         calculations.
10129
10130 2009-07-13  Ghassan Shobaki  <ghassan.shobaki@amd.com>
10131
10132         * haifa-sched.c (rank_for_schedule): Introduced flags to
10133         enable/disable individual scheduling heuristics.
10134         * common.opt: Introduced flags to enable/disable individual
10135         heuristics in the scheduler.
10136         * doc/invoke.texi: Introduced flags to enable/disable individual
10137         heuristics in the scheduler.
10138
10139 2009-07-13  Kai Tietz  <kai.tietz@onevision.com>
10140
10141         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Remove file
10142         config/i386/mingw-tls.c.
10143         * config/i386/mingw-tls.c: Removed.
10144
10145 2009-07-13  Ira Rosen  <irar@il.ibm.com>
10146
10147         * tree-vect-loop.c (get_initial_def_for_reduction): Ensure that the
10148         checks access only relevant statements.
10149         (vectorizable_reduction): Likewise.
10150
10151 2009-07-12  Kai Tietz  <kai.tietz@onevision.com>
10152
10153         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define _X86_
10154         just for 32-bit case.
10155
10156 2009-07-12  Jan Hubicka  <jh@suse.cz>
10157
10158         PR tree-optimization/40585
10159         * except.c (expand_resx_expr): When there already is resume
10160         instruction, produce linked list.
10161         (build_post_landing_pads): Assert that resume is empty.
10162         (connect_post_landing_pads): Handle resume lists.
10163         (dump_eh_tree): Dump resume list.
10164
10165 2009-07-12  Ira Rosen  <irar@il.ibm.com>
10166
10167         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
10168         with additional argument.
10169         * tree-vectorizer.h (enum vect_def_type): Add
10170         vect_double_reduction_def.
10171         (vect_is_simple_reduction): Add argument.
10172         * tree-vect-loop.c (vect_determine_vectorization_factor): Fix
10173         indentation.
10174         (vect_analyze_scalar_cycles_1): Detect double reduction. Call
10175         vect_is_simple_reduction with additional argument.
10176         (vect_analyze_loop_operations): Handle exit phi nodes in case of
10177         double reduction.
10178         (reduction_code_for_scalar_code): Handle additional codes by
10179         returning ERROR_MARK for them. Fix comment and indentation.
10180         (vect_is_simple_reduction): Fix comment, add argument to specify
10181         double reduction. Detect double reduction.
10182         (get_initial_def_for_induction): Fix indentation.
10183         (get_initial_def_for_reduction): Fix comment and indentation.
10184         Handle double reduction. Create initial definitions that do not
10185         require adjustment if ADJUSTMENT_DEF is NULL. Handle additional cases.
10186         (vect_create_epilog_for_reduction): Fix comment, add argument to
10187         handle double reduction. Use PLUS_EXPR in case of MINUS_EXPR in
10188         epilogue result extraction. Create double reduction phi node and
10189         replace relevant uses.
10190         (vectorizable_reduction): Call vect_is_simple_reduction with
10191         additional argument. Fix indentation. Update epilogue code treatment
10192         according to the changes in reduction_code_for_scalar_code. Check
10193         for double reduction. Call vect_create_epilog_for_reduction with
10194         additional argument.
10195         * tree-vect-stmts.c (process_use): Handle double reduction, update
10196         documentation.
10197         (vect_mark_stmts_to_be_vectorized): Handle double reduction.
10198         (vect_get_vec_def_for_operand): Likewise.
10199
10200 2009-07-12  Danny Smith  <dansmister@gmail.com>
10201
10202         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Don't
10203         dllexport if !TREE_PUBLIC.
10204         (i386_pe_maybe_record_exported_symbol): Assert TREE_PUBLIC.
10205
10206 2009-07-11  Anatoly Sokolov  <aesok@post.ru>
10207
10208         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Redefine.
10209         (avr_extra_arch_macro) Remove declatation.
10210         * config/avr/avr.c (avr_cpu_cpp_builtins): New function.
10211         (avr_extra_arch_macro) Declare as static.
10212         * config/avr/avr-protos.h (avr_cpu_cpp_builtins): Dclare.
10213
10214 2009-07-11  Jan Hubicka  <jh@suse.cz>
10215
10216         PR middle-end/48388
10217         * except.c (can_be_reached_by_runtime): Test for NULL aka bitmap.
10218
10219 2009-07-11  Jakub Jelinek  <jakub@redhat.com>
10220
10221         PR debug/40713
10222         * dwarf2out.c (dw_fde_struct): Add in_std_section and
10223         cold_in_std_section bits.
10224         (dwarf2out_begin_prologue): Initialize them.
10225         (dwarf2out_finish): Don't emit FDE range into .debug_ranges
10226         if already covered by text_section or cold_text_section range.
10227
10228         PR rtl-optimization/40667
10229         * defaults.h (MINIMUM_ALIGNMENT): Define if not defined.
10230         * doc/tm.texi (MINIMUM_ALIGNMENT): Document it.
10231         * config/i386/i386.h (MINIMUM_ALIGNMENT): Define.
10232         * config/i386/i386.c (ix86_minimum_alignment): New function.
10233         * config/i386/i386-protos.h (ix86_minimum_alignment): New prototype.
10234         * cfgexpand.c (expand_one_var): Use MINIMIM_ALIGNMENT.
10235         * emit-rtl.c (gen_reg_rtx): Likewise.
10236         * function.c (assign_parms): Likewise.  If nominal_type needs
10237         bigger alignment than FUNCTION_ARG_BOUNDARY, use its alignment
10238         rather than passed_type's alignment.
10239
10240         PR target/40668
10241         * function.c (assign_parm_setup_stack): Adjust
10242         MEM_OFFSET (data->stack_parm) if promoted_mode is different
10243         from nominal_mode on big endian.
10244
10245 2009-07-11  Paolo Bonzini  <bonzini@gnu.org>
10246
10247         * expmed.c (emit_store_flag_1): Fix choice of zero vs. sign extension.
10248
10249 2009-07-10  DJ Delorie  <dj@redhat.com>
10250
10251         * config/mep/mep.c (mep_can_inline_p): Correct logic, and simplify.
10252
10253 2009-07-10  Mark Mitchell  <mark@codesourcery.com>
10254
10255         * config/arm/thumb2.md (thumb2_cbz): Correct computation of length
10256         attribute.
10257         (thumb2_cbnz): Likewise.
10258
10259 2009-07-10  David Daney  <ddaney@caviumnetworks.com>
10260
10261         PR target/39079
10262         * config.gcc (supported_defaults): Add synci.
10263         (with_synci): Add validation.
10264         (all_defaults): Add synci.
10265         * config/mips/mips.md (clear_cache): Use TARGET_SYNCI instead of
10266         ISA_HAS_SYNCI.
10267         (synci): Same.
10268         * config/mips/mips.opt (msynci): New option.
10269         * config/mips/mips.c (mips_override_options): Warn on use of
10270         -msynci for targets that do now support it.
10271         * gcc/config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
10272         msynci.
10273         * gcc/doc/invoke.texi (-msynci): Document the new option.
10274         * doc/install.texi (--with-synci): Document the new option.
10275
10276 2009-07-10  Richard Guenther  <rguenther@suse.de>
10277
10278         PR tree-optimization/40496
10279         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Create
10280         the PHI result with a compatible type.
10281
10282 2009-07-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10283
10284         PR 25509
10285         PR 40614
10286         * c.opt (Wunused-result): New.
10287         * doc/invoke.texi: Document it.
10288         * c-common.c (c_warn_unused_result): Use it.
10289
10290 2009-07-09  DJ Delorie  <dj@redhat.com>
10291
10292         * targhooks.c (default_target_can_inline_p): Rename from
10293         default_target_option_can_inline_p.
10294         * targhooks.h (default_target_can_inline_p): Likewise.
10295         * target-def.h (TARGET_CAN_INLINE_P): Rename from
10296         TARGET_OPTION_CAN_INLINE_P.
10297         * config/i386/i386.c (TARGET_CAN_INLINE_P): Likewise.
10298         * config/mep/mep.c (TARGET_CAN_INLINE_P): Likewise.
10299         (mep_target_can_inline_p): Rename from
10300         mep_target_option_can_inline_p.
10301
10302         PR target/40626
10303         * config/mep/mep.h (FUNCTION_ARG_REGNO_P): Add coprocessor
10304         registers used to pass vectors.
10305
10306         * config/mep/mep.c (mep_option_can_inline_p): Remove error call.
10307
10308 2009-07-09  Tom Tromey  <tromey@redhat.com>
10309
10310         * unwind-dw2-fde-darwin.c: Include dwarf2.h.
10311         * config/mmix/mmix.c: Include dwarf2.h.
10312         * config/rs6000/darwin-fallback.c: Include dwarf2.h.
10313         * config/xtensa/unwind-dw2-xtensa.c: Include dwarf2.h.
10314         * config/sh/sh.c: Include dwarf2.h.
10315         * config/i386/i386.c: Include dwarf2.h.
10316         * Makefile.in (DWARF2_H): Remove 'elf'.
10317         * except.c: Include dwarf2.h.
10318         * unwind-dw2.c: Include dwarf2.h.
10319         * dwarf2out.c: Include dwarf2.h.
10320         * unwind-dw2-fde-glibc.c: Include dwarf2.h.
10321         * unwind-dw2-fde.c: Include dwarf2.h.
10322         * dwarf2asm.c: Include dwarf2.h.
10323
10324 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
10325
10326         * haifa-sched.c (insn_finishes_cycle_p): New static function.
10327         (max_issue): Use it.
10328         * sched-int.h (struct sched_info: insn_finishes_block_p): New
10329         scheduler hook.
10330         * sched-rgn.c (rgn_insn_finishes_block_p): Implement it.
10331         (region_sched_info): Update.
10332         * sched-ebb.c (ebb_sched_info): Update.
10333         * modulo-sched.c (sms_sched_info): Update.
10334         * sel-sched-ir.c (sched_sel_haifa_sched_info): Update.
10335
10336 2009-07-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
10337
10338         * varasm.c (build_constant_desc): Don't share RTL in pool entries.
10339
10340 2009-07-09  Basile Starynkevitch  <basile@starynkevitch.net>
10341
10342         * plugin.c (try_init_one_plugin): passes RTLD_GLOBAL to dlopen.
10343
10344 2009-07-09  Jakub Jelinek  <jakub@redhat.com>
10345
10346         PR middle-end/40692
10347         * fold-const.c (fold_cond_expr_with_comparison): Don't replace
10348         arg1 with arg01 if arg1 is already INTEGER_CST.
10349
10350 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
10351
10352         * simplify-rtx.c (simplify_binary_operation_1) <AND>:
10353         Transform (and (truncate)) into (truncate (and)).
10354
10355 2009-07-08  Adam Nemet  <anemet@caviumnetworks.com>
10356
10357         * combine.c (make_extraction): Check TRULY_NOOP_TRUNCATION before
10358         creating LHS paradoxical subregs.  Fix surrounding returns to
10359         use NULL_RTX rather than 0.
10360
10361 2009-07-08  DJ Delorie  <dj@redhat.com>
10362
10363         * config/mep/mep.c: (mep_option_can_inline_p): New.
10364         (TARGET_OPTION_CAN_INLINE_P): Define.
10365
10366 2009-07-08  Mark Wielaard  <mjw@redhat.com>
10367
10368         PR debug/40659
10369         * dwarf2out.c (add_data_member_location_attribute): When we have
10370         only a constant offset don't emit a new location description using
10371         DW_OP_plus_uconst, but just add the constant with add_AT_int, when
10372         dwarf_version > 2.
10373
10374 2009-07-08  Richard Henderson  <rth@redhat.com>
10375
10376         PR target/38900
10377         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move to i386.c.
10378         (enum reg_class): Add CLOBBERED_REGS.
10379         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
10380         * config/i386/i386.c (ix86_conditional_register_usage): Moved
10381         from CONDITIONAL_REGISTER_USAGE; build CLOBBERED_REGS for 64-bit.
10382         (ix86_function_ok_for_sibcall): Tidy.  Disallow MS->SYSV sibcalls.
10383         (ix86_expand_call): Use sibcall_insn_operand when needed.  Don't
10384         force 64-bit sibcalls into R11.
10385         * config/i386/constraints.md (U): New constraint.
10386         * config/i386/i386.md (sibcall_1, sibcall_value_1): Use it.
10387         (sibcall_1_rex64, sibcall_value_1_rex64): Likewise.
10388         (sibcall_1_rex64_v, sibcall_value_1_rex64_v): Remove.
10389
10390 2009-07-08  Shujing Zhao  <pearly.zhao@oracle.com>
10391
10392         * basic-block.h (dump_regset, debug_regset): Remove duplicate
10393         prototypes.
10394         * c-objc-common.h (c_initialize_diagnostics): Ditto.
10395         * ebitmap.h (dump_ebitmap): Ditto.
10396         * optabs.h (optab_libfunc): Ditto.
10397         * tree.h (tree_expr_nonzero_warnv_p): Ditto.
10398         * tree-flow.h (vect_can_force_dr_alignment_p,
10399         get_vectype_for_scalar_type): Ditto.
10400         (vectorize_loops): Move prototype to ...
10401         * tree-vectorizer.h: ... here. Also, adjust comment.
10402         (vect_set_verbosity_level): Remove duplicate prototype.
10403         * tree-ssa-loop.c: Include tree-vectorizer.h.
10404         * Makefile.in (tree-ssa-loop.o): Depend on tree-vectorizer.h.
10405
10406 2009-07-08  Nick Clifton  <nickc@redhat.com>
10407
10408         * config/i386/unix.h (ASM_COMMENT_START): Add a space after the
10409         forward slash.
10410
10411 2009-07-08  DJ Delorie  <dj@redhat.com>
10412
10413         * config/mep/mep-ivc2.cpu (cpmovtocsar0_C3, cpmovtocsar1_C3,
10414         cpmovtocc_C3, cpmovtocsar0_P0S_P1, cpmovtocsar1_P0S_P1,
10415         cpmovtocc_P0S_P1): Mark volatile.  Note which registers are
10416         written to.
10417         * config/mep/intrinsics.md: Regenerated.
10418         * config/mep/mep.c (mep_interrupt_saved_reg): Save IVC2 control
10419         registers when asm() or calls are detected.
10420
10421 2009-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10422
10423         PR c++/31246
10424         * gimplify.c (gimplify_expr): Propagate no_warning flag when
10425         gimplifying.
10426         * gimple (gimple_build_call_from_tree): Likewise.
10427         * tree-cfg.c (remove_useless_stmts_warn_notreached): Check
10428         no_warning flag before warning.
10429
10430 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10431
10432         * tree.c (set_expr_locus): Remove.
10433         * tree.h (EXPR_LOCUS,SET_EXPR_LOCUS,set_expr_locus): Remove.
10434         * c-typeck.c (c_finish_stmt_expr):  Replace EXPR_LOCUS by
10435         EXPR_LOCATION.
10436         * gimplify.c (internal_get_tmp_var): Likewise.
10437         (gimplify_call_expr): Likewise.
10438         (gimplify_one_sizepos): Likewise.
10439
10440 2009-07-07  Eric Botcazou  <ebotcazou@adacore.com>
10441
10442         PR debug/40666
10443         * dbxout.c (dbxout_symbol) <PARM_DECL>: Deal with parameters pointing
10444         to variables for debugging purposes.
10445
10446 2009-06-23  Mark Loeser  <mark@halcy0n.com>
10447
10448         PR build/40010
10449         * Makefile.in (gcc.pod): Depend on gcc-vers.texi.
10450
10451 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10452
10453         * pretty-print.c (pp_base_format): Remove %J.
10454         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10455         gcc_cxxdiag_char_table): Likewise.
10456         (init_dynamic_diag_info): Likewise.
10457
10458 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10459
10460         * pretty-print.c (pp_base_format): Remove %H.
10461         * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
10462         gcc_cxxdiag_char_table): Likewise.
10463         (init_dynamic_diag_info): Likewise.
10464         * config/mep/mep.c (mep_select_section): Likewise.
10465
10466 2009-07-07  Duncan Sands  <baldrick@free.fr>
10467
10468         * final.c (pass_clean_state): Give the pass a name.
10469         * passes.c (pass_rest_of_compilation): Likewise.
10470         * tree-optimize.c (pass_all_optimizations): Likewise.
10471
10472 2009-07-07  H.J. Lu  <hongjiu.lu@intel.com>
10473
10474         * config/ia64/ia64.c (ia64_handle_model_attribute): Remove
10475         an extra 'decl' for error_at.
10476
10477 2009-07-07  Jakub Jelinek  <jakub@redhat.com>
10478
10479         PR middle-end/40669
10480         * tree-tailcall.c (adjust_return_value_with_ops,
10481         create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
10482         if it has complex or vector type.
10483
10484 2009-07-07  Olivier Hainque  <hainque@adacore.com>
10485
10486         * config/alpha/t-osf4 (SHLIB_LINK): Do not hide the dummy weak
10487         pthread symbols.
10488
10489 2009-07-07  Basile Starynkevitch  <basile@starynkevitch.net>
10490
10491         * Makefile.in: added more lists of includes to PLUGIN_HEADERS.
10492
10493 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10494
10495         * cgraphunit.c: Replace %J by an explicit location.  Update all calls.
10496         * c-decl.c: Likewise.
10497         * function.c: Likewise.
10498         * varasm.c: Likewise.
10499         * tree-ssa.c: Likewise.
10500         * c-common.c: Likewise.
10501         * tree-cfg.c: Likewise.
10502         * config/spu/spu.c: Likewise.
10503         * config/ia64/ia64.c: Likewise.
10504         * config/v850/v850.c: Likewise.
10505
10506 2009-07-06  DJ Delorie  <dj@redhat.com>
10507
10508         * config/mep/mep-core.cpu (fsft, ssarb): Mark as VOLATILE.
10509         * config/mep/mep-ivc2.cpu (many): Add VOLATILE to more insns that make
10510         unspecified accesses to control registers.
10511         * config/mep/intrinsics.md: Regenerate.
10512         * config/mep/intrinsics.h: Regenerate.
10513         * config/mep/mep-intrin.h: Regenerate.
10514
10515 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10516
10517         * c-lex.c: Replace %H by an explicit location. Update all calls.
10518         * c-common.c: Likewise.
10519         * c-decl.c: Likewise.
10520         * c-typeck.c: Likewise.
10521         * fold-const.c: Likewise.
10522         * gimplify.c: Likewise.
10523         * stmt.c: Likewise.
10524         * tree-cfg.c: Likewise.
10525         * tree-ssa-loop-niter.c: Likewise.
10526         * tree-vrp.c: Likewise.
10527         * value-prof.c: Likewise.
10528
10529 2009-07-06  Diego Novillo  <dnovillo@google.com>
10530
10531         * tree-dfa.c (dump_variable): Write DECL_INITIAL for VAR
10532         if it has one.  Handle cases where VAR does not have an
10533         annotation or cfun is NULL.
10534
10535 2009-07-06  Diego Novillo  <dnovillo@google.com>
10536
10537         * tree.c: Include debug.h.
10538         (initialize_tree_contains_struct): New.
10539         (init_ttree): Call it.
10540         (tree_node_structure_for_code): Factor out of ...
10541         (tree_node_structure): ... here.
10542         * treestruct.def (TS_PHI_NODE): Remove.
10543         (TS_GIMPLE_STATEMENT): Remove.
10544
10545 2009-07-06  Diego Novillo  <dnovillo@google.com>
10546
10547         * tree-pretty-print.c (dump_generic_node): Protect against NULL op0.
10548         (debug_tree_chain): Handle cycles.
10549
10550 2009-07-06  Nick Clifton  <nickc@redhat.com>
10551             DJ Delorie  <dj@redhat.com>
10552
10553         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10554         __FMOVD_ENABLED__ is defined.
10555         * config/sh/sh.h
10556         (TARGET_FMOVD): Provide a default definition.
10557         (MASK_FMOVD): Likewise.
10558         (TARGET_CPU_CPP_BUILTINS): Define
10559         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10560         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10561         two fmov instructions depending upon whether TARGET_FMOVD is enabled.
10562         (split for DF load from memory into register): Also handle
10563         MEMs which consist of REG+DISP addressing.
10564         (split for DF store from register to memory): Likewise.
10565         (movsf_ie): Always use single fp_mode.
10566         * config/sh/sh.c (sh_override_options): Do not automatically
10567         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10568         that to the -mfmovd command line switch.
10569         (broken_move): Do not restrict fldi test to only the SH4 and SH4A.
10570         (fldi_ok): Always allow.
10571         * config/sh/sh.opt (mfmovd): Remove this switch.
10572         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10573
10574 2009-07-06  J"orn Rennecke  <joern.rennecke@arc.com>
10575             Kaz Kojima  <kkojima@gcc.gnu.org>
10576
10577         PR rtl-optimization/30807
10578         * postreload.c (reload_combine): For every new use of REG_SUM,
10579         record the use of BASE.
10580
10581 2009-07-06  Jan Hubicka  <jh@suse.cz>
10582
10583         * params.def: Revert my accidental commit at 2009-06-30.
10584
10585 2009-07-04  Ian Lance Taylor  <iant@google.com>
10586
10587         PR target/40636
10588         * config/i386/msformat-c.c (mingw_format_attributes): Declare as
10589         EXPORTED_CONST.
10590         (mingw_format_attribute_overrides): Likewise.
10591
10592 2009-07-04  Jakub Jelinek  <jakub@redhat.com>
10593
10594         PR debug/40596
10595         * dwarf2out.c (based_loc_descr): For crtl->stack_realign_tried
10596         don't check cfa.reg.  Instead of cfa.indirect use
10597         fde && fde->drap_reg != INVALID_REGNUM test.
10598
10599 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
10600
10601         * postreload.c (reload_combine): Replace CONST_REG with INDEX_REG.
10602
10603 2009-07-03  Vladimir Makarov  <vmakarov@redhat.com>
10604
10605         PR target/40587
10606         * ira.c (build_insn_chain): Use DF_LR_OUT instead of df_get_live_out.
10607
10608 2009-07-03  Richard Guenther  <rguenther@suse.de>
10609
10610         PR tree-optimization/40640
10611         * tree-switch-conversion.c (build_arrays): Perform arithmetic
10612         in original type.
10613
10614 2009-07-03  Jan Hubicka  <jh@suse.cz>
10615
10616         * ipa-inline.c (cgraph_decide_inlining_incrementally): When optimizing
10617         for size, reduce amount of inlining.
10618
10619 2009-07-03  Richard Guenther  <rguenther@suse.de>
10620
10621         PR middle-end/34163
10622         * tree-chrec.c (chrec_convert_1): Fold (T2)(t +- x) to (T2)t +- (T2)x
10623         if t +- x is known to not overflow and the conversion widens the
10624         operation.
10625         * Makefile.in (tree-chrec.o): Add $(FLAGS_H) dependency.
10626
10627 2009-07-03  Jan Hubicka  <jh@suse.cz>
10628
10629         * ipa-pure-const.c (analyze): Update loop optimizer init.
10630         * tree-ssa-loop-iv-canon.c (empty_loop_p, remove_empty_loop,
10631         try_remove_empty_loop, remove_empty_loops): Remove.
10632         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): Remove.
10633         * tree-ssa-dce.c (find_obviously_necessary_stmts): Use finiteness info
10634         to mark regular loops as neccesary.
10635         (degenerate_phi_p): New function.
10636         (propagate_necessity, remove_dead_phis): Use it.
10637         (forward_edge_to_pdom): Likewise.
10638         (eliminate_unnecessary_stmts): Take care to remove uses of results of
10639         virtual PHI nodes that became unreachable.
10640         (perform_tree_ssa_dce): Initialize/deinitialize loop optimizer.
10641         * tree-flow.h (remove_empty_loops): Remove.
10642         * passes.c (init_optimization_passes): Remove.
10643
10644 2009-07-03  Uros Bizjak  <ubizjak@gmail.com>
10645
10646         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1): Use
10647         can_create_pseudo_p.
10648         (*fix_trunc<mode>_i387_1): Ditto.
10649         (*floathi<mode>2_1): Ditto.
10650         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): Ditto.
10651         (*fistdi2_1): Ditto.
10652         (*fist<mode>2_1): Ditto.
10653         (frndintxf2_floor): Ditto.
10654         (*fist<mode>2_floor_1): Ditto.
10655         (frndintxf2_ceil): Ditto.
10656         (*fist<mode>2_ceil_1): Ditto.
10657         (frndintxf2_trunc): Ditto.
10658         (frndintxf2_mask_pm): Ditto.
10659         (fxam<mode>2_i387_with_temp): Ditto.
10660         * config/i386/sse.md (mulv16qi3): Ditto.
10661         (*sse2_mulv4si3): Ditto.
10662         (mulv2di3): Ditto.
10663         (sse4_2_pcmpestr): Ditto.
10664         (sse4_2_pcmpistr): Ditto.
10665
10666 2009-07-03  Jan Hubicka  <jh@suse.cz>
10667
10668         * tree-ssa-dce.c (bb_contains_live_stmts): New bitmap.
10669         (mark_stmt_necessary): Set it.
10670         (mark_operand_necessary): Set it.
10671         (mark_control_dependent_edges_necessary): Set it.
10672         (mark_virtual_phi_result_for_renaming): New function.
10673         (get_live_post_dom): New function.
10674         (forward_edge_to_pdom): New function.
10675         (remove_dead_stmt): Fix handling of control dependences.
10676         (tree_dce_init): Init new bitmap.
10677         (tree_dce_done): Free it.
10678
10679 2009-07-02  Richard Guenther  <rguenther@suse.de>
10680
10681         PR bootstrap/40617
10682         * tree-ssa-structalias.c (new_var_info): Initialize
10683         is_restrict_var.
10684
10685 2009-07-02  Jan Hubicka  <jh@suse.cz>
10686
10687         * ipa-pure-const.c (check_op): Use PTA info to see if indirect_ref is
10688         local.
10689
10690 2009-07-02  Paolo Bonzini  <bonzini@gnu.org>
10691
10692         * expmed.c (emit_cstore, emit_store_flag_1): Accept target_mode
10693         instead of recomputing it.  Adjust calls.
10694         (emit_store_flag): Adjust recursive calls.
10695
10696 2009-07-02  Richard Guenther  <rguenther@suse.de>
10697
10698         * tree-ssa-live.c (remove_unused_locals): Do not remove
10699         heap variables.
10700         * tree-ssa-structalias.c (handle_lhs_call): Delay setting
10701         of DECL_EXTERNAL for HEAP variables.
10702         (compute_points_to_sets): Set DECL_EXTERNAL for escaped
10703         HEAP variables.  Do not adjust RESTRICT vars.
10704         (find_what_var_points_to): Nobody cares if something
10705         points to READONLY.
10706
10707 2009-07-02  Ben Elliston  <bje@au.ibm.com>
10708
10709         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
10710         pc_low and pc_high declarations to the top of the function.
10711
10712 2009-07-01  DJ Delorie  <dj@redhat.com>
10713
10714         * config/mep/mep.c (mep_handle_option): Leave IVC2 control
10715         registers as fixed.
10716         (mep_interrupt_saved_reg): Save appropriate IVC2 control registers.
10717         * config/mep/mep-ivc2.cpu: Add VOLATILE to insns that make
10718         unspecified accesses to control registers.
10719         * config/mep/intrinsics.md: Regenerate.
10720         * config/mep/intrinsics.h: Regenerate.
10721         * config/mep/mep-intrin.h: Regenerate.
10722
10723 2009-07-01  Anthony Green  <green@moxielogic.com>
10724
10725         * config/moxie/moxie.c (moxie_expand_prologue): Use dec
10726         instruction when possible.
10727         (moxie_expand_prologue): Ditto.  Also, save an instruction and
10728         some complexity by popping off of $r12 instead of $sp.
10729         * config/moxie/moxie.md (movsi_pop): Don't assume $sp.  Take two
10730         operands.
10731
10732 2009-07-01  Richard Henderson  <rth@redhat.com>
10733
10734         PR bootstrap/40347
10735         * function.c (reposition_prologue_and_epilogue_notes): If epilogue
10736         contained no insns, reposition note before last insn.
10737
10738 2009-07-01  Richard Henderson  <rth@redhat.com>
10739
10740         PR debug/40431
10741         * dwarf2out.c (def_cfa_1): Revert 2009-06-11 change for
10742         DW_CFA_def_cfa_offset and DW_CFA_def_cfa.
10743
10744 2009-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
10745
10746         PR bootstrap/40558
10747         * config/rs6000/rs6000.c (print_operand): Undo change that breaks
10748         darwin9 for printing reg addresses with %y.
10749
10750 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
10751
10752         * combine.c (force_to_mode): Handle TRUNCATE.  Factor out
10753         truncation from operands in binary operations.
10754
10755 2009-07-01  Adam Nemet  <anemet@caviumnetworks.com>
10756
10757         Revert:
10758         2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
10759         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
10760         subreg of op0 to the original op0.
10761
10762         * expmed.c (store_bit_field_1): Use a temporary as the destination
10763         instead of a paradoxical subreg when we need to truncate the result.
10764
10765 2009-07-01  DJ Delorie  <dj@redhat.com>
10766
10767         * config/mep/mep-ivc2.cpu (cmov, cmovc, cmovh): Add intrinsic
10768         names to VLIW variants.
10769         (ivc2rm, ivc2crn): Make data type consistent with non-VLIW variants.
10770         * config/mep/intrinsics.md: Regenerate.
10771         * config/mep/intrinsics.h: Regenerate.
10772         * config/mep/mep-intrin.h: Regenerate.
10773
10774 2009-07-01  Jakub Jelinek  <jakub@redhat.com>
10775
10776         PR debug/40462
10777         * jump.c (returnjump_p): Revert last patch.
10778         * dwarf2out.c (dwarf2out_begin_epilogue): Handle SEQUENCEs.
10779
10780 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10781
10782         PR target/40575
10783         * pa.md (casesi32p): Use jump table label to determine the offset
10784         of the jump table.
10785         (casesi64p): Likewise.
10786
10787         * pa.c (forward_branch_p): Return bool type.  Use instruction
10788         addresses when available.  Assert that INSN has a jump label.
10789         (pa_adjust_insn_length): Don't call forward_branch_p if INSN doesn't
10790         have a jump label.
10791
10792 2009-07-01  Richard Guenther  <rguenther@suse.de>
10793
10794         PR tree-optimization/19831
10795         * tree-ssa-dce.c (propagate_necessity): Calls to functions
10796         that only act as barriers do not make any previous stores necessary.
10797         * tree-ssa-structalias.c (handle_lhs_call): Delay making
10798         HEAP variables global, do not add a constraint from nonlocal.
10799         (find_func_aliases): Handle escapes through return statements.
10800         (compute_points_to_sets): Make escaped HEAP variables global.
10801
10802 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
10803
10804         PR bootstrap/40597
10805         * expmed.c (emit_store_flag): Perform a conversion if necessary,
10806         after reducing a DImode cstore to SImode.
10807
10808 2009-07-01  Paolo Bonzini  <bonzini@gnu.org>
10809
10810         * expr.c (expand_expr_real_1): Reinstate fallthrough to
10811         TRUTH_ANDIF_EXPR if do_store_flag returns NULL.
10812
10813 2009-07-01  Maciej W. Rozycki  <macro@linux-mips.org>
10814
10815         * config/vax/vax.h (TARGET_BSD_DIVMOD): New macro.  Set to 1.
10816         * config/vax/linux.h (TARGET_BSD_DIVMOD): New macro.  Redefine the
10817         to 0.
10818         * config/vax/vax.c (vax_init_libfuncs): Only redefine udiv_optab
10819         and umod_optab if TARGET_BSD_DIVMOD.
10820         * config/vax/lib1funcs.asm: New file.
10821         * config/vax/t-linux: New file.
10822         * config.gcc (vax-*-linux*): Set tmake_file to vax/t-linux.
10823
10824 2009-06-30  Jakub Jelinek  <jakub@redhat.com>
10825
10826         PR c++/40566
10827         * convert.c (convert_to_integer) <case COND_EXPR>: Don't convert
10828         to type arguments that have void type.
10829
10830         PR debug/40573
10831         * dwarf2out.c (gen_formal_parameter_die): Call
10832         equate_decl_number_to_die if node is different from origin.
10833
10834 2009-06-30  Anthony Green  <green@moxielogic.com>
10835
10836         Clean up moxie port for --enable-build-with-cxx.
10837         * config/moxie/moxie.c (moxie_function_value): First two
10838         parameters are const_tree, not tree.
10839         * config/moxie/moxie.h (enum reg_class): Rename CC_REG to CC_REGS.
10840         (REG_CLASS_NAMES): Ditto.
10841         (REGNO_REG_CLASS): Ditto.
10842         * config/moxie/moxie-protos.h (moxie_override_options): Declare.
10843         (moxie_function_value): Fix constyness of arguments.
10844
10845 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
10846
10847         * cgraphunit.c (cgraph_finalize_compilation_unit): Call
10848         finalize_size_functions before further processing.
10849         * stor-layout.c: Include cgraph.h, tree-inline.h and tree-dump.h.
10850         (variable_size): Call self_referential_size on size expressions
10851         that contain a PLACEHOLDER_EXPR.
10852         (size_functions): New static variable.
10853         (copy_self_referential_tree_r): New static function.
10854         (self_referential_size): Likewise.
10855         (finalize_size_functions): New global function.
10856         * tree.c: Include tree-inline.h.
10857         (push_without_duplicates): New static function.
10858         (find_placeholder_in_expr): New global function.
10859         (substitute_in_expr) <tcc_declaration>: Return the replacement object
10860         on equality.
10861         <tcc_expression>: Likewise.
10862         <tcc_vl_exp>: If the replacement object is a constant, try to inline
10863         the call in the expression.
10864         * tree.h (finalize_size_functions): Declare.
10865         (find_placeholder_in_expr): Likewise.
10866         (FIND_PLACEHOLDER_IN_EXPR): New macro.
10867         (substitute_placeholder_in_expr): Update comment.
10868         * tree-inline.c (remap_decl): Do not unshare trees if do_not_unshare
10869         is true.
10870         (copy_tree_body_r): Likewise.
10871         (copy_tree_body): New static function.
10872         (maybe_inline_call_in_expr): New global function.
10873         * tree-inline.h (struct copy_body_data): Add do_not_unshare field.
10874         (maybe_inline_call_in_expr): Declare.
10875         * Makefile.in (tree.o): Depend on TREE_INLINE_H.
10876         (stor-layout.o): Depend on CGRAPH_H, TREE_INLINE_H, TREE_DUMP_H and
10877         GIMPLE_H.
10878
10879 2009-06-30  Richard Guenther  <rguenther@suse.de>
10880
10881         * tree-ssa-dce.c (mark_all_reaching_defs_necessary_1): Always
10882         continue walking.
10883         (propagate_necessity): Do not mark reaching defs of stores
10884         as necessary.
10885
10886 2009-06-30  Jan Hubicka  <jh@suse.cz>
10887
10888         * cfgloopanal.c (check_irred): Move into ...
10889         (mark_irreducible_loops): ... here; return true if ireducible
10890         loops was found.
10891         * ipa-pure-const.c: Include cfgloop.h and tree-scalar-evolution.h
10892         (analyze_function): Try to prove loop finiteness.
10893         * cfgloop.h (mark_irreducible_loops): Update prototype.
10894         * Makefile.in (ipa-pure-const.o): Add dependency on SCEV and CFGLOOP.
10895
10896 2009-06-30  Basile Starynkevitch  <basile@starynkevitch.net>
10897
10898         * Makefile.in (PLUGIN_HEADERS): added ggc, tree-dump, pretty-print.
10899
10900 2009-06-30  Ira Rosen  <irar@il.ibm.com>
10901
10902         PR tree-optimization/40542
10903         * tree-vect-stmts.c (vect_analyze_stmt): Don't vectorize volatile
10904         types.
10905
10906 2009-06-30  Martin Jambor  <mjambor@suse.cz>
10907
10908         PR tree-optimization/40582
10909         * tree-sra.c (build_ref_for_offset_1): Use types_compatible_p rather
10910         than useless_type_conversion_p.
10911         (generate_subtree_copies): Increment sra_stats.subtree_copies at a
10912         proper place.
10913
10914 2009-06-30  Martin Jambor  <mjambor@suse.cz>
10915
10916         PR middle-end/40554
10917         * tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
10918
10919 2009-06-30  Richard Guenther  <rguenther@suse.de>
10920
10921         * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
10922         use ao_ref references.
10923         (walk_aliased_vdefs): Likewise.
10924         * tree-ssa-alias.h (walk_aliased_vdefs): Adjust prototype.
10925         * tree-ssa-dce.c (struct ref_data): Remove.
10926         (mark_aliased_reaching_defs_necessary_1): Use the ao_ref argument.
10927         (mark_aliased_reaching_defs_necessary): Adjust.
10928         (mark_all_reaching_defs_necessary_1): Likewise.
10929
10930 2009-06-30  Paolo Bonzini  <bonzini@gnu.org>
10931
10932         PR boostrap/40597
10933         * expmed.c (emit_cstore): New name of emit_store_flag_1.
10934         (emit_store_flag_1): Extract from emit_store_flag, adjust
10935         calls to (what now is) emit_cstore.
10936         (emit_store_flag): Call emit_store_flag_1 and also use it
10937         for what used to be recursive calls.
10938
10939 2009-06-30  Wei Guozhi  <carrot@google.com>
10940
10941         PR/40416
10942         * tree-ssa-sink.c (statement_sink_location): Stop sinking expression
10943         if the target bb post dominates from bb.
10944         * config/i386/i386.c (memory_address_length): Check existence of base
10945         register before using it.
10946
10947 2009-06-30  Nick Clifton  <nickc@redhat.com>
10948             DJ Delorie  <dj@redhat.com>
10949
10950         * config.sh/lib1funcs.h (FMOVD_WORKS): Only define if
10951         __FMOVD_ENABLED__ is defined.
10952         * config/sh/sh.h
10953         (TARGET_FMOVD): Provide a default definition.
10954         (MASK_FMOVD): Likewise.
10955         (TARGET_CPU_CPP_BUILTINS): Define
10956         __FMOVD_ENABLED__ if TARGET_FMOVD is true.
10957         * config/sh/sh.md (movdf_i4): For alternative 0 use either one or
10958         two fmov instructions depending upon whether TARGET_FMOVD is
10959         enabled.
10960         (split for DF load from memory into register): Also handle
10961         MEMs which consist of REG+DISP addressing.
10962         (split for DF store from register to memory): Likewise.
10963         * config/sh/sh.opt (mfmovd): Remove this switch.
10964         * doc/invoke.texi (-mfmovd): Remove documentation of this switch.
10965         * config/sh/sh.c (sh_override_options): Do not automatically
10966         enable TARGET_MOVD for the SH2A when supporting doubles - leave
10967         that to the -mfmovd command line switch.
10968
10969         * config/sh/sh.c (broken_move): Do not restrict fldi test to only
10970         the SH4 and SH4A.
10971         (fldi_ok): Always allow.
10972         * config/sh/sh.md (movsf_ie): Always use single fp_mode.
10973
10974 2009-06-29  DJ Delorie  <dj@redhat.com>
10975
10976         * doc/install.texi (mep-x-elf): Correct chip's full name.
10977
10978 2009-06-29  H.J. Lu  <hongjiu.lu@intel.com>
10979
10980         * doc/extend.texi: Fix typo.
10981
10982 2009-06-29  Tom Tromey  <tromey@redhat.com>
10983
10984         * dwarf2.h: Remove.
10985         * Makefile.in (DWARF2_H): New variable.
10986         (except.o): Use it.
10987         (dwarf2out.o): Likewise.
10988         (dwarf2asm.o): Likewise.
10989         * config/i386/t-i386: Use DWARF2_H.
10990         * except.c: Include elf/dwarf2.h.
10991         * unwind-dw2.c: Include elf/dwarf2.h.
10992         * dwarf2out.c: Include elf/dwarf2.h.
10993         (dw_loc_descr_struct) <dw_loc_opc>: Now a bitfield.
10994         <dtprel>: New field.
10995         (dwarf_stack_op_name): Don't handle INTERNAL_DW_OP_tls_addr.
10996         (size_of_loc_descr): Likewise.
10997         (output_loc_operands_raw): Likewise.
10998         (output_loc_operands): Handle new dtprel field.
10999         (loc_checksum): Update.
11000         (loc_descriptor_from_tree_1) <VAR_DDECL>: Set dtprel field.
11001         * unwind-dw2-fde-glibc.c: Include elf/dwarf2.h.
11002         * unwind-dw2-fde.c: Include elf/dwarf2.h.
11003         * dwarf2asm.c: Include elf/dwarf2.h.
11004         * unwind-dw2-fde-darwin.c: Include elf/dwarf2.h.
11005         * config/mmix/mmix.c: Include elf/dwarf2.h.
11006         * config/rs6000/darwin-fallback.c: Include elf/dwarf2.h.
11007         * config/xtensa/unwind-dw2-xtensa.c: Include elf/dwarf2.h.
11008         * config/sh/sh.c: Include elf/dwarf2.h.
11009         * config/i386/i386.c: Include elf/dwarf2.h.
11010
11011 2009-06-29  DJ Delorie  <dj@redhat.com>
11012
11013         * config/mep/mep.h (CPP_SPEC): Remove __cop macro.
11014
11015         * doc/extend.texi: Add MeP attributes and pragmas.
11016         * doc/invoke.text: Add MeP Options.
11017         * doc/contrib.texi: Add MeP contribution.
11018         * doc/md.texi: Add MeP constraints.
11019         * doc/install.texi: Add MeP target.
11020
11021 2009-06-30  Anatoly Sokolov  <aesok@post.ru>
11022
11023         * target.h (struct gcc_target): Add frame_pointer_required field.
11024         * target-def.h (TARGET_FRAME_POINTER_REQUIRED): New.
11025         (TARGET_INITIALIZER): Use TARGET_FRAME_POINTER_REQUIRED.
11026         * ira.c (setup_eliminable_regset): Use frame_pointer_required target
11027         hook.
11028         * reload1.c (update_eliminables): (Ditto.).
11029         * gcc/system.h (FRAME_POINTER_REQUIRED): Poison.
11030         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
11031         (INITIAL_FRAME_POINTER_OFFSET): (Ditto.).
11032
11033         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Remove macro.
11034
11035         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Remove macro.
11036         * config/arm/arm.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11037         (arm_frame_pointer_required): New function.
11038
11039         * config/avr/avr.h (FRAME_POINTER_REQUIRED): Remove macro.
11040         * config/avr/avr.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11041         (avr_frame_pointer_required_p): Declare as static.
11042         * config/avr/avr-protos.h (avr_frame_pointer_required_p): Remove.
11043
11044         * config/bfin/bfin.h (FRAME_POINTER_REQUIRED): Remove macro.
11045         * config/bfin/bfin.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11046         (bfin_frame_pointer_required): Make as static, change return type
11047         to bool.
11048         * config/bfin/bfin-protos.h (bfin_frame_pointer_required): Remove.
11049
11050         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Remove macro.
11051         * config/cris/cris.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11052         (cris_frame_pointer_required): New function.
11053
11054         * config/crx/crx.h (FRAME_POINTER_REQUIRED): Remove macro.
11055
11056         * config/fr30/fr30.h (FRAME_POINTER_REQUIRED): Remove macro.
11057         * config/fr30/fr30.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11058         (fr30_frame_pointer_required): New function.
11059
11060         * config/frv/frv.h (FRAME_POINTER_REQUIRED): Remove macro.
11061         * config/frv/frv.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11062         (frv_frame_pointer_required): Make as static, change return type
11063         to bool.
11064         * config/bfin/bfin-protos.h (frv_frame_pointer_required): Remove.
11065
11066         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Remove macro.
11067         * config/i386/i386.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11068         (ix86_frame_pointer_required): Make as static, change return type to
11069         bool.
11070         * config/i386/i386-protos.h (ix86_frame_pointer_required): Remove.
11071
11072         * config/m32c/m32c.h (FRAME_POINTER_REQUIRED): Remove macro.
11073         * config/m32c/m32c.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11074
11075         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Remove macro.
11076
11077         * config/mcore/mcore.h (CAN_ELIMINATE): Remove macro.
11078
11079         * config/mep/mep.h (FRAME_POINTER_REQUIRED): Remove macro.
11080
11081         * config/mips/mips.h (FRAME_POINTER_REQUIRED): Remove macro.
11082         * config/mips/mips.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11083         (mips_frame_pointer_required): Make as static.
11084         * config/mips/mips-protos.h (mips_frame_pointer_required): Remove.
11085
11086         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Remove macro.
11087         * config/mmix/mmix.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11088         (mmix_frame_pointer_required): Mew function.
11089
11090         * config/moxie/moxie.h (FRAME_POINTER_REQUIRED): Remove macro.
11091         * config/moxie/moxie.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11092
11093         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Remove macro.
11094
11095         * config/score/score.h (FRAME_POINTER_REQUIRED): Remove macro.
11096
11097         * config/sh/sh.h (CAN_ELIMINATE): Remove macro.
11098
11099         * config/sparc/sparc.h (FRAME_POINTER_REQUIRED): Remove macro.
11100         (CAN_ELIMINATE): Redefine.
11101         * config/sparc/sparc.c (TARGET_FRAME_POINTER_REQUIRED): Define macro.
11102         (sparc_frame_pointer_required): New function.
11103         (sparc_can_eliminate): New function.
11104         * config/sparc/sparc-protos.h (sparc_can_eliminate): Declare.
11105
11106         * config/vax/vax.h (FRAME_POINTER_REQUIRED): Remove macro.
11107         * config/vax/vax.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11108
11109         * config/xtensa/xtensa.h (FRAME_POINTER_REQUIRED): Remove macro.
11110         * config/xtensa/xtensa.c (TARGET_FRAME_POINTER_REQUIRED): Define.
11111         (xtensa_frame_pointer_required): Make as static, change return type
11112         to bool.
11113         * config/xtensa/xtensa-protos.h (xtensa_frame_pointer_required):
11114         Remove.
11115
11116 2009-06-29  Olatunji Ruwase  <tjruwase@google.com>
11117
11118         * doc/plugins.texi: Document PLUGIN_START_UNIT.
11119         * toplev.c (compile_file): Call PLUGIN_START_UNIT.
11120         * gcc-plugin.h (PLUGIN_START_UNIT): Added new event.
11121         * plugin.c (plugin_event_name): Added PLUGIN_START_UNIT.
11122         (register_callback): Handle PLUGIN_START_UNIT.
11123         (invoke_plugin_callbacks): Handle PLUGIN_START_UNIT.
11124
11125 2009-06-29  Eric Botcazou  <ebotcazou@adacore.com>
11126
11127         * tree.c (process_call_operands): Propagate TREE_READONLY from the
11128         operands.
11129         (PROCESS_ARG): Do not clear TREE_READONLY if CONSTANT_CLASS_P.
11130         (build3_stat): Propagate TREE_READONLY for COND_EXPR.
11131
11132 2009-06-29  Daniel Jacobowitz  <dan@codesourcery.com>
11133
11134         * config/arm/arm.h (REGISTER_MOVE_COST): Increase VFP register
11135         move cost.
11136
11137 2009-06-29  Uros Bizjak  <ubizjak@gmail.com>
11138
11139         * doc/extend.texi (Additional Floating Types): __float128 is also
11140         supported on i386 targets.
11141
11142 2009-06-29  Richard Guenther  <rguenther@suse.de>
11143
11144         PR middle-end/14187
11145         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
11146         flag.
11147         (pt_solutions_same_restrict_base): Declare.
11148         * tree-ssa-structalias.c (struct variable_info): Add is_restrict_var
11149         flag.
11150         (new_var_info): Initialize is_global_var properly for SSA_NAMEs.
11151         (make_constraint_from, make_copy_constraint): Move earlier.
11152         (make_constraint_from_heapvar): New function.
11153         (make_constraint_from_restrict): Likewise.
11154         (handle_lhs_call): Use it.
11155         (find_func_aliases): Use it to track conversions to restrict
11156         qualified pointers.
11157         (struct fieldoff): Add only_restrict_pointers flag.
11158         (push_fields_onto_fieldstack): Initialize it.
11159         (create_variable_info_for): Track global restrict qualified pointers.
11160         (intra_create_variable_infos): Use make_constraint_from_heapvar.
11161         Track restrict qualified pointer arguments.
11162         (set_uids_in_ptset): Use varinfo is_global_var flag.
11163         (find_what_var_points_to): Set the vars_contains_restrict flag.
11164         Always create the points-to solution for sets including restrict tags.
11165         (pt_solutions_same_restrict_base): New function.
11166         * tree-ssa-alias.c (ptr_derefs_may_alias_p): For two restrict
11167         qualified pointers use pt_solutions_same_restrict_base as
11168         additional source for disambiguation.
11169
11170 2009-06-29  Richard Guenther  <rguenther@suse.de>
11171
11172         PR middle-end/38212
11173         * alias.c (find_base_decl): Remove.
11174         (get_deref_alias_set_1): Remove restrict handling.
11175         * c-common.c (c_apply_type_quals_to_decl): Do not set
11176         DECL_POINTER_ALIAS_SET.
11177         * gimplify.c (find_single_pointer_decl_1): Remove.
11178         (find_single_pointer_decl): Likewise.
11179         (internal_get_tmp_var): Remove restrict handling.
11180         (gimple_regimplify_operands): Likewise.
11181         * omp-low.c (expand_omp_atomic_pipeline): Do not set
11182         DECL_POINTER_ALIAS_SET. Use ref-all pointers.
11183         * print-tree.c (print_node): Do not print DECL_POINTER_ALIAS_SET.
11184         * tree.c (restrict_base_for_decl): Remove.
11185         (init_ttree): Do not allocate it.
11186         (make_node_stat): Do not set DECL_POINTER_ALIAS_SET.  Set
11187         LABEL_DECL_UID for label decls.
11188         (copy_node_stat): Do not copy restrict information.
11189         (decl_restrict_base_lookup): Remove.
11190         (decl_restrict_base_insert): Likewise.
11191         (print_restrict_base_statistics): Likewise.
11192         (dump_tree_statistics): Do not call print_restrict_base_statistics.
11193         * tree.h (DECL_POINTER_ALIAS_SET): Remove.
11194         (DECL_POINTER_ALIAS_SET_KNOWN_P): Likewise.
11195         (struct tree_decl_common): Rename pointer_alias_set to label_decl_uid.
11196         (LABEL_DECL_UID): Adjust.
11197         (DECL_BASED_ON_RESTRICT_P): Remove.
11198         (DECL_GET_RESTRICT_BASE): Likewise.
11199         (SET_DECL_RESTRICT_BASE): Likewise.
11200         (struct tree_decl_with_vis): Remove based_on_restrict_p flag.
11201
11202         * config/i386/i386.c (ix86_gimplify_va_arg): Use ref-all pointers
11203         instead of DECL_POINTER_ALIAS_SET.
11204         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11205         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
11206         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
11207
11208 2009-06-29  Richard Guenther  <rguenther@suse.de>
11209
11210         PR tree-optimization/40579
11211         * tree-vrp.c (vrp_evaluate_conditional): Bail out early if
11212         the IL to simplify has constants that overflowed.
11213
11214 2009-06-28  Uros Bizjak  <ubizjak@gmail.com>
11215
11216         PR tree-optimization/40550
11217         * tree-vect-generic.c (expand_vector_operations_1): Compute in
11218         vector_compute_type only when the size of vector_compute_type is
11219         less than the size of type.
11220
11221 2009-06-28  Eric Botcazou  <ebotcazou@adacore.com>
11222
11223         * fold-const.c (contains_label_1): Fix comments.
11224         (contains_label_p): Do not walk trees multiple time.
11225
11226 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11227
11228         * config/i386/i386.h (enum ix86_fpcmp_strategy): New.
11229         * config/i386/i386.md (cbranchxf4, cstorexf4, cbranch<MODEF>4,
11230         cstore<MODEF>4, mov<X87MODEF>cc): Change predicate to
11231         ix86_fp_comparison_operator.
11232         (*fp_jcc_1_mixed, *fp_jcc_1_sse, *fp_jcc_1_387, *fp_jcc_2_mixed,
11233         *fp_jcc_2_sse, *fp_jcc_2_387): Delete
11234         (*fp_jcc_3_387, *fp_jcc_4_387, *fp_jcc_5_387, *fp_jcc_6_387,
11235         *fp_jcc_7_387, *fp_jcc_8<MODEF>_387): Eliminate call to
11236         !ix86_use_fcomi_compare, change ix86_fp_jump_nontrivial_p call
11237         to !TARGET_CMOVE, change predicate to ix86_fp_comparison_operator.
11238         (related splits): Change predicate to ix86_fp_comparison_operator.
11239         * config/i386/predicates.md: Use ix86_trivial_fp_comparison_operator
11240         instead of ix86_fp_comparison_codes.
11241         (ix86_trivial_fp_comparison_operator,
11242         ix86_fp_comparison_operator): New.
11243         * config/i386/i386-protos.h (ix86_fp_comparison_strategy): New.
11244         (ix86_expand_compare): Eliminate last two parameters.
11245         (ix86_fp_jump_nontrivial_p): Kill.
11246         * config/i386/i386.c (put_condition_code): Eliminate call to
11247         ix86_fp_comparison_codes and subsequent assertion.
11248         (ix86_fp_comparison_codes): Eliminate.
11249         (ix86_fp_swap_condition): New.
11250         (ix86_fp_comparison_arithmetics_cost, ix86_fp_comparison_fcomi_cost,
11251         ix86_fp_comparison_sahf_cost, ix86_use_fcomi_compare): Consolidate
11252         into ix86_fp_comparison_cost and ix86_fp_comparison_strategy.
11253         (ix86_prepare_fp_compare_args): Use ix86_fp_comparison_strategy
11254         and ix86_fp_swap_condition.
11255         (ix86_expand_fp_compare): Eliminate code for second jump/bypass jump.
11256         Use ix86_fp_comparison_strategy.
11257         (ix86_expand_compare): Likewise.  Eliminate last two arguments.
11258         (ix86_fp_jump_nontrivial_p): Eliminate.
11259         (ix86_expand_branch): Treat SFmode/DFmode/XFmode as simple.  Adjust
11260         call to ix86_expand_compare.
11261         (ix86_split_fp_branch, ix86_expand_setcc,
11262         ix86_expand_carry_flag_compare, ix86_expand_int_movcc,
11263         ix86_expand_fp_movcc): Eliminate code for second jump/bypass jump.
11264
11265 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11266
11267         * config/arm/arm.c (arm_final_prescan_ins): Eliminate code
11268         related to jump_clobbers.
11269         * config/arm/arm.md (conds): Remove jump_clob case.
11270         (addsi3_cbranch, addsi3_cbranch_scratch, subsi3_cbranch, two
11271         splits): Change comparison_operator to arm_comparison_operator.
11272         (*arm_buneq, *arm_bltgt, *arm_buneq_reversed, *arm_bltgt_reversed):
11273         Eliminate.
11274
11275 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11276
11277         * dojump.c (do_compare_rtx_and_jump): Try swapping the
11278         condition for floating point modes.
11279         * expmed.c (emit_store_flag_1): Move here a bigger part
11280         of emit_store_flag.
11281         (emit_store_flag): Try swapping the condition for floating point
11282         modes.
11283         * optabs.c (emit_cmp_and_jump_insns): Cope with constant op0 better.
11284
11285 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11286
11287         * expr.c (expand_expr_real_1): Just use do_store_flag.
11288         (do_store_flag): Drop support for TRUTH_NOT_EXPR.  Use
11289         emit_store_flag_force.
11290         * expmed.c (emit_store_flag_force): Copy here trick
11291         previously in expand_expr_real_1.  Try reversing the comparison.
11292         (emit_store_flag_1): Work if target is NULL.
11293         (emit_store_flag): Work if target is NULL, using the result mode
11294         from the comparison.  Use split_comparison, restructure final part
11295         to simplify conditionals.
11296
11297 2009-06-28  Paolo Bonzini  <bonzini@gnu.org>
11298
11299         * builtins.c (expand_errno_check): Use do_compare_rtx_and_jump.
11300         * dojump.c (do_jump): Change handling of floating-point
11301         ops to use just do_compare_and_jump.
11302         (split_comparison): New.
11303         (do_compare_rtx_and_jump): Add here logic coming previously
11304         in do_jump, using split_comparison.
11305
11306 2009-06-27  H.J. Lu  <hongjiu.lu@intel.com>
11307
11308         PR target/40489
11309         * config/ia64/ia64.c (ia64_reorg): Check NULL insn.
11310
11311 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11312
11313         * tree-ssa-alias.c: Fix unintentional commit.
11314
11315 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11316
11317         * passes.c (execute_one_pass): Fix unintentional commit.
11318
11319 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11320
11321         * df-problems.c (df_set_seen, df_unset_seen): Delete.
11322         (df_rd_local_compute, df_md_local_compute): Inline them.
11323
11324         (df_md_scratch): New.
11325         (df_md_alloc, df_md_free): Allocate/free it.
11326         (df_md_local_compute): Only include live registers in init.
11327         (df_md_transfer_function): Prune the in-set computed by
11328         the confluence function, and the gen-set too.
11329
11330 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11331
11332         PR rtl-optimization/26854
11333         * timevar.def: Remove TV_DF_RU, add TV_DF_MD.
11334         * df-problems.c (df_rd_add_problem): Fix comment.
11335         (df_md_set_bb_info, df_md_free_bb_info, df_md_alloc,
11336         df_md_simulate_artificial_defs_at_top,
11337         df_md_simulate_one_insn, df_md_bb_local_compute_process_def,
11338         df_md_bb_local_compute, df_md_local_compute, df_md_reset,
11339         df_md_transfer_function, df_md_init, df_md_confluence_0,
11340         df_md_confluence_n, df_md_free, df_md_top_dump, df_md_bottom_dump,
11341         problem_MD, df_md_add_problem): New.
11342         * df.h (DF_MD, DF_MD_BB_INFO, struct df_md_bb_info, df_md,
11343         df_md_get_bb_info): New.
11344         (DF_LAST_PROBLEM_PLUS1): Adjust.
11345
11346         * Makefile.in (fwprop.o): Include domwalk.h.
11347         * fwprop.c: Include domwalk.h.
11348         (reg_defs, reg_defs_stack): New.
11349         (bitmap_only_bit_between): Remove.
11350         (process_defs): New.
11351         (process_uses): Use reg_defs and local_md instead of
11352         bitmap_only_bit_between and local_rd.
11353         (single_def_use_enter_block): New, from build_single_def_use_links.
11354         (single_def_use_leave_block): New.
11355         (build_single_def_use_links): Remove code moved to
11356         single_def_use_enter_block, invoke domwalk.
11357         (use_killed_between): Adjust comment.
11358
11359 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11360
11361         * bitmap.h (bitmap_ior_and_into): New.
11362         * bitmap.c (bitmap_ior_and_into): New.
11363
11364 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11365
11366         * domwalk.h (struct dom_walk_data): Remove all callbacks except
11367         before_dom_children_before_stmts and after_dom_children_after_stmts.
11368         Rename the two remaining callbacks to just before_dom_children and
11369         after_dom_children. Remove other GIMPLE statement walking bits.
11370         * domwalk.c (walk_dominator_tree): Remove now unsupported features.
11371         * graphite.c: Do not include domwalk.h.
11372         * tree-into-ssa.c (interesting_blocks): New global.
11373         (struct mark_def_sites_global_data): Remove it and names_to_rename.
11374         (mark_def_sites, rewrite_stmt, rewrite_add_phi_arguments,
11375         rewrite_update_stmt, rewrite_update_phi_arguments): Simplify
11376         now that they're not domwalk callbacks.
11377         (rewrite_initialize_block): Rename to...
11378         (rewrite_enter_block): ... this, place after called functions.  Test
11379         interesting_blocks, call rewrite_stmt and rewrite_add_phi_arguments.
11380         (rewrite_finalize_block): Rename to...
11381         (rewrite_leave_block): ... this, place after called functions.
11382         (rewrite_update_init_block): Rename to...
11383         (rewrite_update_enter_block): ... this, place after called functions.
11384         Test interesting_blocks, call rewrite_update_stmt and
11385         rewrite_update_phi_arguments.
11386         (rewrite_update_fini_block): Rename to...
11387         (rewrite_leave_block): ... this, place after called functions.
11388         (rewrite_blocks): Remove last argument, simplify initialization of
11389         walk_data.
11390         (mark_def_sites_initialize_block): Rename to...
11391         (mark_def_sites_block): ... this, call mark_def_sites.
11392         (mark_def_sites_blocks): Remove argument, simplify initialization of
11393         walk_data.
11394         (rewrite_into_ssa): Adjust for interesting_blocks_being a global.
11395         (update_ssa): Likewise.
11396         * tree-ssa-dom.c (optimize_stmt): Simplify now that it's not a domwalk
11397         callback.
11398         (tree_ssa_dominator_optimize): Simplify initialization of walk_data.
11399         (dom_opt_initialize_block): Rename to...
11400         (dom_opt_enter_block): ... this, place after called functions.  Walk
11401         statements here, inline propagate_to_outgoing_edges.
11402         (dom_opt_finalize_block): Rename to...
11403         (dom_opt_leave_block): ... this, place after called functions.
11404         * tree-ssa-dse.c (dse_optimize_stmt): Simplify now that it's not a
11405         domwalk callback.
11406         (dse_enter_block, dse_record_phi): New.
11407         (dse_record_phis): Delete.
11408         (dse_finalize_block): Rename to...
11409         (dse_leave_block): ... this.
11410         (tree_ssa_dse): Simplify initialization of walk_data.
11411         * tree-ssa-loop-im.c (determine_invariantness, move_computations):
11412         Adjust initialization of walk_data.
11413         * tree-ssa-loop-unswitch.c: Do not include domwalk.h.
11414         * tree-ssa-loop-phiopt.c (get_non_trapping):
11415         Adjust initialization of walk_data.
11416         * tree-ssa-loop-threadedge.c: Do not include domwalk.h.
11417         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Simplify now that
11418         it's not a domwalk callback.
11419         (uncprop_initialize_block): Rename to...
11420         (dse_enter_block): ... this, call uncprop_into_successor_phis.
11421         (dse_finalize_block): Rename to...
11422         (dse_leave_block): ... this.
11423         (tree_ssa_uncprop): Simplify initialization of walk_data.
11424         * Makefile.in: Adjust dependencies.
11425
11426 2009-06-27  Richard Earnshaw  <rearnsha@arm.com>
11427
11428         * arm.md (casesi): Fix test for Thumb1.
11429         (thumb1_casesi_internal_pic): Likewise.
11430         (thumb1_casesi_dispatch): Likewise.
11431
11432 2009-06-26  Daniel Gutson  <dgutson@codesourcery.com>
11433
11434         * config/arm/arm-cores.def: Added core cortex-m0.
11435         * config/arm/arm-tune.md: Regenerated.
11436         * doc/invoke.texi: Added entry for cpu ARM Cortex-M0.
11437
11438 2009-06-26  DJ Delorie  <dj@redhat.com>
11439
11440         * config/mep/mep.opt (mfar): Remove -mfar as it doesn't do anything.
11441
11442         * config/mep/mep.c (mep_bundle_insns): Account for the fact that
11443         the scheduler doesn't tag jump insns.
11444
11445 2009-06-26  H.J. Lu  <hongjiu.lu@intel.com>
11446
11447         * c-decl.c (merge_decls): Re-indent.
11448
11449 2009-06-26  Janis Johnson  <janis187@us.ibm.com>
11450
11451         PR c/39902
11452         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
11453         Special-case decimal float constants.
11454
11455 2009-06-26  Richard Henderson  <rth@redhat.com>
11456
11457         * function.h (struct function): Add cannot_be_copied_reason,
11458         and cannot_be_copied_set.
11459         * tree-inline.c (has_label_address_in_static_1): Rename from
11460         inline_forbidden_p_2; don't set inline_forbidden_reason here.
11461         (cannot_copy_type_1): Rename from inline_forbidden_p_op; likewise
11462         don't set inline_forbidden_reason.
11463         (copy_forbidden): New function, split out of inline_forbidden_p.
11464         (inline_forbidden_p_stmt): Don't check for nonlocal labels here.
11465         (inline_forbidden_p): Use copy_forbidden.
11466         (tree_versionable_function_p): Likewise.
11467         (inlinable_function_p): Merge into tree_inlinable_function_p.
11468         (tree_function_versioning): Remap cfun->nonlocal_goto_save_area.
11469         * ipa-cp.c (ipcp_versionable_function_p): New function.
11470         (ipcp_cloning_candidate_p): Use it.
11471         (ipcp_node_modifiable_p): Likewise.
11472
11473 2009-06-26  Olatunji Ruwase  <tjruwase@google.com>
11474
11475         * builtins.c (expand_builtin_alloca): Handle builtin alloca
11476         that is marked not to be inlined. Remove flag_mudflap use.
11477         * tree-mudflap.c: Rename mf_xform_derefs to mf_xfrom_statements.
11478         (mf_xform_statements): Mark builtin alloca calls as un-inlineable.
11479
11480 2009-06-26  Steve Ellcey  <sje@cup.hp.com>
11481
11482         PR bootstrap/40338
11483         * config/pa/t-pa-hpux10 (TARGET_LIBGCC2_CFLAGS): Add -frandom-seed.
11484         * config/pa/t-pa-hpux11 (TARGET_LIBGCC2_CFLAGS): Ditto.
11485
11486 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
11487
11488         * config/i386/mingw-tls.c (__mingwthr_key_dtor): Remove for none
11489         shared libgcc.
11490         (__mingwthr_remove_key_dtor): Likewise.
11491
11492 2009-06-26  Richard Guenther  <rguenther@suse.de>
11493
11494         * tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.
11495
11496 2009-06-26  Steven Bosscher  <steven@gcc.gnu.org>
11497
11498         PR middle-end/40525
11499         * ifcvt.c (dead_or_predicable): If predicating MERGE_BB fails,
11500         try the non-cond_exec path also.
11501
11502 2009-06-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11503
11504         PR target/40468
11505         * pa.c (branch_to_delay_slot_p, branch_needs_nop_p): New functions.
11506         (output_cbranch): Use new functions.
11507         (output_lbranch, output_bb, output_bvb, output_dbra, output_movb):
11508         Likewise.
11509
11510 2009-06-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
11511             Pat Haugen  <pthaugen@us.ibm.com>
11512             Revital Eres <ERES@il.ibm.com>
11513
11514         * config/rs6000/rs6000.c (print_operand): Correct lossage message
11515         for %c error.  Add %x support to print VSX registers as a unified
11516         register set, instead of separate float and altivec registers.
11517         Switch to use VECTOR_MEM_ALTIVEC_P instead of TARGET_ALTIVEC for
11518         %y case, and add support for VSX pre-modify addresses.
11519         (output_toc): Add assert for CONST containing an integer constant
11520         in the PLUS case.
11521         (rs6000_adjust_cost): Add POWER7 support.
11522         (insn_must_be_first_in_group): Ditto.
11523         (insn_must_be_last_in_group): Ditto.
11524         (rs6000_emit_popcount): Ditto.
11525         (rs6000_vector_mode_supported_p): Ditto.
11526
11527         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_class):
11528         Change some of the functions called by macros to being called
11529         through a pointer, so debug functions can be inserted if
11530         -mdebug=addr or -mdebug=cost.
11531         (rs6000_preferred_reload_class_ptr): Ditto.
11532         (rs6000_secondary_reload_class_ptr): Ditto.
11533         (rs6000_secondary_memory_needed_ptr): Ditto.
11534         (rs6000_cannot_change_mode_class_ptr): Ditto.
11535         (rs6000_secondary_reload_inner): Ditto.
11536         (rs6000_legitimize_reload_address): Ditto.
11537         (rs6000_legitimize_reload_address_ptr): Ditto.
11538         (rs6000_mode_dependent_address): Ditto.
11539         (rs6000_mode_dependent_address_ptr): Ditto.
11540
11541         * config/rs6000/rs6000.c (reg_offset_addressing_ok_p): New
11542         function to return true if the mode allows reg + integer
11543         addresses.
11544         (virtual_stack_registers_memory_p): New function to return true if
11545         the address refers to a virtual stack register.
11546         (rs6000_legitimate_offset_address_p): Move code to say whether a
11547         mode supports reg+int addressing to reg_offset_addressing_ok_p and
11548         call it.
11549         (rs6000_legitimate_address_p): Add checks for modes that only can
11550         do reg+reg addressing.  Start adding VSX support.
11551         (rs6000_legitimize_reload_address): Ditto.
11552         (rs6000_legitimize_address): Ditto.
11553         (rs6000_debug_legitimate_address_p): New debug functions for
11554         -mdebug=addr and -mdebug=cost.
11555         (rs6000_debug_rtx_costs): Ditto.
11556         (rs6000_debug_address_costs): Ditto.
11557         (rs6000_debug_adjust_cost): Ditto.
11558         (rs6000_debug_legitimize_address): Ditto.
11559         (rs6000_legitimize_reload_address_ptr): Point to call normal
11560         function or debug function.  Make functions called via pointer
11561         static.
11562         (rs6000_mode_dependent_address_ptr): Ditto.
11563         (rs6000_secondary_reload_class_ptr): Ditto.
11564         (rs6000_hard_regno_mode_ok): Add preliminary VSX support.
11565         (rs6000_emit_move): Add -mdebug=addr support.  Change an abort
11566         into a friendlier error.
11567         (rs6000_init_builtins): Add initial VSX support.
11568         (rs6000_adjust_cost): Fix some spacing issues.
11569
11570         * config/rs6000/rs6000.h (enum reg_class): Add VSX_REGS.
11571         (REG_CLASS_NAMES): Ditto.
11572         (REG_CLASS_CONTENTS): Ditto.
11573         (PREFERRED_RELOAD_CLASS): Move from a macro to calling through a
11574         pointer, to add -mdebug=addr support.
11575         (CANNOT_CHANGE_MODE_CLASS): Ditto.
11576         (SECONDARY_RELOAD_CLASS): Call through a pointer to add
11577         -mdebug=addr support.
11578         (LEGITIMIZE_RELOAD_ADDRESS): Ditto.
11579         (GO_IF_MODE_DEPENDENT_ADDRESS): Ditto.
11580         (enum rs6000_builtins): Add RS6000_BUILTIN_BSWAP_HI.
11581
11582         * config/rs6000/rs6000.md (bswaphi*): Add support for swapping
11583         16-bit values.
11584         (bswapsi*): Set attribute types for load/store.  Add combiner
11585         patterns to eliminate zero extend on 64-bit.
11586         (bswapdi*): Add support for swapping 64-bit values.  Use ldbrx and
11587         stdbrx if the hardware supports those instructions.
11588
11589 2009-06-25  Ian Lance Taylor  <iant@google.com>
11590
11591         * doc/invoke.texi (Option Summary): Mention -static-libstdc++.
11592         (Link Options): Document -static-libstdc++.
11593
11594 2009-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11595
11596         PR target/38731
11597         * config/rs6000/rs6000.c (LOCAL_ALIGNMENT): Redefine to just use
11598         DATA_ALIGNMENT instead.
11599
11600 2009-06-25  Richard Guenther  <rguenther@suse.de>
11601
11602         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Disambiguate
11603         indirect references against the callused/escaped solutions.
11604         (call_may_clobber_ref_p_1): Likewise.
11605
11606 2009-06-25  Martin Jambor  <mjambor@suse.cz>
11607
11608         PR tree-optimization/40493
11609         * tree-sra.c (sra_modify_expr): Correct BIT_FIELD_REF argument numbers.
11610         (enum unscalarized_data_handling): New type.
11611         (handle_unscalarized_data_in_subtree): Return what has been done.
11612         (load_assign_lhs_subreplacements): Handle left flushes differently.
11613         (sra_modify_assign): Use unscalarized_data_handling, simplified
11614         condition determining whether to remove the statement.
11615
11616 2009-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
11617
11618         * doc/plugins.texi (Building GCC plugins): Correct typo in Makefile
11619         excerpt - @ should be doubled for texinfo.
11620
11621 2009-06-24  Ian Lance Taylor  <iant@google.com>
11622
11623         * config/arc/arc.c: Include "df.h".
11624         (arc_attribute_table): Make static.  Move higher in file.
11625         (arc_address_cost): Call SMALL_INT on INTVAL, not rtx.
11626         (output_shift): Initialize n later to avoid warning.
11627         * config/arm/arm.c (arm_attribute_table): Make static.  Move
11628         higher in file.
11629         * config/avr/avr.c (avr_attribute_table): Make static.  Move
11630         higher in file.
11631         (reg_class_tab): Change array type from int to enum reg_class.
11632         (avr_jump_mode): Change GET_MODE to GET_CODE when checking for
11633         LABEL_REF.
11634         (out_tsthi, ashlhi3_out): Don't use AS2 with "or" or "and".
11635         (lshrhi3_out): Likewise.
11636         (class_likely_spilled_p): Change return type to bool.
11637         (avr_rtx_costs): Use local code variable with enum type.
11638         * config/avr/avr.md (movmemhi): Use add_reg_note.
11639         (andhi3, andsi3): Don't use AS2 with "and".
11640         (iorhi3, iorsi3): Don't use AS2 with "or".
11641         * config/avr/avr-protos.h (class_likely_spilled_p): Update declaration.
11642         * config/crx/crx.c: Include "df.h".
11643         (crx_attribute_table): Make static.
11644         * config/m32r/m32r.c: Include "df.h".
11645         (m32r_attribute_table): Make static.  Move higher in file.
11646         (pop): Use add_reg_note.
11647         (block_move_call): Change 0 to LCT_NORMAL in function call.
11648         * config/m32r/m32r.md (movsi_insn): Remove unused local value.
11649         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Likewise.
11650         * config/m32r/m32r-protos.h (m32r_compute_function_type): Always
11651         declare, not just when TREE_CODE is defined.
11652         * config/m68hc11/m68hc11.c: Include "expr.h".
11653         (m68hc11_attribute_table): Make static.  Move higher in file.
11654         (m68hc11_small_indexed_indirect_p): Change 0 to VOIDmode in
11655         function call.
11656         (m68hc11_register_indirect_p): Likewise.
11657         (m68hc11_function_arg_padding): Change return type to enum
11658         direction.
11659         (emit_move_after_reload): Use add_reg_note.
11660         (m68hc11_emit_logical): Change code parameter to enum rtx_code.
11661         (m68hc11_split_logical): Likewise.
11662         (m68hc11_rtx_costs): Add local code_and outer_code variables with
11663         enum type.
11664         * config/m68hc11/predicates.md (reg_or_some_mem_operand): Change 0
11665         to VOIDmode in function call.
11666         * config/m68hc11/m68hc11-protos.h: Don't check TREE_CODE to see if
11667         tree is defined.
11668         (m68hc11_split_logical): Update declaration.
11669         (m68hc11_function_arg_padding): Update declaration.
11670         * config/mcore/mcore.c (regno_reg_class): Change form array of int
11671         to array of enum reg_class.
11672         (mcore_attribute_table): Make static.  Move higher in file.
11673         (mcore_rtx_costs): Add cast to enum type.
11674         * config/mcore/mcore.h (regno_reg_class): Update declaration.
11675         (GO_IF_LEGITIMATE_INDEX): Add cast to avoid warning.
11676         * config/sh/sh.c (sh_attribute_table): Make static.  Move higher
11677         in file.
11678         * config/sh/predicates.md (trapping_target_operand): Rename and to
11679         and_expr.
11680         * config/sparc/sparc.c (sparc_attribute_table): Make static.  Move
11681         higher in file.
11682         * config/spu/spu.c (spu_attribute_table): Make static.  Move
11683         higher in file.
11684         * config/v850/v850.c (v850_attribute_table): Make static.  Move
11685         higher in file.
11686         (v850_rtx_costs): Use local code with enum type.
11687         (expand_epilogue): Add cast.
11688         * config/v850/v850-c.c (ghs_pragma_section): Initialize repeat.
11689
11690 2009-06-23  Takashi YOSHII  <yoshii.takashi@renesas.com>
11691
11692         PR target/40515
11693         * doc/invoke.texi (SH Options): Document -m2a, -m2a-single,
11694         -m2a-single-only and -m2a-nofpu.
11695         * config/sh/sh.opt: Document m2a generates FPU code.
11696
11697 2009-06-24  Anatoly Sokolov  <aesok@post.ru>
11698
11699         * defaults.h (CAN_ELIMINATE): Provide default.
11700         * doc/tm.texi (CAN_ELIMINATE): Revise documentation.
11701         * config/alpha/alpha.h (CAN_ELIMINATE): Delete.
11702         * config/m32c/m32c.h (CAN_ELIMINATE): Delete.
11703         * config/spu/spu.h (CAN_ELIMINATE): Delete.
11704         * config/xtensa/xtensa.h (CAN_ELIMINATE): Delete.
11705         * config/moxie/moxie.h (CAN_ELIMINATE): Delete.
11706         * config/cris/cris.h (CAN_ELIMINATE): Delete.
11707         * config/mn10300/mn10300.h (CAN_ELIMINATE): Delete.
11708         * config/pa/pa64-linux.h (CAN_ELIMINATE): Delete.
11709         * config/mmix/mmix.h (CAN_ELIMINATE): Delete.
11710
11711 2009-06-24  DJ Delorie  <dj@redhat.com>
11712
11713         * mep-ext-cop.cpu: Fix copyright notice.
11714         * mep-default: Fix copyright notice.
11715         * mep-core: Fix copyright notice.
11716         * mep: Fix copyright notice.
11717         * mep-ivc2: Fix copyright notice.
11718         * mep-c5: Fix copyright notice.
11719
11720 2009-06-24  Denis Chertykov  <chertykov@gmail.com>
11721
11722         * doc/contrib.texi (Contributors):
11723
11724 2009-06-24  Andreas Krebbel  <krebbel1@de.ibm.com>
11725
11726         PR middle-end/40501
11727         * tree-ssa-math-opts.c (execute_optimize_bswap): Convert the bswap
11728         src and dst operands if necessary.
11729
11730 2009-06-23  DJ Delorie  <dj@redhat.com>
11731
11732         Add MeP port.
11733         * config.gcc: Add mep support.
11734         * recog.c: Resurrect validate_replace_rtx_subexp().
11735         * recog.h: Likewise.
11736         * config/mep/: Add new port:
11737         * config/mep/constraints.md: New file.
11738         * config/mep/default.h: New file.
11739         * config/mep/intrinsics.h: New file.
11740         * config/mep/intrinsics.md: New file.
11741         * config/mep/ivc2-template.h: New file.
11742         * config/mep/mep-c5.cpu: New file.
11743         * config/mep/mep-core.cpu: New file.
11744         * config/mep/mep-default.cpu: New file.
11745         * config/mep/mep-ext-cop.cpu: New file.
11746         * config/mep/mep-intrin.h: New file.
11747         * config/mep/mep-ivc2.cpu: New file.
11748         * config/mep/mep-lib1.asm: New file.
11749         * config/mep/mep-lib2.c: New file.
11750         * config/mep/mep-pragma.c: New file.
11751         * config/mep/mep-protos.h: New file.
11752         * config/mep/mep-tramp.c: New file.
11753         * config/mep/mep.c: New file.
11754         * config/mep/mep.cpu: New file.
11755         * config/mep/mep.h: New file.
11756         * config/mep/mep.md: New file.
11757         * config/mep/mep.opt: New file.
11758         * config/mep/predicates.md: New file.
11759         * config/mep/t-mep: New file.
11760
11761 2009-06-23  Ian Lance Taylor  <iant@google.com>
11762
11763         * configure.ac: Invoke AC_PROG_CXX.  Separate C specific warnings
11764         from loose_warn into c_loose_warn and from strict_warn into
11765         c_strict_warn.  Set and substitute warn_cxxflags.  Check for
11766         --enable-build-with-cxx.  Set and substitute
11767         ENABLE_BUILD_WITH_CXX.  Set and substitute HOST_LIBS.
11768         * Makefile.in (CXXFLAGS): New variable.
11769         (C_LOOSE_WARN, C_STRICT_WARN): New variables.
11770         (GCC_WARN_CFLAGS): Add $(C_LOOSE_WARN).  Add $(C_STRICT_WARN) if
11771         the default is the same as $(STRICT_WARN).
11772         (GCC_WARN_CXXFLAGS, WARN_CXXFLAGS): New variables.
11773         (CXX): New variable.
11774         (COMPILER): New value if ENABLE_BUILD_WITH_CXX.
11775         (COMPILER_FLAGS, LINKER, LINKER_FLAGS): Likewise.
11776         (ALL_COMPILERFLAGS, ALL_LINKERFLAGS): Likewise.
11777         (HOST_LIBS): New variable.
11778         (GCC_CFLAGS): Add $(C_LOOSE_WARN).
11779         (ALL_CXXFLAGS): New variable.
11780         (LIBS, BACKENDLIBS): Add $(HOST_LIBS).
11781         * doc/install.texi (Configuration): Document
11782         --enable-build-with-cxx, --with-stage1-ldflags,
11783         --with-stage1-libs, --with-boot-ldflags, --with-boot-libs.
11784         * configure: Rebuild.
11785
11786 2009-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11787
11788         * config/arm/arm.c (arm_override_options): Fix braces and formatting
11789         from previous commit.
11790
11791 2009-06-23  Ian Lance Taylor  <iant@google.com>
11792
11793         * Makefile.in ($(out_object_file)): Depend upon $(DF_H).
11794
11795 2009-06-23  Ian Lance Taylor  <iant@google.com>
11796
11797         * reload.c (alternative_allows_const_pool_ref): Mark mem parameter
11798         with ATTRIBUTE_UNUSED.
11799
11800 2009-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11801             Pat Haugen  <pthaugen@us.ibm.com>
11802             Revital Eres  <eres@il.ibm.com>
11803
11804         * config.in (HAVE_AS_POPCNTD): Add default definition.
11805         (HAVE_AS_LWSYNC): Ditto.
11806
11807         * configure.ac (gcc_cv_as_powerpc_mfpgpr): Provide real binutils
11808         release number.
11809         (gcc_cv_as_powerpc_cmpb): Ditto.
11810         (gcc_cv_as_powerpc_dfp): Ditto.
11811         (gcc_cv_as_powerpc_vsx): Ditto.
11812         (gcc_cv_as_powerpc_popcntd): Add feature test for assembler
11813         supporting the popcntd/lwsync instructions.
11814         (gcc_cv_as_powerpc_lwsync): Ditto.
11815         * configure: Regenerate.
11816
11817         * config/rs6000/aix53.h (ASM_CPU_SPEC): Add support for
11818         -mcpu=native and -mcpu=power7.
11819         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
11820
11821         * config/rs6000/linux64.opt (-mprofile-kernel): Move switch to be
11822         a variable instead of a mask to reduce the number of mask bits.
11823         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
11824         (-mbit-word): Ditto.
11825         (-mregnames): Ditto.
11826         * config/rs6000/rs6000.opt (-mupdate): Ditto.
11827         (-mfused-madd): Ditto.
11828
11829         * config/rs6000/rs6000.opt (-mpopcntd): New switch for non-VSX ISA
11830         2.06 instructions.
11831         (-mvsx): New switch for VSX instructions.
11832         (-misel): Move from a variable to a mask to allow it to be set by
11833         -mcpu=.
11834
11835         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_nregs): Change
11836         function declaration to an array declaration.
11837         (rs6000_hard_regno_nregs): New external array declaration.
11838
11839         * config/rs6000/t-rs6000 (MD_INCLUDES): Define, add all of the .md
11840         files included by rs6000.md.
11841
11842         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11843         SET_PROFILE_KERNEL macro to reset the -mprofile-kernel switch.
11844
11845         * config/rs6000/rs6000.c (rs6000_isel): Delete, -misel moved to be
11846         a target mask.
11847         (rs6000_debug_reg): New -mdebug= variables.
11848         (rs6000_debug_addr): Ditto.
11849         (rs6000_debug_cost): Ditto.
11850         (rs6000_pmode): New variable to hold Pmode.
11851         (rs6000_pointer_size): New variable to hold POINTER_SIZE.
11852         (rs6000_class_max_nregs): New array to hold CLASS_MAX_NREGS
11853         calculated at compiler start.
11854         (rs6000_hard_regno_nregs): Change function to an array which holds
11855         HARD_REGNO_NREGS calculated at compiler start.
11856         (rs6000_explicit_options): Delete isel field.
11857         (rs6000_vector_unit): New array to hold which vector unit
11858         supports arithmetic options for a given type.
11859         (rs6000_vector_mem): New array to hold which vector unit supports
11860         memory reference operations for a given type.
11861         (rs6000_vector_align): New array to given the alignment of each
11862         vector type.
11863         (power7_cost): New basic costs for power7.
11864         (SET_PROFILE_KERNEL): New macro for resetting -mprofile-kernel.
11865         (rs6000_hard_regno_nregs_internal): New function, moved from
11866         HARD_REGNO_NREGS, to calculate the number of registers each hard
11867         register takes for each type.
11868         (rs6000_debug_reg_print): New function for -mdebug=reg support.
11869         (rs6000_debug_vector_unit): New array, map rs6000_vector to string.
11870         (+rs6000_init_hard_regno_mode_ok): New function, move calculation
11871         of HARD_REGNO_NREGS, CLASS_MAX_NREGS, REGNO_REG_CLASS, and vector
11872         unit information here so it is calculated once at compiler startup
11873         time.
11874         (rs6000_override_options): Make -misel a target mask.  Add more
11875         power7 target masks.  Setup Pmode and POINTER_SIZE.  Add initial
11876         VSX support.  Add support for -mdebug=reg, -mdebug=addr, and
11877         -mdebug=cost.
11878         (POWERPC_MASKS): Add MASK_POPCNTD, MASK_VSX, and MASK_ISEL.
11879         (rs6000_handle_option): Move -misel from variable to target mask.
11880         (rs6000_builtin_mask_for_load): Add VSX support.
11881         (rs6000_conditional_register_usage): Ditto.
11882         (USE_ALTIVEC_FOR_ARG_P): Ditto.
11883         (function_arg_boundary): Ditto.
11884         (rs6000_expand_builtin): Ditto.
11885         (def_builtin): Make abort message a little friendlier.
11886         (rs6000_emit_int_cmove): Add support for 64-bit isel.
11887
11888         * config/rs6000/rs6000.h (ASM_CPU_POWER7_SPEC): Depend on the
11889         assembler support the popcntd instruction instead of a vsx
11890         instruction to enable power7 support.
11891         (ASM_CPU_SPEC): Add support for -mcpu=native and -mcpu=power7.
11892         (EXTRA_SPECS): Add ASM_CPU_NATIVE_SPEC to allow passing the right
11893         option to the assembler if -mcpu=native.
11894         (ASM_CPU_NATIVE_SPEC): Ditto.
11895         (TARGET_POPCNTD): If assembler doesn't support popcntd, turn off
11896         ISA 2.06 features.
11897         (TARGET_LWSYNC_INSTRUCTION): Define whether it is safe to issue
11898         the lwsync instruction.
11899         (enum processor_type): Add PROCESSOR_POWER7.
11900         (rs6000_debug_reg): New -mdebug= options.
11901         (rs6000_debug_addr): Ditto.
11902         (rs6000_debug_cost): Ditto.
11903         (rs6000_isel): Delete.
11904         (enum rs6000_vector): New enum to say what vector unit we have.
11905         (VECTOR_UNIT_*): New macros to say which vector unit has
11906         arithmetic operations for a given type.
11907         (VECTOR_MEM_*): New macros to say which vector unit has memory
11908         operations for a given type.
11909         (TARGET_LDBRX): Whether the machine supports the ldbrx
11910         instruction.
11911         (TARGET_ISEL): Delete, -misel moved to be a mask.
11912         (TARGET_ISEL64): New macro for 64-bit isel support.
11913         (UNITS_PER_VSX_WORD): New macro.
11914         (POINTER_SIZE): Move to be an external variable, rather than
11915         calculating whether we are generating 32 ot 64-bit code.
11916         (Pmode): Ditto.
11917         (STACK_BOUNDARY): Add VSX support.
11918         (LOCAL_ALIGNMENT): Ditto.
11919         (SLOW_UNALIGNED_ACCESS): Ditto.
11920         (VSX_REGNO_P): New macro for VSX support.
11921         (VFLOAT_REGNO_P): Ditto.
11922         (VINT_REGNO_P): Ditto.
11923         (VLOGICAL_REGNO_P): Ditto.
11924         (VSX_VECTOR_MODE): Ditto.
11925         (VSX_SCALAR_MODE): Ditto.
11926         (VSX_MODE): Ditto.
11927         (VSX_MOVE_MODE): Ditto.
11928         (VSX_REG_CLASS_P): Ditto.
11929         (HARD_REGNO_NREGS): Instead of calling a function, use an array
11930         lookup.
11931         (UNITS_PER_SIMD_WORD): Add VSX support.
11932         (MODES_TIEABLE_P): Ditto.
11933         (STARTING_FRAME_OFFSET): Ditto.
11934         (STACK_DYNAMIC_OFFSET): Ditto.
11935         (EPILOGUE_USES): Ditto.
11936         (REGNO_REG_CLASS): Move to array lookup.
11937         (CLASS_MAX_NREGS): Ditto.
11938         (rs6000_vector_reg_class): Add declaration.
11939         (ADDITIONAL_REGISTER_NAMES): Add VSX names for the registers that
11940         overlap with the floating point and Altivec registers.
11941
11942         * config/rs6000/e500.h (CHECK_E500_OPTIONS): Disallow -mvsx.
11943
11944         * config/rs6000/driver-rs6000.c (asm_names): New static array to
11945         give the appropriate asm switches if -mcpu=native.
11946         (host_detect_local_cpu): Add support for "asm".
11947         (host_detect_local_cpu): Follow GNU code guidelines for name.
11948
11949         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Move
11950         -mbit-word to a variable instead of being a target mask.
11951
11952         * config/rs6000/sync.md (lwsync): If the assembler supports it,
11953         emit the lwsync instruction instead of emitting the instruction as
11954         an integer constant.
11955
11956         * config/rs6000/spe.md (spe_fixuns_truncdfsi2): Rename from
11957         fixuns_trundfsi2, move expander into rs6000.md.
11958
11959         * config/rs6000/rs6000.md (cpu): Add power7.
11960         (sel, *ptrsize): New mode attributes for 32/64-bit isel.
11961         (logical predicate patterns): Change the single instruction
11962         primitives that set CR0 to be fast_compare instead of compare.
11963         (norsi*): Ditto.
11964         (popcntwsi2): Add support for ISA 2.06 popcount instructions.
11965         (popcntddi2): Ditto.
11966         (popcount<mode>): Ditto.
11967         (floating multiply/add insns): Name the floating point
11968         multiply/add insns.
11969         (isel_signed_<mode>): Add support for -misel on 64-bit systems.
11970         (isel_unsigned_<mode>): Ditto.
11971         (fixuns_trundfsi2): Move expander here from spe.md.
11972         (smindi3): Define if we have -misel on 64-bit systems.
11973         (smaxdi3): Ditto.
11974         (umindi3): Ditto.
11975         (umaxdi3): Ditto.
11976
11977 2009-06-23  Anatoly Sokolov  <aesok@post.ru>
11978
11979         * config.gcc (avr-*-rtems*, avr-*-*): Set extra_gcc_objs and
11980         extra_objs.
11981         * config/avr/avr.c (avr_current_device): New variable.
11982         (avr_arch_types, avr_mcu_types): Move to avr-deveces.c.
11983         (avr_arch, mcu_type_s): Move to avr.h.
11984         * config/avr/avr.h (base_arch_s). Add reserved2, arch_name and
11985         default_data_section_start fields.
11986         (avr_arch): Moved from avr.c.
11987         (mcu_type_s): Moved from avr.c. Add short_sp, data_section_start and
11988         library_name fields.
11989         (avr_current_device, avr_mcu_types, avr_arch_types,
11990         avr_device_to_arch, avr_device_to_data_start,
11991         avr_device_to_startfiles, avr_device_to_devicelib): Declare.
11992         (EXTRA_SPEC_FUNCTIONS): Define.
11993         (LINK_SPEC): Remove device name to '-m ...' and '-Tdata ...' linker
11994         options mapping. Use device_to_arch and device_to_data_start insted.
11995         (STARTFILE_SPEC): Use device_to_startfile instead of crt_binutils.
11996         (CRT_BINUTILS_SPECS, EXTRA_SPECS): Remove.
11997         * config/avr/t-avr (driver-avr.o, avr-devices.o): New rules.
11998         * config/avr/driver-avr.c: New file.
11999         * config/avr/avr-devices.c: New file.
12000
12001 2009-06-23  Jakub Jelinek  <jakub@redhat.com>
12002
12003         * var-tracking.c (unshare_variable): Force initialized to
12004         be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
12005         (set_variable_part): Likewise.
12006         (struct variable_union_info): Remove pos_src field.
12007         (vui_vec, vui_allocated): New variables.
12008         (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
12009         unconditionally.  Avoid XCVECNEW/free for every sorting, for dst_l
12010         == 1 use a simpler sorting algorithm.  Compute pos field right
12011         away, don't fill in pos_src.  For dst_l == 2 avoid qsort.
12012         Avoid quadratic comparison if !flag_var_tracking_uninit.
12013         (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
12014         unshare_variable unconditionally.
12015         (dataflow_set_different_2): Removed.
12016         (dataflow_set_different): Don't traverse second hash table.
12017         (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
12018         unconditionally to var_reg_set or var_mem_set.
12019         (emit_notes_in_bb): Likewise.
12020         (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
12021         unshare_variable.
12022         (emit_note_insn_var_location): Don't set initialized to
12023         VAR_INIT_STATUS_INITIALIZED early.
12024         (vt_finalize): Free vui_vec if needed, clear vui_vec and
12025         vui_allocated.
12026         * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
12027
12028         * tree-object-size.c (addr_object_size): Instead of checking
12029         for non-NULL TREE_CHAIN of the FIELD_DECL check that there
12030         are no FIELD_DECLs following it.
12031
12032 2009-06-23  Andreas Krebbel  <krebbel1@de.ibm.com>
12033
12034         * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
12035         order to match bswaps with signed source operands.
12036
12037 2009-06-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12038
12039         * sdbout.c (sdbout_one_type): Fix braces in switch.
12040
12041 2009-06-23  Richard Guenther  <rguenther@suse.de>
12042
12043         * tree-ssa-structalias.c (struct variable_info): Add is_global_var
12044         member.
12045         (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
12046         readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
12047         var_callused, callused_tree, var_storedanything, storedanything_tree,
12048         var_integer, integer_tree): Remove global variables.
12049         (new_var_info): Do not pass new id, append the new var to the
12050         global variable vector.
12051         (do_ds_constraint): Use is_global_var member of the variable-info.
12052         (new_scalar_tmp_constraint_exp): Adjust.
12053         (create_function_info_for): Likewise.
12054         (create_variable_info_for): Likewise.
12055         (find_what_var_points_to): Remove dead code.
12056         (init_base_vars): Simplify.
12057         (compute_points_to_sets): Adjust.
12058
12059 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
12060
12061         * combine.c (try_combine): Dump information about the insns we're
12062         combining.
12063
12064 2009-06-22  Adam Nemet  <anemet@caviumnetworks.com>
12065
12066         * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
12067         check when calling force_to_mode on TRUNCATE's operand.
12068
12069 2009-06-22  Ian Lance Taylor  <iant@google.com>
12070
12071         * config/rs6000/rs6000.opt: Move msched-epilog before msched-prolog.
12072
12073 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
12074
12075         * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
12076
12077 2009-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12078
12079         * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
12080         override library linkage flags such as -static-libgcc or
12081         -shared-libgcc.
12082
12083 2009-06-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
12084
12085         * config/m68k/m68k-devices.def: Add line for MCF5221x.
12086
12087 2009-06-22  Ian Lance Taylor  <iant@google.com>
12088
12089         * config/linux.opt: Put mglibc ahead of muclibc.
12090
12091         * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
12092         for duplicate decls.
12093
12094 2009-06-22  Matthias Klose  <doko@ubuntu.com>
12095
12096         * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
12097
12098 2009-06-22  Steven Bosscher  <steven@gcc.gnu.org>
12099
12100         PR objc/28050
12101         * c-parser.c (c_parser_objc_message_args): Return error_mark_node
12102         instead of NULL if a parser error occurs.
12103
12104 2009-06-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12105
12106         * dwarf2out.c (dwarf2_debug_hooks): Initialize
12107         non-DWARF2_DEBUGGING_INFO version.
12108
12109 2009-06-22  Kai Tietz  <kai.tietz@onevision.com>
12110
12111         * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
12112         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12113
12114         * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
12115         (LIBGCC2_TF_CEXT): Define.
12116         (TF_SIZE): Define.
12117
12118 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12119
12120         PR target/40463
12121         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
12122
12123 2009-06-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12124
12125         * config/arm/arm.c (arm_override_options): Disable
12126         -mcaller-super-interworking and -mcallee-super-interworking.
12127         * doc/invoke.texi (ARM Options): Document this.
12128
12129 2009-06-22  Nathan Sidwell  <nathan@codesourcery.com>
12130
12131         * config/arm/arm.c (arm_print_operand): Deal with HIGH.
12132         * config/arm/constraints.md (j): New constraint for movw operands.
12133         (N): Remove thumb2 meaning.
12134         * config/arm/arm.md (*arm_movw): Delete.
12135         (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
12136         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
12137         * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
12138
12139 2009-06-22  Martin Jambor  <mjambor@suse.cz>
12140
12141         PR tree-optimization/40492
12142         * tree-sra.c (sra_modify_assign): Pass zero offsets to
12143         build_ref_for_offset.
12144
12145 2009-06-22  Shujing Zhao  <pearly.zhao@oracle.com>
12146
12147         * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
12148         JUMP_TABLE_DATA_P predicates where applicable.
12149         * auto-inc-dec.c: Ditto.
12150         * builtins.c: Ditto.
12151         * caller-save.c: Ditto.
12152         * calls.c: Ditto.
12153         * cfgcleanup.c: Ditto.
12154         * cfglayout.c: Ditto.
12155         * cfgrtl.c: Ditto.
12156         * combine.c: Ditto.
12157         * combine-stack-adj.c: Ditto.
12158         * cse.c: Ditto.
12159         * cselib.c: Ditto.
12160         * dbxout.c: Ditto.
12161         * df-scan.c: Ditto.
12162         * dse.c: Ditto.
12163         * dwarf2asm.c: Ditto.
12164         * dwarf2out.c: Ditto.
12165         * emit-rtl.c: Ditto.
12166         * except.c: Ditto.
12167         * explow.c: Ditto.
12168         * expmed.c: Ditto.
12169         * expr.c: Ditto.
12170         * final.c: Ditto.
12171         * function.c: Ditto.
12172         * fwprop.c: Ditto.
12173         * gcse.c: Ditto.
12174         * genpreds.c: Ditto.
12175         * genrecog.c: Ditto.
12176         * ifcvt.c: Ditto.
12177         * ira-costs.c: Ditto.
12178         * ira-lives.c: Ditto.
12179         * jump.c: Ditto.
12180         * loop-iv.c: Ditto.
12181         * lower-subreg.c: Ditto.
12182         * modulo-sched.c: Ditto.
12183         * optabs.c: Ditto.
12184         * postreload.c: Ditto.
12185         * print-rtl.c: Ditto.
12186         * recog.c: Ditto.
12187         * reginfo.c: Ditto.
12188         * regmove.c: Ditto.
12189         * reload1.c: Ditto.
12190         * reload.c: Ditto.
12191         * reorg.c: Ditto.
12192         * rtlanal.c: Ditto.
12193         * rtl.c: Ditto.
12194         * sched-vis.c: Ditto.
12195         * sdbout.c: Ditto.
12196         * sel-sched-ir.c: Ditto.
12197         * simplify-rtx.c: Ditto.
12198         * targhooks.c: Ditto.
12199         * var-tracking.c: Ditto.
12200         * vmsdbgout.c: Ditto.
12201
12202 2009-06-22  Matthias Klose  <doko@ubuntu.com>
12203
12204         * Makefile.in (install-plugin): Always use DESTDIR.
12205
12206 2009-06-22  Olivier Hainque  <hainque@adacore.com>
12207
12208         * config/pa/pa.c (output_call): Don't optimize post call jumps
12209         into return address adjustments if the call may throw.
12210
12211 2009-06-21  Richard Earnshaw  <rearnsha@arm.com>
12212
12213         * arm.c (thumb1_output_casesi): New function.
12214         * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
12215         optimizing for size or PIC.
12216         (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
12217         * arm.md (UNSPEC_THUMB1_CASESI): New constant.
12218         (casesi): Handle Thumb-1 when optimizing for size or PIC.
12219         (thumb1_casesi_internal_pic): New expand rule.
12220         (thumb1_casesi_dispatch): New pattern.
12221         * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
12222         thumb-1 mode.
12223         * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
12224         in the text seciton when PIC or optimizing for size.
12225         * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
12226         * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
12227         preservation properties of code.
12228         (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
12229         (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
12230         (__gnu_thumb1_case_si): New function.
12231         * t-arm (LIB1ASMSRC): Define here.
12232         (LIB1ASMFUNCS): Add some common functions.
12233         * t-arm-elf (LIB1ASMSRC): Delete.
12234         (LIB1ASMFUNCS): Append to existing set.
12235         * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12236         * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12237         * t-symbian (LIB1ASMFUNCS): Likewise.
12238         * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12239         * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
12240
12241 2009-06-21  Richard Guenther  <rguenther@suse.de>
12242
12243         PR tree-optimization/38729
12244         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
12245         to loops with a single exit if -fno-expensive-optimizations.
12246
12247 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
12248
12249         * var-tracking.c (struct shared_hash_def, shared_hash): New types.
12250         (dataflow_set): Change vars type from htab_t to shared_hash.
12251         (shared_hash_pool, empty_shared_hash): New variables.
12252         (vars_clear): Removed.
12253         (shared_hash_shared, shared_hash_htab, shared_hash_copy,
12254         shared_hash_find_slot_unshare, shared_hash_find_slot,
12255         shared_hash_find_slot_noinsert, shared_hash_find): New
12256         static inlines.
12257         (shared_hash_unshare, shared_hash_destroy): New functions.
12258         (unshare_variable): Unshare set->vars if shared, use
12259         shared_hash_htab.
12260         (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
12261         (get_init_value, find_src_set_src, dump_dataflow_set,
12262         clobber_variable_part, emit_notes_for_differences): Use
12263         shared_hash_htab.
12264         (dataflow_set_init): Remove second argument, set vars to
12265         empty_shared_hash instead of creating a new htab.
12266         (dataflow_set_clear): Call shared_hash_destroy and set vars
12267         to empty_shared_hash instead of calling vars_clear.
12268         (dataflow_set_copy): Don't call vars_copy, instead just share
12269         the src htab with dst.
12270         (variable_union): Use shared_hash_*, use initially NO_INSERT
12271         lookup if set->vars is shared.  Don't keep slot cleared before
12272         calling unshare_variable.  Unshare set->vars if needed.
12273         Even ->refcount == 1 vars must be unshared if set->vars is shared
12274         and var needs to be modified.
12275         (variable_canonicalize): New function.
12276         (dataflow_set_union): If dst->vars is empty, just share src->vars
12277         with dst->vars and traverse with variable_canonicalize to canonicalize
12278         and unshare what is needed.
12279         (dataflow_set_different): If old_set and new_set use the same shared
12280         htab, they aren't different.  If number of htab elements is different,
12281         htabs are different.  Use shared_hash_*.
12282         (dataflow_set_destroy): Call shared_hash_destroy instead of
12283         htab_delete.
12284         (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
12285         second argument to dataflow_set_init.
12286         (vt_initialize): Likewise.  Initialize shared_hash_pool and
12287         empty_shared_hash, move bb in/out initialization afterwards.
12288         Use variable_htab_free instead of NULL as changed_variables del hook.
12289         (variable_was_changed): Change type of second argument to pointer to
12290         dataflow_set.  When inserting var into changed_variables, bump
12291         refcount.  Unshare set->vars if set is shared htab and slot needs to
12292         be cleared.
12293         (set_variable_part): Use shared_hash_*, use initially NO_INSERT
12294         lookup if set->vars is shared.  Unshare set->vars if needed.
12295         Even ->refcount == 1 vars must be unshared if set->vars is shared
12296         and var needs to be modified.  Adjust variable_was_changed caller.
12297         (delete_variable_part): Use shared_hash_*.  Even ->refcount == 1
12298         vars must be unshared if set->vars is shared and var needs to be
12299         modified.  Adjust variable_was_changed caller.
12300         (emit_note_insn_var_location): Don't pool_free var.
12301         (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
12302         instead of 1.
12303         (vt_finalize): Call htab_delete on empty_shared_hash->htab and
12304         free_alloc_pool on shared_hash_pool.
12305
12306 2009-06-20  Anthony Green  <green@moxielogic.com>
12307
12308         * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
12309         * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
12310
12311 2009-06-20  Richard Guenther  <rguenther@suse.de>
12312
12313         * tree-ssa-structalias.c (find_func_aliases): For memset use
12314         a constraint from NULL if we memset to zero.
12315         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
12316         we explicitly handle that do not read from memory.
12317         (call_may_clobber_ref_p_1): Properly handle builtins that may
12318         set errno.
12319
12320 2009-06-20  Richard Guenther  <rguenther@suse.de>
12321
12322         PR tree-optimization/40495
12323         * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
12324         (new_scalar_tmp_constraint_exp): New function.
12325         (process_constraint): Do not create temporary decls.
12326         (process_all_all_constraints): Likewise.
12327         (handle_const_call): Likewise.
12328         (create_function_info_for): Do not set decl.
12329
12330 2009-06-19  Ian Lance Taylor  <iant@google.com>
12331
12332         * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
12333         (rs6000_attribute_table): Make static; move before use.
12334
12335 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
12336
12337         * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
12338         <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
12339         Propagate the TREE_READONLY flag without overwriting it.
12340         (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
12341         Propagate the TREE_READONLY flag onto the result.
12342         (process_call_operands): Move around.  Use correct constant value.
12343
12344 2009-06-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12345
12346         PR target/40482
12347         * config/arm/arm.c (thumb_shiftable_const): Truncate val to 32 bits.
12348         * config/arm/arm.md: Likewise.
12349
12350 2009-06-19  Ian Lance Taylor  <iant@google.com>
12351
12352         * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
12353         to GIMPLE_ERROR_MARK.
12354
12355         * c-typeck.c (build_conditional_expr): Add op1_original_type and
12356         op2_original_type parameters.  Warn about using different enum types.
12357         * c-parser.c (c_parser_conditional_expression): Pass original
12358         types to build_conditional_expr.
12359         * c-tree.h (build_conditional_expr): Update declaration.
12360
12361 2009-06-19  Ian Lance Taylor  <iant@google.com>
12362
12363         * config/i386/i386.c (ix86_function_specific_save): Test that
12364         fields match values, rather than testing the values are in a
12365         certain range.
12366
12367 2009-06-19  Richard Guenther  <rguenther@suse.de>
12368
12369         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
12370         ADDR_EXPR pointers.
12371         (ptr_derefs_may_alias_p): Likewise.
12372         (ptr_deref_may_alias_ref_p_1): New function.
12373         (ptr_deref_may_alias_ref_p): Likewise.
12374         (ref_maybe_used_by_call_p_1): Handle builtins that are not
12375         covered by looking at the ESCAPED solution.
12376         (call_may_clobber_ref_p_1): Likewise.
12377         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12378         Handle NULL_TREE offset.  Do not produce redundant constraints.
12379         (process_all_all_constraints): New helper function.
12380         (do_structure_copy): Use it.
12381         (handle_lhs_call): Likewise.
12382         (find_func_aliases): Handle some builtins with pointer arguments
12383         and/or return values explicitly.
12384
12385 2009-06-19  Ian Lance Taylor  <iant@google.com>
12386
12387         * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
12388
12389 2009-06-19  Ian Lance Taylor  <iant@google.com>
12390
12391         * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
12392
12393 2009-06-19  Ian Lance Taylor  <iant@google.com>
12394
12395         * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
12396         * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
12397         version.
12398
12399         * c-decl.c (finish_decl): If -Wc++-compat, warn about
12400         uninitialized const.
12401
12402 2009-06-19  Ian Lance Taylor  <iant@google.com>
12403
12404         * dse.c (struct store_info): Rename bitmap field to bmap.  Change
12405         all uses.
12406
12407         * c-decl.c (in_struct, struct_types): Remove.
12408         (struct c_binding): Add in_struct field.
12409         (c_binding_ptr): Define type, along with VEC.
12410         (struct c_struct_parse_info): Define.
12411         (struct_parse_info): New static variable.
12412         (bind): Initialize in_struct field.
12413         (start_struct): Remove enclosing_in_struct and
12414         enclosing_struct_types parameters.  Add
12415         enclosing_struct_parse_info parameter.  Change all callers.  Set
12416         struct_parse_info rather than in_struct and struct_types.
12417         (grokfield): If -Wc++-compat and there is a symbol binding for the
12418         field name, set the in_struct flag and push it on the
12419         struct_parse_info->fields vector.
12420         (warn_cxx_compat_finish_struct): New static function.
12421         (finish_struct): Remove enclosing_in_struct and
12422         enclosing_struct_types parameters.  Add
12423         enclosing_struct_parse_info parameter.  Change all callers.  Don't
12424         set C_TYPE_DEFINED_IN_STRUCT here.  Call
12425         warn_cxx_compat_finish_struct.  Free struct_parse_info and set to
12426         parameter.  Only push on struct_types if warn_cxx_compat.
12427         (finish_enum): Only push on struct_types if warn_cxx_compat.
12428         (declspecs_add_type): Add loc parameter.  Change all callers.
12429         Change all error calls to error_at.  Pass loc, not input_location,
12430         to pedwarn calls.  Warn if -Wc++-compat and a typedef name is
12431         defined in a struct.  If -Wc++-compat and parsing a struct, record
12432         that a typedef name was used.
12433         * c-parser.c (c_parser_declspecs): Get location to pass to
12434         declspecs_add_type.
12435         (c_parser_struct_or_union_specifier): Update calls to start_struct
12436         and finish_struct.
12437         * c-tree.h (struct c_struct_parse_info): Declare.
12438         (finish_struct, start_struct): Update declarations.
12439         (declspecs_add_type): Update declaration.
12440
12441 2009-06-19  Ian Lance Taylor  <iant@google.com>
12442
12443         * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
12444         variable with an anonymous type.
12445
12446 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12447
12448         * see.c: Remove for real.
12449
12450 2009-06-19  Uros Bizjak  <ubizjak@gmail.com>
12451
12452         * optabs.h (enum optab_index): Add new OTI_significand.
12453         (significand_optab): Define corresponding macro.
12454         * optabs.c (init_optabs): Initialize significand_optab.
12455         * genopinit.c (optabs): Implement significand_optab using
12456         significand?f2 patterns.
12457         * builtins.c (expand_builtin_mathfn): Handle
12458         BUILT_IN_SIGNIFICAND{,F,L}.
12459         (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
12460         expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
12461
12462         * config/i386/i386.md (significandxf2, significand<mode>2): New
12463         expanders to implement significandf, significand and significandl
12464         built-ins as inline x87 intrinsics.
12465
12466 2009-06-18  Anatoly Sokolov  <aesok@post.ru>
12467
12468         * config/avr/avr.c (avr_override_options): Remove setting value of
12469         PARAM_INLINE_CALL_COST.
12470
12471 2009-06-18  Richard Henderson  <rth@redhat.com>
12472
12473         PR 40488
12474         * tree-pass.h (TDF_ASMNAME): New.
12475         * tree-dump.c (dump_options): Add asmname.
12476         * doc/invoke.texi: Document it.
12477
12478         * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
12479         (dump_decl_name): ...here.
12480         (dump_function_name): New flags arg; mind TDF_ASMNAME.
12481         (dump_generic_node): Update dump_function_name calls.
12482         (print_call_name): New flags arg; update all dump calls.
12483         * diagnostic.h (print_call_name): Update.
12484         * gimple-pretty-print.c (dump_gimple_call): Update.
12485
12486 2009-06-18  H.J. Lu  <hongjiu.lu@intel.com>
12487
12488         PR target/40470
12489         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
12490
12491 2009-06-18  Diego Novillo  <dnovillo@google.com>
12492
12493         * doc/plugins.texi: Document plugin_is_GPL_compatible.
12494         * plugin.c (str_license): Declare.
12495         (try_init_one_plugin): Assert that the symbol
12496         'plugin_is_GPL_compatible' exists.
12497
12498 2009-06-18  Sergei Dyshel  <sergeid@il.ibm.com>
12499
12500         * see.c: Remove.
12501         * Makefile.in (OBJS-common): Remove see.o.
12502         (see.o): Remove.
12503         * common.opt (fsee): Mark as preserved for backward compatibility.
12504         * opts.c (common_handle_option): Add OPT_fsee to the backward
12505         compatibility section.
12506         * passes.c (init_optimization_passes, pass_see): Remove pass.
12507         * timevar.def (TV_SEE): Remove.
12508         * tree-pass.h (pass_see): Remove declaration.
12509         * doc/invoke.texi (-fsee): Remove documentation.
12510
12511 2009-06-18  Martin Jambor  <mjambor@suse.cz>
12512
12513         * tree-sra.c: Include statistics.h
12514         (sra_stats): New variable.
12515         (sra_initialize): Clear sra_stats.
12516         (create_access_replacement): Increment sra_stats.replacements.
12517         (get_access_replacement): Do not return twice.
12518         (analyze_all_variable_accesses): Increment statistics counter by the
12519         number of scalarized aggregates.
12520         (generate_subtree_copies): Increment sra_stats.subtree_copies.
12521         (sra_modify_expr): Increment sra_stats.exprs.
12522         (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
12523         (sra_modify_assign): Increment sra_stats.exprs,
12524         sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
12525         (perform_intra_sra): Update statistics counters.
12526         * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
12527
12528 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12529
12530         * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
12531         (arm_scalar_mode_supported_p): New function.
12532
12533 2009-06-18  Paul Brook  <paul@codesourcery.com>
12534             Sandra Loosemore  <sandra@codesourcery.com>
12535
12536         * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
12537         (__extendhfsf2, __truncsfhf2): Define.
12538         * config/arm/fp16.c: New file.
12539         * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
12540         * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA):  Add fp16.c.
12541
12542 2009-06-18  Sandra Loosemore  <sandra@codesourcery.com>
12543
12544         * doc/extend.texi (Half-Precision): New section.
12545         * doc/invoke.texi (Option Summary): List -mfp16-format.
12546         (ARM Options): List neon-fp16 as -mfpu value.  Document -mfp16-format.
12547         * config/arm/arm.opt (mfp16-format=): New.
12548         * config/arm/arm.c: Include intl.h.
12549         (TARGET_INVALID_PARAMETER_TYPE): Redefine.
12550         (TARGET_INVALID_RETURN_TYPE): Redefine.
12551         (TARGET_PROMOTED_TYPE): Redefine.
12552         (TARGET_CONVERT_TO_TYPE): Redefine.
12553         (arm_fp16_format): Define.
12554         (all_fpus): Add entry for neon-fp16.
12555         (fp_model_for_fpu): Likewise.
12556         (struct fp16_format): Declare.
12557         (all_fp16_formats): Define.
12558         (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
12559         functions.
12560         (arm_override_options): Set arm_fp16_format. Call sorry for fp16
12561         and no ldrh.
12562         (arm_legitimate_index_p): Treat HFmode like HImode.
12563         (thumb1_legitimate_address_p): Make it recognize HFmode constants.
12564         (coproc_secondary_reload_class): Special-case HFmode.
12565         (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
12566         (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
12567         (arm_init_fp16_builtins): New.
12568         (arm_init_builtins): Call it.
12569         (arm_invalid_parameter_type): New.
12570         (arm_invalid_return_type): New.
12571         (arm_promoted_type): New.
12572         (arm_convert_to_type).
12573         (arm_file_start): Deal with neon-fp16 as fpu_name.  Emit tag for fp16
12574         format.
12575         (arm_emit_fp16_const): New function.
12576         (arm_mangle_type): Mangle __fp16 as "Dh".
12577         * config/arm/arm.h (TARGET_VFPD32): Make it know about
12578         FPUTYPE_NEON_FP16.
12579         (TARGET_NEON_FP16): New.
12580         (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
12581         (enum fputype): Add FPUTYPE_NEON_FP16.
12582         (enum arm_fp16_format_type): Declare.
12583         (arm_fp16_format): Declare.
12584         (LARGEST_EXPONENT_IS_NORMAL): Define.
12585         * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
12586         * config/arm/arm-modes.def (HFmode): Define.
12587         * config/arm/vfp.md: (*movhf_vfp): New.
12588         (extendhfsf2): New.
12589         (truncsfhf2): New.
12590         * config/arm/arm.md: (fpu): Add neon_fp16.
12591         (floatsihf2, floatdihf2): New.
12592         (fix_trunchfsi2, fix_trunchfdi2): New.
12593         (truncdfhf2): New.
12594         (extendhfdf2): New.
12595         (movhf): New.
12596         (*arm32_movhf): New.
12597         (*thumb1_movhf): New.
12598         (consttable_2): Add check for HFmode constants.
12599         (consttable_4): Handle HFmode constants.
12600
12601 2009-06-18  Uros Bizjak  <ubizjak@gmail.com>
12602
12603         * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
12604
12605 2009-06-17  Olivier Hainque  <hainque@adacore.com>
12606
12607         * collect2.c (main): Use CONST_CAST2 to perform char ** to
12608         const char ** conversion in AIX specific section.
12609
12610 2009-06-17  H.J. Lu  <hongjiu.lu@intel.com>
12611
12612         * config/i386/i386.c (ix86_special_builtin_type): Remove
12613         UINT64_FTYPE_PINT.  Add UINT64_FTYPE_PUNSIGNED.
12614         (bdesc_special_args): Updated.
12615         (ix86_init_mmx_sse_builtins): Likewise.
12616         (ix86_expand_special_args_builtin): Likewise.
12617
12618 2009-06-17  Richard Henderson  <rth@redhat.com>
12619
12620         * tree-pretty-print.c (maybe_dump_asm_name): New.
12621         (dump_decl_name): Use it.
12622         (PRINT_FUNCTION_NAME): Merge into...
12623         (dump_function_name): ... here.  Use maybe_dump_asm_name.
12624
12625 2009-06-17  Cary Coutant  <ccoutant@google.com>
12626
12627         * dbxout.c (dbxout_source_line): Add is_stmt parameter.
12628         Change caller.
12629         * debug.c (struct gcc_debug_hooks): Change placeholder for
12630         source_line hook.
12631         (debug_nothing_int_charstar_int): Replaced by...
12632         (debug_nothing_int_charstar_int_bool): ...this.
12633         * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
12634         source_line prototype.
12635         (debug_nothing_int_charstar_int): Replaced by...
12636         (debug_nothing_int_charstar_int_bool): ...this.
12637         * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
12638         * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
12639         Output is_stmt operand when necessary.
12640         * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
12641         (notice_source_line): Add is_stmt parameter.
12642         * sdbout.c (sdbout_source_line): Add is_stmt parameter.
12643         * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
12644         Change callers.
12645         * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
12646         * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
12647
12648 2009-06-17  Ian Lance Taylor  <iant@google.com>
12649
12650         * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
12651         Change all uses.
12652         (struct store_by_pieces_d): Rename from store_by_pieces.  Change
12653         call uses.
12654
12655 2009-06-17  Adam Nemet  <anemet@caviumnetworks.com>
12656
12657         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
12658         STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
12659         tree_strip_sign_nop_conversions and
12660         tree_ssa_strip_useless_type_conversions rather than stripping
12661         the operations here.
12662         (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
12663         Declare them.
12664         * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
12665         * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
12666         * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
12667         tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
12668         functions.
12669
12670 2009-06-17  Michael Eager  <eager@eagercon.com>
12671
12672         * config/rs6000/constraints.md (register_constraint "d"): New.
12673         * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
12674         truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
12675         *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
12676         *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
12677         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
12678         divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
12679         fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
12680         * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
12681         __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
12682         __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
12683         __fctiwz): Same.
12684         * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
12685         *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
12686         *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
12687         *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
12688         *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
12689         fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
12690         stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
12691         *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
12692         *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
12693         trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
12694         *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
12695         *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
12696         *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
12697         * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
12698
12699 2009-06-16  Ian Lance Taylor  <iant@google.com>
12700
12701         * profile.c (total_num_never_executed): Don't define.
12702         (compute_branch_probabilities): Don't count or print
12703         num_never_executed.
12704         (init_branch_prob): Don't set total_num_never_executed.
12705         (end_branch_prob): Don't print total_num_never_executed.
12706
12707 2009-06-17  David Daney  <ddaney@caviumnetworks.com>
12708
12709         * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
12710
12711 2009-06-17  David Edelsohn  <edelsohn@gnu.org>
12712
12713         * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
12714         (nabstd2_fpr): Same.
12715
12716 2009-06-17  Steve Ellcey  <sje@cup.hp.com>
12717
12718         * expr.c (expand_assignment): Change complex type check.
12719
12720 2009-06-17  Basile Starynkevitch  <basile@starynkevitch.net>
12721
12722         * doc/plugins.texi (Building GCC plugins): Added new section.
12723
12724 2009-06-17  Ian Lance Taylor  <iant@google.com>
12725
12726         * c-pch.c (get_ident): Don't set size of templ array.
12727         (pch_init): Don't set size of partial_pch array.
12728
12729         * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
12730         string constant to intialize an array whose size is the length of
12731         the string.
12732
12733 2009-06-17  Richard Guenther  <rguenther@suse.de>
12734
12735         PR tree-optimization/40389
12736         * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
12737         to addressable types.
12738         * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
12739
12740 2009-06-17  Richard Guenther  <rguenther@suse.de>
12741
12742         PR middle-end/40460
12743         * tree-chrec.h (build_polynomial_chrec): If we cannot determine
12744         if there is no evolution of left in the loop bail out.
12745         * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
12746         chrec_fold_multiply.
12747
12748 2009-06-16  J"orn Rennecke  <joern.rennecke@arc.com>
12749             Janis Johnson  <janis187@us.ibm.com>
12750
12751         PR target/39254
12752         * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
12753         for the symbol ref of a constant that is the source of a move
12754         - nor for any other not-obvious-label-ref constants.
12755
12756 2009-06-16  Olatunji Ruwase  <tjruwase@google.com>
12757
12758         * plugin.c (position_pass): Skip newly inserted pass during list
12759         traversal to avoid repeated insertion.
12760
12761 2009-06-16  Ian Lance Taylor  <iant@google.com>
12762
12763         * vec.h (VEC_stack_alloc): Define different version if
12764         GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
12765         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
12766         (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
12767         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12768
12769 2009-06-16  H.J. Lu  <hongjiu.lu@intel.com>
12770
12771         * config.gcc (extra_headers): Add ia32intrin.h for x86.
12772
12773         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
12774         IX86_BUILTIN_BSRDI.  IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
12775         IX86_BUILTIN_RDTSCP.  IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
12776         IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
12777         (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
12778         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12779         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12780         (bdesc_special_args): Add __builtin_ia32_rdtsc and
12781         __builtin_ia32_rdtscp.
12782         (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
12783         __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
12784         and __builtin_ia32_rorhi.
12785         (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
12786         UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
12787         INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
12788         (ix86_expand_args_builtin): Likewise.
12789         (ix86_expand_special_args_builtin): Likewise.
12790
12791         * config/i386/i386.md (UNSPECV_RDTSCP): New.
12792         (UNSPECV_RDTSC): Likewise.
12793         (UNSPECV_RDPMC): Likewise.
12794         (*bsr): Renamed to ...
12795         (bsr): This
12796         (*bsr_rex64): Renamed to ...
12797         (bsr_rex64): This.
12798         (rdpmc): New.
12799         (*rdpmc): Likewise.
12800         (*rdpmc_rex64): Likewise.
12801         (rdtsc): Likewise.
12802         (*rdtsc): Likewise.
12803         (*rdtsc_rex64): Likewise.
12804         (rdtscp): Likewise.
12805         (*rdtscp): Likewise.
12806         (*rdtscp_rex64): Likewise.
12807
12808         * config/i386/ia32intrin.h: New.
12809
12810         * config/i386/x86intrin.h: Include <ia32intrin.h>.
12811
12812 2009-06-16  Ian Lance Taylor  <iant@google.com>
12813
12814         * ira-build.c (copy_info_to_removed_store_destinations):
12815         Initialize parent_a.
12816
12817 2009-06-16  Ian Lance Taylor  <iant@google.com>
12818
12819         * c-decl.c (grokdeclarator): Change size_varies to bool.
12820
12821 2009-06-16  Ian Lance Taylor  <iant@google.com>
12822
12823         * sel-sched.c: Make forward declarations of move_op_hooks and
12824         fur_hooks explicitly extern.
12825
12826 2009-06-16  Ian Lance Taylor  <iant@google.com>
12827
12828         * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
12829         * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
12830
12831 2009-06-16  Ian Lance Taylor  <iant@google.com>
12832
12833         * resource.c (mark_referenced_resources): Change
12834         include_delayed_effects parameter to bool.  Change all callers.
12835         (mark_end_of_function_resources): Likewise.
12836         * reorg.c (insn_references_resource_p): Likewise.
12837         (insn_sets_resource_p): Likewise.
12838         * resource.h (mark_referenced_resources): Update declaration.
12839         (mark_end_of_function_resources): Update declaration.
12840
12841 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
12842
12843         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
12844
12845 2009-06-16  David Edelsohn  <edelsohn@gnu.org>
12846
12847         * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
12848         GCC can bootstrap on AIX with GNU Binutils 2.20.
12849
12850 2009-06-16  Ian Lance Taylor  <iant@google.com>
12851
12852         * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
12853
12854 2009-06-16  Ian Lance Taylor  <iant@google.com>
12855
12856         * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
12857         inline, not extern inline.
12858         (exact_log2): Likewise.
12859         * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
12860         test CLZ_HWI.
12861         (exact_log2): Likewise, but don't test CTZ_HWI.
12862
12863 2009-06-16  Ian Lance Taylor  <iant@google.com>
12864
12865         * bitmap.c (bitmap_clear): Don't declare as inline.
12866         * gimple.c (gimplify_assign): Likewise.
12867         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
12868         * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
12869         (sched_scan_info): Remove duplicate definition.
12870
12871 2009-06-16  Ian Lance Taylor  <iant@google.com>
12872
12873         * c-common.c (skip_evaluation): Don't define.
12874         (c_inhibit_evaluation_warnings): Define global variable.
12875         (overflow_warning): Check c_inhibit_evaluation_warnings rather
12876         than skip_evaluation.
12877         (convert_and_check, warn_for_div_by_zero): Likewise.
12878         * c-common.h (skip_evaluation): Don't declare.
12879         (c_inhibit_evaluation_warnings): Declare.
12880         * c-parser.c (c_parser_typeof_specifier): Set
12881         c_inhibit_evaluation_warnings rather than skip_evaluation.
12882         (c_parser_conditional_expression): Likewise.
12883         (c_parser_binary_expression): Likewise.
12884         (c_parser_sizeof_expression): Likewise.
12885         (c_parser_alignof_expression): Likewise.
12886         * c-typeck.c (build_indirect_ref): Check
12887         c_inhibit_evaluation_warnings rather than skip_evaluation.
12888         (build_conditional_expr, build_binary_op): Likewise.
12889
12890 2009-06-16  Richard Guenther  <rguenther@suse.de>
12891
12892         * tree-ssa-alias.c (is_escape_site): Remove.
12893         * tree-ssa-alias.h (enum escape_type): Remove.
12894         (is_escape_site): Likewise.
12895         * tree-ssa-structalias.c (find_func_aliases): Handle escapes
12896         via casts and asms without deferring to is_escape_site.
12897
12898 2009-06-16  Jakub Jelinek  <jakub@redhat.com>
12899
12900         PR middle-end/40446
12901         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
12902         use gen_lowpart if op0 has complex mode.
12903
12904 2009-06-16  Richard Guenther  <rguenther@suse.de>
12905
12906         * tree-ssa-structalias.c (do_ds_constraint): Stores in global
12907         variables add them to ESCAPED.
12908         (find_func_aliases): Do not make all indirectly stored values escaped.
12909
12910 2009-06-16  Rafael Avila de Espindola  <espindola@google.com>
12911
12912         * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
12913         make_decl_one_only.
12914
12915 2009-06-16  Martin Jambor  <mjambor@suse.cz>
12916
12917         PR tree-optimization/40432
12918         * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
12919         check whether we need to force gimple register operand.
12920
12921 2009-06-16  Martin Jambor  <mjambor@suse.cz>
12922
12923         PR tree-optimization/40413
12924         * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
12925         build_ref_for_offset.
12926         (propagate_subacesses_accross_link): Fix a typo in a comment.
12927
12928 2009-06-16  Ira Rosen  <irar@il.ibm.com>
12929
12930         * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
12931         with additional parameter.
12932         * tree-vectorizer.h (enum vect_def_type): Add new value
12933         vect_nested_cycle.
12934         (enum vect_relevant): Add comments.
12935         (vect_is_simple_reduction): Add new argument.
12936         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
12937         Detect nested cycles.
12938         (vect_is_simple_reduction): Update documentation, add an argument to
12939         distinguish inner-loop reduction from nested cycle, detect nested
12940         cycles, fix printings and indentation, don't swap operands in case
12941         of nested cycle.
12942         (get_initial_def_for_reduction): Handle subtraction.
12943         (vect_create_epilog_for_reduction): Add new argument to specify
12944         reduction variable.
12945         (vect_finalize_reduction): Handle subtraction, fix comments.
12946         (vectorizable_reduction): Handle nested cycles. In case of nested
12947         cycle keep track of the reduction variable position. Call
12948         vect_is_simple_reduction with additional parameter. Use original
12949         statement code in reduction epilogue for nested cycle. Call
12950         vect_create_epilog_for_reduction with additional parameter.
12951         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
12952         inner-loop vectorization.
12953         (vect_recog_widen_sum_pattern): Likewise.
12954         * tree-vect-stmts.c (process_use): Distinguish between nested cycles
12955         and reductions.
12956         (vect_mark_stmts_to_be_vectorized): Likewise.
12957         (vect_get_vec_def_for_operand): Handle nested cycles.
12958
12959 2009-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12960
12961         * doc/invoke.texi (Debugging Options): Fix option index entries
12962         for -fdump-statistics, -frandom-seed add entries for
12963         -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
12964         (FRV Options): Fix entries for -mTLS, -mtls.
12965         (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
12966         (i386 and x86-64 Options): Fix entry for -mno-red-zone.
12967         (M68hc1x Options): Fix @itemx for -mnominmax.
12968         (MCore Options): Fix entry for -mno-lsim.
12969         (MMIX Options): Fix entry for -mabi=mmixware.
12970         (PDP-11 Options): Fix entry for -mbcopy-builtin.
12971
12972 2009-06-16  Basile Starynkevitch  <basile@starynkevitch.net>
12973
12974         * doc/plugins.texi (Interacting with the GCC Garbage Collector):
12975         Mention the plugin mode of gengtype.
12976         * doc/gty.texi (Source Files Containing Type Information): Likewise.
12977         * gengtype.c: Updated copyright.
12978         (plugin_files, nb_plugin_files) Added new static variables.
12979         (measure_input_list) Care about plugin_files.
12980         (write_rtx_next): Added early return in plugin mode.
12981         (create_file): Updated copyright year in generated file. Added
12982         asserts.
12983         (oprintf): Added early return if NULL outf.
12984         (get_output_file_with_visibility): Care of plugin_files.
12985         (get_output_file_name): May return null.
12986         (write_local): Added early return.
12987         (put_mangled_filename): Ditto.
12988         (finish_root_table): Added check for base_files.
12989         (write_roots): Care about null when plugins.
12990         (main): Added plugin mode.
12991
12992 2009-06-15  Ian Lance Taylor  <iant@google.com>
12993
12994         * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
12995         * gcov.c (read_count_file): Add braces around variables declared
12996         before label.
12997
12998         * c.opt (Wjump-misses-init): New warning.
12999         * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
13000         -Wall and -Wc++-compat if not already set.
13001         (c_common_post_options): Clear warn_jump_misses_init if it was not
13002         set.
13003         * c-decl.c (struct c_binding): Change type field to a union with
13004         new label field.  Make it the first field in the struct.  Update
13005         references to type to use u.type instead.
13006         (struct c_spot_bindings): Define.
13007         (struct c_goto_bindings): Define.
13008         (c_goto_bindings_p): Define, along with VECs.
13009         (struct c_label_vars): Define.
13010         (struct c_scope): Add has_label_bindings field.
13011         (bind_label, set_spot_bindings): New static functions.
13012         (decl_jump_unsafe, update_spot_bindings): New static functions.
13013         (update_label_decls): New static function.
13014         (pop_scope): Call update_label_decls.  Don't call c_end_vm_scope.
13015         Update binding u.label field to shadowed field.
13016         (c_binding_start_stmt_expr): New function.
13017         (c_binding_end_stmt_expr): New function.
13018         (pushdecl): Don't call c_begin_vm_scope.
13019         (make_label): Add defining and p_label_vars parameters.  Change
13020         all callers.
13021         (lookup_label): Correct test for whether a label has not yet been
13022         defined.  Call bind_label rather than bind.
13023         (warn_about_goto): New static function.
13024         (lookup_label_for_goto): New function.
13025         (declare_label): Call bind_label rather than bind.
13026         (check_earlier_gotos): New static function.
13027         (define_label): Don't give errors about jumping into statement
13028         expressions or scopes of variably modified types.  Call
13029         set_spot_bindings and check_earlier_gotos.  Call bind_label
13030         instead of bind.  Don't set label_context_stack_se or
13031         label_context_stack_vm.
13032         (c_get_switch_bindings): New function.
13033         (c_release_switch_bindings): New function.
13034         (c_check_switch_jump_warnings): New function.
13035         (start_function): Don't set label_context_stack_se or
13036         label_context_stack_vm.
13037         (finish_function): Likewise.
13038         * c-typeck.c (label_context_stack_se): Don't define.
13039         (label_context_stack_vm): Don't define.
13040         (c_finish_goto_label): Call lookup_label_for_goto rather than
13041         lookup_label.  Don't give errors about jumping into a statement
13042         expression or the scope of a variably modified type.  Don't set
13043         label_context_stack_se or label_context_stack_vm.
13044         (struct c_switch): Remove blocked_stmt_expr and blocked_vm
13045         fields.  Add bindings field.
13046         (c_start_case): Don't set deleted fields.  Set bindings field.
13047         (do_case): Rework order of tests.  Don't check blocked_stmt_expr
13048         or blocked_vm.  Call c_check_switch_jump_warnings.
13049         (c_finish_case): Don't test blocked_stmt_expr field.  Call
13050         c_release_switch_bindings.
13051         (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
13052         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
13053         set label_context_stack_se.  Call c_bindings_start_stmt_expr.
13054         (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
13055         c_switch_stack.  Don't walk label_context_stack_se labels.  Don't
13056         set label_context_stack_se.  Call c_bindings_end_stmt_expr.
13057         (c_begin_vm_scope, c_end_vm_scope): Don't define.
13058         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
13059         (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
13060         (C_DECL_UNJUMPABLE_VM): Don't define.
13061         (C_DECL_UNDEFINABLE_VM): Don't define.
13062         (struct c_label_list): Don't define.
13063         (struct c_label_context_se): Don't define.
13064         (struct c_label_context_vm): Don't define.
13065         (struct c_spot_bindings): Declare.
13066         (c_bindings_start_stmt_expr): Declare.
13067         (c_bindings_end_stmt_expr): Declare.
13068         (lookup_label_for_goto): Declare.
13069         (c_get_switch_bindings, c_release_switch_bindings): Declare.
13070         (c_check_switch_jump_warnings): Declare.
13071         (label_context_stack_se, label_context_stack_vm): Don't declare.
13072         (c_finish_goto_label): Update declaration.
13073         (c_begin_vm_scope, c_end_vm_scope): Don't declare.
13074         * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
13075         (Warning Options): Document -Wjump-misses-init.
13076
13077 2009-06-15  Jakub Jelinek  <jakub@redhat.com>
13078
13079         * tree-object-size.c (addr_object_size): Fix a pasto in the last
13080         change.
13081
13082 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
13083
13084         * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
13085
13086 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
13087
13088         * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
13089
13090 2009-06-15  Aldy Hernandez  <aldyh@redhat.com>
13091
13092         * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
13093
13094 2009-06-15  Rafael Avila de Espindola  <espindola@google.com>
13095
13096         * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
13097         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
13098         * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
13099         * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
13100         * dwarf2asm.c (dw2_force_const_mem): Update call to
13101         make_decl_one_only.
13102         * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
13103         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
13104         * langhooks.c (lhd_comdat_group): Remove.
13105         * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
13106         * tree.h (DECL_COMDAT_GROUP): New.
13107         (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
13108         (tree_decl_with_vis): Add comdat_group. Remove one_only.
13109         (make_decl_one_only): Change signature.
13110         * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
13111         make_decl_one_only.
13112         (make_decl_one_only): Change signature.
13113         (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
13114
13115 2009-06-15  Richard Guenther  <rguenther@suse.de>
13116
13117         PR middle-end/40439
13118         * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
13119
13120 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13121
13122         * tree-ssa-math-opts.c: Remove extra divide.
13123
13124 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13125
13126         * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
13127
13128 2009-06-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13129
13130         * passes.c: Add bswap pass.
13131         * tree-pass.h: Add pass_optimize_bswap declaration.
13132         * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
13133         Include rtl.h, expr.h and optabs.h for optab_handler check.
13134         (struct symbolic_number, pass_optimize_bswap): New definition.
13135         (do_shift_rotate, verify_symbolic_number_p): New functions.
13136         (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
13137         (gate_optimize_bswap): New function.
13138         * tree.c (widest_int_cst_value): New function.
13139         * tree.h (widest_int_cst_value): Prototype added.
13140
13141 2009-06-14  Steven Bosscher  <steven@gcc.gnu.org>
13142
13143         * cfgcleanup.c (old_insns_match_p): Remove code to substitute
13144         REG_EQUAL/REG_EQUIV notes.
13145
13146 2009-06-14  Richard Guenther  <rguenther@suse.de>
13147
13148         PR middle-end/40389
13149         * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
13150         has its address taken if NRV was applied and it is addressable.
13151         * tree-ssa-structalias.c (get_constraint_for_address_of): New
13152         function split out from ...
13153         (get_constraint_for_1): ... here.
13154         (handle_rhs_call): Use it to mark the return slot escaped if
13155         it is addressable and NRV was applied.
13156
13157 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
13158
13159         * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
13160         Change first argument type to location_t.
13161         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
13162         Do not set input_location.
13163         Use loc instead of input_location throughout.
13164
13165 2009-06-13  Richard Guenther  <rguenther@suse.de>
13166
13167         PR tree-optimization/40421
13168         * tree-predcom.c (should_unroll_loop_p): Remove.
13169         (tree_predictive_commoning_loop): Use can_unroll_loop_p.
13170
13171 2009-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
13172
13173         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13174         Add location argument.
13175
13176 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
13177
13178         * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
13179         build_decl.
13180         * config/s390/s390.c (s390_build_builtin_va_list): Same.
13181         (s390_gimplify_va_arg): Pass location to create_artificial_label.
13182         * config/spu/spu-protos.h: Add location to
13183         spu_resolve_overloaded_builtin.
13184         * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
13185         spu_build_builtin_va_list.
13186         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
13187         argument.  Pass location to build_function_call_vec.
13188         * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
13189         build_decl.
13190         (emit_fpu_switch): Same.
13191         (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
13192         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
13193         to build_decl and create_artificial_label.
13194         (xtensa_gimplify_va_arg_expr): Same.
13195         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
13196         (xstormy16_gimplify_va_arg_expr): Same.
13197         * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
13198         * config/arm/arm.c (arm_build_builtin_va_list): Same.
13199         * config/mips/mips.c (mips_build_builtin_va_list): Same.
13200         (mips16_build_function_stub): Same.
13201         (mips16_build_call_stub): Same.
13202
13203 2009-06-13  Richard Earnshaw  <rearnsha@arm.com>
13204
13205         PR target/40327
13206         * arm/constraints.md (Pa, Pb): New constraints.
13207         * arm/arm.md (thumb1_addsi3): Support more complex additions.  Add a
13208         split pattern to deal with them.
13209
13210 2009-06-13  Joerg Sonnenberger  <joerg@britannica.bec.de>
13211
13212         * doc/invoke.texi: Add missing option -Wp,OPTION in list,
13213         fix index entry for -Xpreprocessor.
13214
13215 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
13216
13217         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13218         Add location argument to build_decl call.
13219         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
13220         (rs6000_init_builtins): Same.
13221         (spe_init_builtins): Same.
13222         (rs6000_gimplify_va_arg): Add location argument to
13223         create_artificial_label call.
13224
13225 2009-06-12  Steven Bosscher  <steven@gcc.gnu.org>
13226
13227         * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
13228         * combine-stack-adj.c (pass_stack_adjustments): Use it.
13229         * Makefile.in: Fix GGC dependency for gcse.o.
13230
13231 2009-06-12  Aldy Hernandez  <aldyh@redhat.com>
13232
13233         * tree-pretty-print.c (dump_generic_node): Dump column numbers.
13234         * gimple-pretty-print.c (dump_gimple_stmt): Same.
13235         * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
13236         created.
13237         * c-parser.c (c_parser_binary_expression): Use current column while
13238         building binary operations.
13239         * common.opt (fshow-column): Enable by default.
13240         * tree-vrp.c (check_array_ref): Use warning_at.
13241         (check_array_bounds): Use location from call back if expr has no
13242         location.
13243         * tree.h: Add location argument to maybe_fold_*.
13244         * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
13245         (maybe_fold_offset_to_array_ref): Add location argument and use it.
13246         (maybe_fold_offset_to_component_ref): Same.
13247         (maybe_fold_offset_to_reference): Same.
13248         (maybe_fold_offset_to_address): Same.
13249         (maybe_fold_stmt_indirect): Same.
13250         (maybe_fold_stmt_addition): Same.
13251         (fold_stmt_r): Pass location to maybe_fold_*.
13252         (fold_gimple_assign): Same.
13253         * c-tree.h: Add location argument to finish_decl,
13254         default_function_array_conversion, store_init_value.
13255         * c-decl.c (define_label): Use error_at.
13256         (c_make_fname_decl): Pass location to finish_decl.
13257         (finish_decl): New location argument.
13258         (build_compound_literal): Pass location to store_init_value.
13259         (grokdeclarator): Pass location to finish_decl.
13260         (grokfield): Same.
13261         * c-typeck.c (array_to_pointer_conversion): New location argument.
13262         (function_to_pointer_conversion): Same.
13263         (default_function_array_conversion): Same.
13264         (parser_build_unary_op): Pass location to overflow_warning.
13265         (parser_build_binary_op): Same.  Use warning_at.
13266         (build_unary_op): Pass location to array_to_pointer_conversion.
13267         (build_c_cast): Pass location to digest_init.
13268         (build_modify_expr): New location argument.
13269         (convert_for_assignment): Same.
13270         (store_init_value): Same.
13271         (digest_init): Same.
13272         (output_init_element): Pass location to digest_init and
13273         array_to_pointer_conversion.
13274         (c_finish_return): Pass location to convert_for_assignment.
13275         * gimplify.c (gimplify_conversion): Pass location to
13276         maybe_fold_offset_to_address.
13277         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
13278         to maybe_fold_stmt_addition.
13279         * c-omp.c (c_finish_omp_atomic): Pass new location to
13280         build_modify_expr.
13281         (c_finish_omp_for): Same.
13282         * c-common.c (overflow_warning): New argument.
13283         * c-common.h: New argument to build_modify_expr, overflow_warning.
13284         * c-parser.c (c_parser_declaration_or_fndef): Pass location to
13285         finish_decl.
13286         (c_parser_initializer): Pass location to
13287         default_function_array_conversion.
13288         (c_parser_initelt): Same.
13289         (c_parser_initval): Same.
13290         (c_parser_asm_operands): Same.
13291         (c_parser_expr_no_commas): Same.  Pass location to build_modify_expr.
13292         (c_parser_conditional_expression): Same.
13293         (c_parser_binary_expression): Add location info to stack.  Use it.
13294         (c_parser_unary_expression): Pass location to
13295         default_function_array_conversion, parser_build_unary_op,
13296         build_indirect_ref, c_parser_postfix_expression_after_primary.
13297         (c_parser_postfix_expression_after_primary): New location argument.
13298         Use it.
13299         (c_parser_expression_conv): Pass location to
13300         default_function_array_conversion.
13301         (c_parser_expr_list): Same.
13302         (c_parser_omp_atomic): Same.
13303         (c_parser_omp_for_loop): Same.
13304         * c-tree.h: (struct c_declarator): Add comment to id_loc.
13305         (build_array_declarator): New argument.
13306         * c-decl.c (build_array_declarator): Add location argument.
13307         (grokdeclarator): Set id_loc for cdk_array.
13308         * c-parser.c (c_parser_direct_declarator_inner): Pass location to
13309         build_array_declarator.
13310         * tree.c (build_omp_clause): Add location argument.
13311         * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
13312         (OMP_CLAUSE_LOCATION): New macro.
13313         (struct tree_omp_clause): Add location field.
13314         (build_omp_clause): Add argument.
13315         * testsuite/gcc.dg/gomp/for-1.c: Fix column.
13316         * cp/pt.c (tsubst_omp_for_iterator): Pass location to
13317         build_omp_clause.
13318         * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
13319         (cp_parser_omp_clause_collapse): Same.
13320         (cp_parser_omp_clause_default): Same.
13321         (cp_parser_omp_clause_if): Same.
13322         (cp_parser_omp_clause_nowait): Same.
13323         (cp_parser_omp_clause_num_threads): Same.
13324         (cp_parser_omp_clause_ordered): Same.
13325         (cp_parser_omp_clause_schedule): Same.
13326         (cp_parser_omp_clause_untied): Same.
13327         (cp_parser_omp_for_loop): Same.
13328         (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13329         * c-tree.h (c_start_case): Add location argument.
13330         (c_process_expr_stmt): Same.
13331         (c_finish_goto_*): Same.
13332         * tree-parloops.c (initialize_reductions): Pass location to
13333         build_omp_clause.
13334         (create_parallel_loop): Same.
13335         * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
13336         (gfc_trans_omp_reduction_list): Same.
13337         (gfc_trans_omp_clauses): Same.
13338         (gfc_trans_omp_do): Same.
13339         * c-typeck.c (c_finish_goto_label): Same.
13340         (c_finish_goto_ptr): New location argument.
13341         (c_start_case): Same.
13342         (emit_side_effect_warnings): Same.
13343         (c_process_expr_stmt): Same.
13344         (c_finish_stmt_expr): Same.
13345         (c_finish_omp_clauses): Use error_at instead of error.
13346         * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
13347         build_omp_clause.
13348         * c-omp.c (c_split_parallel_clauses): New location argument.
13349         * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
13350         to build_omp_clause.
13351         (convert_local_reference_stmt): Same.
13352         (convert_gimple_call): Same.
13353         * c-common.h (c_split_parallel_clauses): New argument.
13354         * c-parser.c (c_parser_statement_after_labels): Pass location to
13355         c_finish_goto_label.
13356         (c_parser_switch_statement): Pass location to c_start_case.
13357         (c_parser_for_statement): Pass location to c_finish_expr_stmt,
13358         and c_process_expr_stmt.
13359         (c_parser_omp_variable_list): Add location argument.
13360         (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
13361         (c_parser_omp_clause_default): Same.
13362         (c_parser_omp_clause_if): Same.
13363         (c_parser_omp_clause_num_threads): Same.
13364         (-c_parser_omp_clause_ordered): Same.
13365         (c_parser_omp_clause_reduction): Pass location to
13366         c_parser_omp_variable_list.
13367         (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
13368         (c_parser_omp_clause_untied): Same.
13369         (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
13370         (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
13371
13372         * c-tree.h (check_for_loop_decls, undeclared_variable,
13373         build_component_ref, build_array_ref, build_external_ref,
13374         c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
13375         build_conditional_expr, build_compound_expr, c_cast_expr,
13376         build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
13377         c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
13378         argument.
13379         * c-semantics.c (build_stmt): Same.
13380         (build_case_label): Same.
13381         * c-decl.c (c_finish_incomplete_decl): Pass location on down.
13382         (undeclared_variable): New argument.
13383         (make_label): Same.
13384         (lookup_label): Pass location on down.
13385         (define_label): Same.
13386         (finish_decl): Same.
13387         (build_compound_literal): Same.
13388         (finish_struct): Same.
13389         (finish_function): Do not set location here.
13390         (check_for_loop_decls): New argument.
13391         * tree.c (save_expr): Set location.
13392         (build_empty_stmt): New argument.
13393         * tree.h (build_empty_stmt): New argument to build_empty_stmt.
13394         (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
13395         * builtins.c (gimplify_va_arg_expr): Use locations.
13396         (expand_builtin_sync_operation): Same.
13397         * c-typeck.c (build_component_ref): New argument.
13398         (build_array_ref): Same.
13399         (build_external_ref): Same.
13400         (c_expr_sizeof_expr): Same.
13401         (c_expr_sizeof_type): Same.
13402         (parser_build_unary_op): Same.
13403         (build_conditional_expr): Same.
13404         (build_compound_expr): Pass location on down.
13405         (build_compound_expr): New argument.
13406         (build_c_cast): Same.
13407         (c_cast_expr): Same.
13408         (build_asm_expr): Same.
13409         (c_finish_return): Same.
13410         (c_process_expr_stmt): Pass location on down.
13411         (c_finish_stmt_expr): New argument.
13412         (push_clenaup): Same.
13413         (c_finish_omp_parallel): Same.
13414         (c_finish_omp_task): Same.
13415         * gimplify.c (gimplify_call_expr): Pass location on down.
13416         * c-omp.c (c_finish_omp_master): New argument.
13417         (c_finish_omp_critical): Same.
13418         (c_finish_omp_ordered): Same.
13419         (c_finish_omp_barrier): Same.
13420         (-c_finish_omp_taskwait): Same.
13421         (c_finish_omp_atomic): Same.
13422         (c_finish_omp_flush): Same.
13423         * tree-inline.c (copy_tree_body_r): Pass location on down.
13424         (inline_forbidden_p): Remove use of input_location.
13425         * c-gimplify.c (c_build_bind_expr): New argument.
13426         * c-common.c (c_common_truthvalue_conversion): Pass location on down.
13427         (c_sizeof_or_alignof_type): New argument.
13428         (c_alignof_expr): Same.
13429         (build_va_arg): Same.
13430         (c_add_case_label): Same.
13431         * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
13432         c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
13433         c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
13434         c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
13435         c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
13436         c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
13437         New argument.
13438         * stub-objc.c (objc_build_selector_expr): Same.
13439         (objc_build_throw_stmt): Same.
13440         * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
13441         (c_parser_initelt): Same.
13442         (c_parser_compound_statement): Same.
13443         (c_parser_compound_statement_nostart): Same.
13444         (c_parser_label): Same.
13445         (c_parser_statement_after_labels): Same.
13446         (c_parser_if_body): Same.
13447         (c_parser_else_body): Same.
13448         (c_parser_if_statement): Same.
13449         (c_parser_switch_statement): Same.
13450         (c_parser_while_statement): Same.
13451         (c_parser_do_statement): Same.
13452         (c_parser_for_statement): Same.
13453         (c_parser_asm_statement): Same.
13454         (c_parser_conditional_expression): Same.
13455         (c_parser_binary_expression): Same.
13456         (c_parser_cast_expression): Same.
13457         (c_parser_unary_expression): Same.
13458         (c_parser_sizeof_expression): Same.
13459         (c_parser_alignof_expression): Same.
13460         (c_parser_postfix_expression): Same.
13461         (c_parser_expression): Same.
13462         (c_parser_objc_receiver): Same.
13463         (c_parser_omp_variable_list): Same.
13464         (c_parser_omp_structured_block): Same.
13465         (c_parser_omp_atomic): New argument.
13466         (c_parser_omp_barrier): Same.
13467         (c_parser_omp_critical): Same.
13468         (c_parser_omp_flush): Pass location on down.
13469         (c_parser_omp_for_loop): New argument.
13470         (c_parser_omp_for): Same.
13471         (c_parser_omp_master): Same.
13472         (c_parser_omp_ordered): Same.
13473         (c_parser_omp_sections_scope): Same.
13474         (c_parser_omp_sections): Same.
13475         (c_parser_omp_parallel): Same.
13476         (c_parser_omp_single): Same.
13477         (c_parser_omp_task): Same.
13478         (c_parser_omp_taskwait): Pass location on down.
13479         (c_parser_omp_construct): Same.
13480         (c_parser_omp_threadprivate): Same.
13481         * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
13482         builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
13483         tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
13484         c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
13485         c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
13486         emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
13487         rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
13488         tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
13489         config/i386/i386.c, stmt.c:
13490         Add location argument to the following function definitions and/or
13491         function calls: build_decl, objcp_start_struct, objcp_finish_struct,
13492         start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
13493         cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
13494         build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
13495         do_case, c_finish_bc_stmt, build_compound_literal,
13496         build_function_call.
13497         * c-decl.c (build_compound_literal): Add location argument.
13498         Make all diagnostic calls use location.
13499         (start_struct): Same.
13500         (finish_struct): Same.
13501         (start_enum): Same.
13502         (build_enumerator): Same.
13503         (start_function): Same.
13504         (grokdeclarator): Make all diagnostic calls use location.
13505         (store_parm_decls_oldstyle): Same.
13506         * c-typeck.c (build_function_call): Add location argument.
13507         Make all diagnostic calls use location.
13508         (do_case): Same.
13509         (c_finish_bc_stmt): Same.
13510         * tree-nested.c (get_trampoline_type): Add argument.
13511         Pass location to build_decl.
13512         (lookup_tramp_for_decl): Pass location to get_trampoline_type.
13513         * rtl.h (RTL_LOCATION): New.
13514         * c-common.c (c_add_case_label): Add location argument.
13515         Make all diagnostic calls use location.
13516         * c-common.h: Add location argument to make_fname_decl, do_case,
13517         c_add_case_label, build_function_call, resolve_overloaded_builtin.
13518         * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
13519         Set it appropriately for every case.  Pass enum_loc to start_enum
13520         call.  Pass value_loc first to build_enumerator.  Pass enum_loc to
13521         parser_xref_tag.
13522         (c_parser_struct_or_union_specifier): Save location.  Use it for
13523         start_struct, finish_struct, and parser_xref_tag.
13524
13525 2009-06-12  Ian Lance Taylor  <iant@google.com>
13526
13527         * fold-const.c (fold_unary): Rename local variable and to and_expr.
13528
13529         * c-opts.c (c_common_handle_option): For -Wc++-compat set
13530         cpp_opts->warn_cxx_operator_names.
13531
13532 2009-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13533
13534         PR tree-opt/38865
13535         * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
13536         is returns NULL and OP is a VCE, look through the VCE.
13537
13538 2009-06-12  Ian Lance Taylor  <iant@google.com>
13539
13540         PR bootstrap/40430
13541         * collect2.c (main): Use CONST_CAST2 in code inside #if
13542         LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
13543
13544 2009-06-12  Joey Ye  <joey.ye@intel.com>
13545
13546         PR middle-end/39146
13547         * cfgexpand.c (get_decl_align_unit): Update
13548         max_used_stack_slot_alignment with align instead of
13549         stack_alignment_needed.
13550
13551         * function.c (assign_stack_local_1): Update
13552         max_used_stack_slot_alignment with alignment_in_bits instead
13553         of stack_alignment_needed.
13554         (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
13555         here.
13556
13557 2009-06-12  Jakub Jelinek  <jakub@redhat.com>
13558
13559         * dwarf2out.c (last_var_location_insn): New variable.
13560         (dwarf2out_end_epilogue): Clear last_var_location_insn.
13561         (dwarf2out_var_location): Don't record anything after last real
13562         insn.  Only change labels if there were any real instructions
13563         in between last note and this one, or if changed sections.
13564
13565 2009-06-11  Richard Henderson  <rth@redhat.com>
13566
13567         * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
13568         note when storing the frame pointer in a register.
13569         (FRP): Don't redefine to nothing for epilogue.
13570         (alpha_expand_epilogue): Mark register and sp restores.
13571         (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
13572
13573         * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
13574         when gen_lowpart is needed.
13575
13576 2009-06-11  Richard Henderson  <rth@redhat.com>
13577
13578         * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
13579
13580         * dwarf2out.c (need_data_align_sf_opcode): New.
13581         (div_data_align): Move earlier.
13582         (def_cfa_1, reg_save): Use it.
13583
13584 2009-06-11  H.J. Lu  <hongjiu.lu@intel.com>
13585
13586         * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
13587         (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
13588         (ix86_handle_option): Handle OPT_mcrc32.
13589         (ix86_target_string): Add -mcrc32.
13590         (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
13591
13592         * config/i386/i386.h (TARGET_CRC32): New.
13593
13594         * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
13595         (sse4_2_crc32di): Likewise.
13596
13597         * config/i386/i386.opt (mcrc32): New.
13598
13599         * doc/invoke.texi: Document -mcrc32.
13600
13601 2009-06-11  Richard Henderson  <rth@redhat.com>
13602
13603         * common.opt (gdwarf-): Accept a version number.
13604         * doc/invoke.texi (gdwarf-): Update docs.
13605         * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
13606         * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
13607         version level, and record it.
13608
13609         * dwarf2.h (DW_CIE_VERSION): Remove.
13610         * dwarf2out.c (DWARF_VERSION): Remove.
13611         (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
13612         (output_call_frame_info): Use CIE version 3 for dwarf3,
13613         or if the return register column is out of range for version 1.
13614         (dwarf_stack_op_name): Add all dwarf3 values.
13615         (DEBUG_PUBTYPES_SECTION): New.
13616         (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
13617         encoding change for dwarf3.
13618         (output_die) [dw_val_class_die_ref]: Likewise.
13619         (output_compilation_unit_header): Emit correct version for dwarf3.
13620         (output_line_info): Likewise.
13621         (output_pubnames): Update for DWARF_VERSION removal.
13622         (output_aranges): Likewise.
13623         (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
13624         (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
13625         (dwarf2out_finish): Likewise.
13626
13627 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13628
13629         * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
13630         in r148403.
13631
13632 2009-06-11  David Daney  <ddaney@caviumnetworks.com>
13633
13634         PR c/39252
13635         * doc/extend.texi ( __builtin_unreachable): Document new builtin.
13636         * builtins.c (expand_builtin_unreachable): New function.
13637         (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
13638         * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
13639         * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
13640         successors.
13641         * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
13642         searching for missing barriers.
13643
13644 2009-06-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13645
13646         * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
13647         when -fprofile-generate* was passed.
13648         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
13649
13650 2009-06-11  Anthony Green  <green@moxielogic.com>
13651
13652         * config/moxie/moxie.md: Define length attribute for all instructions.
13653         (rCC): Define.
13654         (*b<cond:code>): Support limited branch ranges for new PC-relative
13655         branch instructions.
13656         * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
13657
13658 2009-06-11  Jakub Jelinek  <jakub@redhat.com>
13659
13660         * config/i386/i386.c (min_insn_size): Use get_attr_length
13661         for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
13662         For __asm return 0.
13663
13664         * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
13665         instead of emit_insn_before.
13666
13667 2009-06-10  Ian Lance Taylor  <iant@google.com>
13668
13669         PR bootstrap/40408
13670         * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
13671         GIMPLE_SWITCH.
13672
13673 2009-06-10  Revital Eres  <eres@il.ibm.com>
13674
13675         * passes.c (init_optimization_passes): Reschedule
13676         predictive-commoning pass before complete unroll pass.
13677
13678 2009-06-10  Martin Jambor  <mjambor@suse.cz>
13679
13680         * cgraph.c (cgraph_node_can_be_local_p): New function.
13681         (cgraph_make_node_local): New function.
13682         * cgraph.h (cgraph_node_can_be_local_p): Declare.
13683         (cgraph_make_node_local): Declare.
13684
13685 2009-06-10  Nathan Froyd  <froydnj@codesourcery.com>
13686
13687         * tree.h (tree_base): Add packed_flag and user_align fields.
13688         Decrease size of spare field.
13689         (TYPE_USER_ALIGN): Use user_align from tree_base.
13690         (DECL_USER_ALIGN): Likewise.
13691         (TYPE_PACKED): Use packed_flag from tree_base.
13692         (DECL_PACKED): Likewise.
13693         (tree_type): Delete packed_flag and user_align fields.  Widen
13694         precision field.  Widen mode field and shuffle fields to align
13695         mode on an 8-bit boundary.
13696         (tree_decl_common): Delete decl_flag_1 and user_align fields.
13697         Renumber decl_flag_* fields.  Fix comments.  Widen
13698         decl_common_unused field.
13699         (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
13700         (DECL_EXTERNAL): Likewise.
13701         (DECL_BIT_FIELD): Likewise.
13702         (DECL_NONADDRESSABLE_P): Likewise.
13703         (TYPE_DECL_SUPRESS_DEBUG): Likewise.
13704         * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
13705
13706 2009-06-10  Ian Lance Taylor  <iant@google.com>
13707
13708         * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
13709         (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
13710         (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
13711         (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
13712         (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
13713         DEF_VEC_ALLOC_FUNC_P.
13714         (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
13715         (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
13716         DEF_VEC_ALLOC_FUNC_O.
13717         (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
13718         (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
13719         DEF_VEC_ALLOC_FUNC_I.
13720         (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
13721         (vec_stack_p_reserve_exact_1): Declare.
13722         (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
13723         (vec_stack_free): Declare.
13724         (VEC_stack_alloc): Define.
13725         (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
13726         (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
13727         (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
13728         * vec.c (void_p): New type.  Call DEF_VEC_P and DEF_VEC_ALLOC_P
13729         for void_p.
13730         (stack_vecs): New static variable.
13731         (vec_stack_p_reserve_exact_1): New function.
13732         (vec_stack_o_reserve_1): New static function.
13733         (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
13734         (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
13735         (vec_stack_free): New function.
13736         * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
13737         (VEC_df_ref_stack_alloc): Define.
13738         (df_mw_hardreg_ptr): New type.  Use DEF_VEC_P and
13739         DEF_VEC_ALLOC_P_STACK.
13740         (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
13741         (struct df_collection_rec): Change _vec fields to VEC.  Remove
13742         _use fields.
13743         (df_free_collection_rec): Adjust for new fields.
13744         (df_insn_rescan): Use new df_collection_rec fields.
13745         (df_notes_rescan, df_canonize_collection_rec): Likewise.
13746         (df_ref_create_structure, df_ref_record): Likewise.
13747         (df_get_conditional_uses, df_get_call_refs): Likewise.
13748         (df_insn_refs_collect, df_bb_refs_collect): Likewise.
13749         (df_bb_refs_record, df_record_entry_block_defs): Likewise.
13750         (df_record_exit_block_uses, df_bb_verify): Likewise.
13751         (df_swap_refs): Change ref_vec parameter to VEC.  Change all callers.
13752         (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
13753         Remove count parameter.  Change return type to void.  Change all
13754         callers.
13755         (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
13756         Remove count parameter.  Change return type to void.  Change all
13757         callers.
13758         (df_install_refs): Change old_vec parameter to VEC.  Remove count
13759         parameter.  Change all callers.
13760         (df_install_mws): Change old_vec parameter to VEC.  Remove count
13761         parameter.  Change all callers.
13762         (df_refs_verify): Change new_rec parameter to VEC.  Change call
13763         callers.
13764         (df_mws_verify): Likewise.
13765
13766 2009-06-10  Alexandre Oliva  <aoliva@redhat.com>
13767
13768         * gcc.c (compare_files): Cast munmap argumento to caddr_t.
13769
13770 2009-06-10  H.J. Lu  <hongjiu.lu@intel.com>
13771
13772         * doc/extend.texi: Add description for __builtin_ia32_crc32di.
13773
13774 2009-06-10  Anthony Green  <green@moxielogic.com>
13775
13776         * config/moxie/crti.asm: New file.
13777         * config/moxie/crtn.asm: New file.
13778         * config/moxie/moxie.c: New file.
13779         * config/moxie/moxie.h: New file.
13780         * config/moxie/sfp-machine.h: New file.
13781         * config/moxie/moxie-protos.h: New file.
13782         * config/moxie/t-moxie: Created.
13783         * config/moxie/t-moxie-softfp: Created.
13784         * config/moxie/moxie.md: Created.
13785         * config/moxie/constraints.md: Created.
13786         * config.gcc: Add moxie support.
13787         * doc/md.texi (Machine Constraints): Add moxie constraints.
13788         * doc/contrib.texi (Contributors): Mention moxie port.
13789         * doc/install.texi (Specific): Mention the moxie port.
13790
13791 2009-06-09  Ian Lance Taylor  <iant@google.com>
13792
13793         * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
13794         compiling with C++.
13795         * optabs.c (optab_table): Only use designated initializers if
13796         HAVE_DESIGNATED_INITIALIZERS is defined.
13797         (convert_optab_table): Likewise.
13798         (init_optabs): Always call init_insn_codes if
13799         HAVE_DESIGNATED_INITIALIZERS is not defined.
13800
13801 2009-06-09  Ian Lance Taylor  <iant@google.com>
13802
13803         * targhooks.c (default_builtin_vectorized_function): Change fn
13804         parameter to unsigned int.
13805         (default_builtin_vectorized_conversion): Change code parameter to
13806         unsigned int.
13807         (default_builtin_reciprocal): Change fn parameter to unsigned int.
13808         * targhooks.h: Update declarations.
13809         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
13810         parameter to unsigned int.
13811
13812         * c-typeck.c (comptypes_check_enum_int): New static function.
13813         (comptypes_internal): Add enum_and_int_p parameter.  Change all
13814         callers.
13815         (comp_target_types): Add location parameter.  Change all callers.
13816         (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
13817         Change all callers.
13818         (function_types_compatible_p, type_lists_compatible_p): Likewise.
13819         (build_conditional_expr): Add colon_loc parameter.  Change all
13820         callers.
13821         (convert_for_assignment): Add location parameter.  Change all callers.
13822         * c-parser.c (c_parser_conditional_expression): Pass location of
13823         colon to build_conditional_expr.
13824         * c-tree.h (build_conditional_expr): Update declaration.
13825
13826 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13827
13828         * graphite.c: Revert previous patch.
13829
13830 2009-06-09  Sebastian Pop  <sebastian.pop@amd.com>
13831
13832         PR bootstrap/40103
13833         * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
13834
13835 2009-06-09  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13836
13837         * tree-ssa-loop-prefetch.c
13838         (loop_prefetch_arrays): Fixed a portability problem in printf format
13839         string.
13840
13841 2009-06-09  Martin Jambor  <mjambor@suse.cz>
13842
13843         PR tree-optimization/40351
13844         * tree-sra.c (propagate_subacesses_accross_link): Check that a
13845         refrence to a potential artifical subaccess can be constructed.
13846
13847 2009-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13848
13849         * config/sh/sh-protos.h (sh_optimization_options): Declare.
13850         (sh_override_options): Likewise.
13851         * config/sh/sh.c: Include params.h.
13852         (sh_optimization_options): New.
13853         (sh_override_options): Likewise.
13854         * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
13855         (OVERRIDE_OPTIONS): Use sh_override_options.
13856
13857 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
13858
13859         * dwarf2out.c (emit_cfa_remember): New variable.
13860         (add_fde_cfi): If emit_cfa_remember, recurse to add
13861         DW_CFA_remember_state first.
13862         (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
13863         instead just set emit_cfa_remember.
13864
13865 2009-06-08  Jan Hubicka  <jh@suse.cz>
13866
13867         PR debug/40126
13868         * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
13869
13870 2009-06-08  Jan Hubicka  <jh@suse.cz>
13871
13872         PR middle-end/39834
13873         * cgraphunit.c (save_inline_function_body): Do not copy transform
13874         hooks for saved inline bodies.
13875         * ipa-passes.c (do_per_function): Do not add the hoks multiple times
13876         for given function.
13877
13878 2009-06-08  Adam Nemet  <anemet@caviumnetworks.com>
13879
13880         * jump.c (returnjump_p): Handle delayed branches.  Add missing
13881         function comment.
13882
13883 2009-06-08  Jan Hubicka  <jh@suse.cz>
13884
13885         PR middle-end/40102
13886         * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
13887         original node might've been modified.
13888         * tree-inline.c (copy_bb): Do not assume that all clones are the same.
13889
13890 2009-06-08  Jakub Jelinek  <jakub@redhat.com>
13891
13892         * tree-object-size.c (addr_object_size): Add OSI argument.
13893         Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
13894         (compute_builtin_object_size, expr_object_size): Adjust callers.
13895         (plus_stmt_object_size): Call addr_object_size instead of
13896         compute_builtin_object_size.
13897
13898 2009-06-08  Ghassan Shobaki  <ghassan.shobaki@amd.com>
13899             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
13900
13901         * tree-ssa-loop-prefetch.c
13902         (gather_memory_references): Introduced a counter for the number of
13903         memory references.
13904         (anything_to_prefetch_p): Introduced a counter for the number of
13905         prefetches.
13906         (is_loop_prefetching_profitable): New function with a cost model
13907         for prefetching.
13908         (loop_prefetch_arrays): Use the new cost model to determine if
13909         prefetching is profitable.
13910         * params.def (MIN_INSN_TO_PREFETCH_RATIO,
13911         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13912         * params.h (MIN_INSN_TO_PREFETCH_RATIO,
13913         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13914         * doc/invoke.texi (MIN_INSN_TO_PREFETCT_RATIO,
13915         PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
13916
13917 2009-06-08  Michael Matz  <matz@suse.de>
13918
13919         PR debug/40012
13920         * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
13921         partitions use the same.
13922         (expand_one_var): Deal with DECL_RTL sometimes begin set also
13923         for basevars of SSA_NAMEs.
13924         (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
13925         to not expand them twice.
13926         (gimple_expand_cfg): Clear DECL_RTL for those decls that have
13927         multiple places.
13928
13929 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
13930
13931         * common.opt (fcompare-debug=, fcompare-debug-second): New.
13932         (fdump-final-insns=, gtoggle): New.
13933         * doc/invoke.texi: Document them.
13934         * final.c (rest_of_clean_state): Dump final insn stream.
13935         * gcc.c (invoke_as): Hook in -fcompare-debug.
13936         (static_spec_functions): Add compare-debug-dump-opt,
13937         compare-debug-self-opt and compare-debug-auxbase-opt.
13938         (compare_debug, compare_debug_second, compare_debug_opt): New.
13939         (switches_debug_check, n_switches_debug_check): New.
13940         (debug_auxbase_opt, debug_check_temp_file): New.
13941         (process_command): Handle -fno-compare-debug, -fcompare-debug and
13942         -fcompare-debug=*.
13943         (do_self_spec): Handle arguments after switches.
13944         (do_spec_1): Add .gk extension to temp file basenames for compare.
13945         (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
13946         (cc1_options): Use it instead of normal auxbase computation for
13947         the second compare-debug compilation.
13948         (compare_files): New.
13949         (main): Set up and implement compare debug mode.
13950         (compare_debug_dump_opt_spec_function): New.
13951         (compare_debug_self_opt_spec_function): New.
13952         (compare_debug_auxbase_opt_spec_function): New.
13953         * toplev.c (process_options): Handle flag_gtoggle,
13954         flag_dump_final_insns.
13955         * coverage.c (coverage_begin_output): Don't overwrite .gcno file
13956         during -fcompare-debug-second compilation.
13957
13958 2009-06-07  Ian Lance Taylor  <iant@google.com>
13959
13960         * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
13961         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
13962
13963         * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
13964         with no default node.  Change warning with %H to warning_at.
13965         Don't clear warn_switch around case checking.
13966         * doc/invoke.texi (Warning Options): Clarify distinction between
13967         -Wswitch and -Wswitch-enum.
13968
13969 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13970
13971         * tree-pass.h (TODO_update_ssa_any): Document internal use only.
13972
13973 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13974
13975         * gbl-ctors.h: Add header guard.
13976
13977 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13978
13979         * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
13980         sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
13981         vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
13982         vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
13983         prototypes for removed functions.
13984         (expressions_equal_p): Move to ...
13985         * tree-ssa-sccvn.h: ... here and ...
13986         * matrix-reorg.c: ... adjust includes.
13987
13988 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13989
13990         * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
13991
13992 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13993
13994         * c-decl.c (finish_decl): Use bool for variable was_incomplete.
13995         (finish_function): Remove erroneous whitespace.
13996
13997 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13998
13999         * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
14000         (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
14001
14002 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14003
14004         * errors.c (internal_error): Commentary typo fix.
14005         * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
14006         * tree-ssa-pre.c: Ditto.
14007
14008 2009-06-07  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14009
14010         * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
14011         them is supposed to hold actual statements.
14012
14013 2009-06-06  Ian Lance Taylor  <iant@google.com>
14014
14015         * doc/extend.texi (Attribute Syntax): Document that C++ labels on
14016         empty statements can now have attributes.
14017
14018 2009-06-05  Shujing Zhao  <pearly.zhao@oracle.com>
14019
14020         * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
14021         * config/mips/mips.md: Ditto.
14022
14023 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
14024
14025         * config/rs6000/eabi.asm (__eabi_convert): Don't define if
14026         _RELOCATABLE.
14027         (__eabi_uconvert): Likewise.
14028
14029 2009-06-05  Nathan Froyd  <froydnj@codesourcery.com>
14030
14031         * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
14032         CFI_* definitions with IN_GCC.
14033
14034 2009-06-05  David Edelsohn  <edelsohn@gnu.org>
14035
14036         * xcoffout.h (xcoffout_source_line): Update prototype.
14037
14038 2009-06-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14039
14040         * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
14041         mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
14042
14043 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
14044
14045         PR middle-end/40340
14046         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
14047         inlined_function_outer_scope_p blocks for artificial inlines
14048         even at -g0/-g1.
14049         * tree.c (tree_nonartificial_location): Rewrite using
14050         block_nonartificial_location.
14051
14052 2009-06-05  Revital Eres  <eres@il.ibm.com>
14053             Leehod Baruch  <leehod@il.ibm.com>
14054
14055         * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
14056         (expand_expr_real_1): Remove comment.
14057         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14058         Vectorize misaligned access when the target supports it.
14059         (vect_supportable_dr_alignment): Check for unaligned access support.
14060         * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
14061         and remove asset.
14062
14063 2009-06-05  Julian Brown  <julian@codesourcery.com>
14064
14065         * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
14066         * config/arm/ieee754-sf.S (cmpsf2): Likewise.
14067
14068 2009-06-05  Richard Guenther  <rguenther@suse.de>
14069
14070         PR bootstrap/40350
14071         * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
14072         as possibly unused.
14073
14074 2009-06-05  Jakub Jelinek  <jakub@redhat.com>
14075
14076         * config/s390/s390.c (global_not_special_regno_p): New static inline.
14077         (save_gprs): Don't tell unwinder when a global register is saved.
14078         (s390_emit_epilogue): Emit needed epilogue unwind info.
14079
14080 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
14081
14082         * dwarf2out.c (deferred_asm_name): New.
14083         (add_name_and_src_coords_attributes): Defer creation of
14084         DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
14085         computed yet.
14086         (move_linkage_attr): New.
14087         (dwarf2out_finish): Revisit deferrals and emit attributes at the
14088         right place.
14089
14090 2009-06-05  Alexandre Oliva  <aoliva@redhat.com>
14091
14092         * tree-nested.c (finalize_nesting_tree_1): Declare the
14093         frame_decl in the binding tree.
14094
14095 2009-06-04  Cary Coutant  <ccoutant@google.com>
14096
14097         * basic-block.h (struct basic_block_def): Add discriminator field.
14098         * dbxout.c (dbxout_source_line): Add new parameter.  Change all
14099         callers.
14100         * debug.c (do_nothing_debug_hooks): Add additional entry.
14101         (debug_nothing_int_charstar_int): New function.
14102         * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
14103         (debug_nothing_int_charstar_int): New declaration.
14104         * dwarf2out.c (dwarf2out_source_line): Add new parameter.  Write
14105         discriminator value in .loc directive.
14106         * final.c (last_discriminator): New variable.
14107         (discriminator): New variable.
14108         (final_start_function): Initialize above variables, pass current
14109         discriminator to debug hook.
14110         (notice_source_line): Check for discriminator change.
14111         * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
14112         * sdbout.c (sdbout_source_line): New parameter.
14113         * tree-cfg.c (struct locus_discrim_map): New structure type.
14114         (discriminator_per_locus): New hash table.
14115         (build_gimple_cfg): Allocate and free discriminator hash table.
14116         (make_edges): Call assign_discriminator.
14117         (locus_map_hash): New function.
14118         (locus_map_eq): New function.
14119         (next_discriminator_for_locus): New function.
14120         (same_line_p): New function.
14121         (assign_discriminator): New function.
14122         (make_cond_expr_edges): Call assign_discriminator.
14123         (make_gimple_switch_edges): Likewise.
14124         (first_non_label_stmt): New function.
14125         * vmsdbgout.c (vmsdbgout_source_line): Add new parameter.  Change
14126         all callers.
14127         * xcoffout.c (xcoffout_source_line): Add new parameter.
14128
14129         * configure.ac (gcc_cv_as_discriminator): New configury check for
14130         gas support for discriminator.
14131         * configure: Regenerate.
14132         * config.in: Regenerate.
14133
14134 2009-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14135
14136         * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
14137         val after checking for integers.
14138
14139 2009-06-04  Uros Bizjak  <ubizjak@gmail.com>
14140
14141         * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
14142         X64_REGPARM_MAX.
14143         (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
14144         (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
14145         (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
14146         * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
14147         X64_REGPARM_MAX.  Use X86_64_MS_SSE_REGPARM_MAX instead of
14148         X64_SSE_REGPARM_MAX.
14149         * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
14150         X64_SSE_REGPARM_MAX.
14151
14152 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14153
14154         * gcc.c (report_times_to_file): New.
14155         (execute): Implement it.
14156         (process_command): Support -time=.
14157         * doc/invoke.texi: Document it.
14158
14159 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14160
14161         * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
14162         that have value exprs.
14163
14164 2009-06-04  Alexandre Oliva  <aoliva@redhat.com>
14165
14166         * dwarf2asm.c (dw2_force_const_mem): Defer creation of
14167         declarations for constants until...
14168         (dw2_output_indirect_constant_1): ... this point.
14169
14170 2009-06-04  Richard Earnshaw  <rearnsha@arm.com>
14171
14172         PR target/10242
14173         * arm.md (arm_addsi3): Don't try to split an add with an
14174         eliminable register until after reload has completed.
14175
14176 2009-06-03  Ian Lance Taylor  <iant@google.com>
14177
14178         * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
14179         * genattrtab.c (write_length_unit_log): Likewise.
14180         * genchecksum.c (dosum): Likewise.
14181         * gengtype.c (write_rtx_next): Likewise.
14182         (finish_root_table, write_roots): Likewise.
14183         * gimple.c (gimple_ops_offset_): Likewise.
14184         * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
14185         * config/arc/arc.c (arc_attribute_table): Likewise.
14186         * config/arm/arm.c (arm_attribute_table): Likewise.
14187         * config/avr/avr.c (avr_attribute_table): Likewise.
14188         * config/crx/crx.c (crx_attribute_table): Likewise.
14189         * config/m32r/m32r.c (m32r_attribute_table): Likewise.
14190         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
14191         * config/mcore/mcore.c (mcore_attribute_table): Likewise.
14192         * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
14193         * config/sh/sh.c (sh_attribute_table): Likewise.
14194         * config/sparc/sparc.c (sparc_attribute_table): Likewise.
14195         * config/spu/spu.c (spu_attribute_table): Likewise.
14196         * config/v850/v850.c (v850_attribute_table): Likewise.
14197
14198         * config/alpha/alpha.c (vms_attribute_table): Make static.
14199         * config/bfin/bfin.c (bfin_attribute_table): Likewise.
14200         * config/h8300/h8300.c (h8300_attribute_table): Likewise.
14201         * config/mips/mips.c (mips_attribute_table): Likewise.
14202
14203         * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
14204         $(SYSTEM_H).
14205         (cc1-checksum.o): Likewise.
14206
14207 2009-06-03  Steve Ellcey  <sje@cup.hp.com>
14208
14209         * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
14210
14211 2009-06-03  Jakub Jelinek  <jakub@redhat.com>
14212
14213         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
14214         insn if it is changing sp.  Use gen_add3_insn instead of
14215         conditionally gen_addsi3 and gen_adddi3.
14216         (offset_below_red_zone_p): New static inline function.
14217         (rs6000_emit_epilogue): Emit needed epilogue unwind info.
14218         Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
14219         * config/rs6000/ppc-asm.h: Include auto-host.h.
14220         (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
14221         CFI_RESTORE): Define.
14222         * config/rs6000/crtresxgpr.asm: Add unwind info.
14223         * config/rs6000/crtresxfpr.asm: Likewise.
14224         * config/rs6000/crtresgpr.asm: Likewise.
14225         * config/rs6000/crtresfpr.asm: Likewise.
14226         * config/rs6000/crtsavgpr.asm: Likewise.
14227         * config/rs6000/crtsavfpr.asm: Likewise.
14228
14229         * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
14230         argument of DWARF2_FRAME_REG_OUT macros.
14231
14232 2009-06-03  Julian Brown  <julian@codesourcery.com>
14233
14234         * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
14235         words or less (including TImode) in core registers.
14236
14237 2009-06-03  Richard Guenther  <rguenther@suse.de>
14238
14239         PR middle-end/40328
14240         * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
14241
14242 2009-06-03  Andrey Belevantsev  <abel@ispras.ru>
14243
14244         * statistics.c (statistics_counter_event): Do not record event
14245         in pass dump if its number == -1.
14246         (curr_statistics_hash): Add assert that we never get passes
14247         with static number == -1.
14248
14249 2009-06-03  Richard Guenther  <rguenther@suse.de>
14250             Andrey Belevantsev  <abel@ispras.ru>
14251
14252         * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
14253         non-BLKmode arrays addressable.
14254
14255 2009-06-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
14256
14257         * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
14258         * config/m68k/m68k.h: ... here.
14259
14260 2009-06-03  Martin Jambor  <mjambor@suse.cz>
14261
14262         PR tree-optimization/40323
14263         * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
14264         assignment.
14265
14266 2009-06-03  Richard Guenther  <rguenther@suse.de>
14267
14268         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14269         consistently.
14270
14271 2009-06-03  Shujing Zhao  <pearly.zhao@oracle.com>
14272
14273         * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
14274         JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
14275         JUMP_TABLE_DATA_P where applicable.
14276         * config/sh/sh.c: Ditto.
14277         * config/sh/sh.h: Ditto.
14278         * config/sh/sh.md: Ditto.
14279         * config/sh/symbian.c: Ditto.
14280
14281 2009-06-03  Uros Bizjak  <ubizjak@gmail.com>
14282
14283         * config/i386/driver-i386.c (describe_cache): Optimize
14284         concatenation of strings.  Use snprintf instead of sprintf.
14285         (host_detect_local_cpu): Ditto.  Ignore -march and -mtune for native
14286         target when not compiling with GCC.
14287
14288 2009-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
14289
14290         * config/sh/sh.c: Revert last change.
14291         (sh_expand_epilogue): Emit a blockage insn before the frame
14292         pointer adjustment unconditionally.
14293
14294 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14295
14296         * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
14297         * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
14298         * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
14299         * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
14300         to COLLECT_GCC_OPTIONS.
14301
14302 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14303
14304         * collect2.c (target_system_root): New variable.
14305         (main): Handle --sysroot=.
14306         (ignore_library): Strip the sysroot from the library path.
14307
14308 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14309
14310         * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
14311         (collect2.o): Depend on collect2-aix.h.
14312         (collect2-aix.o): New rule.
14313         * collect2-aix.h: New file.
14314         * collect2-aix.c: Likewise.
14315         * collect2.c: Include collect2-aix.h.  Don't undefine
14316         OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
14317         Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
14318         Use TARGET_AIX_VERSION instead of _AIX51.
14319         * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
14320         * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
14321         * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
14322         * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
14323         * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
14324
14325 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14326
14327         * collect2.c (ignore_library): Avoid premature post-increment
14328         and null deference.
14329
14330 2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
14331
14332         * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
14333         * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
14334         !CROSS_DIRECTORY_STRUCTURE alternative and use it for
14335         CROSS_DIRECTORY_STRUCTURE too.
14336         (LINK_LIBG_SPEC): Likewise.
14337         (LIB_SPEC): Add %R to sysroot paths.
14338         * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
14339         (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
14340         * config/rs6000/aix51.h: As for aix43.h.
14341         * config/rs6000/aix52.h: Likewise.
14342         * config/rs6000/aix53.h: Likewise.
14343         * config/rs6000/aix61.h: Likewise.
14344         * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
14345         to the beginning of sysroot paths.
14346
14347 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14348
14349         * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
14350         INSN_LISTs that are out of the REG_NOTE range.
14351
14352 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14353
14354         * loop-unroll.c (struct iv_to_split): Add pointer to next.
14355         (struct var_to_expand): Likewise.
14356         (struct opt_info): Add head and tail for linked lists of the above.
14357         (analyze_insn_to_expand_var): Initialize next.
14358         (analyze_iv_to_split_insn): Likewise.
14359         (analyze_insns_in_loop): Create linked lists.
14360         (allocate_basic_variable): Simplify for use without hash table.
14361         (insert_var_expansion_initialization): Likewise, make it type-safer.
14362         (combine_var_copies_in_loop_exit): Likewise.
14363         (apply_opt_in_copies): Walk lists rather than hash tables.
14364         (release_var_copies): Simplified and inlined by hand into...
14365         (free_opt_info): ... this function.
14366
14367 2009-06-02  Richard Guenther  <rguenther@suse.de>
14368
14369         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
14370         for field decls.
14371
14372 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14373
14374         * cfgexpand.c (gimple_expand_cfg): Discard the source location
14375         only for builtins that are not overridden.
14376
14377 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14378
14379         * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
14380         label string.
14381
14382 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14383
14384         * df-core.c (df_ref_debug): Honor -fdump-noaddr.
14385
14386 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14387
14388         * combine.c (move_deaths): Compare LUIDs within the same BB only.
14389
14390 2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
14391
14392         * common.opt (fdump-unnumbered-links): New.
14393         * doc/invoke.texi (-fdump-unnumbered-links): Document it.
14394         * print-rtl.c (flag_dump_unnumbered_links): New.
14395         (print_rtx): Test it.
14396
14397 2009-06-02  Richard Earnshaw  <rearnsha@arm.com>
14398
14399         * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
14400         push/pop multiple to 8-byte alignment.
14401
14402 2009-06-01  Jakub Jelinek  <jakub@redhat.com>
14403
14404         * config/i386/i386.c (queued_cfa_restores): New static variable.
14405         (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
14406         functions.
14407         (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
14408         (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
14409         Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
14410         Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
14411         note unconditionally.
14412         (ix86_emit_restore_regs_using_mov): Likewise.
14413         (ix86_emit_restore_sse_regs_using_mov): Likewise.
14414         (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
14415         it through to ix86_emit_restore_reg_using_pop.
14416         (ix86_emit_leave): Add RED_OFFSET argument.  Call
14417         ix86_add_queued_cfa_restore_notes.  Call ix86_add_cfa_restore_note
14418         instead of adding REG_CFA_OFFSET note unconditionally.
14419         (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
14420         the above functions.  Call ix86_add_queued_cfa_restore_notes when
14421         needed.
14422
14423         * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
14424         force output of the label even for dwarf2out_do_cfi_asm.
14425         (add_fde_cfi): If -g2 and above and cfi might change CFA,
14426         force creation of CFI label and chain DW_CFA_set_loc jumping to it
14427         for convert_cfa_to_fb_loc_list.  Adjust other dwarf2out_cfi_label
14428         caller.
14429         (dwarf2out_stack_adjust, dwarf2out_frame_debug,
14430         dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
14431         dwarf2out_cfi_label callers.
14432         * tree.h (dwarf2out_cfi_label): Adjust prototype.
14433         * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
14434         Adjust dwarf2out_cfi_label callers.
14435         * config/vax/vax.c (vax_output_function_prologue): Likewise.
14436
14437         * config/i386/i386.h (struct machine_cfa_state,
14438         struct machine_function): Guard with ifndef USED_FOR_TARGET
14439         instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
14440
14441         PR other/40024
14442         * emutls.c (__emutls_get_address): Change arr->size to mean number
14443         of allocated arr->data entries instead of # of slots + 1.
14444
14445         PR middle-end/40316
14446         * recog.c (peep2_reinit_state): New function.
14447         (peephole2_init_state): Use it at the end of a basic block and also
14448         when seeing a RTX_FRAME_RELATED_P insn.
14449
14450 2009-06-01  Steve Ellcey  <sje@cup.hp.com>
14451
14452         * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
14453         fixuns_truncrfdi2): New.
14454         (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
14455         *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
14456         *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
14457         *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
14458         *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
14459         *recip_approx): Remove.
14460         (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
14461         moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
14462         divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
14463         move to div.md.
14464         * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
14465         setf_exp_rf): New.
14466
14467 2009-06-01  Ian Lance Taylor  <iant@google.com>
14468
14469         * attribs.c (register_attribute): Use CONST_CAST.
14470         * collect2.c (main): Use CONST_CAST2.
14471         (scan_prog_file): Likewise.
14472         * gcc.c (process_command, main): Likewise.
14473         * toplev.c (toplev_main): Likewise.
14474
14475         * c-typeck.c (handle_warn_cast_qual): New static function,
14476         partially broken out of build_c_cast.
14477         (build_c_cast): Call handle_warn_cast_qual.
14478         * doc/invoke.texi (Warning Options): Document new effect of
14479         -Wcast-qual.
14480
14481 2009-06-01  Aldy Hernandez  <aldyh@redhat.com>
14482
14483         * diagnostic.c (diagnostic_build_prefix): Always print columns.
14484         (diagnostic_report_current_module): Print columns.
14485         * common.opt (flag_show_column): Enable by default.
14486
14487 2009-06-01  Luis Machado  <luisgpm@br.ibm.com>
14488
14489         * alias.c (find_base_term): Check for NULL term before returning.
14490
14491 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14492
14493         Revert due to PR40320:
14494         2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14495         * calls.c (emit_library_call_value_1): Don't force_operand for move
14496         and push insns.
14497
14498 2009-06-01  Olivier Hainque  <hainque@adacore.com>
14499             Eric Botcazou  <ebotcazou@adacore.com>
14500
14501         * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
14502         to be processed as a bitfield for constructor output purposes.
14503         * output.h (initializer_constant_valid_for_bitfield_p): Declare
14504         new function.
14505         * varasm.c (oc_local_state): New type, output_constructor
14506         local state to support communication with helpers.
14507         (oc_outer_state): New type, output_constructor outer state of
14508         relevance in recursive calls.
14509         (output_constructor_array_range): New output_constructor helper,
14510         extracted code for an array range element.
14511         (output_constructor_regular_field): New output_constructor helper,
14512         extracted code for an element that is not a bitfield.
14513         (output_constructor_bitfield): New output_constructor helper,
14514         extracted code for a bitfield element.  Accept an OUTER state
14515         argument for recursive processing.  Recurse on record or array
14516         CONSTRUCTOR values, possibly past noop conversions.
14517         (initializer_constant_valid_for_bitfield_p): New predicate.  Whether
14518         VALUE is a valid constant-valued expression for use in a static
14519         bit-field initializer.
14520         (output_constructor): Rework to use helpers.  Accept and honor an
14521         OUTER state argument for recursive calls.  Return total size.  Be
14522         prepared for nested constructors initializing bitfields.
14523         (output_constant): Feed OUTER in calls to output_constructor.
14524
14525 2009-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14526
14527         * calls.c (emit_library_call_value_1): Don't force_operand for move
14528         and push insns.
14529
14530 2009-06-01  Nick Clifton  <nickc@redhat.com>
14531
14532         * doc/invoke.texi (IA-64 Options): Fix typo.
14533
14534 2009-06-01  Ira Rosen  <irar@il.ibm.com>
14535
14536         PR tree-optimization/39129
14537         * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
14538         printed message.
14539         (vect_do_peeling_for_loop_bound): Use
14540         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14541         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14542         (vect_loop_versioning): Likewise.
14543         (vect_create_cond_for_alias_checks): Fix indentation.
14544         * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
14545         macros.
14546         (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
14547         (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
14548         * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
14549         "control flow in loop".
14550         (vect_estimate_min_profitable_iters): Use
14551         LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
14552         LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
14553         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
14554         (vect_create_data_ref_ptr): Don't mention array dimension in printing.
14555         * tree-vect-stmts.c (vectorizable_store): Replace the check that the
14556         statement belongs to a group of strided accesses with the exact code
14557         check.
14558         (vectorizable_load): Likewise.
14559         * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
14560         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
14561
14562 2009-06-01  Gerald Pfeifer  <gerald@pfeifer.com>
14563
14564         * config/freebsd-stdint.h: New file.
14565         * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
14566         Add freebsd-stdint.h to tm_file.
14567
14568 2009-06-01  Richard Earnshaw  <rearnsha@arm.com>
14569
14570         * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
14571         (thumb2_extendhidi2): Likewise.
14572
14573 2009-05-31  Ian Lance Taylor  <iant@google.com>
14574
14575         * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
14576
14577 2009-05-31  Ian Lance Taylor  <iant@google.com>
14578
14579         * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
14580         (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
14581         (ipa-reference.o): Depend upon gt-ipa-reference.h.
14582
14583 2009-05-31  Jason Merrill  <jason@redhat.com>
14584
14585         * tree-pretty-print.c (print_call_name): Take the callee, not the
14586         call itself.  Make non-static.  Use dump_function_name for functions.
14587         (dump_generic_node): Adjust.
14588         * diagnostic.h: Declare print_call_name.
14589         * gimple-pretty-print.c (dump_gimple_call): Use it.
14590
14591 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14592
14593         * config/sh/sh.md (ashldi3_std): New define_expand.
14594         (ashldi3): Use it.
14595
14596 2009-05-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14597
14598         PR target/40313
14599         * config/sh/sh.c: Include debug.h.
14600         (sh_expand_epilogue): Emit a blockage insn before the frame
14601         pointer adjustment also when dwarf2out_do_frame returns true.
14602
14603 2009-05-31  Richard Earnshaw  <rearnsha@arm.com>
14604
14605         * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
14606         (thumb2_extendqidi2): New pattern.
14607
14608 2009-05-31  Ira Rosen  <irar@il.ibm.com>
14609
14610         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
14611         mark phis for renaming.
14612         * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
14613         (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
14614         Call mark_sym_for_renaming.
14615         * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
14616         * tree-vect-loop.c (vect_transform_loop): Remove
14617         vect_memsyms_to_rename initialization and a call to
14618         mark_set_for_renaming.
14619
14620 2009-05-31  Jakub Jelinek  <jakub@redhat.com>
14621
14622         PR middle-end/40304
14623         * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
14624         frame related even if !set_cfa && style < 0.
14625
14626 2009-05-30  Kai Tietz  <kai.tietz@onevision.com>
14627
14628         * config/i386/mingw-tls.c: New file.
14629         * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
14630         * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
14631         defining _WIN32 but not __CYGWIN__.
14632
14633 2009-05-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14634
14635         * configure.ac: Add MPC support.
14636
14637         * config.in, configure: Regenerate.
14638
14639 2009-05-29  Richard Henderson  <rth@redhat.com>
14640
14641         * cfgcleanup.c (try_crossjump_to_edge): Only skip past
14642         NOTE_INSN_BASIC_BLOCK.
14643         * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
14644         Duplicate NOTE_INSN_EPILOGUE_BEG notes.
14645         * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
14646         to be deleted.
14647         * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
14648         add in_use field.
14649         (add_cfi): Disable check redefining cfa away from drap.
14650         (lookup_cfa_1): Add remember argument; handle remember/restore.
14651         (lookup_cfa): Pass remember argument.
14652         (cfa_remember): New.
14653         (compute_barrier_args_size_1): Remove sibcall check.
14654         (dwarf2out_frame_debug_def_cfa): New.
14655         (dwarf2out_frame_debug_adjust_cfa): New.
14656         (dwarf2out_frame_debug_cfa_offset): New.
14657         (dwarf2out_frame_debug_cfa_register): New.
14658         (dwarf2out_frame_debug_cfa_restore): New.
14659         (dwarf2out_frame_debug): Handle REG_CFA_* notes.
14660         (dwarf2out_begin_epilogue): New.
14661         (dwarf2out_frame_debug_restore_state): New.
14662         (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
14663         DW_CFA_restore_state.
14664         (output_cfi_directive): Likewise.
14665         (convert_cfa_to_fb_loc_list): Likewise.
14666         (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
14667         * dwarf2out.h: Update.
14668         * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
14669         (copy_insn_1): Early out for null.
14670         * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
14671         and dwarf2out_frame_debug_restore_state.
14672         * function.c (prologue, epilogue, sibcall_epilogue): Remove.
14673         (prologue_insn_hash, epilogue_insn_hash): New.
14674         (free_after_compilation): Adjust freeing accordingly.
14675         (record_insns): Create hash table if needed; push insns into
14676         hash instead of array.
14677         (maybe_copy_epilogue_insn): New.
14678         (contains): Search hash table instead of array.
14679         (sibcall_epilogue_contains): Remove.
14680         (thread_prologue_and_epilogue_insns): Split eh_return insns
14681         and mark them as epilogues.
14682         (reposition_prologue_and_epilogue_notes): Rewrite epilogue
14683         scanning in terms of basic blocks.
14684         * insn-notes.def (CFA_RESTORE_STATE): New.
14685         * jump.c (returnjump_p_1): Accept EH_RETURN.
14686         (eh_returnjump_p_1, eh_returnjump_p): New.
14687         * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
14688         CFA_REGISTER, CFA_RESTORE): New.
14689         * rtl.def (EH_RETURN): New.
14690         * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
14691
14692         * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
14693         (eh_return_internal): Use eh_return rtx; split w/ epilogue.
14694
14695         * config/i386/i386.c (gen_push): Update cfa state.
14696         (pro_epilogue_adjust_stack): Add set_cfa argument.  When true,
14697         add a CFA_ADJUST_CFA note.
14698         (ix86_dwarf_handle_frame_unspec): Remove.
14699         (ix86_expand_prologue): Update cfa state.
14700         (ix86_emit_restore_reg_using_pop): New.
14701         (ix86_emit_restore_regs_using_pop): New.
14702         (ix86_emit_leave): New.
14703         (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
14704         (ix86_expand_epilogue): Add notes for unwinding the epilogue.
14705         * config/i386/i386.h (struct machine_cfa_state): New.
14706         (ix86_cfa_state): New.
14707         * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
14708         (eh_return_internal): Merge from eh_return_<mode>,
14709         use eh_return rtx, split w/ epilogue.
14710
14711 2009-05-29  Ian Lance Taylor  <iant@google.com>
14712
14713         * builtins.c (validate_gimple_arglist): Don't use va_arg with
14714         enum type.
14715         * calls.c (emit_library_call_value_1): Likewise.
14716
14717         * c-typeck.c (c_build_va_arg): New function.
14718         * c-tree.h (c_build_va_arg): Declare.
14719         * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
14720         instead of build_va_arg.
14721
14722 2009-05-29  Eric Botcazou  <ebotcazou@adacore.com>
14723
14724         * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
14725         (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
14726         (ptr_difference_cost): Use affine combinations to compute it.
14727         (difference_cost): Likewise.
14728         (get_computation_cost_at): Compute more accurate cost for addresses
14729         if the ratio is a multiplier allowed in addresses.
14730         For non-addresses, consider that an additional offset or symbol is
14731         added only once.
14732
14733 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14734
14735         * config/i386/i386.c (ix86_decompose_address): Avoid useless
14736         0 displacement.  Add 0 displacement if base is %[er]bp or %r13.
14737
14738         * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
14739         TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
14740         (prefix_rex): For UNIT_MMX don't imply the prefix by default
14741         if MODE_DI.
14742         (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
14743         to 1 for TYPE_SSE{IADD1,CVT1}.
14744         (prefix_vex_imm8): Removed.
14745         (length_vex): Only pass 1 as second argument to
14746         ix86_attr_length_vex_default if prefix_extra is 0.
14747         (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
14748         (length): For prefix vex computation use length_immediate
14749         attribute instead of prefix_vex_imm8.
14750         (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
14751         addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
14752         *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
14753         *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
14754         (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
14755         *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
14756         a space in between the operands.
14757         (*anddi_1_rex64, *andsi_1): Likewise.  Override prefix_rex to 1
14758         if one operand is 0xff and the other one si, di, bp or sp.
14759         (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
14760         other one si, di, bp or sp.
14761         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
14762         (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
14763         type and mode attributes.
14764         (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
14765         (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
14766         prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
14767         (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
14768         prefix_data16 attribute iff MODE_DF.
14769         (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
14770         (fix_trunc<mode>di_sse): Set prefix_rex attribute.
14771         (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
14772         constm128_operand in length_immediate computation.
14773         (*addhi_4): Likewise.  Fix mode attribute to MODE_HI.
14774         (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
14775         (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
14776         length_immediate attribute to 1.
14777         (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
14778         (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
14779         for certain alternatives.
14780         (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
14781         prefix_data16 attribute if MODE_V1DF.
14782         (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
14783         length_immediate to 1.
14784         (set_got_rex64, set_rip_rex64): Remove length attribute, set
14785         length_address to 4, set mode attribute to MODE_DI.
14786         (set_got_offset_rex64): Likewise.  Set length_immediate to 0.
14787         (fxam<mode>2_i387): Set length attribute to 4.
14788         (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
14789         *prefetch_3dnow_rex): Override length_address attribute.
14790         (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
14791         attributes.
14792         * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
14793         (constm128_operand): Removed.
14794         * config/i386/i386.c (memory_address_length): For
14795         disp && !index && !base in 64-bit mode account for SIB byte if
14796         print_operand_address can't optimize disp32 into disp32(%rip)
14797         and UNSPEC doesn't imply (%rip) addressing.  Add 1 to length
14798         for fs: or gs: segment.
14799         (ix86_attr_length_immediate_default): When checking if shortform
14800         is possible, truncate immediate to the length of the non-shortened
14801         immediate.
14802         (ix86_attr_length_address_default): Ignore MEM_P operands
14803         with X constraint.
14804         (ix86_attr_length_vex_default): Only check for DImode on
14805         GENERAL_REG_P operands.
14806         * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
14807         prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
14808         (sse_cvttps2pi): Clear prefix_rep attribute.
14809         (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
14810         attribute.
14811         (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
14812         (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
14813         *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
14814         iff operand 2 is const_int_operand.
14815         (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
14816         sse2_shufpd_<mode>): Set length_immediate attribute to 1.
14817         (sse2_pshufd_1): Likewise.  Set prefix attribute to maybe_vex
14818         instead of vex.
14819         (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
14820         prefix_data16.
14821         (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
14822         prefix_data16 attribute for movlpd and movhpd instructions.
14823         (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise.  Override
14824         length_immediate for shufpd instruction.
14825         (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
14826         (avx_cmpp<avxmodesuffixf2c><mode>3,
14827         avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
14828         <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
14829         avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
14830         *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
14831         (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
14832         (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
14833         (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
14834         prefix_data16 attribute for the first alternative to 1.
14835         (*avx_loadlps): Override length_immediate for the first alternative.
14836         (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
14837         attributes for second alternative.
14838         (*vec_concatv2sf_sse4_1): Override length_immediate and
14839         prefix_data16 attributes for second alternative.
14840         (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
14841         vec_extract_hi_<mode>, vec_extract_lo_v16hi,
14842         vec_extract_hi_v16hi, vec_extract_lo_v32qi,
14843         vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
14844         (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
14845         prefix_data16 and length_immediate to 1.
14846         (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
14847         to 1.
14848         (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
14849         prefix_extra attribute for variants that don't have 0f prefix alone.
14850         (*avx_pinsr<ssevecsize>): Likewise.  Set length_immediate to 1.
14851         (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
14852         *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
14853         *sse4_1_pextrd): Set length_immediate to 1.
14854         (*sse4_1_pinsrd): Likewise.  Set prefix_extra to 1.
14855         (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
14856         to 1.
14857         (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
14858         *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
14859         length_immediate to 1 for second alternative.
14860         (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
14861         prefix_extra and length_immediate attributes for the first
14862         alternative.
14863         (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
14864         first alternative.
14865         (*vec_concatv2di_rex64_sse4_1): Likewise.  Override prefix_rex
14866         to 1 for the first and third alternative.
14867         (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
14868         alternative.
14869         (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
14870         attribute.
14871         (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
14872         attribute to 0.
14873         (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
14874         *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
14875         *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
14876         *avx_psign<mode>3): Set prefix_extra attribute to 1.
14877         (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
14878         ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
14879         ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
14880         ssse3_psign<mode>3): Override prefix_rex attribute.
14881         (*avx_palignrti): Override prefix_extra and length_immediate to 1.
14882         (ssse3_palignrti): Override length_immediate to 1.
14883         (ssse3_palignrdi): Override length_immediate to 1, override
14884         prefix_rex attribute.
14885         (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
14886         (sse4a_extrqi): Override length_immediate to 2.
14887         (sse4a_insertqi): Likewise.  Override prefix_data16 to 0.
14888         (sse4a_insertq): Override prefix_data16 to 0.
14889         (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
14890         avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
14891         avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
14892         *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
14893         avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
14894         and length_immediate to 1.
14895         (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
14896         sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
14897         sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
14898         sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
14899         and length_immediate to 1.
14900         (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
14901         (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
14902         (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
14903         avx_ptest256): Override prefix_extra to 1.
14904         (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
14905         Override prefix_data16 and length_immediate to 1.
14906         (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
14907         sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
14908         sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
14909         sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
14910         prefix_data16 to 0 and prefix_extra to 2.
14911         (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
14912         (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
14913         attribute.
14914         (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
14915         sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
14916         Override prefix_data16 and prefix_rep to 0, length_immediate to 1
14917         and prefix_extra to 2.
14918         (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
14919         prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
14920         (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
14921         avx_vpermilvar<mode>3,
14922         avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
14923         avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
14924         avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
14925         avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
14926         Override prefix_extra to 1.
14927         (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
14928         (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
14929         vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
14930         vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
14931         prefix_extra and length_immediate to 1.
14932         (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
14933         modrm to 0.
14934         (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
14935         to 1 for the first alternative.
14936         * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
14937         prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
14938         cases.
14939         (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
14940         *movv2sf_internal_avx, *movv2sf_internal): Override
14941         prefix_rep attribute for certain alternatives.
14942         (*mov<mode>_internal): Override prefix_rep or prefix_data16
14943         attributes for certain alternatives.
14944         (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
14945         attributes for certain alternatives.
14946         (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
14947         *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
14948         mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
14949         mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
14950         *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
14951         mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
14952         mmx_pswapdv2si2): Set prefix_extra attribute to 1.
14953         (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
14954         length_immediate to 1 if operand 2 is const_int_operand.
14955         (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
14956         *vec_extractv2si_1): Set length_immediate attribute to 1.
14957         (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
14958         using old 3DNOW insn rather than SSE/3DNOW_A.
14959         (mmx_emms, mmx_femms): Clear modrm attribute.
14960
14961 2009-05-29  Martin Jambor  <mjambor@suse.cz>
14962
14963         * tree-sra.c:  New implementation of SRA.
14964
14965         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
14966         (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
14967         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
14968         * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
14969         (SRA_MAX_STRUCTURE_COUNT): Removed.
14970         (SRA_FIELD_STRUCTURE_RATIO): Removed.
14971         * doc/invoke.texi (sra-max-structure-size): Removed.
14972         (sra-field-structure-ratio): Removed.
14973
14974 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14975
14976         PR middle-end/40291
14977         * builtins.c (expand_builtin_memcmp): Convert len to sizetype
14978         before expansion.
14979
14980 2009-05-29  Andrey Belevantsev  <abel@ispras.ru>
14981
14982         PR rtl-optimization/40101
14983         * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
14984         seqno.  Adjust comment.
14985         * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
14986         inserting bookkeeping before a jump, the jump is not scheduled.
14987         When no positive seqno found, provide a value.  Add comment.
14988
14989 2009-05-29  Richard Guenther  <rguenther@suse.de>
14990
14991         * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
14992         short-cutting on the first component.
14993
14994 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
14995
14996         PR middle-end/39958
14997         * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
14998         for trees other than decls/types.
14999
15000 2009-05-29  Richard Guenther  <rguenther@suse.de>
15001
15002         * tree-ssa-operands.c (get_expr_operands): Do not handle
15003         INDIRECT_REFs in the handled-component case.  Remove
15004         unused get_ref_base_and_extent case.
15005         * tree-dfa.c (get_ref_base_and_extent): Avoid calling
15006         tree_low_cst and host_integerp where possible.
15007         * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
15008         codes for equivalence.
15009         * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
15010
15011 2009-05-29  David Billinghurst <billingd@gcc.gnu.org>
15012
15013         * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
15014         to tmake_file for i[34567]86-*-cygwin*.
15015
15016 2009-05-29  Jakub Jelinek  <jakub@redhat.com>
15017
15018         PR target/40017
15019         * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
15020         (altivec_categorize_keyword, init_vector_keywords,
15021         rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
15022         similar to bool.
15023
15024 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
15025
15026         * tree.c (handle_dll_attribute): Check if node is
15027         of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
15028
15029 2009-05-29  Richard Earnshaw  <rearnsha@arm.com>
15030
15031         * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
15032         component.
15033         (thumb2_zero_extendqidi2): Likewise.
15034
15035 2009-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15036
15037         * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
15038         instead of gen_movrt.
15039         * config/sh/sh.md (movrt): Remove.
15040
15041 2009-05-28  Steve Ellcey  <sje@cup.hp.com>
15042
15043         * doc/invoke.texi (IA-64 Options):
15044         Add -msdata, -mfused-madd, -mno-inline-float-divide,
15045         -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
15046         -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
15047         -msched-prefer-non-control-spec-insns,
15048         -msched-stop-bits-after-every-cycle,
15049         -msched-count-spec-in-critical-path,
15050         -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
15051         -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
15052         Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
15053         and -msched-spec-verbose.
15054
15055 2009-05-28  Joseph Myers  <joseph@codesourcery.com>
15056
15057         * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
15058         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
15059         error if used.
15060         * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
15061
15062 2009-05-28  Richard Guenther  <rguenther@suse.de>
15063
15064         * tree-ssa-alias.c (ao_ref_init): New function.
15065         (ao_ref_base): Likewise.
15066         (ao_ref_base_alias_set): Likewise.
15067         (ao_ref_alias_set): Likewise.
15068         (refs_may_alias_p_1): Change signature.
15069         (refs_may_alias_p): Adjust.
15070         (refs_anti_dependent_p): Likewise.
15071         (refs_output_dependent_p): Likewise.
15072         (call_may_clobber_ref_p_1): Change signature.
15073         (call_may_clobber_ref_p): Adjust.
15074         (stmt_may_clobber_ref_p_1): New function split out from ...
15075         (stmt_may_clobber_ref_p): ... here.
15076         (maybe_skip_until): Adjust signature.
15077         (get_continuation_for_phi): Likewise.
15078         (walk_non_aliased_vuses): Likewise.
15079         * tree-ssa-alias.h (struct ao_ref_s): New structure type.
15080         (ao_ref_init): Declare.
15081         (ao_ref_base): Likewise.
15082         (ao_ref_alias_set): Likewise.
15083         (stmt_may_clobber_ref_p_1): Likewise.
15084         (walk_non_aliased_vuses): Adjust.
15085         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
15086         (get_ref_from_reference_ops): remove.
15087         (vn_reference_lookup_2): Adjust signature.
15088         (vn_reference_lookup_3): Do not re-build trees.  Handle unions.
15089         (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
15090         (vn_reference_lookup): Adjust.
15091         (vn_reference_insert): Likewise.
15092         (vn_reference_insert_pieces): Adjust signature.
15093         (visit_reference_op_call): Adjust.
15094         * tree-ssa-pre.c (get_expr_type): Simplify.
15095         (phi_translate_1): Adjust.
15096         (compute_avail): Likewise.
15097         (translate_vuse_through_block): Do not re-build trees.
15098         (value_dies_in_block_x): Likewise.
15099         * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
15100         fields.
15101         (vn_reference_lookup_pieces): Adjust declaration.
15102         (vn_reference_insert_pieces): Likewise.
15103
15104 2009-05-28  Benjamin Kosnik  <bkoz@redhat.com>
15105
15106         * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
15107         with checking disabled.
15108
15109 2009-05-28  Dave Korn  <dave.korn.cygwin@gmail.com>
15110
15111         PR target/37216
15112
15113         * configure.ac (HAVE_GAS_ALIGNED_COMM):  Add autoconf test and
15114         macro definition for support of three-operand format aligned
15115         .comm directive in assembler on cygwin/pe/mingw target OS.
15116         * configure:  Regenerate.
15117         * config.h:  Regenerate.
15118
15119         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common):  Use
15120         aligned form of .comm directive if -mpe-aligned-commons is in effect.
15121         * config/i386/cygming.opt (-mpe-aligned-commons):  Add new option.
15122
15123         * doc/invoke.texi (-mpe-aligned-commons):  Document new target option.
15124         * doc/tm.texi (ASM_OUTPUT_COMMON):  Document zero size commons.
15125
15126 2009-05-28  Ira Rosen  <irar@il.ibm.com>
15127
15128         PR tree-optimization/40254
15129         * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
15130         in analysis of basic blocks.
15131
15132 2009-05-28  Adam Nemet  <anemet@caviumnetworks.com>
15133
15134         PR middle-end/33699
15135         * target.h (struct gcc_target): Fix indentation.  Add const_anchor.
15136         * target-def.h (TARGET_CONST_ANCHOR): New macro.
15137         (TARGET_INITIALIZER): Use it.
15138         * cse.c (CHEAPER): Move it up to the other macros.
15139         (insert): Rename this ...
15140         (insert_with_costs): ... to this.  Add cost parameters.  Update
15141         function comment.
15142         (insert): New function.  Call insert_with_costs.
15143         (compute_const_anchors, insert_const_anchor, insert_const_anchors,
15144         find_reg_offset_for_const, try_const_anchors): New functions.
15145         (cse_insn): Call try_const_anchors.  Adjust cost of src_related
15146         when using a const-anchor.  Call insert_const_anchors.
15147         * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
15148         * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
15149
15150 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
15151
15152         * tree-inline.c (remap_decls): Enable nonlocalized variables
15153         when not optimizing.
15154
15155 2009-05-28  Alexandre Oliva  <aoliva@redhat.com>
15156
15157         * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
15158         Simplify other tests involving optimize.
15159
15160 2009-05-27  Tom Tromey  <tromey@redhat.com>
15161
15162         * unwind-dw2.c (_Unwind_DebugHook): New function.
15163         (uw_install_context): Call _Unwind_DebugHook.
15164
15165 2009-05-27  Tom Tromey  <tromey@redhat.com>
15166
15167         * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
15168
15169 2009-05-27  Ian Lance Taylor  <iant@google.com>
15170
15171         * Makefile.in (LINKER, LINKER_FLAGS): Define.
15172         (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
15173         (ALL_LINKERFLAGS): Define.
15174         (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
15175         (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15176         (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
15177         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15178         (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
15179         $(LINKER_FOR_BUILD).
15180         (build/gcov-iov$(build_exeext)): Likewise.
15181
15182 2009-05-27  Julian Brown  <julian@codesourcery.com>
15183
15184         * gcse.c (target.h): Include.
15185         (can_assign_to_reg_without_clobbers_p): Check that the target allows
15186         copy of argument to a pseudo register.
15187
15188 2009-05-27  Diego Novillo  <dnovillo@google.com>
15189
15190         * tree-ssa-live.c (dump_scope_block): Document arguments.
15191         (dump_scope_blocks): Document.
15192         (debug_scope_blocks): New.
15193         * tree-flow.h (debug_scope_blocks): Declare.
15194
15195 2009-05-21  Denis Chertykov  <denisc@overta.ru>
15196
15197         * doc/contrib.texi (Contributors): Add myself to the list.
15198
15199 2009-05-27  Olivier Hainque  <hainque@adacore.com>
15200
15201         * expr.c (target_align): New function.  Alignment the TARGET of an
15202         assignment may be assume to have.
15203         (highest_pow2_factor_for_target): Use it instead of relying on
15204         immediate tree attributes of TARGET, not necessarily honored when
15205         intermediate bitfields are involved.
15206
15207 2009-05-27  H.J. Lu  <hongjiu.lu@intel.com>
15208
15209         PR target/40266
15210         * config/i386/driver-i386.c (host_detect_local_cpu): Support
15211         AVX, SSE4, AES, PCLMUL and POPCNT.
15212
15213 2009-05-27  Diego Novillo  <dnovillo@google.com>
15214
15215         * tree-pretty-print.c (dump_location): New.
15216         (dump_generic_node): Call it.
15217         Factor code to handle BLOCK nodes ...
15218         (dump_block_node): ... here.
15219
15220 2009-05-27  Rafael Avila de Espindola  <espindola@google.com>
15221
15222         * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
15223         with it.
15224         * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
15225         included.
15226         * gcc-plugin.h: Include config.h and system.h.
15227         (IN_GCC): Define if not defined.
15228
15229 2009-05-27  Hans-Peter Nilsson  <hp@axis.com>
15230
15231         PR middle-end/40249
15232         * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
15233         with -fno-inline.
15234
15235 2009-05-27  Shujing Zhao  <pearly.zhao@oracle.com>
15236
15237         * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
15238         applicable.
15239         * config/m32r/m32r.h: Ditto.
15240         * config/m32r/m32r.md: Ditto.
15241         * config/m32r/predicates.md: Ditto.
15242
15243 2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
15244
15245         * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
15246
15247 2009-05-26  Basile Starynkevitch  <basile@starynkevitch.net>
15248
15249         * doc/plugins.texi
15250         (Loading plugins): typo.
15251         (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
15252         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15253         (Interacting with the GCC Garbage Collector): Added new section.
15254         (Giving information about a plugin): Added new section for
15255         PLUGIN_INFO.
15256         * ggc.h (ggc_register_root_tab): Added declaration.
15257         * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
15258         (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
15259         (register_callback): Improved comment in declaration.
15260         * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
15261         (extra_root_vec) Added static variable for dynamic roots registration.
15262         (ggc_register_root_tab) Added new routine.
15263         (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
15264         PLUGIN_GGC_MARKING event.
15265         * ggc-zone.c: Include plugin.h.
15266         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15267         * ggc-page.c: Include plugin.h.
15268         (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
15269         * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
15270         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
15271         (register_callback): check lack of callbacks for
15272         pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
15273         PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
15274         (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
15275         PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
15276         * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
15277         dependency on plugin.h.
15278         (plugin.o): Added dependency on ggc.h...
15279
15280 2009-05-26  Richard Guenther  <rguenther@suse.de>
15281
15282         PR middle-end/40248
15283         Revert
15284         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
15285         with mismatched comparison modes.
15286
15287         * expr.c (expand_expr_real_1): Expand the operand of a
15288         VIEW_CONVERT_EXPR in its natural mode.
15289
15290 2009-05-26  Ian Lance Taylor  <iant@google.com>
15291
15292         * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
15293         (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
15294         (ALL_COMPILERFLAGS): Define.
15295         (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
15296         (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
15297         (collect2$(exeext), collect2.o): Likewise.
15298         (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
15299         (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
15300         ($(out_object_file), mips-tfile, mips-tdump): Likewise.
15301         (libbackend.o, intl.o, cppdefault.o): Likewise.
15302         (gcov$(exeext), gcov-dump$(exeext)): Likewise.
15303         (build/%.o): Use $(COMPILER_FOR_BUILD).
15304         (build/gen%$(build_exeext)): Likewise.
15305         (build/gcov-iov$(build_exeext)): LIkewise.
15306         * config/t-darwin (darwin.o): Use $(COMPILER).
15307         (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
15308         * config/t-sol2 (sol2-c.o): Likewise.
15309         (sol2.o): Likewise.
15310         * config/t-vxworks (vxworks.o): Likewise.
15311         * config/x-darwin (host-darwin.o): Likewise.
15312         * config/x-hpux (host-hpux.o): Likewise.
15313         * config/x-linux (host-linux.o): Likewise.
15314         * config/x-solaris (host-solaris.o): Likewise.
15315         * config/alpha/x-alpha (driver-alpha.o): Likewise.
15316         * config/arm/t-arm (arm-c.o): Likewise.
15317         * config/arm/t-pe (pe.o): Likewise.
15318         * config/arm/t-wince-pe (pe.o): Likewise.
15319         * config/i386/t-cygming (winnt.o): Likewise.
15320         (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
15321         * config/i386/t-cygwin (cygwin1.o): Likewise.
15322         (cygwin2.o): Likewise.
15323         * config/i386/t-i386 (i386-c.o): Likewise.
15324         * config/i386/t-interix (winnt.o): Likewise.
15325         * config/i386/t-netware (netware.o): Likewise.
15326         * config/i386/t-nwld (nwld.o): Likewise.
15327         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
15328         * config/i386/x-i386 (driver-i386.o): Likewise.
15329         * config/i386/x-cygwin (host-cygwin.o): Likewise.
15330         * config/i386/x-mingw32 (host-mingw32.o): Likewise.
15331         * config/ia64/t-ia64 (ia64-c.o): Likewise.
15332         * config/m32c/t-m32c (m32c-pragma.o): Likewise.
15333         * config/mips/x-native (driver-native.o): Likewise.
15334         * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
15335         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
15336         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
15337         * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
15338         * config/score/t-score-elf (score7.o): Likewise.
15339         (score3.o): Likewise.
15340         * config/sh/t-sh (sh-c.o): Likewise.
15341         * config/sh/t-symbian (sh-c.o): Likewise.
15342         (symbian.o): Likewise.
15343         * config/spu/t-spu-elf (spu-c.o): Likewise.
15344         * config/v850/t-v850 (v850-c.o): Likewise.
15345         * config/v850/t-v850e (v850-c.o): Likewise.
15346
15347 2009-05-26  Richard Guenther  <rguenther@suse.de>
15348
15349         PR tree-optimization/40122
15350         * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
15351         VECTOR_CSTs if possible.
15352         (fold_gimple_assign): Likewise.
15353
15354 2009-05-26  Richard Guenther  <rguenther@suse.de>
15355
15356         PR middle-end/40252
15357         * fold-const.c (fold_binary): Use the correct types for building
15358         rotates.
15359
15360 2009-05-26  Richard Guenther  <rguenther@suse.de>
15361
15362         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
15363         redundant calls to merge_alias_info.
15364         (bump_vector_ptr): Likewise.
15365         * tree-ssa-copy.c (merge_alias_info): Remove.
15366         (replace_exp_1): Remove call to merge_alias_info.
15367         (propagate_tree_value): Likewise.
15368         (fini_copy_prop): Propagate points-to info.
15369         * tree-flow.h (merge_alias_info): Remove.
15370
15371 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
15372
15373         * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
15374
15375 2009-05-25  Jan Hubicka  <jh@suse.cz>
15376
15377         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
15378         * cgraph.h (struct inline_summary): New filed self_wize,
15379         size_inlining_benefit, self_time and time_inlining_benefit.
15380         (struct cgraph_global_info): Replace insns by time ans size fields.
15381         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
15382         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
15383         (ipcp_update_callgraph): Do not touch function bodies.
15384         * ipa-inline.c: Include except.h
15385         (MAX_TIME): New constant.
15386         (overall_insns): Remove.
15387         (leaf_node_p): New.
15388         (overall_size, max_benefit): New static variables.
15389         (cgraph_estimate_time_after_inlining): New function.
15390         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
15391         (cgraph_clone_inlined_nodes): Update size.
15392         (cgraph_mark_inline_edge): Update size.
15393         (cgraph_estimate_growth): Use size info.
15394         (cgraph_check_inline_limits): Check size.
15395         (cgraph_default_inline_p): Likewise.
15396         (cgraph_edge_badness): Compute badness based on benefit and size cost.
15397         (cgraph_decide_recursive_inlining): Check size.
15398         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
15399         and times.
15400         (cgraph_decide_inlining): Likewise.
15401         (cgraph_decide_inlining_incrementally): Likewise; honor
15402         PARAM_EARLY_INLINING_INSNS.
15403         (likely_eliminated_by_inlining_p): New predicate.
15404         (estimate_function_body_sizes): New function.
15405         (compute_inline_parameters): Use it.
15406         * except.c (must_not_throw_labels): New function.
15407         * except.h (must_not_throw_labels): Declare.
15408         * tree-inline.c (init_inline_once): Kill inlining_weigths
15409         * tree-ssa-structalias.c: Avoid uninitialized warning.
15410         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
15411         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
15412         (PARAM_INLINE_CALL_COST): Remove.
15413         (PARAM_EARLY_INLINING_INSNS): New.
15414
15415 2009-05-25  Richard Guenther  <rguenther@suse.de>
15416
15417         PR tree-optimization/36327
15418         * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
15419         callback for reference translation or lookup at the point of may-defs.
15420         * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
15421         * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
15422         for union COMPONENT_REFs.
15423         (vn_reference_lookup_3): New callback.  Lookup from memset
15424         and CONSTRUCTOR assignment, translate through struct copies.
15425         (vn_reference_lookup_pieces): Make sure to not free the
15426         passed operands array.  Adjust walk_non_aliased_vuses call.
15427         (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
15428         make sure we do not leak memory.
15429
15430 2009-05-25  Richard Guenther  <rguenther@suse.de>
15431
15432         * tree-ssa-alias.h (dump_points_to_solution): Declare.
15433         * tree-inline.c (expand_call_inline): Reset the escaped and
15434         callused solutions.
15435         * tree-ssa-structalias.c (pass_build_ealias): New.
15436         * tree-pass.h (pass_build_ealias): Declare.
15437         * passes.c (init_optimization_passes): Add PTA during
15438         early optimizations.
15439         * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
15440         and CALLUSED solutions.
15441         (dump_points_to_solution): New function, split out from ...
15442         (dump_points_to_info_for): ... here.
15443         * tree-parloops.c (parallelize_loops): Reset the escaped and
15444         callused solutions.
15445
15446 2009-05-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15447
15448         PR bootstrap/40027
15449         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
15450         * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
15451
15452 2009-05-25  Ira Rosen  <irar@il.ibm.com>
15453
15454         PR tree-optimization/40238
15455         * tree-vect-stmts.c (vect_init_vector): Insert initialization
15456         statements after basic block's labels.
15457         * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
15458         to free the allocated memory.
15459
15460 2009-05-24  Kaz Kojima  <kkojima@gcc.gnu.org>
15461
15462         * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
15463         return address with a USE.
15464
15465 2009-05-24  Richard Guenther  <rguenther@suse.de>
15466
15467         PR middle-end/40233
15468         * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
15469         array type from the main variant of the inner type.
15470
15471 2009-05-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
15472
15473         * config/vax/vax-protos.h (legitimate_constant_address_p): Change
15474         definition to bool (from int) to un-break build.
15475         (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
15476
15477 2009-05-24  Paolo Bonzini  <bonzini@gnu.org>
15478
15479         * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
15480         discard_stmt_changes): Delete.
15481         * tree-ssa-operands.c (scb_stack): Delete.
15482         (init_ssa_operands): Do not initialize it.
15483         (fini_ssa_operands): Do not free it.
15484         (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
15485
15486         * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
15487         update_stmt, remove the others.  Fix comments.
15488         * tree-dfa.c (optimize_stack_restore): Likewise.
15489         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
15490         * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
15491         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
15492         * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
15493         Likewise.
15494         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
15495         * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
15496         (dom_opt_finalize_block): Likewise, adjusting access to
15497         stmts_to_rescan.
15498         (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
15499         (stmts_to_rescan): Change item type to gimple.
15500         (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
15501
15502 2009-05-24  Ira Rosen  <irar@il.ibm.com>
15503
15504         * doc/passes.texi (Tree-SSA passes): Document SLP pass.
15505         * tree-pass.h (pass_slp_vectorize): New pass.
15506         * params.h (SLP_MAX_INSNS_IN_BB): Define.
15507         * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
15508         * tree-vectorizer.c (timevar.h): Include.
15509         (user_vect_verbosity_level): Declare.
15510         (vect_location): Fix comment.
15511         (vect_set_verbosity_level): Update user_vect_verbosity_level
15512         instead of vect_verbosity_level.
15513         (vect_set_dump_settings): Add an argument. Ignore user defined
15514         verbosity if dump flags require higher level of verbosity. Print to
15515         stderr only for loop vectorization.
15516         (vectorize_loops): Update call to vect_set_dump_settings.
15517         (execute_vect_slp): New function.
15518         (gate_vect_slp): Likewise.
15519         (struct gimple_opt_pass pass_slp_vectorize): New.
15520         * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
15521         access its members.
15522         (vec_info_for_bb): New function.
15523         (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
15524         (VECTORIZATION_ENABLED): New macro.
15525         (SLP_ENABLED, SLP_DISABLED): Likewise.
15526         (vect_is_simple_use): Add bb_vec_info argument.
15527         (new_stmt_vec_info, vect_analyze_data_ref_dependences,
15528         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
15529         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
15530         vect_schedule_slp, vect_analyze_slp): Likewise.
15531         (vect_analyze_stmt): Add slp_tree argument.
15532         (find_bb_location): Declare.
15533         (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
15534         * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
15535         (vect_analyze_loop_operations, vect_analyze_loop,
15536         get_initial_def_for_induction, vect_create_epilog_for_reduction,
15537         vect_finalize_reduction, vectorizable_reduction,
15538         vectorizable_live_operation, vect_transform_loop): Likewise.
15539         * tree-data-ref.c (dr_analyze_innermost): Update comment,
15540         skip evolution analysis if analyzing a basic block.
15541         (dr_analyze_indices): Likewise.
15542         (initialize_data_dependence_relation): Skip the test whether the
15543         object is invariant for basic blocks.
15544         (compute_all_dependences): Skip dependence analysis for data
15545         references in basic blocks.
15546         (find_data_references_in_stmt): Don't fail in case of invariant
15547         access in basic block.
15548         (find_data_references_in_bb): New function.
15549         (find_data_references_in_loop): Move code to
15550         find_data_references_in_bb and add a call to it.
15551         (compute_data_dependences_for_bb): New function.
15552         * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
15553         * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
15554         that STEP is 0.
15555         (vect_analyze_data_ref_dependence): Check for interleaving in case of
15556         unknown dependence in basic block and fail in case of dependence in
15557         basic block.
15558         (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
15559         dependence instances from either loop or basic block vectorization
15560         info.
15561         (vect_compute_data_ref_alignment): Check if it is loop vectorization
15562         before calling nested_in_vect_loop_p.
15563         (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
15564         dependence instances from either loop or basic block vectorization
15565         info.
15566         (vect_verify_datarefs_alignment): Likewise.
15567         (vect_enhance_data_refs_alignment): Adjust function calls.
15568         (vect_analyze_data_refs_alignment): Likewise.
15569         (vect_analyze_group_access): Fix printing. Skip different checks if
15570         DR_STEP is 0. Keep strided stores either in loop or basic block
15571         vectorization data structure. Fix indentation.
15572         (vect_analyze_data_ref_access): Fix comments, allow zero step in
15573         basic blocks.
15574         (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
15575         dependence instances from either loop or basic block vectorization
15576         info.
15577         (vect_analyze_data_refs): Update comment. Call
15578         compute_data_dependences_for_bb to analyze basic blocks.
15579         (vect_create_addr_base_for_vector_ref): Check for outer loop only in
15580         case of loop vectorization. In case of basic block vectorization use
15581         data-ref itself as a base.
15582         (vect_create_data_ref_ptr): In case of basic block vectorization:
15583         don't advance the pointer, add new statements before the current
15584         statement.  Adjust function calls.
15585         (vect_supportable_dr_alignment): Support only aligned accesses in
15586         basic block vectorization.
15587         * common.opt (ftree-slp-vectorize): New flag.
15588         * tree-vect-patterns.c (widened_name_p): Adjust function calls.
15589         (vect_pattern_recog_1): Likewise.
15590         * tree-vect-stmts.c (process_use): Likewise.
15591         (vect_init_vector): Add new statements in the beginning of the basic
15592         block in case of basic block SLP.
15593         (vect_get_vec_def_for_operand): Adjust function calls.
15594         (vect_finish_stmt_generation): Likewise.
15595         (vectorizable_call): Add assert that it is loop vectorization, adjust
15596         function calls.
15597         (vectorizable_conversion, vectorizable_assignment): Likewise.
15598         (vectorizable_operation): In case of basic block SLP, take
15599         vectorization factor from statement's type and skip the relevance
15600         check. Adjust function calls.
15601         (vectorizable_type_demotion): Add assert that it is loop
15602         vectorization, adjust function calls.
15603         (vectorizable_type_promotion): Likewise.
15604         (vectorizable_store): Check for outer loop only in case of loop
15605         vectorization. Adjust function calls. For basic blocks, skip the
15606         relevance check and don't advance pointers.
15607         (vectorizable_load): Likewise.
15608         (vectorizable_condition): Add assert that it is loop vectorization,
15609         adjust function calls.
15610         (vect_analyze_stmt): Add argument. In case of basic block SLP, check
15611         that it is not reduction, get vector type, call only supported
15612         functions, skip loop specific parts.
15613         (vect_transform_stmt): Check for outer loop only in case of loop
15614         vectorization.
15615         (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
15616         (vect_is_simple_use): Fix comment, add new argument, fix conditions
15617         for external definition.
15618         * passes.c (pass_slp_vectorize): New pass.
15619         * tree-vect-slp.c (find_bb_location): New function.
15620         (vect_get_and_check_slp_defs): Add argument, adjust function calls,
15621         check for patterns only in loops.
15622         (vect_build_slp_tree): Add argument, adjust function calls, fail in
15623         case of multiple types in basic block SLP.
15624         (vect_mark_slp_stmts_relevant): New function.
15625         (vect_supported_load_permutation_p): Fix comment.
15626         (vect_analyze_slp_instance): Add argument. In case of basic block
15627         SLP, take vectorization factor from statement's type, check that
15628         unrolling factor is 1. Adjust function call. Save SLP instance in
15629         either loop or basic block vectorization structure. Return FALSE,
15630         if SLP failed.
15631         (vect_analyze_slp): Add argument. Get strided stores groups from
15632         either loop or basic block vectorization structure. Return FALSE
15633         if basic block SLP failed.
15634         (new_bb_vec_info): New function.
15635         (destroy_bb_vec_info, vect_slp_analyze_node_operations,
15636         vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
15637         (vect_schedule_slp): Add argument. Get SLP instances from either
15638         loop or basic block vectorization structure. Set vectorization factor
15639         to be 1 for basic block SLP.
15640         (vect_slp_transform_bb): New function.
15641         * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
15642
15643 2009-05-23  Mark Mitchell  <mark@codesourcery.com>
15644
15645         * final.c (shorten_branches): Do not align labels for jump tables.
15646         (final_scan_insn): Use JUMP_TABLE_DATA_P.
15647
15648 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
15649
15650         * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
15651         Remove outdated reference to flow.c and fix nits.
15652         * doc/gccint.texi: Tweak RTL description.
15653         * doc/rtl.texi: Likewise.
15654
15655 2009-05-23  Denis Chertykov  <chertykov@gmail.com>
15656
15657         * config/avr/avr.c: Change my email address.
15658         * config/avr/avr.h: Likewise.
15659         * config/avr/avr.md: Likewise.
15660         * config/avr/avr-protos.h: Likewise.
15661         * config/avr/libgcc.S: Likewise.
15662
15663 2009-05-22  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
15664
15665         * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
15666         (spu_split_load, spu_split_store): Change return type to int.
15667         (spu_split_convert): Declare.
15668         * config/spu/predicates.md (spu_mem_operand): Remove.
15669         (spu_mov_operand): Update.
15670         (spu_dest_operand, shiftrt_operator, extend_operator): Define.
15671         * config/spu/spu.c (regno_aligned_for_load): Remove.
15672         (reg_aligned_for_addr, spu_expand_load): Define.
15673         (spu_expand_extv): Reimplement and handle MEM.
15674         (spu_expand_insv): Handle MEM.
15675         (spu_sched_reorder): Handle insn's with length 0.
15676         (spu_legitimate_address_p): Reimplement.
15677         (store_with_one_insn_p): Return TRUE for any mode with size
15678         larger than 16 bytes.
15679         (address_needs_split): Define.
15680         (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
15681         operands.
15682         (spu_convert_move): Define.
15683         (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
15684         (spu_split_store): Change all MEM's to TImode.
15685         (spu_init_expanders): Preallocate registers that correspond to
15686         LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
15687         mark_reg_pointer.
15688         (spu_split_convert): Define.
15689         * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
15690         (_move<mode>, _movdi, _movti): Update predicate and condition.
15691         (load, store): Change to define_split.
15692         (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
15693         extend<mode>ti2.
15694         (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
15695         (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
15696         define_insn_and_split of lshr<mode>3.
15697         (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
15698         (<v>ashr<mode>3_imm): Define.
15699         (extv, extzv, insv): Allow MEM operands.
15700         (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
15701         shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
15702         sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
15703         (_spu_convert2): Change to define_insn_and_split and remove the
15704         corresponding define_peephole2.
15705         (stack_protect_set, stack_protect_test, stack_protect_test_si):
15706         Change predicates to memory_operand.
15707
15708 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
15709
15710         * config/arm/thumb2.md: Add 16-bit multiply instructions.
15711
15712 2009-05-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
15713
15714         PR tree-optimization/40219
15715         * tree.c (iterative_hash_expr): Make sure the builtin function is
15716         a normal builtin function and not a front end or back end builtin
15717         before indexing into the built_in_decls array.
15718
15719 2009-05-22  Richard Guenther  <rguenther@suse.de>
15720
15721         PR middle-end/38964
15722         * alias.c (write_dependence_p): Do not use TBAA for answering
15723         anti-dependence or output-dependence.
15724         * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
15725         (emit_pointer_definition): Remove.
15726         (emit_alias_warning): Likewise.
15727         (find_what_var_points_to): Remove TBAA pruning code.
15728         (find_what_p_points_to): Likewise.  Do not warn about strict-aliasing
15729         violations.
15730         (compute_points_to_sets): Remove code computing the set of
15731         dereferenced pointers.
15732         * tree-data-ref.c (dr_may_alias_p): Properly use the split
15733         oracle for querying anti and output dependencies.
15734         * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
15735         if TBAA may be applied.
15736         (refs_anti_dependent_p): New function.
15737         (refs_output_dependent_p): Likewise.
15738         * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
15739         (refs_output_dependent_p): Likewise.
15740         * doc/tree-ssa.texi (Memory model): New section.
15741         * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15742         * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15743         * cfgexpand.c (expand_gimple_basic_block): Do not handle
15744         GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
15745         * expr.c (expand_expr_real_1): Likewise.
15746         * gimple-low.c (lower_stmt): Likewise.
15747         * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
15748         (dump_gimple_cdt): Remove.
15749         * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15750         (gimple_size): Likewise.
15751         (walk_gimple_op): Likewise.
15752         (is_gimple_stmt): Likewise.
15753         (walk_stmt_load_store_addr_ops): Likewise.
15754         (gimple_build_cdt): Remove.
15755         * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
15756         * gimple.h (gimple_cdt_new_type): Remove.
15757         (gimple_cdt_new_type_ptr): Likewise.
15758         (gimple_cdt_set_new_type): Likewise.
15759         (gimple_cdt_location): Likewise.
15760         (gimple_cdt_location_ptr): Likewise.
15761         (gimple_cdt_set_location): Likewise.
15762         * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15763         * tree-cfg.c (remove_useless_stmts_1): Do not handle
15764         GIMPLE_CHANGE_DYNAMIC_TYPE.
15765         (verify_types_in_gimple_stmt): Likewise.
15766         * tree-inline.c (estimate_num_insns): Likewise.
15767         (expand_call_inline): Do not copy DECL_NO_TBAA_P.
15768         (copy_decl_to_var): Likewise.
15769         (copy_result_decl_to_var): Likewise.
15770         * tree-pretty-print.c (dump_generic_node): Do not handle
15771         CHANGE_DYNAMIC_TYPE_EXPR.
15772         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15773         * tree-ssa-operands.c (get_expr_operands): Likewise.
15774         * tree-ssa-structalias.c (struct variable_info): Remove
15775         no_tbaa_pruning member.
15776         (new_var_info): Do not set it based on DECL_NO_TBAA_P.
15777         (unify_nodes): Do not copy it.
15778         (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
15779         (dump_solution_for_var): Do not dump no_tbaa_pruning state.
15780         (set_uids_in_ptset): Do not check it.
15781         (find_what_var_points_to): Likewise.
15782         (compute_tbaa_pruning): Remove.
15783         (compute_points_to_sets): Do not call it.
15784         * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
15785         * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
15786         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
15787         (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
15788         (DECL_NO_TBAA_P): Likewise.
15789         (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
15790         * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
15791         (expand_omp_atomic_pipeline): Do not set it.
15792         * print-tree.c (print_node): Do not dump it.
15793         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
15794         redundant check.
15795
15796 2009-05-22 Vladimir Makarov <vmakarov@redhat.com>
15797
15798         PR target/39856
15799         * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
15800         for clobber.
15801
15802 2009-05-22  Mark Mitchell  <mark@codesourcery.com>
15803
15804         * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
15805         non-external.
15806
15807 2009-05-22  Ben Elliston  <bje@au.ibm.com>
15808
15809         * Makefile.in (bversion.h, s-bversion): New targets.
15810         (TOPLEV_H): Add bversion.h.
15811         * toplev.h: Include "bversion.h".
15812         (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
15813         the __format__ attribute only if compiling with the same version
15814         of GCC as the sources (the "build version").
15815
15816 2009-05-22  Ben Elliston  <bje@au.ibm.com>
15817
15818         * c-format.c (handle_format_attribute): Fix comment typo.
15819
15820 2009-05-21  Steve Ellcey  <sje@cup.hp.com>
15821
15822         PR target/37846
15823         * config/ia64/ia64.opt (mfused-madd): New.
15824         * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
15825         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
15826         * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
15827         madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
15828         nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
15829         msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
15830         nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
15831         * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
15832         instruction if !TARGET_FUSED_MADD.
15833         (fpma, fpms): Remove colon from name.
15834
15835 2009-05-22  Richard Guenther  <rguenther@suse.de>
15836
15837         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
15838         TMR_ORIGINAL.  Always either record TMR_SYMBOL or TMR_BASE.
15839         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
15840         TARGET_MEM_REF.
15841         (create_expression_by_pieces): Only convert if necessary.
15842         * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
15843         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
15844
15845 2009-05-21  Adam Nemet  <anemet@caviumnetworks.com>
15846
15847         * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
15848         regular pattern from a template and rename it ...
15849         (*extzv_truncsi_exts): ... to this.
15850
15851 2009-05-21  Richard Guenther  <rguenther@suse.de>
15852
15853         * cgraph.h (struct cgraph_node): Remove inline_decl member.
15854         * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
15855         (cgraph_default_inline_p): Likewise.
15856         (cgraph_decide_inlining_incrementally): Likewise.
15857
15858 2009-05-21  H.J. Lu  <hongjiu.lu@intel.com>
15859             Uros Bizjak  <ubizjak@gmail.com>
15860
15861         * config/i386/cpuid.h (bit_MOVBE): New.
15862
15863         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
15864
15865         * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
15866         (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
15867         (ix86_handle_option): Handle OPT_mmovbe.
15868         (ix86_target_string): Add -mmovbe.
15869         (pta_flags): Add PTA_MOVBE.
15870         (processor_alias_table): Add PTA_MOVBE to "atom".
15871         (override_options): Handle PTA_MOVBE.
15872
15873         * config/i386/i386.h (TARGET_MOVBE): New.
15874
15875         * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
15876         (*bswapsi_movbe): New.
15877         (*bswapdi_movbe): Likewise.
15878         (bswapdi2): Renamed to ...
15879         (*bswapdi_1): This.
15880         (bswapdi2): New expander.
15881
15882         * config/i386/i386.opt (mmovbe): New.
15883
15884         * doc/invoke.texi: Document -mmovbe.
15885
15886 2009-05-21  Taras Glek  <tglek@mozilla.com>
15887
15888         * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
15889         * gcc-plugin.h (plugin_init): Updated signature.
15890         * gcc-plugin.h (plugin_name_args): Moved to this header.
15891         * doc/plugins.texi (plugin_init): Updated documention to reflect
15892         API change.
15893         * doc/plugins.texi (plugin_name_args): Added to documention.
15894
15895 2009-05-21  Mark Mitchell  <mark@codesourcery.com>
15896
15897         * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
15898         (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
15899
15900 2009-05-21  Shujing Zhao  <pearly.zhao@oracle.com>
15901
15902         * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
15903         JUMP_TABLE_DATA_P predicates where applicable.
15904         * config/i386/predicates.md: Ditto.
15905         * config/i386/sse.md: Ditto.
15906
15907 2009-05-21  Jakub Jelinek  <jakub@redhat.com>
15908
15909         * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
15910         operand2 -128 override length_immediate attribute to 1.
15911         * config/i386/predicates.md (constm128_operand): New predicate.
15912
15913         * config/i386/i386.c (memory_address_length): Handle %r12
15914         the same as %rsp and %r13 the same as %rbp.  For %rsp and %rbp
15915         also check REGNO.
15916         (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
15917         mode look through optional ZERO_EXTEND and SUBREG.
15918         * config/i386/i386.md (R12_REG): New define_constant.
15919         (prefix_data16): For sse unit set also for MODE_TI insns.
15920         (prefix_rex): For -m32 always return 0.  For TYPE_IMOVX
15921         insns set if operand 1 is ext_QIreg_operand.
15922         (modrm): For TYPE_IMOV clear only if not MODE_DI.  For
15923         TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
15924         immediate.
15925         (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
15926         mode from MODE_DI to MODE_SI.
15927         (movdi_1_rex64): Override modrm and length_immediate attributes
15928         only for movabs (TYPE_IMOV, alternative 2).
15929         (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
15930         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
15931         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
15932         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
15933         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
15934         prefix_rex attribute if DImode.
15935         (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
15936         *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
15937         *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
15938         *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
15939         attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
15940         (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
15941         Likewise.  For TYPE_IMOV clear length_immediate attribute.
15942         (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
15943         *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
15944         *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
15945         *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
15946         *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
15947         or one operand TYPE_ISHIFT.
15948         (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
15949         *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
15950         *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
15951         *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
15952         *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
15953         *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
15954         *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
15955         *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
15956         *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
15957         *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
15958         *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
15959         *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
15960         *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
15961         *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
15962         *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
15963         *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
15964         *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
15965         set mode attribute, don't override length attribute.
15966         (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
15967         to 1.
15968         (return_internal_long): Set length attribute to 2 instead of 1.
15969         (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
15970         *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
15971         prefix_rex attribute.
15972         * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
15973         New predicates.
15974         (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
15975
15976 2009-05-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15977
15978         * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
15979
15980 2009-05-20  Ian Lance Taylor  <iant@google.com>
15981
15982         * tree.c (build_tree_list_vec_stat): New function.
15983         (ctor_to_vec): New function.
15984         (build_nt_call_vec): New function.
15985         (build_call_array): Change args to be a const pointer.
15986         (build_call_vec): New function.
15987         * tree.h (build_nt_call_vec): Declare.
15988         (build_tree_list_vec_stat): Declare.
15989         (build_tree_list_vec): Define.
15990         (build_call_array): Update declaration.
15991         (build_call_vec): Declare.
15992         (ctor_to_vec): Declare.
15993         * c-common.c (tree_vector_cache): New static variable.
15994         (make_tree_vector): New function.
15995         (release_tree_vector): New function.
15996         (make_tree_vector_single): New function.
15997         (make_tree_vector_copy): New function.
15998         * c-common.h (tree_vector_cache, make_tree_vector): Declare.
15999         (make_tree_vector_single, make_tree_vector_copy): Declare.
16000         * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
16001         (c_parser_expr_list): Don't manage cache here, instead call
16002         make_tree_vector.
16003         (c_parser_release_expr_list): Remove static function.
16004         (c_parser_vec_to_tree_list): Remove static function.
16005         (c_parser_attributes): Call build_tree_list_vec instead of
16006         c_parser_vec_to_tree_list.  Call release_tree_vector instead of
16007         c_parser_release_expr_list.
16008         (c_parser_postfix_expression_after_primary): Likewise.
16009         (c_parser_objc_keywordexpr): Likewise.
16010
16011 2009-05-20  Sandra Loosemore  <sandra@codesourcery.com>
16012
16013         * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
16014         TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
16015         TARGET_CONVERT_TO_TYPE.
16016         * hooks.c (hook_tree_const_tree_null): Define.
16017         * hooks.h (hook_tree_const_tree_null): Declare.
16018         * target.h (struct gcc_target):  Add invalid_parameter_type,
16019         invalid_return_type, promoted_type, and convert_to_type fields.
16020         * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
16021         (TARGET_INVALID_RETURN_TYPE): Define.
16022         (TARGET_PROMOTED_TYPE): Define.
16023         (TARGET_CONVERT_TO_TYPE): Define.
16024         (TARGET_INITIALIZER): Update for new fields.
16025         * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
16026         (grokparms): Check targetm.invalid_parameter_type.
16027         * c-typeck.c (default_conversion): Check targetm.promoted_type.
16028         * c-convert.c (convert): Check targetm.convert_to_type.
16029
16030 2009-05-20  Adam Nemet  <anemet@caviumnetworks.com>
16031
16032         * config/mips/mips.md (*extenddi_truncate<mode>,
16033         *extendsi_truncate<mode>): Emit exts if supported.  Add attribute
16034         defintions.
16035         (*extendhi_truncateqi): New define_insn_and_sptit.
16036
16037 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
16038
16039         PR middle-end/40204
16040         * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
16041         recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
16042
16043 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
16044
16045         * fold-const.c (build_fold_addr_expr_with_type): Take the address of
16046         the operand of VIEW_CONVERT_EXPR.
16047
16048 2009-05-20  H.J. Lu  <hongjiu.lu@intel.com>
16049
16050         * config/i386/driver-i386.c (host_detect_local_cpu): Check
16051         extended family and model for Intel processors.  Support Intel Atom.
16052
16053 2009-05-20  Olivier Hainque  <hainque@adacore.com>
16054
16055         * gstab.h (stab_code_type): Define, to be used instead of the
16056         __stab_debug_code enum, made anonymous.  Add 2009 to the copyright
16057         notice.
16058         * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
16059         occurrences by stab_code_type.
16060         * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
16061
16062 2009-05-20  Martin Jambor  <mjambor@suse.cz>
16063
16064         * tree-flow.h (insert_edge_copies_seq): Undeclare.
16065         (sra_insert_before): Likewise.
16066         (sra_insert_after): Likewise.
16067         (sra_init_cache): Likewise.
16068         (sra_type_can_be_decomposed_p): Likewise.
16069         * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
16070         * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
16071         (sra_insert_before): Likewise.
16072         (sra_insert_after): Likewise.
16073         (sra_init_cache): Likewise.
16074         (insert_edge_copies_seq): Made static and moved upwards.
16075
16076         * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
16077         case.
16078
16079         * tree-flow-inline.h (contains_view_convert_expr_p): New function.
16080
16081         * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
16082         (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
16083         simple copies.
16084
16085 2009-05-20  Richard Guenther  <rguenther@suse.de>
16086
16087         * expr.c (expand_expr_real_1): Avoid calling do_store_flag
16088         with mismatched comparison modes.
16089
16090 2009-05-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16091
16092         * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
16093         (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
16094         * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
16095         with shifts for Thumb2.
16096         (orsi_notsi): New for orn.
16097         (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
16098         (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
16099         * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
16100         (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
16101         Don't invert remainder for IOR.
16102
16103 2009-05-19  Zdenek Dvorak  <ook@ucw.cz>
16104
16105         PR tree-optimization/40087
16106         * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
16107         number_of_iterations_ne): Rename never_infinite argument.
16108         (number_of_iterations_lt_to_ne, number_of_iterations_lt,
16109         number_of_iterations_le): Handle pointer-type ivs when
16110         exit_must_be_taken is false.
16111         (number_of_iterations_cond):  Do not always assume that
16112         exit_must_be_taken if the control variable is a pointer.
16113
16114 2009-05-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16115
16116         * c-typeck.c (build_binary_op): Allow % on integal vectors.
16117         * doc/extend.texi (Vector Extension): Document that % is allowed too.
16118
16119 2009-05-19  H.J. Lu  <hongjiu.lu@intel.com>
16120
16121         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
16122         ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
16123
16124 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16125
16126         PR c/40172
16127         * c.opt (Wlogical-op): Disabled by default.
16128         * c-opt (c_common_post_options): Do not enable Wlogical-op with
16129         Wextra.
16130         * doc/invoke.texi (Wlogical-op): Likewise.
16131
16132 2009-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16133
16134         * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
16135         into CASE_CONVERT.
16136         <PLUS_EXPR>: Strip useless type conversions instead of type nops.
16137         Propagate the type of the first operand.
16138         <ASSERT_EXPR>: Simplify.
16139         (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
16140         Rewrite using the RHS code as discriminant.
16141         <NOP_EXPR>: Turn into CASE_CONVERT.
16142         <PLUS_EXPR>: Propagate the type of the first operand.
16143
16144 2009-05-19  Steve Ellcey  <sje@cup.hp.com>
16145
16146         * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
16147         (ia64_dconst_0_375): New.
16148         * config/ia64/ia64.c (ia64_override_options): Remove
16149         -minline-sqrt-min-latency warning.
16150         (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
16151         (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
16152         * config/ia64/ia64.md (*sqrt_approx): Remove.
16153         (sqrtsf2): Remove #if 0.
16154         (sqrtsf2_internal_thr): Rewrite and move to div.md.
16155         (sqrtdf): Remove assert.
16156         (sqrtdf2_internal_thr): Rewrite and move to div.md.
16157         (sqrtxf2): Remove #if 0.
16158         (sqrtxf2_internal_thr): Rewrite and move to div.md.
16159         * div.md (sqrt_approx_rf): New.
16160         (sqrtsf2_internal_thr): New implementation.
16161         (sqrtsf2_internal_lat): New.
16162         (sqrtdf2_internal_thr: New implementation.
16163         (sqrtxf2_internal): New implementation.
16164
16165 2009-05-19  Francois-Xavier Coudert  <fxcoudert@gmail.com>
16166             Hans-Peter Nilsson  <hp@axis.com>
16167
16168         * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
16169         (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
16170         (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
16171         (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
16172         (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
16173         (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
16174         (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
16175         (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
16176         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
16177         (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
16178         * c-common.c: ...from here.
16179
16180 2009-05-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16181
16182         * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
16183
16184 2009-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16185
16186         * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
16187
16188 2009-05-19  Ben Elliston  <bje@au.ibm.com>
16189
16190         * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
16191         assignments with memcpy calls.
16192         (add_fdes): Likewise.
16193         (binary_search_unencoded_fdes): Likewise.
16194         (linear_search_fdes): Eliminate type puns.
16195
16196 2009-05-19  Richard Guenther  <rguenther@suse.de>
16197
16198         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
16199         not falsely claim to have propagated into all uses.
16200
16201 2009-05-19  Ben Elliston  <bje@au.ibm.com>
16202
16203         * doc/invoke.texi (C Dialect Options): Update OpenMP specification
16204         version to v3.0.
16205
16206 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16207
16208         * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
16209         * config/sh/sh.c (sh_legitimate_address_p): Make static.
16210         (TARGET_LEGITIMATE_ADDRESS_P): New.
16211         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16212         * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16213
16214 2009-05-18  Dodji Seketeli  <dodji@redhat.com>
16215
16216         PR debug/40109
16217         * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
16218         child of the containing namespace's DIE.
16219
16220 2009-05-18  Adam Nemet  <anemet@caviumnetworks.com>
16221
16222         * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
16223         *zero_extendhi_truncqi):  Move after the zero_extend patterns.
16224         (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
16225         extend patterns.
16226
16227 2009-05-18  H.J. Lu  <hongjiu.lu@intel.com>
16228
16229         PR target/39942
16230         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
16231         gen_align with gen_pad.
16232         (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
16233         #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
16234
16235         * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
16236         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
16237
16238         * config/i386/i386.md (align): Renamed to ...
16239         (pad): This.  Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
16240         ASM_OUTPUT_MAX_SKIP_PAD.
16241
16242 2009-05-18  Andreas Schwab  <schwab@linux-m68k.org>
16243
16244         * config.gcc: Fix variable syntax.
16245
16246         PR target/39531
16247         * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
16248         before calling exact_log2.
16249         (output_iorsi3): Likewise.
16250         (output_xorsi3): Likewise.
16251
16252 2009-05-18  Kaz Kojima  <kkojima@gcc.gnu.org>
16253
16254         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
16255         for the none zero constant operand except for EQ and NE
16256         comprisons even when the first operand is R0.
16257
16258 2009-05-18  Andreas Krebbel  <krebbel1@de.ibm.com>
16259
16260         * config/s390/2064.md: Remove trailing whitespaces.
16261         * config/s390/2084.md: Likewise.
16262         * config/s390/constraints.md: Likewise.
16263         * config/s390/fixdfdi.h: Likewise.
16264         * config/s390/libgcc-glibc.ver: Likewise.
16265         * config/s390/s390-modes.def: Likewise.
16266         * config/s390/s390-protos.h: Likewise.
16267         * config/s390/s390.c: Likewise.
16268         * config/s390/s390.h: Likewise.
16269         * config/s390/s390.md: Likewise.
16270         * config/s390/tpf-unwind.h: Likewise.
16271
16272 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
16273
16274         * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
16275
16276 2009-05-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
16277
16278         M68K TLS support.
16279         * configure.ac (m68k-*-*): Check if binutils support TLS.
16280         * configure: Regenerate.
16281         * config/m68k/predicates.md (symbolic_operand): Extend comment.
16282         * config/m68k/constraints.md (Cu): New constraint.
16283         * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
16284         (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
16285         (movsi): Handle TLS symbols.
16286         (addsi3_5200): Handle XTLS symbols, indent.
16287         * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
16288         (m68k_tls_reference_p): Declare.
16289         (m68k_legitimize_address): Declare.
16290         (m68k_unwrap_symbol): Declare.
16291         * config/m68k/m68k.opt (mxtls): New option.
16292         * config/m68k/m68k.c (ggc.h): Include.
16293         (m68k_output_dwarf_dtprel): Implement hook.
16294         (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
16295         (m68k_expand_prologue): Load GOT pointer when function needs it.
16296         (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
16297         (m68k_legitimate_constant_address_p): Same.
16298         (m68k_decompose_address): Handle TLS references.
16299         (m68k_get_gp): New static function.
16300         (enum m68k_reloc): New contants.
16301         (TLS_RELOC_P): New macro.
16302         (m68k_wrap_symbol): New static function.
16303         (m68k_unwrap_symbol): New function.
16304         (m68k_final_prescan_insn_1): New static function.
16305         (m68k_final_prescan_insn): New function.
16306         (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
16307         functions.
16308         (legitimize_pic_address): Handle TLS references..
16309         (m68k_tls_get_addr, m68k_get_tls_get_addr)
16310         (m68k_libcall_value_in_a0_p)
16311         (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
16312         (m68k_call_m68k_read_tp): Helper variables and functions for ...
16313         (m68k_legitimize_tls_address): Handle TLS references.
16314         (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
16315         New functions.
16316         (m68k_legitimize_address): Handle TLS symbols.
16317         (m68k_get_reloc_decoration): New static function.
16318         (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
16319         UNSPEC_RELOC32.
16320         (m68k_output_dwarf_dtprel): Implement hook.
16321         (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
16322         (m68k_libcall_value): Return result in A0 instead of D0 when asked by
16323         m68k_call_* routines.
16324         (sched_attr_op_type): Handle TLS symbols.
16325         (gt-m68k.h): Include.
16326         * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
16327         (LEGITIMATE_PIC_OPERAND_P): Support TLS.
16328
16329 2009-05-18  Martin Jambor  <mjambor@suse.cz>
16330
16331         * ipa-prop.c (ipa_check_stmt_modifications): Removed.
16332         (visit_store_addr_for_mod_analysis): New function.
16333         (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
16334         (determine_cst_member_ptr): Use gimple_assign_single_p.
16335         (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
16336         (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
16337         operands.  Don't check number of operands of a NOP_EXPR.
16338
16339 2009-05-18  Eric Fisher  <joefoxreal@gmail.com>
16340
16341         * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
16342
16343 2009-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16344
16345         PR c/40172
16346         * c-common.c (warn_logical_operator): Don't warn if one of
16347         expression isn't always true or false.
16348
16349 2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
16350
16351         * config/i386/biarch32.h: New file.
16352         * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
16353
16354 2009-05-17  Adam Nemet  <anemet@caviumnetworks.com>
16355
16356         * config/mips/mips.md (*zero_extend<mode>_trunchi,
16357         *zero_extend<mode>_truncqi): Merge these into ...
16358         (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
16359         Name the pattern following this as *zero_extendhi_truncqi.
16360
16361 2009-05-16  Brad Lucier  <lucier@math.purdue.edu>
16362
16363         PR middle-end/39301
16364         * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
16365         * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
16366         (output_info): Make field HOST_WIDEST_INT.
16367         (print_statistics): Use HOST_WIDEST_INT_PRINT.
16368         (dump_bitmat_statistics): Same.
16369
16370 2009-05-16  Francois-Xavier Coudert  <fxcoudert@gmail.com>
16371
16372         * config.gcc (use_gcc_stdint):  Set to wrap.
16373         * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
16374         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
16375         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16376         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
16377         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
16378         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
16379         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16380         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
16381
16382 2009-05-16  Joseph Myers  <joseph@codesourcery.com>
16383
16384         * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
16385         tune_64.
16386         * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
16387         Move definitions earlier.
16388         (OPT_ARCH64, OPT_ARCH32): Define.
16389         (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
16390         and tune_64.
16391
16392 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16393
16394         PR target/40153
16395         * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
16396         implies.
16397
16398 2009-05-16  Richard Earnshaw  <rearnsha@arm.com>
16399
16400         * arm.md (movdi2): Copy non-reg values to DImode registers.
16401
16402 2009-05-16  Jakub Jelinek  <jakub@redhat.com>
16403
16404         PR target/39942
16405         * final.c (label_to_max_skip): New function.
16406         (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
16407         CODE_LABEL_NUMBER <= max_labelno.
16408         * output.h (label_to_max_skip): New prototype.
16409         * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
16410         (ix86_avoid_jump_mispredicts): ... this.  Don't define if
16411         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.  Update comment.
16412         Handle CODE_LABELs with >= 16 byte alignment or with
16413         max_skip == (1 << align) - 1.
16414         (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
16415         ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
16416
16417         PR target/39942
16418         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
16419         .p2align 3 if MAX_SKIP is smaller than 7.
16420         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16421
16422 2009-05-15  Ian Lance Taylor  <iant@google.com>
16423
16424         * alias.c (struct alias_set_entry_d): Rename from struct
16425         alias_set_entry.  Change all uses.
16426         * except.c (struct call_site_record_d): Rename from struct
16427         call_site_record.  Change all uses.
16428         * except.h (struct eh_region_d): Rename from struct eh_region.
16429         Change all uses.
16430         * gcse.c (struct hash_table_d): Rename from struct hash_table.
16431         Change all uses.
16432         * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
16433         ivtype_map_elt.  Change all uses.
16434         (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
16435         Change all uses.
16436         (struct ifsese_d): Rename fromstruct ifsese.  Change all uses.
16437         * graphite.h (struct name_tree_d): Rename from struct name_tree.
16438         Change all uses.
16439         (struct sese_d): Rename from struct sese.  Change all uses.
16440         * omega.h (struct eqn_d): Rename from struct eqn.  Change all uses.
16441         (struct omega_pb_d): Rename from struct omega_pb.  Change all uses.
16442         * optabs.h (struct optab_d): Rename from struct optab.  Change all
16443         uses.
16444         (struct convert_optab_d): Rename from struct convert_optab.
16445         Change all uses.
16446         * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
16447         ipa_opt_pass.  Change all uses.
16448         * tree-predcom.c (struct dref_d): Rename from struct dref.  Change
16449         all uses.
16450
16451         * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
16452         defined as a typedef.
16453         (grokdeclarator): If -Wc++-compat, warn if a typedef is already
16454         defined as a tag.
16455
16456 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16457
16458         PR 16302
16459         * fold-const.c (make_range,build_range_check,merge_ranges): Move
16460         declaration to...
16461         (merge_ranges): Returns bool.
16462         * tree.h (make_range): .. to here.
16463         (build_range_check): Likewise.
16464         (merge_ranges): Likewise. Renamed from merge_ranges.
16465         * c-typeck.c (parser_build_binary_op): Update calls to
16466         warn_logical_operator.
16467         * c-common.c (warn_logical_operator): Add new warning.
16468         * c-common.h (warn_logical_operator): Update declaration.
16469
16470 2009-05-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16471
16472         * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
16473
16474 2009-05-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16475
16476         * doc/install.texi: Document MPC requirements, flags etc.
16477
16478         * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
16479         (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
16480         Evaluate constant arguments.
16481         (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
16482         (fold_builtin_1): Likewise, also evaluate constant arguments.
16483         Remove superfluous break.
16484         (do_mpc_ckconv): New.
16485         * real.h: Include mpc.h.
16486         * toplev.c (print_version): Output MPC version info if available.
16487
16488 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16489
16490         * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
16491
16492 2009-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16493
16494         * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
16495         only once.
16496
16497 2009-05-15  Jan Hubicka  <jh@suse.cz>
16498
16499         * doc/invoke.texi (max-early-inliner-iterations): New flag.
16500         * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
16501         (try_inline): Fix return value.
16502         (cgraph_decide_inlining_incrementally): Honor new value.
16503         (cgraph_early_inlining): Handle indirect inlining.
16504         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
16505
16506 2009-05-15  Jan Hubicka  <jh@suse.cz>
16507
16508         * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
16509         * cgraphunit.c (cgraph_finalize_function): Set it.
16510         (cgraph_expand_function): Use it.
16511
16512 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16513
16514         * real.c (encode_ieee_half): Define.
16515         (decode_ieee_half): Define.
16516         (ieee_half_format): Define.
16517         (arm_half_format): Define.
16518         * real.h (ieee_half_format): Declare.
16519         (arm_half_format): Declare.
16520
16521 2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
16522
16523         * optabs.c (prepare_float_lib_cmp):  Test that the comparison,
16524         swapped, and reversed optabs exist before trying to use them.
16525
16526 2009-05-15  Paul Brook  <paul@codesourcery.com>
16527             Sandra Loosemore  <sandra@codesourcery.com>
16528
16529         * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
16530         loads.  Allow PRE_DEC.
16531         (output_move_neon): Handle PRE_DEC.
16532         (arm_print_operand): Add 'A' for neon structure loads.
16533         * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
16534         * config/arm/neon.md (neon_mov): Update comment.
16535         * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
16536         calls.
16537         (Um): New constraint.
16538
16539 2009-05-15  Jan Hubicka  <jh@suse.cz>
16540
16541         Revert the following patch until testsuite fallout is fixed:
16542         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16543         * cgraph.h (struct inline_summary): New filed self_wize,
16544         size_inlining_benefit, self_time and time_inlining_benefit.
16545         (struct cgraph_global_info): Replace insns by time ans size fields.
16546         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16547         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16548         (ipcp_update_callgraph): Do not touch function bodies.
16549         * ipa-inline.c: Include except.h
16550         (MAX_TIME): New constant.
16551         (overall_insns): Remove
16552         (overall_size, max_benefit): New static variables.
16553         (cgraph_estimate_time_after_inlining): New function.
16554         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16555         (cgraph_clone_inlined_nodes): Update size.
16556         (cgraph_mark_inline_edge): Update size.
16557         (cgraph_estimate_growth): Use size info.
16558         (cgraph_check_inline_limits): Check size.
16559         (cgraph_default_inline_p): Likewise.
16560         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16561         (cgraph_decide_recursive_inlining): Check size.
16562         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16563         and times.
16564         (cgraph_decide_inlining): Likewise.
16565         (cgraph_decide_inlining_incrementally): Likewise; honor
16566         PARAM_EARLY_INLINING_INSNS.
16567         (likely_eliminated_by_inlining_p): New predicate.
16568         (estimate_function_body_sizes): New function.
16569         (compute_inline_parameters): Use it.
16570         * except.c (must_not_throw_labels): New function.
16571         * except.h (must_not_throw_labels): Declare.
16572         * tree-inline.c (init_inline_once): Kill inlining_weigths
16573         * tree-ssa-structalias.c: Avoid uninitialized warning.
16574         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16575         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16576         (PARAM_INLINE_CALL_COST): Remove.
16577         (PARAM_EARLY_INLINING_INSNS): New.
16578
16579 2009-05-15  Richard Guenther  <rguenther@suse.de>
16580
16581         * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
16582         not TODO_update_ssa.
16583
16584 2009-05-15  Richard Guenther  <rguenther@suse.de>
16585
16586         PR tree-optimization/39999
16587         * gimple.h (gimple_expr_type): Use the expression type looking
16588         through useless conversions.
16589         * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
16590         (vn_nary_op_insert_stmt): Likewise.
16591         (simplify_binary_expression): Likewise.
16592
16593 2009-05-15  Richard Guenther  <rguenther@suse.de>
16594
16595         * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16596         New options, enabled by default.
16597         * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
16598         Document.
16599         * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
16600         * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
16601         * tree-ssa-structalias.c (gate_tree_pta): New function.
16602         (pass_build_alias): Use it.
16603
16604 2009-05-15  Joseph Myers  <joseph@codesourcery.com>
16605
16606         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
16607         recurse on an invariant address if a conversion from a pointer
16608         type to a wider integer type is involved.
16609
16610 2009-05-15  Jan Hubicka  <jh@suse.cz>
16611
16612         * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
16613         * cgraph.h (struct inline_summary): New filed self_wize,
16614         size_inlining_benefit, self_time and time_inlining_benefit.
16615         (struct cgraph_global_info): Replace insns by time ans size fields.
16616         * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
16617         (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
16618         (ipcp_update_callgraph): Do not touch function bodies.
16619         * ipa-inline.c: Include except.h
16620         (MAX_TIME): New constant.
16621         (overall_insns): Remove
16622         (overall_size, max_benefit): New static variables.
16623         (cgraph_estimate_time_after_inlining): New function.
16624         (cgraph_estimate_size_after_inlining): Rewrite using benefits.
16625         (cgraph_clone_inlined_nodes): Update size.
16626         (cgraph_mark_inline_edge): Update size.
16627         (cgraph_estimate_growth): Use size info.
16628         (cgraph_check_inline_limits): Check size.
16629         (cgraph_default_inline_p): Likewise.
16630         (cgraph_edge_badness): Compute badness based on benefit and size cost.
16631         (cgraph_decide_recursive_inlining): Check size.
16632         (cgraph_decide_inlining_of_small_function): Update size; dump sizes
16633         and times.
16634         (cgraph_decide_inlining): Likewise.
16635         (cgraph_decide_inlining_incrementally): Likewise; honor
16636         PARAM_EARLY_INLINING_INSNS.
16637         (likely_eliminated_by_inlining_p): New predicate.
16638         (estimate_function_body_sizes): New function.
16639         (compute_inline_parameters): Use it.
16640         * except.c (must_not_throw_labels): New function.
16641         * except.h (must_not_throw_labels): Declare.
16642         * tree-inline.c (init_inline_once): Kill inlining_weigths
16643         * tree-ssa-structalias.c: Avoid uninitialized warning.
16644         * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
16645         (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
16646         (PARAM_INLINE_CALL_COST): Remove.
16647         (PARAM_EARLY_INLINING_INSNS): New.
16648         doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
16649         (inline-call-cost): Remove.
16650         (early-inlining-insns): New.
16651
16652 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
16653
16654         * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters.  Use them
16655         for bounds.
16656         (print_int_cst_bounds_in_octal_p): Likewise.
16657         (dbxout_type): Adjust calls to above functions.  Be prepared to deal
16658         with subtypes.
16659         * dwarf2out.c (base_type_die): Likewise.
16660         (is_subrange_type): Delete.
16661         (subrange_type_die): Add LOW and HIGH parameters.  Use them for bounds.
16662         (modified_type_die): Call subrange_type_for_debug_p on subtypes.
16663         * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
16664         if the destination type is boolean.
16665         (build_range_check): Do not special-case subtypes.
16666         (fold_sign_changed_comparison): Likewise.
16667         (fold_unary): Likewise.
16668         * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
16669         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
16670         * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
16671         * tree.c (subrange_type_for_debug_p): New predicate based on the
16672         former is_subrange_type.
16673         * tree.h (subrange_type_for_debug_p): Declare.
16674         * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
16675         (convert_affine_scev): Remove call to above function.
16676         (chrec_convert_aggressive): Likewise.
16677         * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
16678         false for conversions involving subtypes.
16679         * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
16680         (vrp_val_min): Likewise.
16681         (needs_overflow_infinity): Likewise.
16682         (extract_range_from_unary_expr): Likewise.
16683
16684 2009-05-15  Paolo Bonzini  <bonzini@gnu.org>
16685
16686         * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
16687         * config/frv/frv.c: Likewise.
16688         * config/s390/s390.c: Likewise.
16689         * config/sparc/sparc.h: Likewise.
16690         * config/i386/i386.h: Likewise.
16691         * config/i386/i386.c: Likewise.
16692         * config/crx/crx.c: Likewise.
16693         * config/m68hc11/m68hc11.h: Likewise.
16694         * config/iq2000/iq2000.c: Likewise.
16695         * config/mn10300/mn10300.h: Likewise.
16696         * config/mn10300/mn10300.c: Likewise.
16697         * config/m68k/m68k.c: Likewise.
16698         * config/rs6000/rs6000.c: Likewise.
16699         * config/rs6000/xcoff.h: Likewise.
16700         * config/rs6000/linux64.h: Likewise.
16701         * config/rs6000/sysv4.h: Likewise.
16702         * config/score/score3.c: Likewise.
16703         * config/score/score7.c: Likewise.
16704         * config/score/score.c: Likewise.
16705         * config/arm/arm.md: Likewise.
16706         * config/mips/mips.c: Likewise.
16707         * config/mips/mips.md: Likewise.
16708         * config/bfin/bfin.h: Likewise.
16709         * config/pa/pa.c: Likewise.
16710         * config/pa/constraints.md: Likewise.
16711
16712         * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
16713         * config/pdp11/pdp11.c (legitimate_address_p): Delete.
16714         * config/pdp11/pdp11.h: Use memory_address_p instead.
16715
16716 2009-05-14  Ian Lance Taylor  <iant@google.com>
16717
16718         * passes.c (finish_optimization_passes): Change i to int.
16719         * plugin.c (plugins_active_p): Change event to int.
16720         (dump_active_plugins): Likewise.
16721         * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
16722         Add cast.
16723         * tree.c (tree_range_check_failed): Change c to unsigned int.
16724         (omp_clause_range_check_failed): Likewise.
16725         (build_common_builtin_nodes): Change mode to int.  Add cast.
16726         * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
16727         (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
16728
16729         * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
16730         ++ or -- with a variable of enum type.
16731
16732 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16733
16734         PR driver/40144
16735         * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
16736
16737 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16738
16739         * store-motion.c: Do not include params.h
16740         * Makefile.in: Fix dependencies for various files.
16741
16742 2009-05-14  Steven Bosscher  <steven@gcc.gnu.org>
16743
16744         * auto-inc-dec.c: Fix pass description, remove apparent
16745         accidental duplication.
16746
16747 2009-05-14  H.J. Lu  <hongjiu.lu@intel.com>
16748
16749         PR middle-end/40147
16750         * ipa-utils.h (memory_identifier_string): Moved to ...
16751         * tree.h (memory_identifier_string): Here.  Add GTY(()).
16752
16753 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
16754
16755         * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
16756         in the former documentation of...
16757         (GO_IF_LEGITIMATE_ADDRESS): ... this.
16758         * ira-conflicts.c (get_dup_num): Use address_operand.
16759         * targhooks.c (default_legitimate_address_p): New.
16760         * targhooks.h (default_legitimate_address_p): New.
16761         * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
16762         Call hook.
16763         * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
16764         * target.h (struct target): Add legitimate_address_p.
16765         * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
16766         (TARGET_INITIALIZER): Include it.
16767
16768         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16769         * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
16770         * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
16771         (TARGET_LEGITIMATE_ADDRESS_P): New.
16772
16773         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16774         (REG_OK_STRICT_P): Delete.
16775         * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
16776         (frv_legitimate_address_p_1): ... this.
16777         * config/frv/frv.c (frv_legitimate_address_p): Forward to...
16778         (frv_legitimate_address_p_1): ... the renamed old
16779         frv_legitimate_address_p.
16780         * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
16781         (TARGET_LEGITIMATE_ADDRESS_P): New.
16782
16783         * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16784         * config/s390/s390-protos.h (legitimate_address_p): Remove.
16785         * config/s390/s390.c (legitimate_address_p): Rename to...
16786         (s390_legitimate_address_p): ... this, make static.
16787         (legitimize_address): Adjust call.
16788         (TARGET_LEGITIMATE_ADDRESS_P): New.
16789         * config/s390/constraints.md ("e"): Call strict_memory_address_p.
16790
16791         * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16792         * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
16793         * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
16794         (TARGET_LEGITIMATE_ADDRESS_P): New.
16795
16796         * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16797         * config/spu/spu-protos.h (spu_legitimate_address): Remove.
16798         * config/spu/spu.c (spu_legitimate_address): Rename to...
16799         (spu_legitimate_address_p): ... this, make static.
16800         (TARGET_LEGITIMATE_ADDRESS_P): New.
16801
16802         * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16803         * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
16804         * config/sparc/sparc.c (legitimate_address_p): Rename to...
16805         (sparc_legitimate_address_p): ... this, make static and return bool.
16806         (legitimize_address): Adjust call.
16807         (TARGET_LEGITIMATE_ADDRESS_P): New.
16808
16809         * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16810         * config/i386/i386-protos.h (legitimate_address_p): Remove.
16811         * config/i386/i386.c (legitimate_address_p): Rename to...
16812         (ix86_legitimate_address_p): ... this, make static.
16813         (constant_address_p): Move after it, adjust call.
16814         (TARGET_LEGITIMATE_ADDRESS_P): New.
16815
16816         * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16817         * config/avr/avr-protos.h (legitimate_address_p): Remove.
16818         * config/avr/avr.c (legitimate_address_p): Rename to...
16819         (avr_legitimate_address_p): ... this, make static.
16820         (legitimize_address): Adjust call.
16821         (TARGET_LEGITIMATE_ADDRESS_P): New.
16822
16823         * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16824         * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
16825         * config/crx/crx.c (crx_legitimate_address_p): Make static.
16826         (TARGET_LEGITIMATE_ADDRESS_P): New.
16827
16828         * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16829         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
16830         * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
16831         (TARGET_LEGITIMATE_ADDRESS_P): New.
16832
16833         * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16834         * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
16835         Remove.
16836         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
16837         Make static.
16838         (TARGET_LEGITIMATE_ADDRESS_P): New.
16839
16840         * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16841         * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
16842         Remove.
16843         * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
16844         Rename to...
16845         (m68hc11_legitimate_address_p): ... this, make static.
16846         (go_if_legitimate_address_internal): Rename to...
16847         (m68hc11_legitimate_address_p_1): ... this.
16848         (legitimize_address): Adjust call.
16849         (TARGET_LEGITIMATE_ADDRESS_P): New.
16850
16851         * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16852         * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
16853         * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
16854         (TARGET_LEGITIMATE_ADDRESS_P): New.
16855
16856         * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16857         * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
16858         * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
16859         (mn10300_legitimate_address_p): ... this, make static.
16860         (TARGET_LEGITIMATE_ADDRESS_P): New.
16861
16862         * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16863         * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
16864         * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
16865         (TARGET_LEGITIMATE_ADDRESS_P): New.
16866
16867         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16868         (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
16869         (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
16870         * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16871         * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
16872         * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
16873         (rs6000_legitimate_address_p): ... this, make static.
16874         (TARGET_LEGITIMATE_ADDRESS_P): New.
16875         (REG_MODE_OK_FOR_BASE_P): Delete.
16876         (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
16877
16878         * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16879         * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
16880         Delete.
16881         * config/picochip/picochip.c (picochip_legitimate_address_p): Make
16882         static, adjust types.
16883         (TARGET_LEGITIMATE_ADDRESS_P): New.
16884
16885         * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16886         * config/score/score.c (score_address_p): Rename to...
16887         (score_legitimate_address_p): ... this.
16888         (TARGET_LEGITIMATE_ADDRESS_P): New.
16889         * config/score/score3.c (score3_address_p): Rename to...
16890         (score3_legitimate_address_p): ... this.
16891         * config/score/score7.c (score7_address_p): Rename to...
16892         (score7_legitimate_address_p): ... this.
16893
16894         * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
16895         THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
16896         GO_IF_LEGITIMATE_ADDRESS): Delete.
16897         * config/arm/arm-protos.h (thumb1_legitimate_address_p,
16898         thumb2_legitimate_address_p): Delete.
16899         (arm_legitimate_address_p): Rename to...
16900         (arm_legitimate_address_outer_p): ... this.
16901         * config/arm/constraints.md ("Uq"): Adjust call.
16902         * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
16903         * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
16904         to...
16905         (arm_legitimate_address_outer_p): ... this.
16906         (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
16907         static.
16908         (TARGET_LEGITIMATE_ADDRESS_P): New.
16909
16910         * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16911         * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
16912         * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
16913         (TARGET_LEGITIMATE_ADDRESS_P): New.
16914
16915         * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16916         * config/vax/vax-protos.h (legitimate_address_p): Remove.
16917         * config/vax/vax.c (legitimate_address_p): Rename to...
16918         (vax_legitimate_address_p): ... this, make static.
16919         (TARGET_LEGITIMATE_ADDRESS_P): New.
16920
16921         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16922         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
16923         * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
16924         (TARGET_LEGITIMATE_ADDRESS_P): New.
16925
16926         * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16927         * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
16928         * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
16929         (mmix_legitimate_address_p): ... this, make static.
16930         (TARGET_LEGITIMATE_ADDRESS_P): New.
16931
16932         * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
16933         * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
16934         * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
16935         (TARGET_LEGITIMATE_ADDRESS_P): New.
16936
16937 2009-05-14  Paolo Bonzini  <bonzini@gnu.org>
16938
16939         * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
16940         of MODE_COMPLEX_INT.
16941
16942 2009-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16943
16944         * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
16945         LCT_NORMAL in function call.
16946         * mips-tdump.c (print_file_desc): Add cast to enum type.
16947         * mips-tfile.c (add_ext_symbol): Add casts to enum types.
16948         (mark_stabs): Add casts to enum types.
16949         (parse_stabs_common): Add casts to enum types.
16950
16951 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
16952
16953         * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
16954         Check for invalid values of LETTER.
16955
16956 2009-05-13  Taras Glek  <tglek@mozilla.com>
16957
16958         * attribs.c (register_attribute): moved out attribute registration
16959         into register_attribute.
16960         * doc/plugins.texi: Documented register_attribute and
16961         PLUGIN_ATTRIBUTES.
16962         * gcc-plugin.h: Added forward decl for register_attribute.
16963         * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
16964         * plugin.c (register_callback, invoke_plugin_callbacks): Added
16965         PLUGIN_ATTRIBUTES boilerplate.
16966
16967 2009-05-14  Dave Korn  <dave.korn.cygwin@gmail.com>
16968
16969         * config/i386/msformat-c.c (ms_printf_length_specs):  Use enumeration
16970         values even in sentinel and empty entries.
16971         (ms_printf_flag_specs):  Likewise.
16972         (ms_scanf_flag_specs):  Likewise.
16973         (ms_strftime_flag_specs):  Likewise.
16974         (ms_print_char_table):  Likewise.
16975         (ms_scan_char_table):  Likewise.
16976         (ms_time_char_table):  Likewise.
16977
16978 2009-05-13  Doug Kwan  <dougkwan@google.com>
16979
16980         * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
16981
16982 2009-05-13  Adam Nemet  <anemet@caviumnetworks.com>
16983
16984         * config/mips/mips.md (store): Add attributes for QI and HI.
16985         Update comment.
16986         (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
16987         (truncdi<mode>2): ... this new pattern.
16988
16989 2009-05-13  Brad Hards  <bradh@kde.org>
16990
16991         * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
16992
16993 2009-05-14  Jakub Jelinek  <jakub@redhat.com>
16994             Ben Elliston <bje@au.ibm.com>
16995
16996         PR middle-end/40035
16997         * dse.c (check_mem_read_rtx): Guard against width == -1.
16998
16999 2009-05-13  Michael Matz  <matz@suse.de>
17000
17001         PR middle-end/39976
17002         * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
17003         (trivially_conflicts_p): New function.
17004         (insert_backedge_copies): Use it.
17005
17006 2009-05-13  Janis Johnson  <janis187@us.ibm.com>
17007
17008         * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
17009         (handle_stdc_pragma): Use new enum constant names.
17010         (handle_pragma_float_const_decimal64): Ditto.
17011
17012 2009-05-13  Ian Lance Taylor  <iant@google.com>
17013
17014         * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
17015         tree.def.
17016
17017 2009-05-13  Nathan Sidwell  <nathan@codesourcery.com>
17018
17019         * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
17020         * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
17021         multilibs.
17022         * config/m68k/m68k.h (FL_UCLINUX): Define.
17023
17024 2009-05-13  Jan Hubicka  <jh@suse.cz>
17025
17026         * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
17027
17028 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17029
17030         * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
17031         unless -fschedule-insns is specified.
17032
17033 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17034
17035         PR target/39561
17036         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
17037         TARGET_EXPAND_CBRANCHDI4.
17038         * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
17039         * config/sh/sh.opt (mexpand-cbranchdi): Remove.
17040         (cmpeqdi): Fix comment.
17041
17042 2009-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
17043
17044         * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
17045         (sh_legitimate_address_p): Likewise.
17046         * config/sh/sh.c (sh_legitimate_index_p): New.
17047         (sh_legitimate_address_p): Likewise.
17048         * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
17049         (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
17050         (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
17051         (MAYBE_BASE_REGISTER_RTX_P): New macro.
17052         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
17053         (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
17054         (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
17055         (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
17056         (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17057
17058 2009-05-12  Jan Hubicka  <jh@suse.cz>
17059
17060         * tree-inline.c (estimate_operator_cost): Add operands;
17061         when division happens by constant, it is cheap.
17062         (estimate_num_insns): Loads and stores are not having cost of 0;
17063         EH magic stuff is cheap; when computing runtime cost of switch,
17064         use log2 base of amount of its cases; builtin_expect has cost of 0;
17065         compute cost for moving return value of call.
17066         (init_inline_once): Initialize time_based flags.
17067         * tree-inline.h (eni_weights_d): Add time_based flag.
17068
17069 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17070
17071         * df-core.c: Update head documentation.
17072
17073 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17074
17075         PR bootstrap/40118
17076         * rs6000.c (rs6000_generate_compare): Use op1b instead of
17077         shadowing exisiting variable op1.
17078
17079 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
17080
17081         PR target/37179
17082         * config/i386/driver-i386.c (processor_signatures): New enum.
17083         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
17084         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
17085         processor signature to detect geode processor.
17086
17087 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17088
17089         Revert:
17090
17091         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17092
17093         * optabs.c (prepare_cmp_insn): Temporarily disable test that
17094         causes spurious differences between trunk and cond-optab branch.
17095
17096 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17097
17098         * dojump.c (compare_from_rtx): Delete.
17099         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
17100         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
17101         if the comparison does not satisfy the predicate; test predicates for
17102         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
17103         further if one existing pattern fails.
17104         * expr.h (compare_from_rtx): Delete.
17105         (prepare_operand): Declare it.
17106         * optabs.c: Change "lib call" to "libcall" throughout.
17107         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
17108         HAVE_conditional_trap, emit_cmp_insn): Delete.
17109         (can_compare_p): Delete cmp_optab case.
17110         (prepare_float_lib_cmp): Return an rtx and a machine mode.
17111         Accept other parameters by value.
17112         (prepare_operand): Make non-static.
17113         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
17114         other parameters by value.  Try to widen operands here based on
17115         an optab_methods argument and looking at cbranch_optab.
17116         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
17117         loop.  Use cbranch_optab directly.
17118         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
17119         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
17120         assertion.
17121         (emit_conditional_move, emit_conditional_add): Inline what's needed
17122         of compare_from_rtx, using new prepare_cmp_insn for the rest.
17123         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
17124         with COMPARE.  Move cmov_optab and cstore_optab above
17125         with cbranch_optab, move cmp_optab down with ucmp_optab,
17126         remove tst_otpab.  Do not initialize trap_rtx.
17127         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
17128         for trap code.  Do not check HAVE_conditional_trap.  Use
17129         prepare_cmp_insn.  Accept no predicate for operand 3.
17130         * optabs.h (OTI_cmp): Mark as used only for libcalls.
17131         (OTI_ctrap, ctrap_optab): New.
17132         (tst_optab): Delete.
17133         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
17134         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
17135         with lookup of ctrap_optab.
17136         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
17137         Delete.
17138         (ctrap_optab): New.
17139
17140         * combine.c (combine_simplify_rtx, simplify_set): Do not
17141         special case comparing against zero for cc0 machines.
17142         * simplify-rtx.c (simplify_binary_operation_1): Never remove
17143         COMPARE on cc0 machines.
17144         (simplify_relational_operation): Return a new expression when
17145         a COMPARE could be removed.
17146         * final.c (final_scan_insn): Compare cc_status values
17147         against LHS of a (compare FOO (const_int 0)) cc0 source.
17148         Also check if cc_status.value is the full compare.
17149
17150         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
17151         (cstoreMM4): Document.
17152         (conditional_trap): Document ctrapMM4 instead.
17153         (sync_compare_and_swapMM): Refer to cbranchcc4.
17154         (Dependent Patterns): Eliminate obsolete information referring to
17155         the old jump optimization phase.
17156         (Canonicalization): Include cbranchcc4 case, omit canonicalization
17157         of compares with 0 on cc0 machines.
17158         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
17159         avoiding references to cc0.  Remove text about storing operands
17160         in cmpMM.
17161         * doc/tm.texi (Condition Codes): Include blurb on different
17162         condition code representations, separate into subsections for
17163         CC0, MODE_CC and conditional execution.
17164
17165         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
17166         alpha_emit_setcc): Accept operands and a machine mode.
17167         * config/alpha/alpha.c (alpha_emit_conditional_branch):
17168         Get code/op0/op1 from operands, use machine mode argument
17169         instead of alpha_compare.fp_p.  Emit the branch here.
17170         (alpha_emit_setcc): Likewise, and return boolean.
17171         (alpha_emit_conditional_move): Likewise.  Assert that
17172         cmp_op_mode == cmp_mode, and simplify accordingly.
17173         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
17174         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
17175         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
17176         Delete.
17177         (stack probe test): Use cbranchdi4.
17178         * config/alpha/predicates.md (alpha_cbranch_operator): New.
17179
17180         * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
17181         * config/arc/arc.h (movsicc, movsfcc): Use it.
17182         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
17183         (cbranchsi4, cstoresi4): New.
17184         (cmpsi, bCC and sCC expanders): Remove.
17185
17186         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
17187         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
17188         * config/arm/predicates.md (arm_comparison_operator): Only include
17189         floating-point operators if there is a hardware floating-point unit.
17190         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
17191         deferring to cbranch_cc and cstore_cc respectively.
17192         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
17193         cbranch_cc, cstore_cc): New.
17194         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
17195         arm_compare_op1.
17196         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
17197
17198         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
17199         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
17200         as an argument.
17201         (adjust_insn_length): Adjust calls.
17202         (avr_reorg): Handle (compare (foo) (const_int 0)).
17203         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
17204         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
17205         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
17206         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
17207         (bCC): Remove.
17208         (cbranchqi4, cbranchhi4, cbranchsi4): New.
17209         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
17210
17211         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
17212         (cbranchsi4, cstorebi4, cstoresi4): New.
17213         (movbisi): This insn is duplicate, split it to zero_extend.
17214         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
17215         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
17216         (bfin_optimize_loop): Use cbranch expander.
17217         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
17218         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
17219         (bfin_bimode_comparison_operator): ... this.
17220         (bfin_direct_comparison_operator): New.
17221
17222         * config/cris/cris.c (cris_normal_notice_update_cc): Look
17223         inside (compare FOO (const_int 0)).
17224         (cris_rtx_costs): Handle ZERO_EXTRACT.
17225         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
17226         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
17227         (*tstdi_v32): Delete.
17228         (*cmpdi_non_v32): Add M alternative for operand 1.
17229         (cmpsi, cmp<mode>): Make private.
17230         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
17231         with COMPARE.
17232         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
17233
17234         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
17235         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
17236         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
17237         (cc_reg_operand): New.
17238         (any_cond): Delete.
17239         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
17240         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
17241         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
17242         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
17243         crx_expand_scond): Delete.
17244
17245         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
17246         (cbranchsi4): New.
17247         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
17248         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
17249
17250         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
17251         cstoresi4, cstoresf4, cstoredf4): New.
17252         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
17253         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17254         Receive the entire operands array.
17255         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
17256         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
17257         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
17258         Get test/op0/op1 from the operands array.
17259         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
17260
17261         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
17262         (h8300_expand_store): New.
17263         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
17264         (const_int 0)).
17265         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
17266         (h8300_expand_store): New.
17267         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
17268         or do not try to produce (set (cc0) REG).
17269         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
17270         change a compare into a move to a scratch register.  Disable some
17271         peepholes when comparing with zero.
17272         (tstsi, tsthi, tstsi, cmpqi): Make private.
17273         (cmphi): Delete.
17274         (bCC, sCC): Delete.
17275         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
17276         cstoresi4): New.
17277
17278         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
17279         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
17280         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
17281         (ix86_emit_i387_log1p): Use cbranchxf2.
17282         (ix86_expand_setcc): Return void.
17283         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
17284         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
17285         cmp<MODEF>, cmpcc): Remove.
17286         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
17287         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
17288         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
17289         (sCC and bCC expanders): Remove.
17290         (stack_protect_test): Use cbranchcc4.
17291
17292         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
17293         Delete.
17294         (ia64_expand_compare): Accept three rtx by reference and return void.
17295         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
17296         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
17297         from *expr.  Update *expr with the BImode comparison to do.
17298         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
17299         cmptf, bCC, sCC, conditional_trap): Delete.
17300         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
17301         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
17302         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
17303         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
17304         * config/ia64/predicates.md (ia64_cbranch_operator): New.
17305
17306         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
17307         type of last argument.
17308         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
17309         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
17310         use machine mode argument instead of branch_type.  Remove dead
17311         code for floating-point comparisons.
17312         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
17313         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
17314         Remove.
17315         (cbranchsi4, cstoresi4): New.
17316         * config/iq2000/predicates.md (reg_or_const_operand): New.
17317
17318         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
17319         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
17320         (b<code>_op): Rewrite to...
17321         (bcc_op): ... this, using match_operator.
17322         (s<code>_op): Rewrite to...
17323         (scc_op): ... this, using match_operator.
17324         (s<code>_24_op): Rewrite to...
17325         (scc_op_24): ... this, using match_operator.
17326         (s<code>_<mode>): Rewrite to...
17327         (cstore<mode>4): ... this, using match_operator.
17328         (s<code>_<mode>_24): Rewrite to...
17329         (cstore<mode>4_24): ... this, using match_operator.
17330         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
17331         m32c_unpend_compare, m32c_expand_scc): Delete.
17332         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
17333         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
17334         (m32c_expand_movcc): Change NE to EQ if necessary.
17335         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
17336
17337         * config/m32r/m32r-protos.h (gen_cond_store): New.
17338         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
17339         (gen_cond_store): New, from sCC patterns.
17340         (m32r_expand_block_move): Use cbranchsi4.
17341         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
17342         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
17343         (cbranchsi4, cstoresi4): New.
17344
17345         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
17346         Delete.
17347         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
17348         (m68hc11_notice_update_cc): Look into a compare with 0.
17349         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
17350         Delete.
17351         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
17352         cmphi, cmpqi, bCC): Delete.
17353         (cbranchsi4, cbranchhi4, cbranchqi4): New.
17354         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
17355         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
17356         sets with COMPARE.
17357
17358         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
17359         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
17360         * config/m68k/constraints.md (H): New.
17361         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
17362         the define_insn below.
17363         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
17364         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
17365         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
17366         patterns): Wrap RHS with COMPARE.
17367         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
17368         (*cmpdi_internal): Name this pattern.
17369         (cmpdi): Change to define_insn.
17370         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
17371         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
17372         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
17373         predicate.
17374         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
17375         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
17376         (conditional_trap): Change to...
17377         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
17378         (*conditional_trap): Use the ordered_comparison_operator and
17379         const1_operand predicates.
17380         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
17381         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
17382         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
17383         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
17384
17385         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
17386         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
17387         (mcore_gen_compare): New.
17388         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
17389         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
17390         (mcore_gen_compare): ... this.
17391         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
17392         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
17393         (stack probe pattern): Use cbranchsi4.
17394
17395         * config/mips/predicates.md (mips_cstore_operator): New.
17396         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
17397         * config/mips/mips.md (any_cond): Delete.
17398         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
17399         always succeed.
17400         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
17401         fixuns_truncsfdi2): Use cbranch patterns.
17402         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
17403         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
17404         Adjust call to mips_expand_conditional_branch.
17405         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
17406         cstore<GPR:mode>4.
17407         * config/mips/mips-protos.h (mips_expand_conditional_branch,
17408         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
17409         * config/mips/mips.c (cmp_operands): Delete.
17410         (mips_emit_compare): Get comparison operands from *op0/*op1.
17411         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
17412         that it succeeds.  Use op0/op1 instead of cmp_operands.
17413         (mips_expand_conditional_branch, mips_expand_conditional_move,
17414         mips_expand_conditional_trap): Likewise.
17415         (mips_block_move_loop): Use cbranch patterns.
17416         * config/mips/mips.h (cmp_operands): Delete.
17417
17418         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
17419         (mmix_gen_compare_reg): Just return a register in the right CC mode.
17420         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
17421         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
17422         (*cmpcc_folded): Rename to...
17423         (*cmpdi_folded): this.
17424         (*cmpcc): Rename to...
17425         (*cmps): ... this.
17426         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
17427         (bCC): Remove.
17428         (cbranchdi4): New.
17429         (cbranchdf4): New.  Handle invalid comparisons here.
17430         * config/mmix/predicates.md (float_comparison_operator): New.
17431
17432         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
17433         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
17434         * config/mn10300/mn10300.md (tst): Delete.
17435         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
17436         Name these patterns and wrap RHS in a compare.
17437         (*cmpsi): Make this pattern private.  Include tst.
17438         (*cmpsf): Make this pattern private.
17439         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
17440         (compare with zero peepholes): Likewise.
17441         (bCC): Remove.
17442         (cbranchsi4, cbranchsf4): New.
17443         (casesi): Use cbranchsi4.
17444
17445         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
17446         hppa_branch_type): Delete.
17447         (return_addr_rtx): Use cbranchsi4.
17448         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
17449         Emit CCFPmode comparison here.
17450         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
17451         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
17452         hppa_branch_type): Delete.
17453         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
17454         (movsicc, movdicc): Remove references to hppa_compare_op0,
17455         hppa_compare_op1 and compare_from_rtx.
17456         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
17457         (casesi): Use cbranchsi4.
17458
17459         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
17460         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
17461         * config/pdp11/pdp11.md (register_or_const0_operand): New.
17462         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
17463         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
17464         (bCC): Delete.
17465         (cbranchdf4, cbranchhi4, cbranchqi4): New.
17466         (*branch, *branch_inverted): New.
17467
17468         * config/picochip/picochip.md (cbranchhi4): Use
17469         ordered_comparison_operator.
17470         (cmphi, bCC): Remove.
17471
17472         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
17473         (trap_comparison_operator): Delete.
17474         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
17475         rs6000_emit_cbranch): Accept mode and operands.
17476         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
17477         rs6000_compare_fp_p): Delete.
17478         (rs6000_generate_compare): Accept mode and comparison.  Extract code
17479         and op0/op1 from there.  Replace references to rs6000_compare_op0
17480         and rs6000_compare_op1.
17481         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
17482         extract result from passed operands.
17483         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
17484         extract loc from passed operands.
17485         (rs6000_emit_cmove): Likewise.
17486         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
17487         rs6000_compare_fp_p): Delete.
17488         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
17489         (cbranch<GPR>4, cbranch<FP>4): New.
17490         (cstore<mode>4): New.  Consolidate here all choices about when to use
17491         portable or specialized sCC sequences.
17492         (stack_protect_test): Use cbranchsi4.
17493         (conditional_trap): Replace with ctrap<GPR>4.
17494         (conditional trap insn): Replace trap_comparison_operator with
17495         ordered_comparison_operator.
17496
17497         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
17498         (s390_emit_prologue): Use ctrap.
17499         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
17500         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
17501         New predicates replacing...
17502         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
17503         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
17504         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
17505         (add<mode>cc): Do not use s390_compare_op0/op1.
17506         (s<code>): Change to...
17507         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
17508         (seq): Change to...
17509         (cstorecc4): ... this.  Handle EQ or NE equally.
17510         (*sne): Un-privatize for use in cstorecc4.
17511         (b<code>): Change to...
17512         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
17513         (conditional_trap): Replace with...
17514         (ctrap<GPR>4, ctrap<FP>4): ... these.
17515         (stack_protect): Use cbranchcc4.
17516
17517         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
17518         * config/score/score-protos.h (score_gen_cmp): Delete.
17519         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
17520         (score_block_move-loop): Use cbranchsi4.
17521         * config/score/score.md (cbranchsi4): New.
17522         (cmpsi, bCC): Delete.
17523         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
17524         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17525         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
17526         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
17527         * config/score/score3.h (score3_gen_cmp): Delete.
17528         * config/score/score7.h (score7_gen_cmp): Delete.
17529
17530         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
17531         (sh_emit_scc_to_t): ... this.  Return void.
17532         (from_compare): Rename to...
17533         (sh_emit_compare_and_branch): ... this.
17534         (sh_emit_compare_and_set): New.
17535         (sh_expand_t_scc): Accept operands.
17536         * config/sh/predicates.md (sh_float_comparison_operator): New.
17537         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
17538         (prepare_scc_operands): Rename to...
17539         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
17540         arguments.
17541         (sh_emit_cheap_store_flag): New.
17542         (sh_emit_set_t_insn): New.
17543         (from_compare): Rename to...
17544         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
17545         handling of TARGET_SH2E floating point to avoid recursive call.
17546         Generate branch here.
17547         (sh_emit_compare_and_set): New.
17548         (sh_expand_t_scc): Get op0/op1 from arguments.
17549         (sh_emit_cheap_store_flag): New.
17550         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
17551         cases.
17552         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
17553         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
17554         (movsicc, movdicc): Do nothing when it recreated operands from
17555         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
17556         prepare_scc_operands (now sh_emit_scc_to_t).
17557         (udivdi3): Use cstoresi4.
17558         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
17559         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
17560         (cbranchint4_media, cbranchfp4_media): New.
17561         (casesi): Use cbranchdi4.
17562         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
17563         Delete.
17564         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
17565         (movnegt): Remove second operand.
17566         (cbranchsf4, cbranchdf4): New.
17567         (stack_protect): Use cbranchdi4/cbranchsi4.
17568
17569         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
17570         (gen_compare_reg): Accept comparison, extract part of it to...
17571         (gen_compare_reg_1): ... this.
17572         (gen_compare_operator): Delete.
17573         (gen_v9_scc): Accept separate destination, comparison code and arms.
17574         Do not use sparc_compare_op0/sparc_compare_op1.
17575         (emit_scc_insn, emit_conditional_branch_insn): New.
17576         (emit_v9_brxx): Make static.  Remove useless assertion.
17577         (sparc_emit_float_lib_cmp): Return RTL instead of calling
17578         emit_cmp_insn.
17579         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
17580         * config/sparc/sparc-protos.h (gen_compare_reg,
17581         sparc_emit_float_lib_cmp): Adjust prototype.
17582         (emit_scc_insn, emit_conditional_branch_insn): New.
17583         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
17584         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
17585         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
17586         iterators to the top.
17587         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
17588         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
17589         snedi_special_trunc): Delete.
17590         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
17591         and snedi_special_trunc.
17592         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
17593         cbranchdi4, cbranch<F:mode>4): New.
17594         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
17595         here.  Use gen_compare_reg instead of gen_compare_operator.
17596         (conditional_trap): Replace with...
17597         (ctrapsi4, ctrapdi4): ... this.
17598         (stack_protect_test): Use cbranchcc4.
17599
17600         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
17601         argument to rtx.
17602         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
17603         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
17604         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
17605         from operands[0] or operands[3] depending on is_set.
17606         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
17607         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
17608         cmpdf, bCC), sCC: Remove.
17609         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
17610         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
17611         cstoredf4): New.
17612         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
17613         spu_emit_branch_or_set.
17614
17615         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
17616         Add two arguments.
17617         * config/stormy16/stormy16.h (xstormy16_compare_op0,
17618         xstormy16_compare_op1): Delete.
17619         * config/stormy16/stormy16.c (xstormy16_compare_op0,
17620         xstormy16_compare_op1): Delete.
17621         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
17622         Adjust calls.
17623         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
17624         (cmphi, cmpsi, bCC): Remove.
17625
17626         * config/v850/v850.md (tstsi, cmpsi): Fold into...
17627         (*cmpsi): ... this one.
17628         (cbranchsi4, cstoresi4): New.
17629         (bCC expanders): Delete.
17630         (sCC insns): Fold into...
17631         (*setcc): ... this one.
17632         (casesi): Do not use gen_cmpsi and gen_bgtu.
17633         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
17634         (movsicc): Simplify.
17635         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
17636
17637         * config/vax/vax-protos.h (cond_name): New.
17638         (vax_output_conditional_branch): Remove.
17639         * config/vax/vax.c (cond_name): New.
17640         (vax_output_conditional_branch): Remove.
17641         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
17642         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
17643         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
17644         (bit<VAXint>): Wrap source with (compare).
17645         (b<code> and following unnamed pattern): Rename to *branch and
17646         *branch_reversed.  Change macroization to match_operator.
17647         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
17648
17649         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
17650         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
17651         Change last argument to machine_mode.
17652         (xtensa_expand_scc): Add machine_mode argument.
17653         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
17654         (gen_conditional_move, xtensa_expand_conditional_branch,
17655         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
17656         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
17657         Adjust operand numbers.
17658         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
17659         Delete.
17660         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
17661         (cmpsi, cmpsf, b<code>, s<code>): Delete.
17662         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
17663
17664 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
17665
17666         * optabs.c (prepare_cmp_insn): Temporarily disable test that
17667         causes spurious differences between trunk and cond-optab branch.
17668
17669 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
17670
17671         PR target/37137
17672         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
17673
17674 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
17675
17676         * tree.c (iterative_hash_pointer): Delete.
17677         (iterative_hash_expr): Short-circuit handling of NULL pointer.
17678         Hash UIDs and versions of SSA names.  Don't special-case built-in
17679         function declarations.
17680
17681 2009-05-11  Ian Lance Taylor  <iant@google.com>
17682
17683         PR bootstrap/40103
17684         * graphite.c: Force -Wc++-compat to only be a warning before
17685         #including "cloog/cloog.h".
17686
17687 2009-05-11  Martin Jambor  <mjambor@suse.cz>
17688
17689         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
17690
17691 2009-05-11  Jan Hubicka  <jh@suse.cz>
17692
17693         * tree-ssa-loop-ivcanon.c: Include target.h
17694         (struct loop_size): new structure.
17695         (constant_after_peeling): New predicate.
17696         (tree_estimate_loop_size): New function.
17697         (estimated_unrolled_size): Rewrite for new estimates.
17698         (try_unroll_loop_completely): Use new estimates.
17699         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
17700
17701 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
17702
17703         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
17704         libcpp interface change.
17705         (spu_macro_to_expand): Likewise.
17706
17707 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
17708
17709         PR tree-optimization/40026
17710         * gimplify.c (gimplify_init_constructor): Change initial conditional
17711         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
17712         optimize_compound_literals_in_ctor.
17713
17714 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
17715
17716         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
17717         New devices.
17718         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
17719
17720 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
17721
17722         * tree-vect-data-refs.c (vect_analyze_group_access): Use
17723         HOST_WIDE_INT for gap.
17724
17725 2009-05-11  Ira Rosen  <irar@il.ibm.com>
17726
17727         PR tree-optimization/40074
17728         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
17729         account in group size and step comparison.
17730
17731 2009-05-11  Richard Guenther  <rguenther@suse.de>
17732
17733         * passes.c (init_optimization_passes): Strip now incorrect comment.
17734         (execute_function_todo): Do not set PROP_alias.
17735         * tree-pass.h (PROP_alias): Remove.
17736         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
17737         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
17738         * tree-nrv.c (pass_return_slot): Likewise.
17739         * tree-object-size.c (pass_object_sizes): Likewise.
17740         * tree-ssa-dom.c (pass_dominator): Likewise.
17741         (pass_phi_only_cprop): Likewise.
17742         * tree-ssa-dse.c (pass_dse): Likewise.
17743         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
17744         (pass_cselim): Likewise.
17745         * tree-ssa-pre.c (pass_pre): Likewise.
17746         (pass_fre): Likewise.
17747         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17748         * tree-ssa-sink.c (pass_sink_code): Likewise.
17749         * tree-stdarg.c (pass_stdarg): Likewise.
17750         * tree-tailcall.c (pass_tail_calls): Likewise.
17751         * tree-vrp.c (pass_vrp): Likewise.
17752
17753 2009-05-10  Ian Lance Taylor  <iant@google.com>
17754
17755         * basic-block.h (enum profile_status): Break out of struct
17756         control_flow_graph.
17757         * cgraph.h (struct inline_summary): Break out of struct
17758         cgraph_local_info.
17759         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
17760         of struct cgraph_order_sort.
17761         * combine.c (enum undo_kind): New enum, broken out of struct undo.
17762         * cse.c (struct branch_path): Break out of struct
17763         cse_basic_block_data.
17764         * except.h (enum eh_region_type): Break out of struct eh_region.
17765         * gcc.c (enum add_del): Break out of struct modify_target.
17766         * genrecog.c (enum decision_type): Break out of struct decision_test.
17767         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
17768         ggc_pch_data.
17769         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
17770         * regmove.c (enum match_use): New enum, broken out of struct match.
17771         * sched-int.h (enum post_call_group): New enum, broken out of
17772         struct deps.
17773         (struct deps_reg): Break out of struct deps.
17774         * target.h (struct asm_int_op): Break out of struct gcc_target.
17775         * tree-eh.c (struct goto_queue_node): Break out of struct
17776         leh_tf_state.
17777         * tree-inline.h (enum copy_body_cge_which): Break out of
17778         copy_body_data.
17779         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
17780
17781         * c-decl.c (in_struct, struct_types): New static variables.
17782         (pushtag): Add loc parameter.  Change all callers.
17783         (lookup_tag): Add ploc parameter.  Change all callers.
17784         (check_compound_literal_type): New function.
17785         (parser_xref_tag): Add loc parameter.  Change all callers.  If
17786         -Wc++-compat, warn about struct/union/enum types defined within a
17787         struct or union.
17788         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
17789         and loc parameters.  Change all callers.  Change error calls to
17790         error_at, using loc.  For a redefinition, if the location of the
17791         original definition is known, report it.  Set in_struct and
17792         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
17793         (finish_struct): Add new parameters enclosing_in_struct and
17794         enclosing_struct_types.  Change all callers.  Set
17795         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
17796         in the struct.  If in a struct, add this struct to struct_types.
17797         (start_enum): Add loc parameter.  Change all callers.  Use
17798         error_at for errors, using loc.  For a redefinition, if the
17799         location of the original definition is known, report it.  If in a
17800         struct, add this enum type to struct_types.  If -Wc++-compat warn
17801         if in sizeof, typeof, or alignof.
17802         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
17803         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
17804         (c_parser_enum_specifier): Get enum location for start_enum.
17805         (c_parser_struct_or_union_specifier): Get struct location for
17806         start_struct.  Save in_struct and struct_types status between
17807         start_struct and finish_struct.
17808         (c_parser_cast_expression): Get location of cast.
17809         (c_parser_alignof_expression): Get location of type.
17810         (c_parser_postfix_expression): Likewise.
17811         (c_parser_postfix_expression_after_paren_type): Add type_loc
17812         parameter.  Change all callers.  Call check_compound_literal_type.
17813         Use type_loc for error about variable size type.
17814         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
17815         of an enum constant from an enum type defined in a struct or union.
17816         (c_cast_expr): Add loc parameter.  Change all callers.  If
17817         -Wc++-compat, warn about defining a type in a cast.
17818         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
17819         (start_enum, start_struct, finish_struct): Update declarations.
17820         (parser_xref_tag, c_cast_expr): Update declarations.
17821         (check_compound_literal_type): Declare.
17822
17823 2009-05-11  Ben Elliston  <bje@au.ibm.com>
17824
17825         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
17826         for recent libcpp interface change.
17827         (rs6000_macro_to_expand): Likewise.
17828
17829 2009-05-10  Michael Matz  <matz@suse.de>
17830
17831         PR target/40031
17832         * config/arm/arm.c (require_pic_register): Emit on entry edge,
17833         not at entry of function.
17834
17835 2009-05-10  Richard Guenther  <rguenther@suse.de>
17836
17837         PR tree-optimization/40081
17838         Revert
17839         * tree-sra.c (instantiate_element): Instantiate scalar replacements
17840         using the main variant of the element type.  Do not fiddle with
17841         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17842
17843         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
17844         structs with volatile fields.
17845
17846 2009-05-10  Jan Hubicka  <jh@suse.cz>
17847
17848         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
17849         (estimate_move_cost): Assert that it does not get called for
17850         VOID_TYPE_P.
17851         (estimate_num_insns): Skip VOID types in argument handling.
17852         (optimize_inline_calls): Delete unreachable blocks and verify that
17853         callgraph is valid.
17854
17855 2009-05-10  Jan Hubicka  <jh@suse.cz>
17856
17857         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
17858         * cgraph.c (cgraph_mark_address_taken_node): New function.
17859         (dump_cgraph_node): Dump new flag.
17860         * cgraph.h (struct cgraph_node): Add address_taken.
17861         (cgraph_mark_address_taken_node): New function.
17862         * ipa.c (cgraph_postorder): Prioritize functions with address taken
17863         since new direct calls can be born.
17864
17865 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17866
17867         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
17868         tok->val.node.node.
17869
17870 2009-05-10  Jan Hubicka  <jh@suse.cz>
17871
17872         PR middle-end/40084
17873         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
17874         argument; rewrite.
17875         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
17876         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
17877         * tree-inline.c (copy_bb): Set frequency correctly.
17878         (fold_marked_statements): Update call to
17879         cgraph_update_edges_for_call_stmt.
17880
17881 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17882
17883         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
17884         identifiers in diagnostics.
17885         * config/arm/arm.c (arm_handle_fndecl_attribute,
17886         arm_handle_isr_attribute): Likewise.
17887         * config/avr/avr.c (avr_handle_progmem_attribute,
17888         avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
17889         * config/bfin/bfin.c (handle_int_attribute,
17890         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
17891         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
17892         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
17893         Likewise.
17894         * config/darwin.c (darwin_handle_kext_attribute,
17895         darwin_handle_weak_import_attribute): Likewise.
17896         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
17897         h8300_handle_eightbit_data_attribute,
17898         h8300_handle_tiny_data_attribute): Likewise.
17899         * config/i386/i386.c (ix86_handle_cconv_attribute,
17900         ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
17901         * config/i386/winnt.c (ix86_handle_shared_attribute,
17902         ix86_handle_selectany_attribute): Likewise.
17903         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
17904         * config/m32c/m32c.c (function_vector_handler): Likewise.
17905         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
17906         m68hc11_handle_fntype_attribute): Likewise.
17907         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
17908         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
17909         * config/mips/mips.c (mips_insert_attributes,
17910         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
17911         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
17912         rs6000_handle_struct_attribute): Likewise.
17913         * config/sh/sh.c (sh_insert_attributes,
17914         sh_handle_resbank_handler_attribute,
17915         sh_handle_interrupt_handler_attribute,
17916         sh2a_handle_function_vector_handler_attribute,
17917         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
17918         Likewise.
17919         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
17920         * config/spu/spu.c (spu_handle_fndecl_attribute,
17921         spu_handle_vector_attribute): Likewise.
17922         * config/stormy16/stormy16.c
17923         (xstormy16_handle_interrupt_attribute): Likewise.
17924         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
17925         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
17926
17927 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
17928
17929         * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
17930         (pp_translate_identifiers): New.
17931         (pp_identifier): Only conditionally translate identifier to locale
17932         character set.
17933         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
17934         (pp_base_tree_identifier): Only conditionally translate identifier
17935         to locale character set.
17936         * c-pretty-print.c (M_): Define.
17937         (pp_c_type_specifier, pp_c_primary_expression): Mark English
17938         fragments for conditional translation with M_.
17939         * tree-pretty-print.c (maybe_init_pretty_print): Disable
17940         identifier translation.
17941
17942 2009-05-10  Richard Guenther  <rguenther@suse.de>
17943
17944         PR tree-optimization/40081
17945         * tree-sra.c (instantiate_element): Instantiate scalar replacements
17946         using the main variant of the element type.  Do not fiddle with
17947         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
17948
17949 2009-05-09  Jan Hubicka  <jh@suse.cz>
17950
17951         PR middle-end/40080
17952         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
17953         indirect calls; verify cgraph afterwards.
17954
17955 2009-05-09  Jan Hubicka  <jh@suse.cz>
17956
17957         PR bootstrap/40082
17958         * ipa.c (update_inlined_to_pointer): New function.
17959         (cgraph_remove_unreachable_nodes): Use it.
17960
17961 2009-05-09  Jan Hubicka  <jh@suse.cz>
17962
17963         * tree-eh.c (struct leh_state): Remove prev_try.
17964         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
17965         not track prev_try.
17966         * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
17967         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
17968         remove_eh_handler_and_replace, foreach_reachable_handler,
17969         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
17970         * except.h (struct eh_region): Remove eh_region_u_cleanup.
17971         (gen_eh_region_cleanup): Update prototype.
17972
17973 2009-05-09  Jan Hubicka  <jh@suse.cz>
17974
17975         PR middle-end/40043
17976         * except.c (copy_eh_region): Always set prev_try.
17977         (redirect_eh_edge_to_label): Find outer try.
17978         (foreach_reachable_handler): When looking for prev try
17979         handle case where previous try is not going to be taken.
17980
17981 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
17982
17983         PR tree-optimization/40049
17984         * tree-vect-stmts.c (vectorizable_operation): If the machine has
17985         only vector/vector shifts, convert the type of the constant to the
17986         appropriate type to avoid building incorrect trees, which
17987         eventually have problems with garbage collection.
17988
17989 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
17990
17991         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
17992         -1 for complex floating-point types if honoring signed zeros.
17993
17994 2009-05-08  Jan Hubicka  <jh@suse.cz>
17995
17996         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
17997         argument; handle correctly when profile is absent.
17998         (build_cgraph_edges): Update.
17999         (rebuild_cgraph_edges): Update.
18000         * cgraph.c: Do not include varray.h.
18001         (cgraph_set_call_stmt_including_clones): New function.
18002         (cgraph_create_edge_including_clones): Likewise
18003         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
18004         (cgraph_update_edges_for_call_stmt): Handle clones.
18005         (cgraph_remove_node): Handle clone tree.
18006         (cgraph_remove_node_and_inline_clones): New function.
18007         (dump_cgraph_node): Dump clone tree.
18008         (cgraph_clone_node): Handle clone tree.
18009         (clone_function_name): Bring here from tree-inline.c.
18010         (cgraph_create_virtual_clone): New function.
18011         * cgraph.h (ipa_replace_map): Move here from ipa.h.
18012         (cgraph_clone_info): New function.
18013         (strut cgraph_node): Add clone_info and new clone tree pointers.
18014         (cgraph_remove_node_and_inline_clones,
18015         cgraph_set_call_stmt_including_clones,
18016         cgraph_create_edge_including_clones,
18017         cgraph_create_virtual_clone): Declare.
18018         (cgraph_function_versioning): Use VEC argument.
18019         (compute_call_stmt_bb_frequency): Update prototype.
18020         (cgraph_materialize_all_clones): New function.
18021         * ipa-cp.c (ipcp_update_cloned_node): Remove.
18022         (ipcp_create_replace_map): Update to VECtors.
18023         (ipcp_update_callgraph): Use virtual clones.
18024         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
18025         (ipcp_update_profiling): Do not update local profiling.
18026         (ipcp_insert_stage): Use VECtors and virtual clones.
18027         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
18028         (clone_of_p): New function.
18029         (cgraph_preserve_function_body_p): Use clone tree.
18030         (cgraph_optimize): Materialize clones.
18031         (cgraph_function_versioning): Update for VECtors.
18032         (save_inline_function_body): Use clone tree.
18033         (cgraph_materialize_clone): New function.
18034         (cgraph_materialize_all_clones): Likewise.
18035         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
18036         * ipa.c: Include gimple.h.
18037         (cgraph_remove_unreachable_nodes): Use clone tree.
18038         * ipa-prop.c (ipa_note_param_call): Update call to
18039         compute_call_stmt_bb_frequencycall.
18040         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
18041         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
18042         (copy_bb): Handle updating of clone tree; add new edge when new call
18043         appears.
18044         (expand_call_inline): Be strict about every call having edge.
18045         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
18046         (delete_unreachable_blocks_update_callgraph): New function.
18047         (tree_function_versioning): Use VECtors; always remove unreachable
18048         blocks and fold conditionals.
18049         * tree-inline.h: Do not include varray.h.
18050         (tree_function_versioning): Remove.
18051         * Makefile.in (GTFILES): Remove tree-inline.c
18052         * passes.c (do_per_function): Do only functions having body.
18053         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
18054         tree.
18055
18056 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
18057             Andrew Morrow  <acm@google.com>
18058
18059         PR c/36892
18060         * c-common.c (c_common_attribute_table): Permit deprecated
18061         attribute to take an optional argument.
18062         (handle_deprecated_attribute): If the optional argument to
18063         __attribute__((deprecated)) is not a string ignore the attribute
18064         and emit a warning.
18065
18066         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
18067         * c-typeck.c (build_component_ref): Likewise.
18068         (build_external_ref): Likewise.
18069
18070         * toplev.c (warn_deprecated_use): Add an attribute argument.
18071         Emit the message associated with __attribute__((deprecated)).
18072
18073         * toplev.h (warn_deprecated_use): Updated.
18074
18075         * doc/extend.texi: Document new optional parameter to
18076         __attribute__((deprecated))
18077
18078 2009-05-08  Michael Eager <eager@eagercon.com>
18079
18080         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
18081         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
18082
18083 2009-05-08  Richard Guenther  <rguenther@suse.de>
18084
18085         PR tree-optimization/40062
18086         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
18087         Avoid exponential behavior.
18088
18089 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18090
18091         PR rtl-optimization/33928
18092         PR 26854
18093         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
18094         process_uses, build_single_def_use_links): New.
18095         (update_df): Update use_def_ref.
18096         (forward_propagate_into): Use get_def_for_use instead of use-def
18097         chains.
18098         (fwprop_init): Call build_single_def_use_links and let it initialize
18099         dataflow.
18100         (fwprop_done): Free use_def_ref.
18101         (fwprop_addr): Eliminate duplicate call to df_set_flags.
18102         * df-problems.c (df_rd_simulate_artificial_defs_at_top,
18103         df_rd_simulate_one_insn): New.
18104         (df_rd_bb_local_compute_process_def): Update head comment.
18105         (df_chain_create_bb): Use the new RD simulation functions.
18106         * df.h (df_rd_simulate_artificial_defs_at_top,
18107         df_rd_simulate_one_insn): New.
18108         * opts.c (decode_options): Enable fwprop at -O1.
18109         * doc/invoke.texi (-fforward-propagate): Document this.
18110
18111 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
18112
18113         PR c/24581
18114         * c-typeck.c (build_binary_op): Handle arithmetic between one real
18115         and one complex operand specially.
18116         * tree-complex.c (some_nonzerop): Do not identify a real value as
18117         zero if flag_signed_zeros.
18118
18119 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18120
18121         PR rtl-optimization/33928
18122         * loop-invariant.c (record_use): Fix && vs. || mishap.
18123
18124 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
18125
18126         PR rtl-optimization/33928
18127         * loop-invariant.c (struct use): Add addr_use_p.
18128         (struct def): Add n_addr_uses.
18129         (struct invariant): Add cheap_address.
18130         (create_new_invariant): Set cheap_address.
18131         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
18132         (record_uses): Pass df_ref to record_use.
18133         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
18134         used only as such.
18135
18136 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
18137
18138         * config/sh/sh.c: Do not include c-pragma.h.
18139
18140 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
18141
18142         * config/spu/spu.c: Remove include of c-common.h.
18143
18144 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
18145
18146         PR c/39037
18147         * c-common.h (mark_valid_location_for_stdc_pragma,
18148         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
18149         clear_float_const_decimal64, float_const_decimal64_p): New.
18150         * c.opt (Wunsuffixed-float-constants): New.
18151         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
18152         unsuffixed float constant, handle new warning.
18153         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
18154         * c-decl.c (c_scope): New flag float_const_decimal64.
18155         (set_float_const_decimal64, clear_float_const_decimal64,
18156         float_const_decimal64_p): New.
18157         (push_scope): Set new flag.
18158         * c-parser.c (c_parser_translation_unit): Mark when it's valid
18159         to use STDC pragmas.
18160         (c_parser_external_declaration): Ditto.
18161         (c_parser_compound_statement_nostart): Ditto.
18162         * c-pragma.c (valid_location_for_stdc_pragma,
18163         mark_valid_location_for_stdc_pragma,
18164         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
18165         handle_pragma_float_const_decimal64): New.
18166         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
18167         * cp/semantics.c (valid_location_for_stdc_pragma_p,
18168         set_float_const_decimal64, clear_float_const_decimal64,
18169         float_const_decimal64_p): New dummy functions.
18170         * doc/extend.texi (Decimal Float): Remove statement that the
18171         pragma, and suffix for double constants, are not supported.
18172         * doc/invoke.texi (Warning Options): List new option.
18173         (-Wunsuffixed-float-constants): New.
18174
18175 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
18176
18177         * config/i386/i386.c: Do not include c-common.h.
18178
18179 2009-05-07  Mark Heffernan  <meheff@google.com>
18180
18181         * doc/invoke.texi (Debugging Options): Document change of debugging
18182         dump location.
18183         * opts.c (decode_options): Make dump_base_name relative to
18184         aux_base_name directory.
18185
18186 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
18187
18188         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
18189         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
18190
18191 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
18192
18193         * Makefile.in (install-plugin): Simplify a bit.
18194
18195 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
18196
18197         * Makefile.in (OBJS-common): Add regcprop.o.
18198         (regcprop.o): New.
18199         * timevar.def (TV_CPROP_REGISTERS): New.
18200         * regrename.c (regrename_optimize): Return 0.
18201         (rest_of_handle_regrename): Delete.
18202         (pass_rename_registers): Point to regrename_optimize.
18203         (struct value_data_entry, struct value_data,
18204         kill_value_one_regno, kill_value_regno, kill_value,
18205         set_value_regno, init_value_data, kill_clobbered_value,
18206         kill_set_value, kill_autoinc_value, copy_value,
18207         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
18208         replace_oldest_value_reg, replace_oldest_value_addr,
18209         replace_oldest_value_mem, copyprop_hardreg_forward_1,
18210         debug_value_data, validate_value_data): Move...
18211         * regcprop.c: ... here.
18212         (rest_of_handle_cprop): Delete.
18213         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
18214
18215 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
18216
18217         PR middle-end/40057
18218         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
18219         GEN_INT for 1 << bitnum.
18220         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
18221         build_int_cst_type.
18222
18223 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
18224
18225         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
18226         Remove wrong description of "nand" operation.
18227
18228 2009-05-06  Richard Guenther  <rguenther@suse.de>
18229             Adam Nemet  <anemet@caviumnetworks.com>
18230
18231         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
18232         comment.  Add that if LHS is not a gimple register, then RHS1 has
18233         to be a single object (GIMPLE_SINGLE_RHS).
18234
18235 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
18236
18237         * expr.c (get_def_for_expr): Move it up in the file.
18238         (store_field): When expanding a bit-field store, look at the
18239         defining gimple stmt for the masking conversion.
18240
18241 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
18242
18243         PR middle-end/39986
18244         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
18245         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
18246         32-bit memcpy into long.
18247
18248 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
18249
18250         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
18251         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
18252         new_reg_loc_descr.
18253         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
18254         instead of appending DW_OP_deref*.
18255
18256 2009-05-06  Michael Matz  <matz@suse.de>
18257
18258         PR middle-end/40021
18259         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
18260         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
18261
18262 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
18263
18264         * Makefile.in (install-plugin): Fix srcdir handling.
18265
18266 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
18267
18268         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
18269         when processing for not_regs_needed bitmap.
18270         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
18271         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while
18272         handling it for rhs.
18273
18274 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18275
18276         * config/i386/i386.md (unnamed inc/dec peephole): Use
18277         optimize_insn_for_size_p instead of optimize_size.
18278         * config/i386/predicates.md (incdec_operand): Likewise.
18279         (aligned_operand): Likewise.
18280         * config/i386/sse.md (divv8sf3): Likewise.
18281         (sqrtv8sf2): Likewise.
18282
18283 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18284
18285         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
18286
18287         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
18288
18289 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
18290
18291         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
18292         ssemodesuffixf2c with avxmodesuffixf2c.
18293
18294 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
18295
18296         PR c/40032
18297         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
18298
18299 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
18300
18301         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
18302         (struct tree_base): Adjust spacing for 8 bit boundaries.
18303         (struct tree_decl_common): Add decl_by_reference_flag bit.
18304         (DECL_BY_REFERENCE): Adjust.
18305         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
18306         print DECL_BY_REFERENCE bit.
18307         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
18308         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
18309         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
18310         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
18311         unconditionally.
18312
18313         PR middle-end/39666
18314         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
18315         range of the type, but default label is missing, add it with one
18316         of the existing labels instead of adding a new label for it.
18317
18318 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
18319
18320         * dwarf.h: Remove.
18321
18322 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
18323
18324         * Makefile.in (enable_plugin, plugin_includedir): New.
18325         (install): Depend on install-plugin.
18326         (PLUGIN_HEADERS): New.
18327         (install-plugin): New.
18328         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
18329
18330 2009-05-05  Richard Guenther  <rguenther@suse.de>
18331
18332         PR tree-optimization/40022
18333         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
18334         the only vuse.
18335         (phivn_valid_p): Fix tuplification error, simplify.
18336         (phiprop_insert_phi): Add dumps.
18337         (propagate_with_phi): Simplify.
18338
18339 2009-05-05  Richard Guenther  <rguenther@suse.de>
18340
18341         PR middle-end/40023
18342         * builtins.c (gimplify_va_arg_expr): Properly build the address.
18343
18344 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
18345
18346         * tree.h (strip_float_extensions): Remove duplicate declaration.
18347         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
18348         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
18349         block_ultimate_origin): Rearrange the declarations line to match the
18350         comment that indicates the .c file which the functions are defined.
18351         (dwarf2out_*, set_decl_rtl): Add comment.
18352         (get_base_address): Adjust comment.
18353         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
18354         declarations line and add comment.
18355         (is_builtin_name): Add blank after function name, for clarity.
18356
18357 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18358
18359         * attribs.c (decl_attributes): Use %qE for identifiers in
18360         diagnostics.
18361         * cgraphunit.c (verify_cgraph_node): Translate function names to
18362         locale character set in diagnostics.
18363         * coverage.c (get_coverage_counts): Use %qE for identifiers in
18364         diagnostics.
18365         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
18366         Document that functions are named in UTF-8.
18367         * expr.c (expand_expr_real_1): Translate function names to locale
18368         character set in diagnostics.
18369         * gimplify.c (omp_notice_variable, omp_is_private,
18370         gimplify_scan_omp_clauses): Use %qE for identifiers in
18371         diagnostics.
18372         * langhooks.c (lhd_print_error_function): Translate function names
18373         to locale character set.
18374         * langhooks.h (decl_printable_name): Document that return value is
18375         in internal character set.
18376         * stmt.c: Include pretty-print.h
18377         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
18378         diagnostics.
18379         (resolve_operand_name_1): Translate named operand name to locale
18380         character set.
18381         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
18382         diagnostics.
18383         * toplev.c (announce_function): Translate function names to locale
18384         character set.
18385         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
18386         (default_tree_printer): Use pp_identifier or translate identifiers
18387         to locale character set.  Mark "<anonymous>" for translation.
18388         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
18389         for identifiers in diagnostics.
18390         * tree.c (handle_dll_attribute): Use %qE for identifiers in
18391         diagnostics.
18392         * varasm.c (output_constructor): Use %qE for identifiers in
18393         diagnostics.
18394
18395 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
18396
18397         * configure.ac: use ` ` instead of $()
18398         * configure: Regenerate.
18399
18400 2009-05-05  Ben Elliston  <bje@au.ibm.com>
18401
18402         * config/pa/linux-atomic.c: Eliminate conditional include of
18403         errno.h on non-LP64 systems to simplify build requirements.
18404
18405 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18406
18407         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
18408         diagnostics.
18409         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
18410         and pass value to identifier_to_locale.
18411         (warn_variable_length_array): Make name a tree.
18412         (grokdeclarator): Separate diagnostic texts for named and unnamed
18413         declarators.  Use %qE for named declarators.
18414         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
18415         diagnostics.
18416         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
18417         identifiers in diagnostics.
18418         * c-typeck.c (push_member_name, start_init): Pass identifiers to
18419         identifier_to_locale.  Mark "anonymous" strings for translation.
18420
18421 2009-05-04  Michael Eager <eager@eagercon.com>
18422
18423         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
18424         address for DImode/DFmode only if double-precision FP regs.
18425
18426 2009-05-04  Michael Eager <eager@eagercon.com>
18427
18428         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
18429         TARGET_SINGLE_FLOAT check.
18430
18431 2009-05-04  Michael Eager <eager@eagercon.com>
18432
18433         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
18434
18435 2009-05-04  Michael Eager <eager@eagercon.com>
18436
18437         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
18438         * config/rs6000/t-xilinx: New
18439
18440 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
18441
18442         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
18443         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
18444         * gcc/explow.c (memory_address): Use target hook.
18445         * gcc/targhooks.c (default_legitimize_address): New.
18446         * gcc/targhooks.h (default_legitimize_address): New.
18447         * gcc/target.h (legitimize_address): New.
18448         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
18449         (TARGET_INITIALIZER): Include it.
18450         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
18451
18452         * config/bfin/bfin-protos.h (legitimize_address): Remove.
18453         * config/bfin/bfin.c (legitimize_address): Remove.
18454         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
18455         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
18456         Remove.
18457         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
18458         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
18459
18460         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
18461         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
18462         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
18463         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
18464         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
18465         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
18466         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
18467         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
18468         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
18469         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
18470         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
18471         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
18472         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
18473         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
18474         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
18475         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
18476         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
18477         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
18478         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
18479         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
18480         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
18481         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
18482         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
18483
18484         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
18485         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
18486         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
18487         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
18488         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
18489         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
18490         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
18491         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
18492         (thumb_legitimize_address): Delete.
18493         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
18494         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
18495         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
18496         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
18497         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
18498         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
18499         Delete.
18500         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
18501         Delete.
18502
18503         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
18504         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
18505         * config/m32r/m32r.c (m32r_legitimize_address): New.
18506         * config/m68k/m68k.c (m68k_legitimize_address): New.
18507         * config/score/score.c (score_legitimize_address): Standardize.
18508         * config/score/score3.c (score3_legitimize_address): Standardize.
18509         * config/score/score3.h (score3_legitimize_address): Adjust.
18510         * config/score/score7.c (score7_legitimize_address): Standardize.
18511         * config/score/score7.h (score7_legitimize_address): Adjust.
18512         * config/sh/sh.c (sh_legitimize_address): New.
18513         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
18514
18515         * gcc/config/s390/s390.c (legitimize_address): Rename to...
18516         (s390_legitimize_address): ... this.
18517         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
18518         (sparc_legitimize_address): ... this.
18519         * gcc/config/i386/i386.c (legitimize_address): Rename to...
18520         (ix86_legitimize_address): ... this.
18521         * gcc/config/avr/avr.c (legitimize_address): Rename to...
18522         (avr_legitimize_address): ... this.
18523         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
18524         (mn10300_legitimize_address): ... this.
18525         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
18526         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
18527         (alpha_expand_mov): Adjust call.
18528
18529         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
18530         * config/spu/spu.c (spu_legitimize_address): Likewise.
18531         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
18532         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
18533
18534 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
18535
18536         * intl.c (locale_encoding, locale_utf8): New.
18537         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
18538         * intl.h (locale_encoding, locale_utf8): Declare.
18539         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
18540         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
18541         New.
18542         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
18543         argument.
18544         (pp_tree_identifier): Define to call pp_base_tree_identifier.
18545         (pp_base_tree_identifier): Declare as function.
18546         (identifier_to_locale): Declare.
18547         * Makefile.in (pretty-print.o): Update dependencies.
18548         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
18549
18550 2009-05-04  Richard Guenther  <rguenther@suse.de>
18551
18552         PR middle-end/40015
18553         * builtins.c (fold_builtin_memory_op): Do not decay to element
18554         type if the size matches the whole array.
18555
18556 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18557
18558         * expmed.c (synth_mult): When trying out a shift, pass the result
18559         of a signed shift.
18560
18561 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
18562
18563         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
18564         (shiftsub1_cost): New.
18565         (init_expmed): Compute shiftsub1_cost.
18566         (synth_mult): Optimize multiplications by constants of the form
18567         -(2^^m-1) for some constant positive integer m.
18568
18569 2009-05-03  Richard Guenther  <rguenther@suse.de>
18570
18571         PR c/39983
18572         * c-typeck.c (array_to_pointer_conversion): Do not built
18573         ADDR_EXPRs of arrays of pointer-to-element type.
18574         * c-gimplify.c (c_gimplify_expr): Revert change fixing
18575         up wrong ADDR_EXPRs after-the-fact.
18576         * c-common.c (strict_aliasing_warning): Strip pointer
18577         conversions for obtaining the original type.
18578         * builtins.c (fold_builtin_memset): Handle array types.
18579         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
18580         and array types
18581
18582 2009-05-03  Richard Guenther  <rguenther@suse.de>
18583
18584         PR middle-end/23329
18585         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
18586         Do not lose casts from array types with unknown extent to array
18587         types with known extent.
18588         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
18589         alias set compatibility.
18590
18591 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18592
18593         * flags.h (extra_warnings): Delete.
18594         * toplev.c (process_options): Handle Wuninitialized here.
18595         * opts.c (extra_warnings): Delete.
18596         (set_Wextra): Delete.
18597         (common_handle_option): -Wextra can be handled automatically.
18598         * c-opts.c (c_common_handle_option): Delete obsolete code.
18599         (c_common_post_options): Simplify comment.
18600         * common.opt (W): Add Var.
18601         (Wextra): Add Var.
18602         (Wuninitialized): Initialize to -1.
18603
18604 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
18605             Richard Guenther  <rguenther@suse.de>
18606
18607         * expr.c (get_def_for_expr): New function.
18608         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
18609         SSA rather than trees.
18610         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
18611         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
18612
18613 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
18614
18615         * c-common.c (reswords): Add _Imaginary.
18616         * c-common.c (enum rid): Add RID_IMAGINARY.
18617
18618 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
18619
18620         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
18621         Patch by Richard Guenther.
18622
18623 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
18624
18625         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
18626         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
18627         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
18628         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
18629         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
18630         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
18631         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
18632         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
18633         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
18634         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
18635         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
18636         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
18637         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
18638         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
18639         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
18640         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
18641         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
18642         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
18643
18644 2009-05-02  Richard Guenther  <rguenther@suse.de>
18645
18646         PR tree-optimization/39940
18647         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
18648         doing so.
18649
18650 2009-05-02  Richard Guenther  <rguenther@suse.de>
18651
18652         PR middle-end/40001
18653         * tree-ssa.c (execute_update_addresses_taken): Properly check
18654         if we can mark a variable DECL_GIMPLE_REG_P.
18655         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
18656         back to the end of the function.
18657         (is_gimple_reg_type): Remove complex type special casing.
18658         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
18659         if not optimizing.
18660
18661 2009-05-02  Ben Elliston  <bje@au.ibm.com>
18662
18663         * doc/collect2.texi (Collect2): Document search path behaviour
18664         when configured with --with-ld.
18665
18666 2009-05-02  Jan Hubicka  <jh@suse.cz>
18667
18668         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
18669         parameter; update callers.
18670         (coalesce_cost_edge): EH edges are costier because they needs
18671         splitting even if not critical and even more costier when there are
18672         multiple EH predecestors.
18673
18674 2009-05-02  Jan Hubicka  <jh@suse.cz>
18675
18676         * except.c (remove_eh_handler_and_replace): Handle updating after
18677         removing TRY blocks.
18678
18679 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
18680
18681         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
18682
18683 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
18684
18685         * varasm.c: Do not include c-pragma.h.
18686         * attribs.c: Do not incude c-common.h.
18687
18688 2009-05-01  Michael Matz  <matz@suse.de>
18689
18690         * calls.c (initialize_argument_information): Handle SSA names like
18691         decls with a non MEM_P DECL_RTL.
18692
18693 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
18694
18695         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
18696         * ipa-utils.c: Likewise.
18697         * ipa-type-escape.c: Likewise.
18698         * cgraphunit.c Do not include c-common.h.
18699         * ipa-pure-const.c: Likewise.
18700         * tree-if-conv.c: Likewise.
18701         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
18702         * ipa-struct-reorg.c: Likewise.
18703         * tree-nomudflap.c: Likewise.
18704         * tree-ssa-structalias.c: Likewise.
18705
18706 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
18707
18708         * store-motion.c: Many cleanups to make this pass a first-class
18709         citizen instead of an appendix to gcse load motion.  Add TODO list
18710         to make this pass faster/cleaner/better.
18711
18712         (struct ls_expr): Post gcse.c-split cleanups.
18713         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
18714         "stores" field to "avail_stores".
18715         (pre_ldst_mems): Rename to store_motion_mems.
18716         (pre_ldst_table): Rename to store_motion_mems_table.
18717         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
18718         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
18719         (ldst_entry): Rename to st_expr_entry, update users.
18720         (free_ldst_entry): Rename to free_st_expr_entry, update users.
18721         (free_ldst_mems): Rename to free_store_motion_mems, update users.
18722         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
18723         update caller.
18724         (first_ls_expr): Rename to first_st_expr, update users.
18725         (next_ls_expr): Rename to next_st_expr, update users.
18726         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
18727         fields properly for store motion instead of names inherited from load
18728         motion in gcse.c.
18729         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
18730         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
18731         are done with it.
18732
18733         (ae_kill): Rename to st_kill, update users.
18734         (ae_gen): Rename to st_avloc, update users.
18735         (transp): Rename to st_transp, update users.
18736         (pre_insert_map): Rename to st_insert_map, update users.
18737         (pre_delete_map): Rename to st_delete_map, update users.
18738         (insert_store, build_store_vectors, free_store_memory,
18739         one_store_motion_pass): Update for abovementioned changes.
18740
18741         (gcse_subst_count, gcse_create_count): Remove.
18742         (one_store_motion_pass): New statistics counters "n_stores_deleted"
18743         and "n_stores_created", local variables.
18744
18745         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
18746         use for_each_rtx.
18747
18748         (regvec, compute_store_table_current_insn): Remove.
18749         (reg_set_info, reg_clear_last_set): Remove.
18750         (compute_store_table): Use DF caches instead of local dataflow
18751         solvers.
18752
18753 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
18754
18755         * c-objc-common.c (c_tree_printer): Print identifiers with
18756         pp_identifier, not pp_string.  Mark "({anonymous})" for
18757         translation.
18758         * c-pretty-print.c (pp_c_ws_string): New.
18759         (pp_c_cv_qualifier, pp_c_type_specifier,
18760         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
18761         pp_c_storage_class_specifier, pp_c_function_specifier,
18762         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
18763         pp_c_primary_expression, pp_c_postfix_expression,
18764         pp_c_unary_expression, pp_c_shift_expression,
18765         pp_c_relational_expression, pp_c_equality_expression,
18766         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
18767         use pp_string and pp_c_ws_string in place of pp_identifier and
18768         pp_c_identifier for non-identifiers.  Mark English strings for
18769         translation.
18770         * c-pretty-print.h (pp_c_ws_string): Declare.
18771
18772 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
18773             Roland McGrath <roland@redhat.com>
18774
18775         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
18776         (ENABLE_LD_BUILDID): New configuration option.
18777         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
18778         (LINK_BUILDID_SPEC): New macro.
18779         (init_spec): If defined, prepend it between LINK_EH_SPEC and
18780         link_spec.
18781         * doc/install.texi: Document --enable-linker-build-id option.
18782         * configure: Rebuild.
18783         * config.in: Rebuild.
18784
18785 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
18786
18787         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
18788         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
18789         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
18790         MIPS_GP_SAVE_AREA_SIZE.
18791         * config/mips/mips.c (struct mips_frame_info): Update comment
18792         before arg_pointer_offset and hard_frame_pointer_offset.
18793         (mips_compute_frame_info): Update diagram before function: to
18794         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
18795         indicate the position of frame_pointer_rtx with -fstack-protector and
18796         to show args_size.  Don't allocate cprestore area for leaf functions
18797         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
18798         cprestore_size.
18799         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
18800
18801 2009-04-30  Michael Matz  <matz@suse.de>
18802
18803         PR tree-optimization/39955
18804         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
18805
18806 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
18807
18808         * ira.c (setup_cover_and_important_classes):  Use safe macro
18809         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
18810         directly.
18811         * genpreds.c (write_tm_preds_h):  Output suitable definition of
18812         REG_CLASS_FOR_CONSTRAINT.
18813
18814 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
18815
18816         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
18817         instead of an int.
18818         * bitmap.c (bitmap_descriptor): Likewise.
18819         * ggc-common.c (loc_descriptor): Likewise.
18820         * varray.c (varray_descriptor): Likewise.
18821         * vec.c (vec_descriptor): Likewise.
18822
18823 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
18824
18825         * Makefile.in (dce.o): Add $(EXCEPT_H).
18826         * dce.c: Include except.h and delete redundant vector definitions.
18827         (deletable_insn_p): Return false for non-call insns that can throw
18828         if DF is running.
18829
18830 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18831
18832         * gcse.c (ae_gen): Remove.
18833         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
18834         and make non-static function to make it available in store-motion.c.
18835         Update call sites with search-and-replace.
18836         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
18837         extract_mentioned_regs, extract_mentioned_regs_helper,
18838         find_moveable_store, compute_store_table, load_kills_store, find_loads,
18839         store_killed_in_insn, store_killed_after, store_killed_before,
18840         build_store_vectors, insert_insn_start_basic_block, insert-store,
18841         remove_reachable_equiv_notes, replace_store_insn, delete_store,
18842         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
18843         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
18844         * store-motion.c: ...new file.  Also copy data structures from gcse.c
18845         and clean up to remove parts not used by store motion.
18846         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
18847         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
18848
18849 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18850
18851         PR target/38571
18852         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
18853         when optimizing for size.
18854
18855 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
18856
18857         * gcse.c (gcse_constant_p): Fix typo in last change.
18858
18859 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
18860
18861         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
18862
18863 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
18864
18865         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
18866
18867 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
18868
18869         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
18870         CONST_HIGH_PART result.
18871
18872 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
18873
18874         * config/avr/avr.c (initial_elimination_offset): Rename to
18875         avr_initial_elimination_offset.
18876         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
18877         change return type to bool.
18878         (avr_can_eliminate): New function.
18879         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
18880         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
18881         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
18882         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
18883         avr_initial_elimination_offset.
18884         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
18885         (avr_initial_elimination_offset): Define.
18886
18887 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
18888             Steven Bosscher  <steven@gcc.gnu.org>
18889
18890         PR rtl-optimization/39938
18891         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
18892         * cfgrtl.c: Include insn-attr.h.
18893         (rest_of_pass_free_cfg): New function.
18894         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
18895         * resource.c (init_resource_info): Remove call to df_analyze.
18896
18897 2009-04-29  Richard Guenther  <rguenther@suse.de>
18898
18899         PR target/39943
18900         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
18901         allow conversion to signed integers.
18902
18903 2009-04-29  Richard Guenther  <rguenther@suse.de>
18904
18905         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
18906         shifts of floating point vectors if the shift amount is
18907         a constant multiple of the element size.
18908
18909 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
18910             Michael Matz  <matz@suse.de>
18911
18912         PR middle-end/39927
18913         PR bootstrap/39929
18914         * tree-outof-ssa.c (emit_partition_copy): New function.
18915         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
18916         insert_part_to_rtx_on_edge): Perform the partition base var
18917         copy using emit_partition_copy.
18918         (insert_value_copy_on_edge): Convert constants to the right mode.
18919         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
18920         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
18921
18922 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18923
18924         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
18925         scan backwards to try to find a constant to initialize it.
18926
18927         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
18928         insn before the loop_end instruction, don't look past labels.
18929
18930 2009-04-29  Richard Guenther  <rguenther@suse.de>
18931
18932         PR middle-end/39937
18933         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
18934         loose type conversions.
18935         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
18936         stmts only if there are no uses of its definition.
18937
18938 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18939
18940         * config/bfin/bfin.h (splitting_loops): Declare.
18941         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
18942         Reorder bit definitions to be ascending.
18943         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
18944         * config/bfin/bfin.c (splitting_loops): New variable.
18945         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
18946         (struct loop_info): Remove members INIT and LOOP_INIT.
18947         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
18948         the LSETUP sequence.  Allow LC to be loaded from any register, but
18949         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
18950         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
18951         set to 1.
18952         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
18953         of reload_completed.
18954
18955         From Jie Zhang:
18956         * config/bfin/bfin.md (movsi_insn): Refine constraints.
18957
18958 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
18959
18960         * Makefile.in (PLUGIN_VERSION_H): New.
18961         (OBJS-common): Remove plugin-version.o.
18962         (plugin.o): Depend on (PLUGIN_VERSION_H).
18963         (plugin-version.o): Remove.
18964         * configure: Regenerate
18965         * configure.ac: Create plugin-version.h.
18966         * gcc-plugin.h (plugin_gcc_version): Remove.
18967         (plugin_default_version_check): Change signature.
18968         * plugin-version.c: Remove.
18969         * plugin.c: Include plugin-version.h.
18970         (str_plugin_gcc_version_name): Remove.
18971         (try_init_one_plugin): Pass gcc version to plugin_init.
18972         (plugin_default_version_check): Both gcc and plugin versions are now
18973         arguments.
18974
18975 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18976
18977         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
18978         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
18979         Remove special case testing for last insn of inner loops. Don't fail
18980         if the loop ends with a jump, emit an extra nop instead.
18981
18982         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
18983         DREGS rather than comparing directly.  Remove code that tries to
18984         account for latencies.
18985
18986 2009-04-29  Richard Guenther  <rguenther@suse.de>
18987
18988         PR tree-optimization/39941
18989         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
18990         eliminating an indirect call.
18991
18992 2009-04-29  Richard Guenther  <rguenther@suse.de>
18993
18994         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
18995         parameter.  Allow invariants as base if !require_lvalue.
18996         (verify_gimple_assign_single): Adjust.
18997
18998 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
18999
19000         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
19001         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
19002         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
19003         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
19004         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
19005         a VEC_SELECT.
19006         * config/bfin/bfin.c (bfin_expand_builtin,
19007         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
19008
19009 2009-04-28  Richard Guenther  <rguenther@suse.de>
19010
19011         * tree-vect-loop.c (get_initial_def_for_induction): Use
19012         correct types for pointer increment.
19013
19014 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19015
19016         * toplev.c (print_version): Update GMP version string calculation.
19017
19018 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19019
19020         PR rtl-optimization/39938
19021         * resource.c (init_resource_info): Add call to df_analyze.
19022
19023 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19024
19025         * config/alpha/alpha.md (usegp): Cast the result of
19026         alpha_find_lo_sum_using_gp to enum attr_usegp.
19027         * config/alpha/alpha.c (override_options): Remove end-of-structure
19028         marker element from cpu_table.  Use array size of cpu_table to handle
19029         -mcpu and -mtune options.
19030         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
19031
19032 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
19033
19034         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
19035         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
19036         tune_32 and tune_64.
19037         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
19038         support on PowerPC.
19039         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
19040         * config/rs6000/option-defaults.h: ... here.  New file.
19041         (OPT_64, OPT_32): Define.
19042         (MASK_64BIT): Define to 0 if not already defined.
19043         (OPT_ARCH64, OPT_ARCH32): Define.
19044         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
19045         and tune_64.
19046
19047 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19048
19049         * config/arm/arm.c (arm_override_options): Emit error on using
19050         fpa with AAPCS.
19051
19052 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19053
19054         PR rtl-optimization/39914
19055         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
19056         registers for allocnos created from user-defined variables only
19057         when not optimizing.
19058
19059 2009-04-28  Richard Guenther  <rguenther@suse.de>
19060
19061         PR middle-end/39937
19062         * fold-const.c (fold_binary): Use distribute_real_division only
19063         on float types.
19064
19065 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
19066
19067         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
19068         add hpux-stdint.h to tm_file.
19069         (hppa[12]*-*-hpux11*): Ditto.
19070         (ia64*-*-hpux*): Ditto.
19071         * config/hpux-stdint.h: New.
19072         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
19073         __STDC_EXT__ for all compiles.
19074         * config/pa/pa-hpux.h: Ditto.
19075         * config/pa/pa-hpux10.h: Ditto.
19076         * config/pa/pa-hpux11.h: Ditto.
19077
19078 2009-04-28  Catherine Moore  <clm@codesourcery.com>
19079
19080         * debug.h (set_name): Add comment.
19081
19082 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
19083
19084         PR target/39929
19085         * config/darwin.c (machopic_gen_offset): Check
19086         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
19087         * config/arm/arm.c (require_pic_register): Likewise.
19088
19089 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
19090
19091         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
19092         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
19093         m32c_promote_prototypes): Delete.
19094
19095 2009-04-28  Michael Matz  <matz@suse.de>
19096
19097         PR middle-end/39922
19098         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
19099         constants.
19100
19101 2009-04-28  Richard Guenther  <rguenther@suse.de>
19102
19103         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
19104
19105 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19106
19107         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
19108         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
19109         * config/arm/arm-tune.md: Regenerate.
19110
19111 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
19112
19113         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
19114         block if there are complex incoming edges.
19115         (sel_merge_blocks): Remove useless assert.
19116         (sel_redirect_edge_and_branch): Check that edge was redirected.
19117         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
19118         (sel_find_rgns): Delete declaration.
19119         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
19120         the region when it is not a preheader.
19121
19122 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19123
19124         PR c/39323
19125         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
19126
19127 2009-04-28  Richard Guenther  <rguenther@suse.de>
19128
19129         * tree.h (SSA_NAME_VALUE): Remove.
19130         (struct tree_ssa_name): Remove value_handle member.
19131         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
19132         array for jump threading.
19133         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
19134         SSA_NAME_VALUEs.
19135         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
19136         * tree-flow.h (threadedge_initialize_values): Declare.
19137         (threadedge_finalize_values): Likewise.
19138         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
19139         (SSA_NAME_VALUE): Define.
19140         (threadedge_initialize_values): New function.
19141         (threadedge_finalize_values): Likewise.
19142         * tree-ssa-dom.c (ssa_name_values): New global variable.
19143         (SSA_NAME_VALUE): Define.
19144         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
19145
19146 2009-04-28  Ira Rosen  <irar@il.ibm.com>
19147
19148         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19149         Use REPORT_VECTORIZED_LOCATIONS instead
19150         REPORT_VECTORIZED_LOOPS.
19151         * tree-vectorizer.c (vect_verbosity_level): Make static.
19152         (vect_loop_location): Rename to vect_location.
19153         (vect_set_verbosity_level): Update comment.
19154         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
19155         and vect_location.
19156         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
19157         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
19158         instead REPORT_UNVECTORIZED_LOOPS.
19159         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
19160         and vect_loop_def to vect_external_def and vect_internal_def.
19161         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
19162         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
19163         REPORT_UNVECTORIZED_LOCATIONS.
19164         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
19165         and vect_used_in_loop and to vect_unused_in_scope and
19166         vect_used_in_scope.
19167         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
19168         (vect_verbosity_level): Remove declaration.
19169         (vect_analyze_operations): Likewise.
19170         (vect_analyze_stmt): Declare.
19171         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
19172         REPORT_UNVECTORIZED_LOCATIONS.
19173         (vect_get_loop_niters): Fix indentation.
19174         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
19175         (vect_analyze_loop_operations): New function.
19176         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
19177         vect_analyze_operations.
19178         (vect_is_simple_reduction): Use new names.
19179         (vectorizable_live_operation, vect_transform_loop): Likewise.
19180         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
19181         to specify whether the data references can be a part of interleaving
19182         chain.
19183         (vect_analyze_data_ref_dependence): Use new names.
19184         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
19185         (vect_create_addr_base_for_vector_ref): Remove redundant code.
19186         * tree-vect-patterns.c (widened_name_p): Use new names.
19187         (vect_recog_dot_prod_pattern): Likewise.
19188         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
19189         (process_use, vect_mark_stmts_to_be_vectorized,
19190         vect_model_simple_cost, vect_model_store_cost,
19191         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
19192         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
19193         vectorizable_operation, vectorizable_type_demotion,
19194         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
19195         vectorizable_condition): Likewise.
19196         (vect_analyze_operations): Split into vect_analyze_loop_operations
19197         and ...
19198         (vect_analyze_stmt): ... new function.
19199         (new_stmt_vec_info): Use new names.
19200         (vect_is_simple_use): Use new names and fix comment.
19201         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
19202         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
19203
19204 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
19205
19206         PR target/39911
19207         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
19208         and integer modes for x87 operands.  Do not ICE for unsupported size,
19209         generate error instead.  Generate error for unsupported operand types.
19210         ['z']: Do not handle HImode memory operands specially.  Warning
19211         for floating-point operands.  Fallthru to 'Z' for unsupported operand
19212         types.  Do not ICE for unsupported size, generate error instead.
19213         (output_387_binary_op): Use %Z to output operands.
19214         (output_fp_compare): Ditto.
19215         (output_387_reg_move): Ditto.
19216
19217 2009-04-28  Ben Elliston  <bje@au.ibm.com>
19218
19219         PR c++/35652
19220         Revert:
19221
19222         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
19223
19224         * builtins.c (c_strlen): Do not warn here.
19225         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
19226         * c-common.c (pointer_int_sum): Take an explicit location.
19227         Warn about offsets out of bounds.
19228         * c-common.h (pointer_int_sum): Adjust declaration.
19229
19230 2009-04-27  Ian Lance Taylor  <iant@google.com>
19231
19232         * collect2.c (is_ctor_dtor): Change type of ret field in struct
19233         names to symkind.
19234         * dce.c (run_fast_df_dce): Change type of old_flags to int.
19235         * df-core.c (df_set_flags): Change return type to int.  Change
19236         type of old_flags to int.
19237         (df_clear_flags): Likewise.
19238         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
19239         (df_get_conditional_uses): Likewise.
19240         * df.h (df_set_flags, df_clear_flags): Update declarations.
19241         * dwarf2out.c (struct indirect_string_node): Change type of form
19242         field to enum dwarf_form.
19243         (AT_string_form): Change return type to enum dwarf_form.
19244         * fixed-value.c (fixed_compare): Add cast to enum type.
19245         * fwprop.c (update_df): Change 0 to VOIDmode.
19246         * gensupport.c: Change 0 to UNKNOWN.
19247         * gimple.h (gimple_cond_code): Add cast to enum type.
19248         * haifa-sched.c (reemit_notes): Add cast to enum type.
19249         * hooks.c (hook_int_void_no_regs): Remove function.
19250         * hooks.h (hook_int_void_no_regs): Remove declaration.
19251         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
19252         * predict.c (combine_predictions_for_insn): Add casts to enum type.
19253         * real.c (real_arithmetic): Add cast to enum type.
19254         (real_compare): Likewise.
19255         * target.h (struct gcc_target): Change return type of
19256         branch_target_register_class to enum reg_class.
19257         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
19258         default_branch_target_register_class.
19259         * targhooks.c (default_branch_target_register_class): New function.
19260         * targhooks.h (default_branch_target_register_class): Declare.
19261         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
19262         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
19263         cast to int.
19264         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
19265         ERROR_MARK.
19266         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
19267         vect_uninitialized_def.  Change 0 to ERROR_MARK.
19268         * tree-vect-stmts.c (supportable_widening_operation): Don't
19269         initialize icode1 and icode2.
19270         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
19271         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
19272         and to STD_C89.
19273         (cmn_err_flag_specs): Change 0 to STD_C89.
19274         (cmn_err_char_table): Likewise.
19275         * config/arm/arm.c (get_arm_condition_code): Change type of code
19276         to enum arm_cond_code.
19277         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
19278         (IWMMXT_BUILTIN2): Likewise.
19279         (neon_builtin_type_bits): Don't define typedef.
19280         (neon_builtin_datum): Change type of bits field to int.
19281         (arm_expand_neon_args): Add cast to enum type.
19282         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
19283         TLS_MODEL_NONE.
19284         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
19285         casts to enum type.
19286         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
19287         MIPS_FP_COND_f.
19288         * config/mips/mips.md (jal_macro): Return enum constant.
19289         (single_insn): Likewise.
19290         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
19291         CODE_FOR_nothing.
19292         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19293         casts to enum type.
19294         * config/s390/s390.c (s390_tune_flags): Change type to int.
19295         (s390_arch_flags): Likewise.
19296         (s390_handle_arch_option): Change flags field of struct pta to int.
19297         * config/s390/s390.h (s390_tune_flags): Update declaration.
19298         (s390_arch_flags): Likewise.
19299         * config/sh/sh.c (prepare_move_operands): Compare
19300         tls_symbolic_operand result with enum constant.
19301         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
19302         (sh_expand_prologue): Add cast to enum type.
19303         (sh_expand_epilogue): Likewise.
19304         (tls_symbolic_operand): Change return type to enum tls_model.
19305         (fpscr_set_from_mem): Add cast to enum type.
19306         (legitimize_pic_address): Compare tls_symbolic_operand result with
19307         enum constant.
19308         (sh_target_reg_class): Change return type to enum reg_class.
19309         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
19310         PROCESSOR_xxx.
19311         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
19312         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
19313         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
19314         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
19315         (delayed_branch, tls_call_delay): Likewise.
19316         (eligible_for_sibcall_delay): Likewise.
19317         (eligible_for_return_delay): Likewise.
19318         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
19319         (spu_expand_builtin_1): Likewise.
19320
19321         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
19322         for all types of conversions.
19323         (output_init_element): Issue -Wc++-compat warning if needed when
19324         initializing a bitfield with enum type.
19325         * c-parser.c (c_parser_expression): Set original_type to
19326         original_type of right hand operand of comma operator.
19327
19328 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19329
19330         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
19331         grammar nits.
19332         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
19333         * doc/cpp.texi (Standard Predefined Macros)
19334         (Implementation-defined behavior): Likewise.
19335         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
19336         * doc/gimple.texi (GIMPLE Exception Handling)
19337         (@code{GIMPLE_ASSIGN}): Likewise.
19338         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
19339         * doc/invoke.texi (Warning Options, Optimize Options)
19340         (AVR Options, Darwin Options): Likewise.
19341         (Optimize Options): Reformulate -fwhole-program description.
19342         * doc/loop.texi (Lambda): Likewise.
19343         * doc/md.texi (Output Template, Define Constraints)
19344         (Standard Names, Insn Splitting): Likewise.
19345         * doc/options.texi (Option properties): Likewise.
19346         * doc/passes.texi (Tree-SSA passes): Likewise.
19347         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
19348         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
19349         (File Names and DBX): Likewise.
19350         * doc/trouble.texi (Incompatibilities): Likewise.
19351
19352 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
19353
19354         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
19355         instruction is correct.
19356
19357 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
19358
19359         Allow non-constant arguments to conversion intrinsics.
19360         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
19361         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
19362         * spu.c (print_operand): Handle 'v' and 'w'.
19363         (exp2_immediate_p, spu_gen_exp2): Define.
19364         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
19365         spu_convtf_1): Update parameter descriptions.
19366         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
19367         * constraints.md ('v', 'w'): New.
19368         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
19369         Remove.
19370         (i2f, I2F): New define_mode_attr.
19371         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
19372         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
19373         fixuns_truncv4sfv4si2):  Update to use mode attribute.
19374         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
19375         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
19376         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
19377         patterns for combine.
19378
19379 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
19380
19381         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
19382         (cprop, hoist, pre, store_motion): New debug counters.
19383         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
19384         is not an RTL pass anymore.
19385         (pass_profiling): Remove extern decl for pass removed in 2005.
19386         (pass_gcse, pass_jump_bypass): Remove.
19387         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
19388         to 0 for clean state.
19389         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
19390         * cse.c (gate_handle_cse_after_global_opts,
19391         rest_of_handle_cse_after_global_opts): New functions.
19392         (pass_cse_after_global_opts): New pass, does local CSE.
19393         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
19394         (TV_CPROP): New timevar.
19395         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
19396         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
19397         (gcse_main, recompute_all_luids): Remove.
19398         (compute_hash_table_work): Call max_reg_num instead of reading
19399         max_gcse_regno.
19400         (cprop_jump): Don't set run_jump_opt_after_gcse.
19401         (constprop_register): Always allow to alter jumps.
19402         (cprop_insn): Likewise.
19403         (do_local_cprop): Likewise.
19404         (local_cprop_pass): Likewise.  Return non-zero if something changed.
19405         (cprop): Remove function, fold interesting bits into one_cprop_pass.
19406         (find_implicit_sets): Add note about missed optimization opportunity.
19407         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
19408         pass_rtl_cprop execute function.
19409         Don't bother tracking the pass number, each pass gets its own dumpfile
19410         now anyway.
19411         Always allow to alter jumpsand bypass jumps.
19412         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
19413         will just find no suitable set.
19414         (pre_edge_insert): Fix dumping, this function is for PRE only.
19415         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
19416         pass_rtl_pre execute function.
19417         (hoist_code): Return non-zero if something changed.  Keep track of
19418         substitutions and insertions for statistics gathering similar to PRE.
19419         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
19420         called from the pass_rtl_hoist execute function.  Show pass statistics.
19421         (compute_store_table): Use max_reg_num directly instead of using the
19422         formerly global max_gcse_regno.
19423         (build_store_vectors): Likewise.
19424         (replace_store_insn): Fix dumping.
19425         (store_motion): Rename to ...
19426         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
19427         pass, called from the pass_rtl_store_motion execute function.  Keep
19428         track of substitutions and insertions for statistics gathering similar
19429         to PRE.
19430         (bypass_jumps): Remove, fold interesting bits into ...
19431         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
19432         from the pass_rtl_cprop execute function.
19433         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
19434         pass_jump_bypass): Remove.
19435         (gate_handle_gcse, rest_of_handle_gcse): Remove.
19436         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
19437         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
19438         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
19439         (gate_rtl_store_motion, execute_rtl_store_motion,
19440         pass_rtl_store_motion): New.
19441         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
19442         make it clear that -fcse-skip-blocks is a no-op for backward compat.
19443         * passes.c (init_optimization_passes): Remove pass_gcse and
19444         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
19445         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
19446         instead of pass_jump_bypass.
19447
19448 2009-04-27  Richard Guenther  <rguenther@suse.de>
19449
19450         PR middle-end/39928
19451         * gimplify.c (gimplify_expr): If we are required to create
19452         a temporary make sure it ends up as register.
19453
19454 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
19455
19456         PR target/39903
19457         * config/i386/i386.c (construct_container): Don't call
19458         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
19459         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
19460
19461 2009-04-27  Michael Matz  <matz@suse.de>
19462
19463         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
19464         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
19465         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
19466         (dump_replaceable_exprs): Take a bitmap.
19467         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
19468         array.
19469         (expand_gimple_basic_block): Likewise.
19470         * tree-ssa-ter.c (struct temp_expr_table_d): Make
19471         replaceable_expressions member a bitmap.
19472         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
19473         (mark_replaceable): Likewise.
19474         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
19475         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
19476
19477 2009-04-27  Richard Guenther  <rguenther@suse.de>
19478
19479         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
19480         (verify_stmts): Dispatch to gimple/type verification code.
19481         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
19482         issue with call argument types.
19483
19484 2009-04-27  Michael Matz  <matz@suse.de>
19485
19486         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
19487         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
19488         to above.
19489
19490 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
19491             Eric Botcazou  <ebotcazou@adacore.com>
19492
19493         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
19494         a label's basic block.
19495         (mark_target_live_regs): Tidy and rework obsolete comments.
19496         Change back DF problem to LIVE.  If a label starts a basic block,
19497         assume that all registers that used to be live then still are.
19498         (init_resource_info): If a label starts a basic block, set its
19499         BLOCK_FOR_INSN accordingly.
19500         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
19501
19502 2009-04-27  Richard Guenther  <rguenther@suse.de>
19503
19504         * tree-flow-inline.h (function_ann): Remove.
19505         (get_function_ann): Likewise.
19506         * tree-dfa.c (create_function_ann): Remove.
19507         * tree-flow.h (struct static_var_ann_d): Remove.
19508         (struct function_ann_d): Likewise.
19509         (union tree_ann_d): Remove fdecl member.
19510         (function_ann_t): Remove.
19511         (function_ann, get_function_ann, create_function_ann): Remove
19512         declarations.
19513
19514 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
19515
19516         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
19517
19518 2009-04-27  Jan Hubicka  <jh@suse.cz>
19519
19520         * ipa-pure-const.c (struct funct_state_d): New fields
19521         state_previously_known, looping_previously_known; remove
19522         state_set_in_source.
19523         (analyze_function): Use new fields.
19524         (propagate): Avoid assumption that state_set_in_source imply
19525         nonlooping.
19526
19527         * tree-ssa-loop-niter.c (finite_loop_p): New function.
19528         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
19529         * cfgloop.h (finite_loop_p): Declare.
19530
19531 2009-04-26  Michael Matz  <matz@suse.de>
19532
19533         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
19534
19535 2009-04-26  Michael Matz  <matz@suse.de>
19536
19537         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
19538         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
19539         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
19540         pass_mark_used_blocks): Remove.
19541         * tree-optimize.c (pass_free_datastructures,
19542         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
19543         * passes.c (init_optimization_passes): Don't call
19544         pass_mark_used_blocks, remove dead code.
19545
19546 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
19547
19548         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
19549         * tree-ssa-live.h (register_ssa_partition): Likewise.
19550
19551 2009-04-26  Michael Matz  <matz@suse.de>
19552
19553         Expand from SSA.
19554         * builtins.c (fold_builtin_next_arg): Handle SSA names.
19555         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
19556         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
19557         SSA names.
19558         (compare_pairs): Swap cost comparison.
19559         (coalesce_ssa_name): Don't use change_partition_var.
19560         * tree-nrv.c (struct nrv_data): Add modified member.
19561         (finalize_nrv_r): Set it.
19562         (tree_nrv): Use it to update statements.
19563         (pass_nrv): Require PROP_ssa.
19564         * tree-mudflap.c (mf_decl_cache_locals,
19565         mf_build_check_statement_for): Use make_rename_temp.
19566         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
19567         * alias.c (find_base_decl): Handle SSA names.
19568         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
19569         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
19570         * rtl.h (set_reg_attrs_for_parm): Declare.
19571         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
19572         to "optimized", remove unused locals at finish.
19573         (execute_free_datastructures): Make global, call
19574         delete_tree_cfg_annotations.
19575         (execute_free_cfg_annotations): Don't call
19576         delete_tree_cfg_annotations.
19577
19578         * ssaexpand.h: New file.
19579         * expr.c (toplevel): Include ssaexpand.h.
19580         (expand_assignment): Handle SSA names the same as register variables.
19581         (expand_expr_real_1): Expand SSA names.
19582         * cfgexpand.c (toplevel): Include ssaexpand.h.
19583         (SA): New global variable.
19584         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
19585         (SSAVAR): New macro.
19586         (set_rtl): New helper function.
19587         (add_stack_var): Deal with SSA names, use set_rtl.
19588         (expand_one_stack_var_at): Likewise.
19589         (expand_one_stack_var): Deal with SSA names.
19590         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
19591         before unique numbers.
19592         (expand_stack_vars): Use set_rtl.
19593         (expand_one_var): Accept SSA names, add asserts for them, feed them
19594         to above subroutines.
19595         (expand_used_vars): Expand all partitions (without default defs),
19596         then only the local decls (ignoring those expanded already).
19597         (expand_gimple_cond): Remove edges when jumpif() expands an
19598         unconditional jump.
19599         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
19600         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
19601         SSA name.
19602         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
19603         members of SA; deal with PARM_DECL partitions here; expand
19604         all PHI nodes, free tree datastructures and SA.  Commit instructions
19605         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
19606         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
19607         info and statements at start, collect garbage at finish.
19608         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
19609         (VAR_ANN_PARTITION) Remove.
19610         (change_partition_var): Don't declare.
19611         (partition_to_var): Always return SSA names.
19612         (var_to_partition): Only accept SSA names.
19613         (register_ssa_partition): Only check argument.
19614         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
19615         member.
19616         (delete_var_map): Don't free it.
19617         (var_union): Only accept SSA names, simplify.
19618         (partition_view_init): Mark only useful SSA names as used.
19619         (partition_view_fini): Only deal with SSA names.
19620         (change_partition_var): Remove.
19621         (dump_var_map): Use ssa_name instead of partition_to_var member.
19622         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
19623         basic blocks.
19624         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
19625         (struct _elim_graph): New member const_dests; nodes member vector of
19626         ints.
19627         (set_location_for_edge): New static helper.
19628         (create_temp): Remove.
19629         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
19630         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
19631         (new_elim_graph): Allocate const_dests member.
19632         (clean_elim_graph): Truncate const_dests member.
19633         (delete_elim_graph): Free const_dests member.
19634         (elim_graph_size): Adapt to new type of nodes member.
19635         (elim_graph_add_node): Likewise.
19636         (eliminate_name): Likewise.
19637         (eliminate_build): Don't take basic block argument, deal only with
19638         partition numbers, not variables.
19639         (get_temp_reg): New static helper.
19640         (elim_create): Use it, deal with RTL temporaries instead of trees.
19641         (eliminate_phi): Adjust all calls to new signature.
19642         (assign_vars, replace_use_variable, replace_def_variable): Remove.
19643         (rewrite_trees): Only do checking.
19644         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
19645         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
19646         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
19647         contains_tree_r, MAX_STMTS_IN_LATCH,
19648         process_single_block_loop_latch, analyze_edges_for_bb,
19649         perform_edge_inserts): Remove.
19650         (expand_phi_nodes): New global function.
19651         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
19652         functions, initialize new parameter, remember partitions having a
19653         default def.
19654         (finish_out_of_ssa): New global function.
19655         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
19656         don't reset in_ssa_p here, don't disable TER when mudflap.
19657         (pass_del_ssa): Remove.
19658         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
19659         partition members.
19660         (execute_free_datastructures): Declare.
19661         * Makefile.in (SSAEXPAND_H): New variable.
19662         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
19663         * basic-block.h (commit_one_edge_insertion): Declare.
19664         * passes.c (init_optimization_passes): Move pass_nrv and
19665         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
19666         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
19667         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
19668         (redirect_branch_edge): Deal with super block when expanding, split
19669         out jump patching itself into ...
19670         (patch_jump_insn): ... here, new static helper.
19671
19672 2009-04-26  Michael Matz  <matz@suse.de>
19673
19674         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
19675         beyond num_ssa_names.
19676         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
19677         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
19678
19679 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
19680
19681         PR inline-asm/39543
19682         * fwprop.c (forward_propagate_asm): New function.
19683         (forward_propagate_and_simplify): Propagate also into __asm, if it
19684         doesn't increase the number of referenced registers.
19685
19686         PR c/39889
19687         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
19688
19689 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
19690
19691         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
19692         note_nonlocal_vla_type for nonlocal VLAs.
19693         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
19694         contains_remapped_vars, remap_vla_decls): New functions.
19695         (convert_nonlocal_reference_stmt): If not optimizing, call
19696         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
19697         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
19698         if it wasn't found in var_map.
19699         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
19700         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
19701         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
19702         declare_vars.
19703         * gimplify.c (nonlocal_vlas): New variable.
19704         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
19705         referenced VLAs.
19706         (gimplify_body): Create and destroy nonlocal_vlas.
19707
19708         * dwarf2out.c (loc_descr_plus_const): New function.
19709         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
19710         mem_loc_descriptor, loc_descriptor_from_tree_1,
19711         descr_info_loc, gen_variable_die): Use it.
19712
19713         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
19714         !TREE_STATIC VAR_DECLs.
19715         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
19716         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
19717         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
19718         DECL_BY_REFERENCE is valid.
19719         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
19720         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
19721         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
19722         Copy DECL_BY_REFERENCE.
19723         (struct nesting_copy_body_data): New type.
19724         (nesting_copy_decl): New function.
19725         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
19726         if they have variable length.
19727
19728 2009-04-26  Michael Matz  <matz@suse.de>
19729
19730         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
19731         mark new temporaries for renaming.
19732
19733 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
19734
19735         PR c/39581
19736         * c-decl.c (global_bindings_p): Return negative value.
19737         (c_variable_size): New.  Based on variable_size from
19738         stor-layout.c.
19739         (grokdeclarator): Call c_variable_size not variable_size.
19740
19741 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
19742
19743         * config/i386/i386.c (print_operand) ['z']: Fix typo.
19744
19745 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
19746
19747         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
19748         Redefine it to just use mingw/include.
19749         (ASM_SPEC): Rules for -m32 and -m64.
19750         (LINK_SPEC): Use Likewise.
19751         (SPEC_32): New define.
19752         (SPEC_64): Likewise.
19753         (SUB_LINK_SPEC): Likewise.
19754         (MULTILIB_DEFAULTS): New define.
19755         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
19756         Add multilib options.
19757         (MULTILIB_DIRNAMES): Likewise.
19758         (MULTILIB_OSDIRNAMES): Likewise.
19759         (LIBGCC): Likewise.
19760         (INSTALL_LIBGCC): Likewise.
19761
19762 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
19763
19764         PR c/39556
19765         * c-tree.h (enum c_inline_static_type): New.
19766         (record_inline_static): Declare.
19767         * c-decl.c (struct c_inline_static, c_inline_statics,
19768         record_inline_static, check_inline_statics): New.
19769         (pop_file_scope): Call check_inline_statics.
19770         (start_decl): Call record_inline_static instead of pedwarning
19771         directly for static in inline function.
19772         * c-typeck.c (build_external_ref): Call record_inline_static
19773         instead of pedwarning directly for static referenced in inline
19774         function.
19775
19776 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
19777
19778         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
19779         not new but only being rescanned.
19780         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
19781         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
19782         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
19783         record_set_info, compute_set, grealloc): Remove.
19784         (recompute_all_luids): New function.
19785         (gcse_main): Don't compute sets, and don't do related memory
19786         allocations/free-ing.  If something changed before the end of the
19787         pass, update LUIDs using recompute_all_luids.
19788         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
19789         (free_gcse_mem): Don't free it either.
19790         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
19791         Use the df insn LUIDs.
19792         (load_killed_in_block): Likewise.
19793         (compute_hash_table_work): Don't compute reg_set_in_block.
19794         (compute_transp): Use DF_REG_DEF_CHAINs.
19795         (local_cprop_pass): Don't use compute_sets and related functions.
19796         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
19797         Use get_max_uid() instead of max_cuid.
19798         (insert_insn_end_basic_block, pre_insert_copy_insn,
19799         update_ld_motion_stores): Don't try to
19800         keep reg_set tables up to date.
19801         (pre_insert_copies): Use df insn LUIDs.
19802         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
19803         (reg_set_info): Don't use extra bitmap argument.
19804         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
19805         information to compute regs_set_in_block.
19806         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
19807         (bypass_jumps): Don't use compute_sets and friends.
19808
19809 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19810
19811         PR testsuite/39710
19812         * opts.c (undocumented_msg): Do not leave blank even with
19813         ENABLE_CHECKING.
19814
19815 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19816
19817         * c-decl.c (build_enumerator): Allow values folding to integer
19818         constants but not integer constant expressions with a pedwarn if
19819         pedantic.
19820
19821 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19822
19823         PR c/39582
19824         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
19825         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
19826         type is an integer constant.
19827
19828 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
19829
19830         PR target/39897
19831         * config/i386/i386.c (print_operand) ['z']: Revert handling of
19832         HImode operands.
19833
19834 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
19835
19836         PR c/39564
19837         * c-decl.c (grokdeclarator): Diagnose declarations of functions
19838         with variably modified return type and no storage class
19839         specifiers, except for the case of nested functions.  Distinguish
19840         extern declarations of functions with variably modified return
19841         types from those of objects with variably modified types.
19842
19843 2009-04-25  Jan Hubicka  <jh@suse.cz>
19844
19845         * tree.c (list_equal_p): New function.
19846         * tree.h (list_equal_p): Declare.
19847         * coretypes.h (edge_def, edge, const_edge, basic_block_def
19848         basic_block_def, basic_block, const_basic_block): New.
19849         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
19850         (redirect_eh_edge): New function.
19851         (make_eh_edge_update_phi): EH edges are not abnormal.
19852         * except.c: Include tree-flow.h.
19853         (list_match): New function.
19854         (eh_region_replaceable_by_p): New function.
19855         (replace_region): New function.
19856         (hash_type_list): New function.
19857         (hash_eh_region): New function.
19858         (eh_regions_equal_p): New function.
19859         (merge_peers): New function.
19860         (remove_unreachable_regions): Verify EH tree when checking;
19861         merge peers.
19862         (copy_eh_region_1): New function.
19863         (copy_eh_region): New function.
19864         (push_reachable_handler): New function.
19865         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
19866         regions without label but with live RESX.
19867         * except.h (redirect_eh_edge_to_label): New.
19868         * tree-flow.h (redirect_eh_edge): New.
19869         * coretypes.h (edge_def, edge, const_edge, basic_block_def
19870         basic_block_def, basic_block, const_basic_block): Remove.
19871         * Makefile.in (except.o): Add dependency on tree-flow.h
19872         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
19873         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
19874         Remove.
19875
19876 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
19877
19878         PR bootstrap/39645
19879         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
19880         on the destination of memcpy.
19881
19882 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
19883
19884         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
19885         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
19886         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
19887
19888 2009-04-25  Jan Hubicka  <jh@suse.cz>
19889
19890         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
19891         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
19892         to be reached by different label than left.
19893         (update_eh_edges): Update comment; remove edge_to_remove if possible
19894         and return true if suceeded.
19895         (cleanup_empty_eh): Accept sharing map; handle shared regions.
19896         (cleanup_eh): Compute sharing map.
19897         * except.c (remove_eh_handler_and_replace): Add argument if we should
19898         update regions.
19899         (remove_unreachable_regions): Update for label sharing.
19900         (label_to_region_map): Likewise.
19901         (get_next_region_sharing_label): New function.
19902         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
19903         prev_try pointers.
19904         (remove_eh_handler): Update.
19905         (remove_eh_region_and_replace_by_outer_of): New function.
19906         * except.h (struct eh_region): Add next_region_sharing_label.
19907         (remove_eh_region_and_replace_by_outer_of,
19908         get_next_region_sharing_label): Declare.
19909         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
19910
19911 2009-04-25  Jan Hubicka  <jh@suse.cz>
19912
19913         * tree-cfg.c (split_critical_edges): Split also edges where we can't
19914         insert code even if they are not critical.
19915
19916 2009-04-25  Jan Hubicka  <jh@suse.cz>
19917
19918         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19919         (gimple_can_remove_branch_p): EH edges won't remove branch by
19920         redirection.
19921         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
19922         updating of non-abnormal EH edges.
19923         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
19924         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
19925         (split_critical_edges): Split also edges where emitting code on them
19926         will lead to splitting later.
19927
19928 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
19929             H.J. Lu  <hongjiu.lu@intel.com>
19930
19931         PR target/39590
19932         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
19933         the configured assembler supports fildq and fistpq mnemonics.
19934         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
19935         * configure: Regenerated.
19936         * config.in: Ditto.
19937
19938         * config/i386/i386.c (print_operand): Handle 'Z'.
19939         ['z']: Remove handling of special fild/fist suffixes.
19940         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
19941         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
19942         suffix of fild insn.
19943         (*floatsi<mode>2_vector_mixed): Ditto.
19944         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
19945         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
19946         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
19947         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
19948         * config/i386/gas.h (GAS_MNEMONICS): Remove.
19949
19950 2009-04-25  Ben Elliston  <bje@au.ibm.com>
19951
19952         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
19953         the source of a set operation.
19954
19955 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
19956
19957         * target.h (struct gcc_target): Add case_values_threshold field.
19958         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
19959         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
19960         * targhooks.c (default_case_values_threshold): New function.
19961         * targhooks.h (default_case_values_threshold): Declare function.
19962         * stmt.c (expand_case): Use case_values_threshold target hook.
19963         * expr.h (case_values_threshold): Remove declartation.
19964         * expr.c (case_values_threshold): Remove function.
19965         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
19966
19967         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
19968         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19969         (avr_case_values_threshold): Declare as static.
19970         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
19971
19972         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
19973         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
19974         (mn10300_case_values_threshold): New function.
19975
19976 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
19977
19978         * ira.c (setup_cover_and_important_classes): Add enum cast.
19979
19980 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
19981
19982         * genpreds.c (write_enum_constraint_num): Output definition of
19983         CONSTRAINT_NUM_DEFINED_P macro.
19984         * ira.c (setup_cover_and_important_classes): Use
19985         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
19986
19987 2009-04-24  DJ Delorie  <dj@redhat.com>
19988
19989         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
19990         __SH2A_SINGLE_ONLY__ also.
19991
19992 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
19993
19994         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
19995         (movdf_internal): Ditto.
19996         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
19997         SFmode and DFmode constants.
19998         (ia64_print_operand): Add 'G' format for printing
19999         floating point constants.
20000
20001 2009-04-24  Richard Guenther  <rguenther@suse.de>
20002
20003         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
20004         from unsigned additions.
20005
20006 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
20007
20008         * c-typeck.c (set_init_index): Allow array designators that are
20009         not integer constant expressions with a pedwarn if pedantic.
20010
20011 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20012
20013         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
20014         zero if no overlap in nonzero bits between the operands.
20015
20016 2009-04-24  Ian Lance Taylor  <iant@google.com>
20017
20018         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
20019         (record_dead_and_set_regs): Likewise.
20020         * df.h (struct df_mw_hardreg): Change flags field to int.
20021         (struct df_base_ref): Likewise.
20022         (struct df): Change changeable_flags field to int.
20023         * df-scan.c (df_defs_record): Change clobber_flags to int.
20024         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
20025         constants rather than #define macros.
20026         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
20027         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
20028         (enum dwarf_calling_convention): Likewise.
20029         (enum dwarf_line_number_x_ops): Likewise.
20030         (enum dwarf_call_frame_info): Likewise.
20031         (enum dwarf_source_language): Likewise.
20032         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
20033         (add_calling_convention_attribute): Likewise.
20034         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
20035         (combine_comparisons): Change compcode to int.  Add cast to enum type.
20036         * genrecog.c (maybe_both_true_2): Change c to int.
20037         (write_switch): Likewise.  Add cast to enum type.
20038         * gimplify.c (gimplify_omp_for): Handle return values from
20039         gimplify_expr using MIN rather than bitwise or.
20040         (gimplify_expr): Add cast to enum type.
20041         * ipa-prop.c (update_jump_functions_after_inlining): Change
20042         IPA_BOTTOM to IPA_JF_UNKNOWN.
20043         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
20044         Add casts to enum type.
20045         (setup_cover_and_important_classes): Change cl to int.  Add casts
20046         to enum type.
20047         (setup_class_translate): Change cl and mode to int.
20048         (ira_init_once): Change mode to int.
20049         (free_register_move_costs): Likewise.
20050         (setup_prohibited_mode_move_regs): Add casts to enum type.
20051         * langhooks.c (add_builtin_function_common): Rework assertion that
20052         value fits bitfield.
20053         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
20054         * omega.c (omega_do_elimination): Avoid math on enum types.
20055         * optabs.c (expand_vec_shift_expr): Remove casts to int.
20056         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
20057         int local to handle integral_argment value.
20058         * regmove.c (try_auto_increment): Change PUT_MODE to
20059         PUT_REG_NOTE_KIND.
20060         * reload.c (push_secondary_reload): Add casts to enum type.
20061         (secondary_reload_class, find_valid_class): Likewise.
20062         * reload1.c (emit_input_reload_insns): Likewise.
20063         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
20064         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
20065         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
20066         constant.
20067         * tree.c (build_common_builtin_nodes): Add casts to enum type.
20068         * tree-complex.c (complex_lattice_t): Typedef to int rather than
20069         enum type.
20070         (expand_complex_libcall): Add casts to enum type.
20071         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
20072         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
20073         with ERROR_MARK, not NUM_TREE_CODES.
20074         (vect_create_epilog_for_reduction): Likewise.
20075         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
20076         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
20077         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
20078         enum machine_mode.
20079         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
20080         vect_unused_in_loop.  Change 0 to loop_vect.
20081         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
20082         * var-tracking.c (get_init_value): Change return type to enum
20083         var_init_status.
20084         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
20085         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
20086         arm_fp_model.
20087         (arm_override_options): Add casts to enum type.
20088         (arm_emit_tls_decoration): Likewise.
20089         * config/i386/i386.c (ix86_function_specific_restore): Add casts
20090         to enum type.
20091         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
20092         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
20093         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
20094         enum type.
20095         * config/s390/s390.c (code_for_builtin_64): Change to array of
20096         enum insn_code.
20097         (code_for_builtin_31): Likewise.
20098         (s390_expand_builtin): Change code_for_builtin to enum insn_code
20099         const *.
20100         * config/sparc/sparc.c (sparc_override_options): Change value
20101         field in struct code_model to enum cmodel.  In initializer change
20102         0 to NULL and add cast to enum type.
20103
20104         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
20105         Change all callers.  Issue a -Wc++-compat warning using
20106         lhs_origtype if necessary.
20107         (convert_for_assignment): Issue -Wc++-compat warnings about
20108         invalid conversions to enum type on assignment.
20109         * c-common.h (build_modify_expr): Update declaration.
20110
20111 2009-04-24  Nick Clifton  <nickc@redhat.com>
20112
20113         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
20114         (function_arg_advance): Likewise.
20115         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
20116         5th alternative.
20117
20118 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
20119
20120         * config/s390/constraints.md ('I', 'J'): Fix condition.
20121
20122 2009-04-24  Diego Novillo  <dnovillo@google.com>
20123
20124         * gengtype-parse.c (parse_error): Add newline after message.
20125
20126 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
20127
20128         * config/i386/sse.md (avxmodesuffixs): Removed.
20129         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
20130         (*avx_pinsr<ssevecsize>): This.
20131
20132 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
20133
20134         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
20135         follow chains of regs with a single definition, and allow expressions
20136         that are function_invariant_p.
20137         (simple_rhs_p): Allow expressions that are function_invariant_p.
20138
20139 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
20140
20141         PR middle-end/39867
20142         * fold-const.c (fold_cond_expr_with_comparison): When folding
20143         > and >= to MAX, make sure the MAX uses the same type as the
20144         comparison's operands.
20145
20146 2009-04-24  Nick Clifton  <nickc@redhat.com>
20147
20148         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
20149         addressing for DImode accesses.
20150         (frv_print_operand_address): Handle PLUS case.
20151         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
20152
20153 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
20154
20155         PR rtl-optimization/39794
20156         * alias.c (canon_true_dependence): Add x_addr argument.
20157         * rtl.h (canon_true_dependence): Adjust prototype.
20158         * cse.c (check_dependence): Adjust canon_true_dependence callers.
20159         * cselib.c (cselib_invalidate_mem): Likewise.
20160         * gcse.c (compute_transp): Likewise.
20161         * dse.c (scan_reads_nospill): Likewise.
20162         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
20163         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
20164         canon_base_addr of the group, plus optional offset.
20165         (struct group_info): Rename canon_base_mem to
20166         canon_base_addr.
20167         (get_group_info): Set canon_base_addr to canon_rtx of base, not
20168         canon_rtx of base_mem.
20169
20170 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
20171
20172         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
20173         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
20174
20175 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20176
20177         * config/spu/spu-builtins.h: Delete file.
20178
20179         * config/spu/spu.h (enum spu_builtin_type): Move here from
20180         spu-builtins.h.
20181         (struct spu_builtin_description): Likewise.  Add GTY marker.
20182         Do not use enum spu_function_code or enum insn_code.
20183         (spu_builtins): Add extern declaration.
20184
20185         * config/spu/spu.c: Do not include "spu-builtins.h".
20186         (enum spu_function_code, enum spu_builtin_type_index,
20187         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
20188         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
20189         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
20190         unsigned_V2DI_type_node): Move here from spu-builtins.h.
20191         (spu_builtin_types): Make static.  Add GTY marker.
20192         (spu_builtins): Add extern declaration with GTY marker.
20193         Include "gt-spu.h".
20194
20195         * config/spu/spu-c.c: Do not include "spu-builtins.h".
20196         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
20197         Check programmatically whether all parameters are scalar.
20198
20199         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
20200
20201 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
20202
20203         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
20204         assignment from the constructor either if the target is volatile.
20205
20206 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
20207
20208         * config/arm/arm.md (insv): Do not share operands[0].
20209
20210 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
20211
20212         * config/vxlib-tls.c (active_tls_threads): Delete.
20213         (delete_hook_installed): New.
20214         (tls_delete_hook): Don't delete the delete hook.
20215         (tls_destructor): Delete it here.
20216         (__gthread_set_specific): Adjust installing the delete hook.
20217         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
20218         __gthread_leave_tsd_dtor_context.
20219
20220 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
20221
20222         * c-format.c (gcc_tdiag_char_table): Add support for %E.
20223
20224 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
20225
20226         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
20227         enum type.
20228         (alpha_rtx_costs): Ditto.
20229         (emit_unlikely_jump): Use add_reg_note.
20230         (emit_frame_store_1): Ditto.
20231         (alpha_expand_prologue): Ditto.
20232         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20233         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
20234
20235 2009-04-23  Nick Clifton  <nickc@redhat.com>
20236
20237         * config/v850/v850.md (epilogue): Remove suppressed code.
20238         (return): Rename to return_simple and remove test of frame size.
20239         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
20240         to gen_return_simple.
20241
20242 2009-04-22  Jing Yu  <jingyu@google.com>
20243
20244         PR testsuite/39781
20245         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
20246
20247 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20248
20249         PR C/31499
20250         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
20251         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
20252         value is a VECTOR_CST, the element type is the element type of the
20253         vector.
20254
20255 2009-04-22  DJ Delorie  <dj@redhat.com>
20256
20257         * config/m32c/m32c.h: Update GTY annotations to new syntax.
20258
20259 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
20260
20261         * alias.c (find_base_term): Move around LO_SUM case, so that
20262         CONST falls through into PLUS/MINUS handling.
20263
20264         PR c/39855
20265         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
20266         into 0, use omit_one_operand.
20267
20268 2009-04-23  Ben Elliston  <bje@au.ibm.com>
20269
20270         * config/rs6000/linux-unwind.h (get_regs): Remove type
20271         puns. Change the type of `pc' to an array of unsigned ints and
20272         update all users.  Constify frame24.
20273
20274 2009-04-22  DJ Delorie  <dj@redhat.com>
20275
20276         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
20277         declarations before code.
20278         (current_function_special_page_vector): Likewise.
20279         (m32c_expand_insv): Silence a warning.
20280
20281 2009-04-21  Taras Glek  <tglek@mozilla.com>
20282
20283         * alias.c: Update GTY annotations to new syntax.
20284         * basic-block.h: Likewise.
20285         * bitmap.h: Likewise.
20286         * c-common.h: Likewise.
20287         * c-decl.c: Likewise.
20288         * c-parser.c: Likewise.
20289         * c-pragma.c: Likewise.
20290         * c-tree.h: Likewise.
20291         * cfgloop.h: Likewise.
20292         * cgraph.h: Likewise.
20293         * config/alpha/alpha.c: Likewise.
20294         * config/arm/arm.h: Likewise.
20295         * config/avr/avr.h: Likewise.
20296         * config/bfin/bfin.c: Likewise.
20297         * config/cris/cris.c: Likewise.
20298         * config/darwin.c: Likewise.
20299         * config/frv/frv.c: Likewise.
20300         * config/i386/i386.c: Likewise.
20301         * config/i386/i386.h: Likewise.
20302         * config/i386/winnt.c: Likewise.
20303         * config/ia64/ia64.h: Likewise.
20304         * config/iq2000/iq2000.c: Likewise.
20305         * config/mips/mips.c: Likewise.
20306         * config/mmix/mmix.h: Likewise.
20307         * config/pa/pa.c: Likewise.
20308         * config/pa/pa.h: Likewise.
20309         * config/rs6000/rs6000.c: Likewise.
20310         * config/s390/s390.c: Likewise.
20311         * config/sparc/sparc.c: Likewise.
20312         * config/xtensa/xtensa.c: Likewise.
20313         * cselib.h: Likewise.
20314         * dbxout.c: Likewise.
20315         * dwarf2out.c: Likewise.
20316         * except.c: Likewise.
20317         * except.h: Likewise.
20318         * fixed-value.h: Likewise.
20319         * function.c: Likewise.
20320         * function.h: Likewise.
20321         * gimple.h: Likewise.
20322         * integrate.c: Likewise.
20323         * optabs.c: Likewise.
20324         * output.h: Likewise.
20325         * real.h: Likewise.
20326         * rtl.h: Likewise.
20327         * stringpool.c: Likewise.
20328         * tree-data-ref.c: Likewise.
20329         * tree-flow.h: Likewise.
20330         * tree-scalar-evolution.c: Likewise.
20331         * tree-ssa-address.c: Likewise.
20332         * tree-ssa-alias.h: Likewise.
20333         * tree-ssa-operands.h: Likewise.
20334         * tree.c: Likewise.
20335         * tree.h: Likewise.
20336         * varasm.c: Likewise.
20337         * varray.h: Likewise.
20338         * vec.h: Likewise.
20339         * coretypes.h: Do not define GTY macro if it is already defined.
20340         * doc/gty.texi: Update GTY documentation to new syntax.
20341         * gengtype-lex.l: Enforce attribute-like syntax for GTY
20342         annotations on structs.
20343         * gengtype-parse.c: Likewise.
20344
20345 2009-04-22  Mark Heffernan  <meheff@google.com>
20346
20347         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
20348
20349 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
20350
20351         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
20352         where appropriate.
20353
20354 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
20355
20356         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
20357         the same as a PLUS without a shift.  Increase the cost of a
20358         CONST_INT in MULT.
20359
20360 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20361
20362         * Makefile.in: Update dependencies.
20363         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
20364         * errors.h: Remove bogus comment about compatibility.
20365         (warning): Update declaration.
20366         * genautomata.c: Update all calls to warning.
20367         * gimple.c: Do not include errors.h. Include toplev.h.
20368         * tree-ssa-structalias.c: Do not include errors.h.
20369         * omega.c: Likewise.
20370         * tree-ssa-reassoc.c: Likewise.
20371         * config/spu/spu-c.c: Likewise.
20372         * config/spu/t-spu-elf: Update dependencies.
20373
20374 2009-04-22  Richard Guenther  <rguenther@suse.de>
20375
20376         PR tree-optimization/39824
20377         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
20378         make sure the types are compatible.
20379
20380 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20381
20382         PR c++/14875
20383         * c-common.c (c_parse_error): Take a token_flags parameter.
20384         Use token_type for the token type instead.
20385         Pass token_flags to cpp_type2name.
20386         * c-common.h (c_parse_error): Update declaration.
20387         * c-parser.c (c_parser_error): Pass 0 as token flags.
20388
20389 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
20390
20391         PR rtl-optimization/39580
20392         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
20393
20394 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20395
20396         * function.c (expand_function_end): Do not emit a jump to the "naked"
20397         return label for fall-through returns.
20398         * except.c (sjlj_emit_function_exit): Always place the call to the
20399         unregister function at the location installed by expand_function_end.
20400
20401 2009-04-22  Richard Guenther  <rguenther@suse.de>
20402
20403         PR tree-optimization/39845
20404         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
20405         (gen_inbound_check): Likewise.
20406
20407 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
20408
20409         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
20410         padding for PPC.
20411         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
20412         * config/vxlib.c (__gthread_once): Add race guard for PPC.
20413
20414 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20415
20416         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
20417         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
20418         shift counts to avoid out-of-bounds array accesses.
20419
20420 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20421
20422         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
20423         (Pmode): Move above.
20424
20425 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
20426
20427         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
20428         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
20429         GET_CODE macro.  Use IN_RANGE macro where appropriate.
20430         * config/alpha/alpha.h: Ditto.
20431         * config/alpha/alpha.md: Ditto.
20432         * config/alpha/constraints.md: Ditto.
20433         * config/alpha/predicates.md: Ditto.
20434
20435 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
20436
20437         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
20438         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20439         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20440         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20441         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20442         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20443         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20444         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20445         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20446         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20447         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20448         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20449         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20450         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20451         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20452         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20453         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20454         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20455         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20456         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20457         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20458         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20459         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20460         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20461         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20462         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20463         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
20464
20465 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20466
20467         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
20468         references from comments.
20469         * cfgbuild.c: (count_basic_blocks): Delete.
20470         (find_basic_blocks_1): Delete.
20471         (find_basic_blocks): Delete.
20472         * except.c (finish_eh_generation): Make static.  Move comment from
20473         except.h here.  Remove find_basic_blocks references from comments.
20474         * except.h (finish_eh_generation): Delete.
20475         * basic-block.h (find_basic_blocks): Delete.
20476         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
20477
20478 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20479
20480         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
20481         (sdbout_parms):  Likewise.
20482
20483 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
20484
20485         * config/sh/sh.c (prepare_cbranch_operands): Use
20486         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
20487         (expand_cbranchdi4): Likewise.
20488         (from_compare): Add cast to enum type.
20489         (expand_cbranchsi4): Use add_reg_note.
20490         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
20491         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
20492         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
20493         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20494         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
20495         instead of CODE_FOR_nothing.
20496         (cbranchdi4): Likewise.  Fix the order of arguments for
20497         gen_rtx_fmt_ee.
20498         (push_fpscr): Use add_reg_note.
20499         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
20500         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
20501
20502 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
20503
20504         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
20505         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20506         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20507         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
20508         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
20509         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
20510         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
20511         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
20512         config/alpha/x-vms, config/arc/t-arc,
20513         config/arm/README-interworking, config/arm/arm-c.c,
20514         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
20515         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
20516         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
20517         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
20518         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
20519         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
20520         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
20521         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
20522         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
20523         config/cris/t-elfmulti, config/crx/t-crx,
20524         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
20525         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
20526         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
20527         config/h8300/t-h8300, config/i386/athlon.md,
20528         config/i386/darwin-libgcc.10.4.ver,
20529         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
20530         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
20531         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
20532         config/i386/t-linux64, config/i386/t-nwld,
20533         config/i386/t-rtems-i386, config/i386/t-sol2-10,
20534         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
20535         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
20536         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
20537         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
20538         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
20539         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
20540         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
20541         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
20542         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
20543         config/m68k/t-uclinux, config/mcore/t-mcore,
20544         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
20545         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
20546         config/mips/crtn.asm, config/mips/irix-crti.asm,
20547         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
20548         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
20549         config/mips/mips-fixed.md, config/mips/sb1.md,
20550         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
20551         config/mips/t-iris6, config/mips/t-isa3264,
20552         config/mips/t-libgcc-mips16, config/mips/t-linux64,
20553         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
20554         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
20555         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
20556         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
20557         config/mn10300/t-linux, config/mn10300/t-mn10300,
20558         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
20559         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
20560         config/picochip/libgccExtras/clzsi2.asm,
20561         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
20562         config/rs6000/darwin-libgcc.10.4.ver,
20563         config/rs6000/darwin-libgcc.10.5.ver,
20564         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
20565         config/rs6000/t-aix43, config/rs6000/t-aix52,
20566         config/rs6000/t-darwin, config/rs6000/t-fprules,
20567         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
20568         config/rs6000/t-lynx, config/rs6000/t-netbsd,
20569         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
20570         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
20571         config/rs6000/t-rtems, config/rs6000/t-spe,
20572         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
20573         config/score/t-score-elf, config/sh/divcost-analysis,
20574         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
20575         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
20576         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
20577         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
20578         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
20579         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
20580         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
20581         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
20582         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
20583         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
20584         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
20585         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
20586         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
20587         limitx.h, version.c, xcoff.h: Add copyright and license notices.
20588         * config/h8300/genmova.sh: Include copyright and license notices
20589         in generated output.
20590         * config/h8300/mova.md: Regenerate.
20591         * doc/install.texi2html: Include word "Copyright" in copyright
20592         notice and use name "Free Software Foundation, Inc.".
20593         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
20594         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
20595         ChangeLog-2007, ChangeLog-2008: Correct dates.
20596
20597 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
20598
20599         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
20600         NE_EXPR operations as well.
20601         * c-parser.c (c_parser_condition): Do not set location information on
20602         the condition.
20603         (c_parser_conditional_expression): Likewise.
20604         (c_parser_binary_expression): Set location information on operators.
20605         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
20606         TRUTH_NOT_EXPR has been folded.
20607         * fold-const.c (fold_truth_not_expr): Copy location information from
20608         the incoming expression to the outgoing one.
20609         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
20610         recursive calls on the LHS of the operator but pass that of the
20611         operator to recursive calls on the RHS of the operator.  Set it
20612         on the COND_EXPR.
20613         (shortcut_cond_expr): Set the locus of the operator on the second
20614         COND_EXPR and that of the expression on the first in degenerate cases.
20615         Pass the locus of the expression to calls to shortcut_cond_r.
20616         Set the locus of the 'then' block on the associated jump, if any.
20617         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
20618         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
20619         expression to call to gimplify_boolean_expr.
20620
20621 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
20622
20623         * config.gcc: Add additional configuration for
20624         i686-w64-mingw* and x86_64-w64-mingw* triplet.
20625         * config/i386/mingw-w64.h: New mingw-w64 specific header.
20626         (CPP_SPEC): Redefine for allowing -municode option.
20627         (STARTFILE_SPEC): Likewise.
20628         * config/i386/t-mingw-w64: New.
20629         * config/i386/mingw-w64.opt: New.
20630         (municode): Add new target option.
20631         * doc/invoke.texi (municode): Add documentation for new option.
20632
20633 2009-04-21  Ian Lance Taylor  <iant@google.com>
20634
20635         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20636         Correct test for number of arguments.
20637         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
20638
20639 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
20640
20641         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
20642         argument of emit_library_call.
20643
20644 2009-04-21  Richard Guenther  <rguenther@suse.de>
20645
20646         PR middle-end/39829
20647         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
20648         inside VIEW_CONVERT_EXPRs.
20649
20650 2009-04-21  Martin Jambor  <mjambor@suse.cz>
20651
20652         * tree-switch-conversion.c (build_constructors): Split a long line.
20653         (constructor_contains_same_values_p): New function.
20654         (build_one_array): Create assigns of constants if possible, do not
20655         call mark_sym_for_renaming, call update_stmt.
20656         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
20657         make_rename_temp.  Do not call mark_symbols_for_renaming, call
20658         update_stmt.
20659         (gen_def_assigns): Do not call mark_symbols_for_renaming or
20660         find_new_referenced_vars, call update_stmt.
20661         (gen_inbound_check): Use create_tmp_var and create ssa names manually
20662         instead of calling make_rename_temp.  Do not call
20663         find_new_referenced_vars or mark_symbols_for_renaming, call
20664         update_stmt.
20665
20666 2009-04-21  Richard Guenther  <rguenther@suse.de>
20667
20668         PR tree-optimization/39827
20669         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
20670         (tree_ssa_phiprop): Pass the correct array size.
20671
20672 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
20673
20674         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
20675
20676 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20677
20678         PR 16202
20679         * c-typeck.c (lvalue_p): Move declaration ...
20680         * c-common.h (lvalue_p): ... to here.
20681         * c-common.c (candidate_equal_p): New.
20682         (add_tlist): Use it.
20683         (merge_tlist): Use it.
20684         (warn_for_collisions_1): Likewise.
20685         (warning_candidate_p): Accept more candidates.
20686         (verify_tree): A warning candidate can be an expression. Use
20687         candidate_equal_p.
20688
20689 2009-04-21  Ben Elliston  <bje@au.ibm.com>
20690
20691         PR target/5267
20692         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
20693         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
20694         options.  Remove -mcall-solaris documentation.
20695
20696 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20697
20698         PR c++/13358
20699         * doc/invoke.texi (-Wlong-long): Update description.
20700         * c-lex (interpret_integer): Only warn if there was no previous
20701         overflow and -Wlong-long is enabled.
20702         * c-decl.c (declspecs_add_type): Drop redundant flags.
20703         * c.opt (Wlong-long): Init to -1.
20704         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
20705         and front-end warn_long_long. Wlong-long only depends on other
20706         flags if it is uninitialized.
20707         * c-parser.c (disable_extension_diagnostics): warn_long_long is
20708         the same for CPP and FE.
20709         (restore_extension_diagnostics): Likewise.
20710
20711 2009-04-20  Ian Lance Taylor  <iant@google.com>
20712
20713         Fix enum conversions which are invalid in C++:
20714         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
20715         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
20716         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
20717         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
20718         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
20719         (dbxout_parms): Likewise.
20720         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
20721         (df_clear_flags): Likewise.
20722         * df-problems.c (df_rd_bb_local_compute_process_def): Change
20723         top_flag parameter to int.
20724         (df_chain_create_bb_process_use): Likewise.
20725         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
20726         Remove cast.
20727         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
20728         (df_ref_create_structure, df_def_record_1): Likewise.
20729         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
20730         (df_notes_rescan): Change 0 to VOIDmode in function call.
20731         (df_get_call_refs, df_insn_refs_collect): Likewise.
20732         (df_bb_regs_collect): Likewise.
20733         (df_entry_block_defs_collect): Likewise.
20734         (df_exit_block_uses_collect): Likewise.
20735         * df.h: Update declarations.
20736         * double-int.c (double_int_divmod): Add cast to enum type.
20737         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
20738         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
20739         (based_loc_descr): Likewise.
20740         (loc_descriptor_from_tree_1): Change first_op and second_op to
20741         enum dwarf_location_atom.  Add cast to enum type.
20742         * expmed.c (init_expmed): Change 0 to SET in function call.
20743         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
20744         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
20745         (do_store_flag): Likewise.
20746         * fixed-value.h (struct fixed_value): Change mode to enum
20747         machine_mode.
20748         * function.c (assign_parms): Change 0 to VOIDmode in function call.
20749         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
20750         function call.
20751         (insert_insn_decl, insert_decl, insert_state): Likewise.
20752         (automata_list_finish): Likewise.
20753         * genrecog.c (process_define_predicate): Add cast to enum type.
20754         * gensupport.c (init_predicate_table): Add cast to enum type.
20755         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
20756         function call.
20757         (gimple_build_call_1, gimple_build_label): Likewise.
20758         (gimple_build_goto, gimple_build_asm_1): Likewise.
20759         (gimple_build_switch_1, gimple_build_cdt): Likewise.
20760         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
20761         (enum fallback): Rename from enum fallback_t.
20762         (fallback_t): Typedef as int.
20763         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
20764         GSI_SAME_STMT in function call.
20765         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
20766         enum type.
20767         (setup_reg_class_relations): Likewise.
20768         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
20769         (setup_prohibited_class_mode_regs): Add cast to enum type.
20770         (setup_prohibited_mode_move_regs): Likewise.
20771         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
20772         (record_address_regs): Change i to enum reg_class.
20773         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
20774         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
20775         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
20776         (GET_MODE_2XWIDER_MODE): Likewise.
20777         (GET_CLASS_NARROWEST_MODE): Likewise.
20778         * omp-low.c (expand_omp_for): Add cast to enum type.
20779         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
20780         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
20781         * postreload.c (reload_cse_simplify_operands): Change rclass local
20782         to enum reg_class.
20783         * predict.c (combine_predictions_for_insn): Change best_predictor
20784         and predictor to enum br_predictor.
20785         (combine_predictions_for_bb): Likewise.
20786         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
20787         use SET_PREDICT_EXPR_OUTCOME.
20788         * real.c (real_arithmetic): Change icode to code in function call.
20789         * reginfo.c (init_move_cost): Add casts to enum type.
20790         (init_reg_sets_1, init_fake_stack_mems): Likewise.
20791         * regmove.c (regclass_compatible_p): Change class0 and class1 to
20792         enum reg_class.
20793         * reload.c (find_valid_class): Add casts to enum type.
20794         (push_reload): Change 0 to NO_REGS in function call.
20795         (find_reloads): Change this_alternative to array of enum
20796         reg_class.  Remove some now-unnecessary casts.
20797         (make_memloc): Change 0 to VOIDmode in function call.
20798         * reload1.c (reload): Change 0 to VOIDmode in function call.
20799         (eliminate_regs_1, elimination_effects): Likewise.
20800         (eliminate_regs_in_insn): Likewise.
20801         (emit_input_reload_insns): Add cast to enum type.
20802         (delete_output_reload): Change 0 to VOIDmode in function call.
20803         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
20804         to enum type in function call.
20805         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
20806         (SET_PREDICT_EXPR_OUTCOME): Define.
20807         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
20808         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
20809         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
20810         (dump_function): Likewise.
20811         * tree-dump.h: Update declarations.
20812         * tree-pass.h: Update declarations.
20813         * varasm.c (assemble_integer): Change mclass to enum mode_class.
20814         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
20815         enum type.
20816         (arm_rtx_costs_1): Correct parenthesization.
20817         (arm_rtx_costs): Add casts to enum type.
20818         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
20819         (vfp_emit_fstmd): Use add_rg_note.
20820         (emit_multi_reg_push, emit_sfm): Likewise.
20821         (thumb_set_frame_pointer): Likewise.
20822         (arm_expand_prologue): Likewise.
20823         (arm_regno_class): Change return type to enum reg_class.
20824         (thumb1_expand_prologue): Use add_reg_note.
20825         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
20826         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
20827         in function call.
20828         * config/arm/gentune.sh: Add cast to enum type.
20829         * config/arm/arm-tune.md: Rebuild.
20830         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
20831         (ix86_split_fp_branch, predict_jump): Likewise.
20832         (ix86_expand_multi_arg_builtin): Change sub_code from enum
20833         insn_code to enum rtx_code.
20834         (ix86_builtin_vectorized_function): Add cast to enum type.
20835         * config/i386/i386.md (truncdfsf2): Change slot to enum
20836         ix86_stack_slot.
20837         (truncxf<mode>2, isinf<mode>2): Likewise.
20838         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
20839         enum type.
20840         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
20841         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
20842         (insert_bundle_state): Change 1 to INSERT in function call.
20843         (ia64_add_bundle_selector_before): Likewise.
20844         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
20845         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
20846         (restore_stack_nonlocal): Likewise.
20847         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
20848         function call.
20849         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
20850         function call.
20851         (mips_rtx_costs): Likewise.
20852         (mips_override_options): Add casts to enum type.
20853         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
20854         in function call.
20855         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
20856         (store_reg, set_reg_plus_d): Likewise.
20857         (hppa_expand_prologue, hppa_profile_hook): Likewise.
20858         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
20859         cast to enum type.
20860         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
20861         function call.
20862         (emit_unlikely_jump): Use add_reg_note.
20863         (rs6000_emit_allocate_stack): Likewise.
20864         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
20865         (output_toc): Change 1 to INSERT in function call.
20866         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
20867         (rs6000_initialize_trampoline): Likewise.
20868         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
20869         function call.
20870         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
20871         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
20872         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
20873         (save_gprs): Use add_reg_note.
20874         (s390_emit_prologue): Likewise.
20875         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
20876         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
20877         (sparc_fold_builtin): Add cast to enum type.
20878         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
20879         enum insn_code.
20880         (spu_expand_prologue): Use add_reg_note.
20881         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
20882
20883 2009-04-20  Ian Lance Taylor  <iant@google.com>
20884
20885         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
20886         (c_parser_postfix_expression_after_primary): Get VEC for list of
20887         arguments.  Get original types of arguments.  Call
20888         build_function_call_vec.
20889         (cached_expr_list_1, cached_expr_list_2): New static variables.
20890         (c_parser_expr_list): Change return type to VEC *.  Add
20891         p_orig_types parameter.  Change all callers.
20892         (c_parser_release_expr): New static function.
20893         (c_parser_vec_to_tree_list): New static function.
20894         * c-typeck.c (build_function_call): Rewrite to build a VEC and
20895         call build_function_call_vec.
20896         (build_function_call_vec): New function, based on old
20897         build_function_call.
20898         (convert_arguments): Remove nargs and argarray parameters.  Change
20899         values to a VEC.  Add origtypes parameter.
20900         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
20901         (convert_for_assignment): Add origtype parameter.  Change all
20902         callers.  If warn_cxx_compat, check for conversion to an enum
20903         type when calling a function.
20904         (store_init_value): Add origtype parameter.  Change all callers.
20905         (digest_init): Likewise.
20906         (struct init_node): Add origtype field.
20907         (add_pending_init): Add origtype parameter.  Change all callers.
20908         (output_init_element): Likewise.
20909         (output_pending_init_elements): Pass origtype from init_node to
20910         output_init_element.
20911         (process_init_element): Pass origtype from c_expr to
20912         output_init_element.
20913         (c_finish_return): Add origtype parameter.  Change all callers.
20914         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
20915         caller.
20916         (sync_resolve_params): Likewise.
20917         (sync_resolve_return): Change params to first_param.  Change caller.
20918         (resolve_overloaded_builtins): Change params to VEC *.  Change
20919         callers.  Save first parameter around call to build_function_call_vec.
20920         * c-decl.c (finish_decl): Add origtype parameter.  Change all
20921         callers.  Call build_function_call_vec rather than
20922         build_function_call for cleanup.
20923         * c-tree.h: Update declarations.
20924         * c-common.h: Update declarations.
20925         * stub-objc.c (objc_rewrite_function_call): Change parameter from
20926         params to first_param.
20927         * target.h (struct gcc_target): Change resolve_overloaded_builtin
20928         params parameter from tree to void *.
20929         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20930         Change arglist parameter to have type void *, and to be a pointer
20931         to a VEC.
20932         * config/rs6000/rs6000-protos.h
20933         (altivec_resolve_overloaded_builtin): Update declaration.
20934         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
20935         fnargs parameter to have type void *, and to be a pointer to a
20936         VEC.  Call build_function_call_vec instead of
20937         build_function_call.
20938         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
20939
20940 2009-04-20  Joey Ye  <joey.ye@intel.com>
20941             Xuepeng Guo  <xuepeng.guo@intel.com>
20942             H.J. Lu  <hongjiu.lu@intel.com>
20943
20944         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
20945
20946         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
20947         (IX86_LEA_PRIORITY): Likewise.
20948         (distance_non_agu_define): New function.
20949         (distance_agu_use): Likewise.
20950         (ix86_lea_for_add_ok): Likewise.
20951         (ix86_dep_by_shift_count): Likewise.
20952
20953         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
20954         should split for LEA.
20955
20956         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
20957         function.
20958         (ix86_dep_by_shift_count): Likewise.
20959
20960 2009-04-20  Richard Guenther  <rguenther@suse.de>
20961
20962         * expr.c (handled_component_p): Move ...
20963         * tree.h (handled_component_p): ... here.
20964         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
20965         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
20966         and REALPART_EXPR to be in one group.
20967
20968 2009-04-20  Richard Guenther  <rguenther@suse.de>
20969
20970         * basic-block.h (get_all_dominated_blocks): Declare.
20971         * dominance.c (get_all_dominated_blocks): New function.
20972         * tree-cfg.c (get_all_dominated_blocks): Remove.
20973         (remove_edge_and_dominated_blocks): Adjust.
20974         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
20975         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
20976         instead of recursing.
20977
20978 2009-04-20  Doug Kwan  <dougkwan@google.com>
20979
20980         * cgraph.h (cgraph_node_ptr): New type for vector functions.
20981         (struct cgraph_node_set_def): New type.
20982         (cgraph_node_set) New type. Also declare vector functions.
20983         (struct cgraph_node_set_element_def): New type.
20984         (cgraph_node_set_element): Ditto.
20985         (cgraph_node_set_iterator): New iterator type.
20986         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
20987         cgraph_node_set_remove, dump_cgraph_node_set,
20988         debug_cgraph_node_set): New prototypes.
20989         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
20990         cgraph_node_set_size): New inlines.
20991         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
20992         including cgraph.h.
20993         (struct ipa_opt_pass): Add struct cgraph_node_set_def
20994         argument to function 'write_summary'.
20995         * ipa.c: Include ggc.h.
20996         (hash_cgraph_node_set_element,
20997         eq_cgraph_node_set_element, cgraph_node_set_new,
20998         cgraph_node_set_add, cgraph_node_set_remove,
20999         cgraph_node_set_find, dump_cgraph_node_set,
21000         debug_cgraph_node_set): New functions.
21001         * Makefile.in (ipa.o): Add dependency on GGC_H.
21002
21003 2009-04-20  Ira Rosen  <irar@il.ibm.com>
21004
21005         PR tree-optimization/39675
21006         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
21007         check of the return code of vect_schedule_slp. Check that
21008         stmt_vec_info still exists for the statement, before checking its
21009         vectorization type.
21010
21011 2009-04-20  Michael Matz  <matz@suse.de>
21012
21013         * Makefile.in (generated_files): Take out $(simple_generated_c).
21014
21015 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
21016
21017         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
21018         (UINTPTR_TYPE):  Likewise.
21019
21020 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21021
21022         PR c/37481
21023         * c-typeck.c (digest_init): Check for initializing an array with a
21024         string literal.
21025
21026 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21027
21028         PR c/19771
21029         * c-semantics.c (pop_stmt_list): Propagate
21030         STATEMENT_LIST_HAS_LABEL to parent statement list.
21031
21032 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
21033
21034         * config/mips/mips.h (mips_tune_attr): New macro.
21035         * config/mips/mips.md (cpu): Use it.
21036
21037 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
21038
21039         PR c/38243
21040         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
21041         declaring a tag.
21042
21043 2009-04-19  Diego Novillo  <dnovillo@google.com>
21044
21045         * toplev.c (compile_file): Move call to coverage_finish ...
21046         * cgraphunit.c (ipa_passes): ... here.
21047         Call cgraph_process_new_functions.
21048         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
21049         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
21050
21051 2009-04-19  Jan Hubicka  <jh@suse.cz>
21052
21053         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
21054         cfun.
21055         (dump_cgraph_node): Dump can throw external flag.
21056         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
21057
21058 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21059
21060         PR c/32061
21061         PR c++/36954
21062         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
21063         * common.opt (Wlogical-op): Move from here...
21064         * c.opt (Wlogical-op): ... to here.
21065         * c-typeck.c (parser_build_binary_op): Update call to
21066         warn_logical_operator.
21067         * c-opts.c (c_common_post_options): Enable warn_logical_op with
21068         extra_warnings.
21069         * c-common.c (warn_logical_op): Update.
21070         * c-common.h (warn_logical_op): Update declaration.
21071
21072 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
21073
21074         * tree.c (protected_set_expr_location): Fix formatting.
21075
21076 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21077
21078         PR c/27676
21079         * c-typeck.c (readonly_warning): new.
21080         (build_unary_op, build_modify_expr): Use readonly_warning for
21081         storing into something readonly but not const-qualified.
21082
21083 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21084
21085         PR c/22367
21086         * c-typeck.c (build_unary_op): Check for taking address of
21087         expression of type void.
21088
21089 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
21090
21091         PR c/35210
21092         * c-typeck.c (build_function_call): Check for calling a function
21093         with qualified void return types.  Call require_complete_type when
21094         generating a trap.
21095
21096 2009-04-18  Jan Hubicka  <jh@suse.cz>
21097
21098         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
21099         Set nothrow flag.
21100         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
21101         can_throw_external flag.
21102         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
21103         * ipa-pure-const.c (ignore_edge): New function.
21104         (propagate): Compute order for NOTHROW computation; set NOTHROWs
21105         only over can_throw_external edges.
21106         (local_pure_const): Add nothrow flag.
21107         * ipa-utils.c (searchc): Add ignore_edge callback.
21108         (ipa_utils_reduced_inorder): Add ignore_edge callback.
21109         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
21110         (set_nothrow_function_flags): Update cgraph.
21111         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
21112
21113 2009-04-18  Richard Guenther  <rguenther@suse.de>
21114
21115         PR middle-end/39804
21116         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
21117         (fold_stmt): ... this and ...
21118         (fold_stmt_inplace): ... this.
21119         (fold_stmt_1): Fold references in calls and asms.
21120         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
21121
21122 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21123
21124         * tree-vrp.c (ssa_name_nonzero_p): Remove.
21125         * tree.h: Remove the prototype for ssa_name_nonzero_p.
21126
21127 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21128
21129         * tree.c (function_args_count): Remove.
21130         * tree.h: Remove the prototype for function_args_count.
21131
21132 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21133
21134         * tree-iterator.c (expr_only): Remove.
21135         * tree.h: Remove the prototype for expr_only.
21136
21137 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21138
21139         * reginfo.c (cannot_change_mode_set_regs): Remove.
21140         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
21141
21142 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
21143
21144         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
21145         whether operands 0 and 1 overlaps.
21146
21147 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21148
21149         PR middle-end/36902
21150         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
21151         pointer. Use warning_at instead of warning.
21152         (search_for_addr_array): Likewise.
21153         (check_array_bounds): Likewise.
21154         (check_all_array_refs): Check that the incoming edge is not in the
21155         list of edges to be removed.
21156         (check_all_array_refs): Avoid the temporal pointer.
21157         (vrp_visit_cond_stmt): Fix typo.
21158         (simplify_switch_using_ranges): Handle the case where the switch
21159         index is an integer constant.
21160
21161 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
21162
21163         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
21164
21165 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
21166
21167         * doc/extend.texi, doc/invoke.texi: Fix typos.
21168
21169 2009-04-17  Cary Coutant  <ccoutant@google.com>
21170
21171         * tree-flow-inline.h (get_lineno): Fix inverted test.
21172
21173 2009-04-17  Diego Novillo  <dnovillo@google.com>
21174
21175         * tree-ssa-pre.c (create_expression_by_pieces): Remove
21176         assertion for AVAIL_OUT.
21177
21178 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
21179
21180         PR target/38627
21181         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
21182         * config/sh/linux-atomic.asm: Likewise.
21183
21184 2009-04-17  Diego Novillo  <dnovillo@google.com>
21185
21186         * except.c (debug_eh_tree): New.
21187         (struct eh_region, struct eh_status): Move ...
21188         * except.h: ... here.
21189         (add_type_for_runtime): Declare extern.
21190         (lookup_type_for_runtime): Likewise.
21191         (debug_eh_tree): Declare.
21192         * Makefile.in (GTFILES): List except.h before except.c
21193
21194 2009-04-17  Diego Novillo  <dnovillo@google.com>
21195
21196         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
21197         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
21198         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
21199         (find_vars_r): ... here.
21200         * tree-flow.h (find_referenced_vars_in): Declare.
21201         * tree-ssa-pre.c (create_expression_by_pieces): Assert
21202         that AVAIL_OUT exists for BLOCK.
21203         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
21204         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
21205         (tree-parloops.o): Likewise.
21206
21207 2009-04-17  Simon Baldwin  <simonb@google.com>
21208
21209         * toplev.c (default_tree_printer): Add handling for %E format.
21210
21211 2009-04-17  Diego Novillo  <dnovillo@google.com>
21212
21213         * tree-pretty-print.c (dump_generic_node): Add break after
21214         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
21215         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
21216         FUNCTION_TYPE together.  Call print_struct_decl when printing
21217         structures and TDF_SLIM is not given.
21218         (print_struct_decl): Fix logic for detecting recursion.
21219
21220 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
21221
21222         PR 31567
21223         * gcc.c (create_at_file): New.
21224         (compile_input_file_p): New.
21225         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
21226         * main.c (main): Update call to toplev_main.
21227         * toplev.c (toplev_main): Change signature. Call expandargv.
21228         * toplev.h (toplev_main): Change signature.
21229
21230 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21231
21232         * dwarf2out.c (field_byte_offset): Use the type size as the field size
21233         if the latter is not constant.
21234
21235 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
21236
21237         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
21238
21239 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
21240
21241         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
21242         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
21243
21244 2009-04-17  Richard Guenther  <rguenther@suse.de>
21245
21246         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21247         Handle component references view-converting an invariant address.
21248
21249 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
21250
21251         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
21252         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
21253         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
21254         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
21255         Use @deftypevr rather than @deftypevar.
21256
21257 2009-04-17  Richard Guenther  <rguenther@suse.de>
21258
21259         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
21260         (get_prop_source_stmt): Likewise.
21261         (can_propagate_from): Likewise.
21262
21263 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
21264
21265         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
21266         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
21267         (--with-multilib-list): Add default value.
21268         * configure: Regenerate.
21269         * Makefile.in (TM_ENDIAN_CONFIG): Define.
21270         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
21271         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
21272         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
21273         Don't add default cpu to multilib list unnecessarily, but do enable
21274         the relevant compiler option..
21275         Add support for --with-multilib-list=<blank> and
21276         --with-multilib-list=!<somelib> to supress unwanted multilibs.
21277         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
21278         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
21279         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
21280         TM_MULTILIB_CONFIG.
21281         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
21282         (MULTILIB_OSDIRNAMES): New variable.
21283         * config/sh/t-1e: Delete file.
21284         * config/sh/t-mlib-sh1: Delete file.
21285         * config/sh/t-mlib-sh2: Delete file.
21286         * config/sh/t-mlib-sh2a: Delete file.
21287         * config/sh/t-mlib-sh2a-nofpu: Delete file.
21288         * config/sh/t-mlib-sh2a-single: Delete file.
21289         * config/sh/t-mlib-sh2a-single-only: Delete file.
21290         * config/sh/t-mlib-sh2e: Delete file.
21291         * config/sh/t-mlib-sh3e: Delete file.
21292         * config/sh/t-mlib-sh4: Delete file.
21293         * config/sh/t-mlib-sh4-nofpu: Delete file.
21294         * config/sh/t-mlib-sh4-single: Delete file.
21295         * config/sh/t-mlib-sh4-single-only: Delete file.
21296         * config/sh/t-mlib-sh4a: Delete file.
21297         * config/sh/t-mlib-sh4a-nofpu: Delete file.
21298         * config/sh/t-mlib-sh4a-single: Delete file.
21299         * config/sh/t-mlib-sh4a-single-only: Delete file.
21300         * config/sh/t-mlib-sh4al: Delete file.
21301         * config/sh/t-mlib-sh5-32media: Delete file.
21302         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
21303         * config/sh/t-mlib-sh5-64media: Delete file.
21304         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
21305         * config/sh/t-mlib-sh5-compact: Delete file.
21306         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
21307         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
21308         * doc/install.texi (Options specification): Add
21309         --with-multilib-list and --with-endian.
21310
21311 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
21312
21313         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
21314         REVISION_c.
21315         (OBJS-common): Add plugin-version.o.
21316         (plugin-version.o): New.
21317         * gcc-plugin.h (plugin_gcc_version): New.
21318         (plugin_default_version_check): New.
21319         (plugin_init_func, plugin_init): Add version argument.
21320         * plugin-version.c: New.
21321         * plugin.c (str_plugin_gcc_version_name): New.
21322         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
21323         pass it to the init function.
21324         (plugin_default_version_check): New.
21325
21326 2009-04-17  Richard Guenther  <rguenther@suse.de>
21327
21328         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
21329         for decl-vs-decl disambiguation.
21330
21331 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
21332
21333         * config/s390/s390.h (s390_tune_attr): New macro definition.
21334         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
21335
21336 2009-04-17  Richard Guenther  <rguenther@suse.de>
21337
21338         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
21339         (fold_stmt_r): Likewise.
21340         (maybe_fold_reference): New function.
21341         (fold_gimple_assign): Handle cases fold_stmt_r did.
21342         (fold_stmt): Do not use fold_stmt_r.
21343         (fold_stmt_inplace): Likewise.
21344
21345 2009-04-17  Richard Guenther  <rguenther@suse.de>
21346
21347         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
21348         (record_equivalences_from_stmt): Remove useless checks and
21349         simplifications.
21350         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
21351         the type is already suitable.
21352
21353 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
21354
21355         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
21356
21357 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
21358
21359         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
21360         (CMPtype): Define as __gcc_CMPtype.
21361
21362 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
21363
21364         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
21365         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
21366
21367 2009-04-17  Richard Guenther  <rguenther@suse.de>
21368
21369         PR tree-optimization/39746
21370         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
21371         special-casing for builtins and static variable use/def.
21372         (call_may_clobber_ref_p_1): Likewise.
21373
21374 2009-04-16  Ian Lance Taylor  <iant@google.com>
21375
21376         * df.h: Include "timevar.h".
21377         (struct df_problem): Change tv_id field to timevar_id_t.
21378         * tree-pass.h: Include "timevar.h".
21379         (struct opt_pass): Change tv_id field to timevar_id_t.
21380         * timevar.h (timevar_id_t): Define TV_NONE.
21381         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
21382         TV_NONE rather than tv_id != 0.
21383         (execute_one_pass): Likewise.
21384         * Makefile.in (DF_H): Add $(TIMEVAR_H).
21385         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
21386         dependencies to $(TREE_PASS_H).
21387         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
21388         to TV_NONE.
21389         (pass_branch_target_load_optimize2): Likewise.
21390         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
21391         (pass_outof_cfg_layout_mode): Likewise.
21392         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
21393         (pass_rebuild_cgraph_edges): Likewise.
21394         (pass_remove_cgraph_callee_edges): Likewise.
21395         * df-core.c (pass_df_initialize_opt): Likewise.
21396         (pass_df_initialize_no_opt): Likewise.
21397         (pass_df_finish): Likewise.
21398         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
21399         * except.c (pass_set_nothrow_function_flags): Likewise.
21400         (pass_convert_to_eh_region_ranges): Likewise.
21401         * final.c (pass_compute_alignments): Likewise.
21402         * function.c (pass_instantiate_virtual_regs): Likewise.
21403         (pass_init_function): Likewise.
21404         (pass_leaf_regs): Likewise.
21405         (pass_match_asm_constraints): Likewise.
21406         * gimple-low.c (pass_lower_cf): Likewise.
21407         (pass_mark_used_blocks): Likewise.
21408         * init-regs.c (pass_initialize_regs): Likewise.
21409         * integrate.c (pass_initial_value_sets): Likewise.
21410         * ira.c (pass_ira): Likewise.
21411         * jump.c (pass_cleanup_barriers): Likewise.
21412         * omp-low.c (pass_expand_omp): Likewise.
21413         (pass_lower_omp): Likewise.
21414         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
21415         * recog.c (pass_split_all_insns): Likewise.
21416         (pass_split_after_reload): Likewise.
21417         (pass_split_before_regstack): Likewise.
21418         (pass_split_before_sched2): Likewise.
21419         (pass_split_for_shorten_branches): Likewise.
21420         * reginfo.c (pass_reginfo_init): Likewise.
21421         (pass_subregs_of_mode_init): Likewise.
21422         (pass_subregs_of_mode_finish): Likewise.
21423         * passes.c (pass_postreload): Likewise.
21424         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
21425         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
21426         (pass_warn_function_return): Likewise.
21427         (pass_warn_function_noreturn): Likewise.
21428         * tree-complex.c (pass_lower_complex): Likewise.
21429         (pass_lower_complex_O0): Likewise.
21430         * tree-if-conv.c (pass_if_conversion): Likewise.
21431         * tree-into-ssa.c (pass_build_ssa): Likewise.
21432         * tree-mudflap.c (pass_mudflap_1): Likewise.
21433         (pass_mudflap_2): Likewise.
21434         * tree-nomudflap.c (pass_mudflap_1): Likewise.
21435         (pass_mudflap_2): Likewise.
21436         * tree-nrv.c (pass_return_slot): Likewise.
21437         * tree-object-size.c (pass_object_sizes): Likewise.
21438         * tree-optimize.c (pass_all_optimizations): Likewise.
21439         (pass_early_local_passes): Likewise.
21440         (pass_all_early_optimizations): Likewise.
21441         (pass_cleanup_cfg): Likewise.
21442         (pass_cleanup_cfg_post_optimizing): Likewise.
21443         (pass_free_datastructures): Likewise.
21444         (pass_free_cfg_annotations): Likewise.
21445         (pass_fixup_cfg): Likewise.
21446         (pass_init_datastructures): Likewise.
21447         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
21448         (pass_late_warn_uninitialized): Likewise.
21449         (pass_update_address_taken): Likewise.
21450         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
21451         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
21452         (pass_cse_sincos): Likewise.
21453         (pass_convert_to_rsqrt): Likewise.
21454         * tree-ssa-structalias.c (pass_build_alias): Likewise.
21455         * tree-stdarg.c (pass_stdarg): Likewise.
21456         * tree-tailcall.c (pass_tail_recursion): Likewise.
21457         (pass_tail_calls): Likewise.
21458         * tree-vect-generic.c (pass_lower_vector): Likewise.
21459         (pass_lower_vector_ssa): Likewise.
21460         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
21461
21462 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
21463
21464         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
21465         XLR entry.
21466         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
21467         Handle -march=xlr.
21468         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
21469         logical and signext.
21470
21471 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21472
21473         PR target/39767
21474         * config/sh/predicates.md (arith_operand): Check if the operand
21475         of TRUNCATE is a REG.
21476
21477 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21478
21479         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
21480         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
21481
21482 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21483
21484         * tree-iterator.c (tsi_split_statement_list_after,
21485         tsi_split_statement_list_before): Remove.
21486         * tree-iterator.h: Remove the prototypes for
21487         tsi_split_statement_list_after and tsi_split_statement_list_before.
21488
21489 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21490
21491         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
21492         * tree-ssa-propagate.h: Remove the prototype for
21493         stmt_makes_single_load.
21494
21495 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21496
21497         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
21498         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
21499
21500 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21501
21502         * tree-iterator.c (EXPR_LAST_BODY): Remove.
21503
21504 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21505
21506         * except.c (eh_region_outer_p): Remove.
21507         * except.h: Remove the prototype for eh_region_outer_p.
21508
21509 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
21510
21511         * function.c (current_function_assembler_name): Remove.
21512         * function.h: Remove the prototype for
21513         current_function_assembler_name.
21514
21515 2009-04-16  Ian Lance Taylor  <iant@google.com>
21516
21517         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
21518         (add_reg_note): Call alloc_reg_note.
21519         * rtl.h (alloc_reg_note): Declare.
21520         * combine.c (try_combine): Use alloc_reg_note.
21521         (recog_for_combine, move_deaths): Likewise.
21522         (distribute_notes): Use alloc_reg_note and add_reg_note.
21523         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
21524         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
21525         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
21526
21527 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
21528
21529         PR rtl-optimization/39762
21530         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
21531         ira_may_move_out_cost): Add comments about way of their usage.
21532         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
21533
21534         * ira-conflicts.c (process_regs_for_copy): Use function
21535         ira_get_register_move_cost instead of global
21536         ira_register_move_cost.
21537
21538         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
21539         color_pass, move_spill_restore, update_curr_costs): Ditto.
21540
21541         * ira-lives.c (process_single_reg_class_operands): Ditto.
21542
21543         * ira-emit.c (emit_move_list): Ditto.
21544
21545         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
21546         (record_reg_classes): Ditto.  Use functions
21547         ira_get_register_move_cost and ira_get_may_move_cost instead of
21548         global vars ira_register_move_cost, ira_may_move_out_cost and
21549         ira_may_move_in_cost.
21550         (record_address_regs): Don't call ira_init_register_move_cost.
21551         Use function ira_get_may_move_cost instead of global
21552         ira_may_move_in_cost.
21553         (process_bb_node_for_hard_reg_moves): Use function
21554         ira_get_register_move_cost instead of global ira_register_move_cost.
21555         (ira_costs): Don't call ira_init_register_move_cost.
21556
21557 2009-04-16  Richard Guenther  <rguenther@suse.de>
21558
21559         * tree-cfg.c (verify_gimple_assign_binary):
21560         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
21561         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
21562         (create_general_new_stmt): Note that this function is broken.
21563
21564 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21565
21566         * common.opt (fhelp): Add Var(help_flag).
21567         * gcc-plugin.h (plugin_info): Add help.
21568         * plugin.c (plugin_name_args): Add help.
21569         (register_plugin_info): Set plugin->help.
21570         (print_help_one_plugin): New.
21571         (print_plugins_help): New.
21572         * plugin.h (print_plugins_help): New.
21573         * toplev.c (toplev_main): Call print_plugins_help if needed.
21574
21575 2009-04-16  Richard Guenther  <rguenther@suse.de>
21576
21577         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
21578         (gimple_ior_addresses_taken_1): New function.
21579         (gimple_ior_addresses_taken): Likewise.
21580         * gimple.h (struct gimple_statement_with_ops_base): Remove
21581         addresses_taken member.
21582         (gimple_ior_addresses_taken): Declare.
21583         (gimple_addresses_taken, gimple_addresses_taken_ptr,
21584         gimple_set_addresses_taken): Remove.
21585         * ipa-reference.c (mark_address): New function.
21586         (scan_stmt_for_static_refs): Use it for marking addresses taken.
21587         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
21588         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
21589         (gimple_add_to_addresses_taken): Remove.
21590         (get_tmr_operands): Call mark_address_taken.
21591         (get_asm_expr_operands): Likewise.
21592         (get_expr_operands): Likewise.
21593         (build_ssa_operands): Do not clear the addresses_taken bitmap.
21594         (free_stmt_operands): Do not free it.
21595         * tree-ssa.c (delete_tree_ssa): Likewise.
21596         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
21597
21598 2009-04-16  Richard Guenther  <rguenther@suse.de>
21599
21600         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
21601         (walk_stmt_load_store_ops): Likewise.
21602         * gimple.c (get_base_loadstore): New function.
21603         (walk_stmt_load_store_addr_ops): Likewise.
21604         (walk_stmt_load_store_ops): Likewise.
21605         * ipa-pure-const.c (check_op): Simplify.
21606         (check_load, check_store): New functions.
21607         (check_stmt): Use walk_stmt_load_store_ops.
21608         * ipa-reference.c (mark_load): Adjust signature.
21609         (mark_store): Likewise.
21610         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
21611
21612 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21613
21614         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
21615         (plugin_info): New.
21616         * opts.c (common_handle_option): Don't call print_version.
21617         * plugin.c (plugin_name_args): Add version.
21618         (register_plugin_info): New.
21619         (register_callback): Handle PLUGIN_INFO.
21620         (try_init_one_plugin): New.
21621         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
21622         if failed to init.
21623         (finalize_one_plugin): New.
21624         (finalize_plugins): New.
21625         (print_one_plugin): New.
21626         (print_plugins_versions): New.
21627         * plugin.h (print_plugins_versions): New.
21628         (finalize_plugins): New.
21629         * toplev.c (compile_file): Don't call initialize_plugins.
21630         (print_version): Call print_plugins_versions.
21631         (toplev_main): Call initialize_plugins. Print version if needed.
21632         Call finalize_plugins.
21633
21634 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
21635
21636         * common.opt (fversion): New.
21637         * gcc.c (print_version): New.
21638         (process_command): Don't print the version. Just set print_version.
21639         (main): Print version. Call subprocesses if print_version and
21640         verbose_flag are set.
21641         * opts.c (common_handle_option): Handle OPT_fversion.
21642
21643 2009-04-16  Richard Guenther  <rguenther@suse.de>
21644             Ira Rosen  <irar@il.ibm.com>
21645
21646         PR tree-optimization/39698
21647         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
21648         type of the reduction variable.  Only generate the def if
21649         it is needed.
21650
21651         * omp-low.c (expand_omp_for_generic): When converting to a pointer
21652         make sure to first convert to an integer of the same precision.
21653         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
21654         the type of the evolution correctly in computing the new
21655         induction variable base.
21656
21657 2009-04-16  Richard Guenther  <rguenther@suse.de>
21658
21659         PR middle-end/39625
21660         * tree-cfg.c (make_blocks): Split statements with to-be
21661         abnormal SSA names on the lhs.
21662
21663 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
21664
21665         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
21666         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
21667         * c-typeck.c (really_start_incremental_init): Likewise.
21668         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
21669         (TARGET_INITIALIZER): Remove it.
21670         * target.h (struct target): Remove vector_opaque_p.
21671         * tree.c (build_opaque_vector_type): New.
21672         * tree.h (TYPE_VECTOR_OPAQUE): New.
21673         (build_opaque_vector_type): Declare.
21674         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
21675         * config/rs6000/rs6000.c (build_opaque_vector_type,
21676         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
21677         (rs6000_init_builtins): Use build_opaque_vector_type for
21678         opaque_V4SI_type_node.
21679
21680 2009-04-15  Catherine Moore  <clm@codesourcery.com>
21681
21682         * debug.h (set_name):  Declare.
21683         * dwarf2out.c (dwarf2out_set_name): Declare.
21684         (dwarf2_debug_hooks): Add set_name.
21685         (find_AT_string): New.
21686         (add_AT_string): Call find_AT_string.
21687         (dwarf2out_set_name): New.
21688         * cp/decl.c (grokdeclarator): Call set_name.
21689         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
21690         * debug.c (do_nothing_debug_hooks):  Likewise.
21691         * dbxout.c (dbx_debug_hooks): Likewise.
21692         * sdbout.c (sdb_debug_hooks): Likewise.
21693
21694 2009-04-15  Michael Eager  <eager@eagercon.com>
21695
21696         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
21697         reg for single-precision FPU.
21698         * config/rs6000/rs6000.md (movsi_internal1): Only for
21699         !TARGET_SINGLE_FPU.
21700         (movsi_internal1_single): New. Add pattern to move SI values to/from
21701         single-precision FP regs.
21702
21703 2009-04-15  Richard Guenther  <rguenther@suse.de>
21704
21705         * omp-low.c (lower_rec_input_clauses): Build correct address
21706         expressions.
21707         (expand_omp_for_generic): Fix multiplication type.
21708         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
21709         (generate_memset_zero): Fix types.
21710         * tree-profile.c (prepare_instrumented_value): Correctly
21711         widen a pointer.
21712
21713 2009-04-15  Ian Lance Taylor  <iant@google.com>
21714
21715         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
21716         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
21717         for -Wall and for -Wc++-compat.
21718         (c_common_post_options): For C++, set warn_enum_compare if not
21719         already set.
21720         * c-tree.h (struct c_expr): Add field original_type.
21721         (build_external_ref): Update declaration.
21722         * c-parser.c (c_parser_braced_init): Set original_type.
21723         (c_parser_initelt): Likewise.
21724         (c_parser_expr_no_commas): Likewise.
21725         (c_parser_conditional_expression): Likewise.
21726         (c_parser_cast_expression): Likewise.
21727         (c_parser_unary_expression): Likewise.  Pull setting of
21728         original_code to top of function.
21729         (c_parser_sizeof_expression): Set original_type.
21730         (c_parser_alignof_expression): Likewise.
21731         (c_parser_postfix_expression): Likewise.  Pull setting of
21732         original_code to top of function.
21733         (c_parser_postfix_expression_after_paren_type): Set original_type.
21734         (c_parser_postfix_expression_after_primary): Likewise.
21735         (c_parser_expression): Likewise.
21736         * c-typeck.c (build_external_ref): Add type parameter.  Change all
21737         callers.
21738         (c_expr_sizeof_expr): Set original_type field.
21739         (parser_build_unary_op): Likewise.
21740         (parser_build_binary_op): Likewise.  Optionally warn about
21741         comparisons of enums of different types.
21742         (digest_init): Set original_type field.
21743         (really_start_incremental_init): Likewise.
21744         (push_init_level, pop_init_level): Likewise.
21745         * doc/invoke.texi (Warning Options): -Wenum-compare now
21746         supported in C.
21747
21748 2009-04-15  Richard Guenther  <rguenther@suse.de>
21749
21750         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
21751         out a necessary conversion.
21752         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
21753         names we didn't value number.
21754         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
21755
21756 2009-04-15  Richard Guenther  <rguenther@suse.de>
21757
21758         PR tree-optimization/39764
21759         * tree-ssa-ccp.c (get_value): Canonicalize value with
21760         canonicalize_float_value.
21761
21762 2009-04-15  Jan Hubicka  <jh@suse.cz>
21763
21764         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
21765         Wrong version of patch.
21766
21767 2009-04-15  Jan Hubicka  <jh@suse.cz>
21768
21769         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
21770
21771 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
21772
21773         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
21774         our distinct integral and vector types.
21775
21776 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
21777
21778         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
21779         * init.c (build_vtbl_address): Remove call to assemble_external.
21780
21781 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
21782
21783         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
21784         output for other floating point modes.
21785
21786 2009-04-14  Diego Novillo  <dnovillo@google.com>
21787
21788         * diagnostic.c (diagnostic_report_diagnostic): Do not
21789         warn about loaded plugins for DK_ERROR and DK_WARNING.
21790         * c-decl.c (declspecs_add_type): Move call to
21791         invoke_plugin_callbacks ...
21792         * c-parser.c (c_parser_declspecs): ... here.
21793         * plugin.c (dump_active_plugins): Tidy output.
21794
21795 2009-04-14  Diego Novillo  <dnovillo@google.com>
21796             Le-Chun Wu  <lcwu@google.com>
21797
21798         * configure.ac: Add --enable-plugin support.
21799         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
21800         * Makefile.in (PLUGIN_H): Define.
21801         Export ENABLE_PLUGIN and GMPINC to site.exp.
21802         Add PLUGINLIBS to link command.
21803         Add/modify dependencies for plugin.o and files including plugin.h.
21804         (plugin.o): New.
21805         * config.in: Regenerate.
21806
21807         * opts.c (common_handle_option): Handle OPT_fplugin_ and
21808         OPT_fplugin_arg_.
21809
21810 2009-04-14  Le-Chun Wu  <lcwu@google.com>
21811
21812         * tree-pass.h (register_one_dump_file): Add a prototype for
21813         register_one_dump_file.
21814         * toplev.c (compile_file): Call initialize_plugins.
21815         (do_compile): Call invoke_plugin_callbacks.
21816         (toplev_main): Call invoke_plugin_callbacks.
21817         * common.opt: Add -fplugin= and -fplugin-arg-.
21818         * gcc-plugin.h: New public header file for plugins to include.
21819         * plugin.c: New source file.
21820         * plugin.h: New internal header file.
21821         * passes.c (register_one_dump_file): Make it external.
21822
21823         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
21824
21825 2009-04-14  Diego Novillo  <dnovillo@google.com>
21826
21827         * doc/plugins.texi: New.
21828         * doc/gccint.texi: Add reference to Plugins chapter.
21829         * doc/invoke.texi: Document -fplugin and -fplugin-arg
21830         * diagnostic.c (diagnostic_report_diagnostic): Warn about
21831         loaded plugins, if any.
21832         * timevar.def (TV_PLUGIN_INIT): Define.
21833         (TV_PLUGIN_RUN): Define.
21834         * plugin.c: Include timevar.h
21835         (plugins_active_p): New.
21836         (dump_active_plugins): New.
21837         (debug_active_plugins): New.
21838
21839 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
21840
21841         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
21842         library paths.
21843         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
21844
21845 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
21846
21847         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
21848         the same as a minus without a shift.
21849
21850 2009-04-14  Nick Clifton  <nickc@redhat.com>
21851
21852         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
21853         comparisons with small integers will always produce a short
21854         branch.
21855
21856 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
21857
21858         Merge:
21859         2008-12-19  Diego Novillo  <dnovillo@google.com>
21860
21861         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
21862
21863 2009-04-14  Richard Guenther  <rguenther@suse.de>
21864
21865         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
21866         verification.
21867         (verify_gimple_assign_binary): Likewise.  Handle shifts and
21868         rotates correctly.
21869         (verify_gimple_phi): Print the mismatched argument position.
21870         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
21871         Fix types.
21872         (vect_update_init_of_dr): Likewise.
21873         * matrix-reorg.c (transform_access_sites): Do what the
21874         comment suggests.
21875         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
21876
21877 2009-04-13  Michael Eager  <eager@eagercon.com>
21878
21879         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
21880         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
21881         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
21882         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
21883         remove duplicate config
21884
21885 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
21886
21887         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
21888         file_name:line_number type locator of the call site.
21889
21890 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
21891
21892         * genautomata.c: Put blank after comma.
21893         (automaton_decls): New.
21894         (struct unit_usage): Add comments to member next.
21895         (store_alt_unit_usage): Keep the list ordered.
21896         (unit_present_on_list_p, equal_alternatives_p): New.
21897         (check_regexp_units_distribution): Check units distribution
21898         correctness correctly.
21899         (main): Don't write automata if error is found.  Return correct
21900         exit code.
21901
21902         * config/m68k/cf.md (cfv4_ds): Remove.
21903         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
21904         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
21905
21906         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
21907         power4-load-ext, power4-store, power4-store-update,
21908         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
21909         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
21910         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
21911         power4-sqrt, power4-isync): Modify reservation to make correct
21912         unit distribution to automata.
21913
21914         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
21915         power5-store-update, power5-two, power5-three, power5-lmul,
21916         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
21917
21918 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
21919
21920         * except.c (pass_set_nothrow_function_flags): Set name and add
21921         TODO_dump_func.
21922         (set_nothrow_function_flags): Mention in the dump file when
21923         changing a function to nothrow.
21924
21925 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
21926
21927         PR/39066
21928         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
21929         instead of unsigned long.
21930
21931 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21932
21933         * config/arm/arm.c (return_used_this_function): Remove.
21934         (arm_output_function_prologue): Remove use of
21935         return_used_this_function.
21936         (output_return_instruction): Replace use of
21937         return_used_this_function
21938         by cfun->machine->return_used_this_function.
21939         (arm_output_epilogue): Likewise.
21940         (arm_output_function_epilogue): Likewise.
21941         (thumb_unexpanded_epilogue): Likewise.
21942         * config/arm/arm.h (struct machine_function):
21943         New member return_used_this_function.
21944
21945 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
21946
21947         * doc/install.texi: Correct description of default directory for
21948         --with-gxx-include-dir.
21949
21950 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21951
21952         * fold-const.c (build_range_check): Properly deal with enumeral and
21953         boolean base types.
21954
21955 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
21956
21957         * doc/invoke.texi (max_gcse_passes): Remove documentation.
21958         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
21959         * params.h (MAX_GCSE_PASSES): Remove.
21960         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
21961         in sequence.  Remove ability to run multiple passes.
21962         (bypass_jumps): Report run as third CPROP pass.
21963
21964 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
21965
21966         PR middle-end/39651
21967         * except.c (can_throw_external): Look at each insn in a SEQUENCE
21968         when deciding whether the whole SEQUENCE can throw.
21969
21970 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
21971
21972         PR target/39740
21973         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
21974         offseted label references.
21975
21976 2009-04-11  Jan Hubicka  <jh@suse.cz>
21977
21978         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
21979
21980 2009-04-11  Richard Guenther  <rguenther@suse.de>
21981
21982         PR middle-end/39732
21983         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
21984         return variables as TREE_ADDRESSABLE.
21985
21986 2009-04-11  Richard Guenther  <rguenther@suse.de>
21987
21988         PR tree-optimization/39713
21989         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
21990         reference trees have SSA_NAME operands.
21991
21992 2009-04-11  Richard Guenther  <rguenther@suse.de>
21993
21994         PR c/39712
21995         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
21996         address expressions.
21997
21998 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
21999
22000         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
22001         match changes in Cygwin 1.7
22002         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
22003         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
22004
22005 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
22006
22007         PR tree-optimization/39701
22008         * doc/invoke.texi (Optimization Options): Document change in
22009         meaning and initialization of -fdelete-null-pointer-checks.
22010
22011 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22012
22013         PR middle-end/39701
22014         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
22015
22016         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
22017         here.
22018
22019         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
22020
22021 2009-04-10  Chao-ying Fu  <fu@mips.com>
22022
22023         * doc/tm.texi (Instruction Output): Document
22024         TARGET_ASM_FINAL_POSTSCAN_INSN.
22025         * target.h (final_postscan_insn): New field in asm_out.
22026         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22027         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
22028         * final.c (final_scan_insn): Call
22029         targetm.asm_out.final_postscan_insn after outputting
22030         an asm macro and a normal instruction.
22031
22032         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
22033         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
22034         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
22035         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
22036         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
22037
22038 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
22039
22040         PR middle-end/39701
22041         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
22042         variables as non-NULL even with -fdelete-null-pointer-checks.
22043
22044 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
22045
22046         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
22047
22048 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
22049
22050         PR target/39678
22051         * config/i386/i386.c (classify_argument): Handle SCmode with
22052         (bit_offset % 64) != 0.
22053
22054 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
22055
22056         * doc/invoke.texi (Optimize Options): Add cross-reference to
22057         -Q --help=optimizers examples.
22058
22059 2009-04-10  Ben Elliston  <bje@au.ibm.com>
22060
22061         PR target/36800
22062         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
22063         regalign for the reg == fpr and TDmode case.
22064
22065 2009-04-09  David Ayers  <ayers@fsfe.org>
22066
22067         PR objc/29200
22068         * objc/objc-act.c (warn_with_method): Remove helper function.
22069         (check_duplicates): Call warning and inform directly.
22070         (really_start_method): Likewise.
22071
22072 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22073
22074         * expmed.c (expand_divmod): Always use a comparison for a division
22075         by a large unsigned integer.
22076
22077         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
22078         for things others than variables or functions as nonzero.
22079
22080 2009-04-09  Nick Clifton  <nickc@redhat.com>
22081
22082         * unwind-compat.c: Change copyright header to refer to version
22083         3 of the GNU General Public License with version 3.1 of the
22084         GCC Runtime Library Exception and to point readers at the
22085         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
22086         * config/alpha/crtfastmath.c: Likewise.
22087         * config/alpha/linux-unwind.h: Likewise.
22088         * config/alpha/qrnnd.asm: Likewise.
22089         * config/alpha/vms-crt0-64.c: Likewise.
22090         * config/alpha/vms-crt0.c: Likewise.
22091         * config/alpha/vms-dwarf2.asm: Likewise.
22092         * config/alpha/vms-dwarf2eh.asm: Likewise.
22093         * config/alpha/vms-psxcrt0-64.c: Likewise.
22094         * config/alpha/vms-psxcrt0.c: Likewise.
22095         * config/alpha/vms_tramp.asm: Likewise.
22096         * config/arc/initfini.c: Likewise.
22097         * config/arc/lib1funcs.asm: Likewise.
22098         * config/arm/bpabi-v6m.S: Likewise.
22099         * config/arm/bpabi.S: Likewise.
22100         * config/arm/bpabi.c: Likewise.
22101         * config/arm/crti.asm: Likewise.
22102         * config/arm/crtn.asm: Likewise.
22103         * config/arm/ieee754-df.S: Likewise.
22104         * config/arm/ieee754-sf.S: Likewise.
22105         * config/arm/lib1funcs.asm: Likewise.
22106         * config/arm/libunwind.S: Likewise.
22107         * config/arm/linux-atomic.c: Likewise.
22108         * config/arm/mmintrin.h: Likewise.
22109         * config/arm/pr-support.c: Likewise.
22110         * config/arm/unaligned-funcs.c: Likewise.
22111         * config/arm/unwind-arm.c: Likewise.
22112         * config/arm/unwind-arm.h: Likewise.
22113         * config/avr/libgcc.S: Likewise.
22114         * config/bfin/crti.s: Likewise.
22115         * config/bfin/crtlibid.s: Likewise.
22116         * config/bfin/crtn.s: Likewise.
22117         * config/bfin/lib1funcs.asm: Likewise.
22118         * config/bfin/linux-unwind.h: Likewise.
22119         * config/cris/arit.c: Likewise.
22120         * config/cris/cris_abi_symbol.c: Likewise.
22121         * config/darwin-64.c: Likewise.
22122         * config/darwin-crt2.c: Likewise.
22123         * config/darwin-crt3.c: Likewise.
22124         * config/darwin.h: Likewise.
22125         * config/dbxelf.h: Likewise.
22126         * config/dfp-bit.c: Likewise.
22127         * config/dfp-bit.h: Likewise.
22128         * config/elfos.h: Likewise.
22129         * config/fixed-bit.c: Likewise.
22130         * config/fixed-bit.h: Likewise.
22131         * config/fp-bit.c: Likewise.
22132         * config/fp-bit.h: Likewise.
22133         * config/fr30/crti.asm: Likewise.
22134         * config/fr30/crtn.asm: Likewise.
22135         * config/fr30/lib1funcs.asm: Likewise.
22136         * config/freebsd-spec.h: Likewise.
22137         * config/frv/cmovd.c: Likewise.
22138         * config/frv/cmovh.c: Likewise.
22139         * config/frv/cmovw.c: Likewise.
22140         * config/frv/frvbegin.c: Likewise.
22141         * config/frv/frvend.c: Likewise.
22142         * config/frv/lib1funcs.asm: Likewise.
22143         * config/glibc-stdint.h: Likewise.
22144         * config/h8300/clzhi2.c: Likewise.
22145         * config/h8300/crti.asm: Likewise.
22146         * config/h8300/crtn.asm: Likewise.
22147         * config/h8300/ctzhi2.c: Likewise.
22148         * config/h8300/fixunssfsi.c: Likewise.
22149         * config/h8300/lib1funcs.asm: Likewise.
22150         * config/h8300/parityhi2.c: Likewise.
22151         * config/h8300/popcounthi2.c: Likewise.
22152         * config/i386/ammintrin.h: Likewise.
22153         * config/i386/att.h: Likewise.
22154         * config/i386/avxintrin.h: Likewise.
22155         * config/i386/biarch64.h: Likewise.
22156         * config/i386/bmmintrin.h: Likewise.
22157         * config/i386/cpuid.h: Likewise.
22158         * config/i386/cross-stdarg.h: Likewise.
22159         * config/i386/crtfastmath.c: Likewise.
22160         * config/i386/crtprec.c: Likewise.
22161         * config/i386/cygming-crtbegin.c: Likewise.
22162         * config/i386/cygming-crtend.c: Likewise.
22163         * config/i386/cygwin.asm: Likewise.
22164         * config/i386/emmintrin.h: Likewise.
22165         * config/i386/gmm_malloc.h: Likewise.
22166         * config/i386/gthr-win32.c: Likewise.
22167         * config/i386/i386.h: Likewise.
22168         * config/i386/immintrin.h: Likewise.
22169         * config/i386/linux-unwind.h: Likewise.
22170         * config/i386/linux64.h: Likewise.
22171         * config/i386/mm3dnow.h: Likewise.
22172         * config/i386/mmintrin-common.h: Likewise.
22173         * config/i386/mmintrin.h: Likewise.
22174         * config/i386/nmmintrin.h: Likewise.
22175         * config/i386/pmm_malloc.h: Likewise.
22176         * config/i386/pmmintrin.h: Likewise.
22177         * config/i386/smmintrin.h: Likewise.
22178         * config/i386/sol2-c1.asm: Likewise.
22179         * config/i386/sol2-ci.asm: Likewise.
22180         * config/i386/sol2-cn.asm: Likewise.
22181         * config/i386/sol2-gc1.asm: Likewise.
22182         * config/i386/tmmintrin.h: Likewise.
22183         * config/i386/unix.h: Likewise.
22184         * config/i386/w32-unwind.h: Likewise.
22185         * config/i386/wmmintrin.h: Likewise.
22186         * config/i386/x86-64.h: Likewise.
22187         * config/i386/x86intrin.h: Likewise.
22188         * config/i386/xmmintrin.h: Likewise.
22189         * config/ia64/crtbegin.asm: Likewise.
22190         * config/ia64/crtend.asm: Likewise.
22191         * config/ia64/crtfastmath.c: Likewise.
22192         * config/ia64/crti.asm: Likewise.
22193         * config/ia64/crtn.asm: Likewise.
22194         * config/ia64/fde-glibc.c: Likewise.
22195         * config/ia64/lib1funcs.asm: Likewise.
22196         * config/ia64/linux-unwind.h: Likewise.
22197         * config/ia64/quadlib.c: Likewise.
22198         * config/ia64/unwind-ia64.c: Likewise.
22199         * config/linux.h: Likewise.
22200         * config/m32c/m32c-lib1.S: Likewise.
22201         * config/m32c/m32c-lib2-trapv.c: Likewise.
22202         * config/m32c/m32c-lib2.c: Likewise.
22203         * config/m32r/initfini.c: Likewise.
22204         * config/m68hc11/larith.asm: Likewise.
22205         * config/m68hc11/m68hc11-crt0.S: Likewise.
22206         * config/m68k/cf.md: Likewise.
22207         * config/m68k/crti.s: Likewise.
22208         * config/m68k/crtn.s: Likewise.
22209         * config/m68k/lb1sf68.asm: Likewise.
22210         * config/m68k/linux-unwind.h: Likewise.
22211         * config/mcore/crti.asm: Likewise.
22212         * config/mcore/crtn.asm: Likewise.
22213         * config/mcore/lib1.asm: Likewise.
22214         * config/mips/linux-unwind.h: Likewise.
22215         * config/mips/loongson.h: Likewise.
22216         * config/mips/mips16.S: Likewise.
22217         * config/mmix/crti.asm: Likewise.
22218         * config/mmix/crtn.asm: Likewise.
22219         * config/pa/fptr.c: Likewise.
22220         * config/pa/hpux-unwind.h: Likewise.
22221         * config/pa/lib2funcs.asm: Likewise.
22222         * config/pa/linux-atomic.c: Likewise.
22223         * config/pa/linux-unwind.h: Likewise.
22224         * config/pa/milli64.S: Likewise.
22225         * config/pa/quadlib.c: Likewise.
22226         * config/pa/stublib.c: Likewise.
22227         * config/picochip/libgccExtras/adddi3.asm: Likewise.
22228         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
22229         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
22230         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
22231         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
22232         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
22233         * config/picochip/libgccExtras/divmod15.asm: Likewise.
22234         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
22235         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
22236         * config/picochip/libgccExtras/longjmp.asm: Likewise.
22237         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
22238         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
22239         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
22240         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
22241         * config/picochip/libgccExtras/setjmp.asm: Likewise.
22242         * config/picochip/libgccExtras/subdi3.asm: Likewise.
22243         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
22244         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
22245         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
22246         * config/rs6000/750cl.h: Likewise.
22247         * config/rs6000/altivec.h: Likewise.
22248         * config/rs6000/biarch64.h: Likewise.
22249         * config/rs6000/crtresfpr.asm: Likewise.
22250         * config/rs6000/crtresgpr.asm: Likewise.
22251         * config/rs6000/crtresxfpr.asm: Likewise.
22252         * config/rs6000/crtresxgpr.asm: Likewise.
22253         * config/rs6000/crtsavfpr.asm: Likewise.
22254         * config/rs6000/crtsavgpr.asm: Likewise.
22255         * config/rs6000/darwin-asm.h: Likewise.
22256         * config/rs6000/darwin-fallback.c: Likewise.
22257         * config/rs6000/darwin-fpsave.asm: Likewise.
22258         * config/rs6000/darwin-ldouble.c: Likewise.
22259         * config/rs6000/darwin-tramp.asm: Likewise.
22260         * config/rs6000/darwin-unwind.h: Likewise.
22261         * config/rs6000/darwin-vecsave.asm: Likewise.
22262         * config/rs6000/darwin-world.asm: Likewise.
22263         * config/rs6000/e500crtres32gpr.asm: Likewise.
22264         * config/rs6000/e500crtres64gpr.asm: Likewise.
22265         * config/rs6000/e500crtres64gprctr.asm: Likewise.
22266         * config/rs6000/e500crtrest32gpr.asm: Likewise.
22267         * config/rs6000/e500crtrest64gpr.asm: Likewise.
22268         * config/rs6000/e500crtresx32gpr.asm: Likewise.
22269         * config/rs6000/e500crtresx64gpr.asm: Likewise.
22270         * config/rs6000/e500crtsav32gpr.asm: Likewise.
22271         * config/rs6000/e500crtsav64gpr.asm: Likewise.
22272         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
22273         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
22274         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
22275         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
22276         * config/rs6000/eabi-ci.asm: Likewise.
22277         * config/rs6000/eabi-cn.asm: Likewise.
22278         * config/rs6000/eabi.asm: Likewise.
22279         * config/rs6000/linux-unwind.h: Likewise.
22280         * config/rs6000/linux64.h: Likewise.
22281         * config/rs6000/paired.h: Likewise.
22282         * config/rs6000/paired.md: Likewise.
22283         * config/rs6000/ppc64-fp.c: Likewise.
22284         * config/rs6000/ppu_intrinsics.h: Likewise.
22285         * config/rs6000/rs6000.h: Likewise.
22286         * config/rs6000/si2vmx.h: Likewise.
22287         * config/rs6000/sol-ci.asm: Likewise.
22288         * config/rs6000/sol-cn.asm: Likewise.
22289         * config/rs6000/spe.h: Likewise.
22290         * config/rs6000/spu2vmx.h: Likewise.
22291         * config/rs6000/sysv4.h: Likewise.
22292         * config/rs6000/tramp.asm: Likewise.
22293         * config/rs6000/vec_types.h: Likewise.
22294         * config/s390/linux-unwind.h: Likewise.
22295         * config/s390/tpf-unwind.h: Likewise.
22296         * config/score/crti.asm: Likewise.
22297         * config/score/crtn.asm: Likewise.
22298         * config/sh/crt1.asm: Likewise.
22299         * config/sh/crti.asm: Likewise.
22300         * config/sh/crtn.asm: Likewise.
22301         * config/sh/divtab-sh4-300.c: Likewise.
22302         * config/sh/divtab-sh4.c: Likewise.
22303         * config/sh/divtab.c: Likewise.
22304         * config/sh/lib1funcs-4-300.asm: Likewise.
22305         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
22306         * config/sh/lib1funcs.asm: Likewise.
22307         * config/sh/lib1funcs.h: Likewise.
22308         * config/sh/linux-atomic.asm: Likewise.
22309         * config/sh/linux-unwind.h: Likewise.
22310         * config/sh/shmedia.h: Likewise.
22311         * config/sh/sshmedia.h: Likewise.
22312         * config/sh/ushmedia.h: Likewise.
22313         * config/sparc/crtfastmath.c: Likewise.
22314         * config/sparc/linux-unwind.h: Likewise.
22315         * config/sparc/sol2-c1.asm: Likewise.
22316         * config/sparc/sol2-ci.asm: Likewise.
22317         * config/sparc/sol2-cn.asm: Likewise.
22318         * config/spu/divmodti4.c: Likewise.
22319         * config/spu/divv2df3.c: Likewise.
22320         * config/spu/float_disf.c: Likewise.
22321         * config/spu/float_unsdidf.c: Likewise.
22322         * config/spu/float_unsdisf.c: Likewise.
22323         * config/spu/float_unssidf.c: Likewise.
22324         * config/spu/mfc_multi_tag_release.c: Likewise.
22325         * config/spu/mfc_multi_tag_reserve.c: Likewise.
22326         * config/spu/mfc_tag_release.c: Likewise.
22327         * config/spu/mfc_tag_reserve.c: Likewise.
22328         * config/spu/mfc_tag_table.c: Likewise.
22329         * config/spu/multi3.c: Likewise.
22330         * config/spu/spu_internals.h: Likewise.
22331         * config/spu/spu_intrinsics.h: Likewise.
22332         * config/spu/spu_mfcio.h: Likewise.
22333         * config/spu/vec_types.h: Likewise.
22334         * config/spu/vmx2spu.h: Likewise.
22335         * config/stormy16/stormy16-lib2.c: Likewise.
22336         * config/svr4.h: Likewise.
22337         * config/sync.c: Likewise.
22338         * config/v850/lib1funcs.asm: Likewise.
22339         * config/vxlib-tls.c: Likewise.
22340         * config/vxlib.c: Likewise.
22341         * config/vxworks-dummy.h: Likewise.
22342         * config/xtensa/crti.asm: Likewise.
22343         * config/xtensa/crtn.asm: Likewise.
22344         * config/xtensa/ieee754-df.S: Likewise.
22345         * config/xtensa/ieee754-sf.S: Likewise.
22346         * config/xtensa/lib1funcs.asm: Likewise.
22347         * config/xtensa/lib2funcs.S: Likewise.
22348         * config/xtensa/linux-unwind.h: Likewise.
22349         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
22350         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
22351         * coretypes.h: Likewise.
22352         * crtstuff.c: Likewise.
22353         * defaults.h: Likewise.
22354         * dwarf2.h: Likewise.
22355         * emutls.c: Likewise.
22356         * gbl-ctors.h: Likewise.
22357         * gcov-io.h: Likewise.
22358         * ginclude/float.h: Likewise.
22359         * ginclude/iso646.h: Likewise.
22360         * ginclude/stdarg.h: Likewise.
22361         * ginclude/stdbool.h: Likewise.
22362         * ginclude/stddef.h: Likewise.
22363         * ginclude/stdfix.h: Likewise.
22364         * ginclude/stdint-gcc.h: Likewise.
22365         * ginclude/tgmath.h: Likewise.
22366         * gthr-aix.h: Likewise.
22367         * gthr-dce.h: Likewise.
22368         * gthr-gnat.c: Likewise.
22369         * gthr-gnat.h: Likewise.
22370         * gthr-lynx.h: Likewise.
22371         * gthr-mipssde.h: Likewise.
22372         * gthr-nks.h: Likewise.
22373         * gthr-posix.c: Likewise.
22374         * gthr-posix.h: Likewise.
22375         * gthr-posix95.h: Likewise.
22376         * gthr-rtems.h: Likewise.
22377         * gthr-single.h: Likewise.
22378         * gthr-solaris.h: Likewise.
22379         * gthr-tpf.h: Likewise.
22380         * gthr-vxworks.h: Likewise.
22381         * gthr-win32.h: Likewise.
22382         * gthr.h: Likewise.
22383         * libgcc2.c: Likewise.
22384         * libgcc2.h: Likewise.
22385         * libgcov.c: Likewise.
22386         * tsystem.h: Likewise.
22387         * typeclass.h: Likewise.
22388         * unwind-c.c: Likewise.
22389         * unwind-compat.h: Likewise.
22390         * unwind-dw2-fde-compat.c: Likewise.
22391         * unwind-dw2-fde-darwin.c: Likewise.
22392         * unwind-dw2-fde-glibc.c: Likewise.
22393         * unwind-dw2-fde.c: Likewise.
22394         * unwind-dw2-fde.h: Likewise.
22395         * unwind-dw2.c: Likewise.
22396         * unwind-dw2.h: Likewise.
22397         * unwind-generic.h: Likewise.
22398         * unwind-pe.h: Likewise.
22399         * unwind-sjlj.c: Likewise.
22400         * unwind.inc: Likewise.
22401         * config/arm/neon-gen.ml: Change generated copyright header to
22402         refer to version 3 of the GNU General Public License with
22403         version 3.1 of the GCC Runtime Library Exception and to point
22404         readers at the COPYING3 and COPYING3.RUNTIME files and the
22405         FSF's license web page.
22406         * config/arm/arm_neon.h: Regenerate.
22407
22408 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
22409
22410         * config/cris/cris.md: Change copyright header to refer to version
22411         3 of the GNU General Public License.
22412         * doc/install.texi2html: Change copyright header to refer to version
22413         3 of the GNU General Public License and to point readers at the
22414         COPYING3 file and the FSF's license web page.
22415         * config/vax/linux.h: Likewise.
22416
22417 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
22418
22419         * config/i386/i386.md (cmpcc): New.
22420         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
22421         (sync_compare_and_swap_cc*): Delete.
22422
22423         * config/s390/s390.c (s390_compare_emitted): Remove.
22424         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
22425         s390_compare_emitted used to be handled.  Assert that modes match.
22426         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
22427         refer to sync_compare_and_swap_ccsi.
22428         * config/s390/s390.h (s390_compare_emitted): Remove.
22429         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
22430         instead of s390_compare_emitted.
22431         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
22432         instead of s390_compare_emitted.
22433         * config/s390/s390.md (cmpcc): New.
22434         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
22435         CC_REGNUM, do not pretend it's set.
22436         (sync_compare_and_swap_cc*): Delete.
22437         * config/s390/predicates.md (cc_reg_operand): New.
22438
22439         * expr.c (sync_compare_and_swap_cc): Delete.
22440         * optabs.h (sync_compare_and_swap_cc): Delete.
22441         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
22442         is being used with can_compare_p.
22443         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
22444         (find_cc_set): New.
22445         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
22446         look for a MODE_CC set instead.  Use emit_store_flag.
22447         (expand_compare_and_swap_loop): Likewise, with some additional
22448         complication to avoid a force_reg when useless.  Use
22449         emit_cmp_and_jump_insns.
22450         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
22451         * doc/md.texi (sync_compare_and_swap_cc): Merge with
22452         sync_compare_and_swap documentation.
22453
22454 2009-04-09  Jan Hubicka  <jh@suse.cz>
22455
22456         * except.c (find_prev_try): Break out from ....
22457         (duplicate_eh_regions): ... here; properly update prev_try pointers
22458         when duplication part of tree.
22459         (dump_eh_tree): Improve dumping.
22460         (verify_eh_region): New.
22461         (verify_eh_tree): Use it.
22462
22463 2009-04-06  Richard Guenther  <rguenther@suse.de>
22464
22465         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
22466         &ARRAY addresses by adjusting their types and prepending
22467         a conversion.
22468         * tree-cfg.c (verify_gimple_assign_single): Verify that
22469         addresses are correct.
22470
22471 2009-04-09  Richard Guenther  <rguenther@suse.de>
22472
22473         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
22474         indices into an array reference if possible.
22475         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
22476         Fold POINTER_PLUS_EXPR statements with invariant address.
22477
22478 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
22479
22480         PR target/39634
22481         * config.gcc (powerpc64-*-linux*): Always build biarch.
22482
22483 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
22484
22485         PR c/39613
22486         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
22487         it and pedwarn if this results in an INTEGER_CST.
22488
22489 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22490
22491         * doc/install.texi: Update minimum GMP version.  Remove obsolete
22492         text in MPFR section.
22493
22494 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
22495
22496         * dwarf2out.c (class_scope_p): New static inline.
22497         (class_or_namespace_scope_p): Use it.
22498         (gen_variable_die): Use DW_TAG_member tag for static data member
22499         declarations instead of DW_TAG_variable.
22500
22501         PR middle-end/39573
22502         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
22503         variables.
22504
22505 2009-04-08  Richard Guenther  <rguenther@suse.de>
22506
22507         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
22508         valueize random data.
22509
22510 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
22511
22512         * config.gcc (aix tm_file):  Add aix-stdint.h.
22513         (aix tm clause use_gcc_stdint):  Set to wrap.
22514         * config/rs6000/aix-stdint.h:  New file.
22515
22516 2009-04-08  Richard Guenther  <rguenther@suse.de>
22517
22518         PR middle-end/36291
22519         * tree-dfa.c (add_referenced_var): Do not recurse into
22520         global initializers.
22521         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
22522         exposed variables.
22523         (fold_const_aggregate_ref): Likewise.
22524
22525 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22526
22527         * recog.c (ordered_comparison_operator): New.
22528         * gensupport.c (std_preds): Add it.
22529         * doc/md.texi (Machine-Independent Predicates): Document it.
22530
22531 2009-04-08  Jan Hubicka  <jh@suse.cz>
22532
22533         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
22534         * function.h (rtl_eh): Remove exception_handler_label_map.
22535         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
22536         remove_exception_handler_label, for_each_eh_label_1): Remove.
22537         (rtl_remove_unreachable_regions): Remove.
22538         (convert_from_eh_region_ranges): Do not remove unreachable regions.
22539         (find_exception_handler_labels): Don't build the hashtable.
22540         (maybe_remove_eh_handler): Remove.
22541         (for_each_eh_label): Rewrite to walk the tree.
22542         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
22543         * except.h (maybe_remove_eh_handler): Remove.
22544         * passes.c (init_optimization_passes): Schedule second EH cleanup
22545         before out-of-ssa.
22546         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
22547         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
22548
22549 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
22550
22551         * genoutput.c (validate_optab_operands): New.
22552         (gen_insn, gen_expand): Call it.
22553
22554         * genflags.c (gen_insn): Detect misused iterators.
22555         (main): Pass line_no to gen_insn, exit with status 1 on error.
22556
22557         * genextract.c (line_no): Make global.
22558         (VEC_safe_set_locstr): Change assertion to error message.
22559         (main): Exit with status 1 on error.
22560
22561 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
22562
22563         PR c/39614
22564         PR c/39673
22565         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
22566         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
22567         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
22568         * c-convert.c (convert): Do not call fold on results of conversion
22569         functions when the result is a C_MAYBE_CONST_EXPR.
22570         * c-parser.c (c_parser_postfix_expression): Do not fold condition
22571         of __builtin_choose_expr.
22572         * c-typeck.c (remove_c_maybe_const_expr): New.
22573         (build_unary_op, build_conditional_expr, build_compound_expr,
22574         build_binary_op, c_objc_common_truthvalue_conversion): Call
22575         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
22576         integer operands.
22577
22578 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
22579
22580         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
22581         CODE to produce a new one. Add a prototype to use fold_convert_const
22582
22583 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
22584
22585         PR bootstrap/39660
22586         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
22587         mix declarations and code.
22588
22589 2009-04-08  Ben Elliston  <bje@au.ibm.com>
22590
22591         * gcc.c: Replace `CC' with `GCC' throughout.
22592
22593 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
22594
22595         * doc/invoke.texi: Document Atom support.
22596
22597 2009-04-07  Jason Merrill  <jason@redhat.com>
22598
22599         PR c++/25185
22600         * c-common.h, c-common.c: Add flag_pretty_templates.
22601         * c-opts.c (c_common_handle_option): Set it.
22602         * c.opt: Add -fno-pretty-templates.
22603         * doc/invoke.texi (C++ Dialect Options): Likewise.
22604
22605 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
22606
22607         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
22608         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
22609         (ia64_expand_builtin): Likewise.
22610
22611 2009-04-07  Martin Jambor  <mjambor@suse.cz>
22612
22613         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
22614         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
22615         ADDR_EXPRS are include too.
22616
22617 2009-04-07  Richard Guenther  <rguenther@suse.de>
22618
22619         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
22620         decls are only used if passes as parameters or if they are
22621         local statics and the call is not to a builtin.
22622         (call_may_clobber_ref_p_1): Likewise.
22623
22624 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22625
22626         * expr.c (do_store_flag): Remove last argument.  Simplify code
22627         to avoid duplication of tests already done by can_compare_p.
22628         (expand_expr_real_1): Adjust caller.
22629
22630 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22631
22632         * optabs.c (can_compare_p): Test the predicate of a
22633         cbranch and cstore pattern.
22634
22635 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22636
22637         * expr.c (convert_move): Use emit_store_flag instead of
22638         "emulating" it.
22639
22640 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
22641
22642         * config/i386/i386.c (ix86_compare_emitted): Remove.
22643         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
22644         ix86_compare_op0 like ix86_compare_emitted used to be handled.
22645         * config/i386/i386.h (ix86_compare_emitted): Remove.
22646         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
22647         instead of ix86_compare_emitted.
22648         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
22649
22650 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
22651
22652         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
22653         Add t-sysroot-suffix to tmake_file.
22654         * config/print-sysroot-suffix.sh: New file.
22655         * config/t-sysroot-suffix: New file.
22656
22657 2009-04-07  Ben Elliston  <bje@au.ibm.com>
22658
22659         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
22660         as the latter produces a warning when the target does not support
22661         infinity.
22662
22663 2009-04-07  Ben Elliston  <bje@au.ibm.com>
22664
22665         * dfp.c: Replace type punning assignments with memcpy throughout.
22666         * Makefile.in (dfp.o-warn): Remove.
22667
22668 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
22669
22670         PR target/39634
22671         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
22672         Include soft-fp/t-softfp after rs6000/t-linux64.
22673
22674 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
22675
22676         * stor-layout.c (set_sizetype): Use the full precision of their
22677         machine mode for bitsize types.
22678
22679 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
22680
22681         * config/i386/i386.md: Revert 2 accidental checkins.
22682
22683 2009-04-06  Joey Ye  <joey.ye@intel.com>
22684             Xuepeng Guo  <xuepeng.guo@intel.com>
22685             H.J. Lu  <hongjiu.lu@intel.com>
22686
22687         Atom pipeline model, tuning and insn selection.
22688         * config.gcc (atom): Add atom config options and target.
22689
22690         * config/i386/atom.md: New.
22691
22692         * config/i386/i386.c (atom_cost): New cost.
22693         (m_ATOM): New macro flag.
22694         (initial_ix86_tune_features): Set m_ATOM.
22695         (x86_accumulate_outgoing_args): Likewise.
22696         (x86_arch_always_fancy_math_387): Likewise.
22697         (processor_target): Add Atom cost.
22698         (cpu_names): Add Atom cpu name.
22699         (override_options): Set Atom ISA.
22700         (ix86_issue_rate): New case PROCESSOR_ATOM.
22701         (ix86_adjust_cost): Likewise.
22702
22703         * config/i386/i386.h (TARGET_ATOM): New target macro.
22704         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
22705         (TARGET_OPT_AGU): New target option.
22706         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
22707         (processor_type): Add PROCESSOR_ATOM.
22708
22709         * config/i386/i386.md (cpu): Add new value "atom".
22710         (use_carry, movu): New attr.
22711         (atom.md): Include atom.md.
22712         (adddi3_carry_rex64): Set attr "use_carry".
22713         (addqi3_carry): Likewise.
22714         (addhi3_carry): Likewise.
22715         (addsi3_carry): Likewise.
22716         (*addsi3_carry_zext): Likewise.
22717         (subdi3_carry_rex64): Likewise.
22718         (subqi3_carry): Likewise.
22719         (subhi3_carry): Likewise.
22720         (subsi3_carry): Likewise.
22721         (x86_movdicc_0_m1_rex64): Likewise.
22722         (*x86_movdicc_0_m1_se): Likewise.
22723         (x86_movsicc_0_m1): Likewise.
22724         (*x86_movsicc_0_m1_se): Likewise.
22725         (*adddi_1_rex64): Emit add insn as much as possible.
22726         (*addsi_1): Likewise.
22727         (return_internal): Set atom_unit.
22728         (return_internal_long): Likewise.
22729         (return_pop_internal): Likewise.
22730         (*rcpsf2_sse): Set atom_sse_attr attr.
22731         (*qrt<mode>2_sse): Likewise.
22732         (*prefetch_sse): Likewise.
22733
22734         * config/i386/i386-c.c (ix86_target_macros_internal): New case
22735         PROCESSOR_ATOM.
22736         (ix86_target_macros_internal): Likewise.
22737
22738         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
22739         (*prefetch_sse_rex): Likewise.
22740         (sse_rcpv4sf2): Likewise.
22741         (sse_vmrcpv4sf2): Likewise.
22742         (sse_sqrtv4sf2): Likewise.
22743         (<sse>_vmsqrt<mode>2): Likewise.
22744         (sse_ldmxcsr): Likewise.
22745         (sse_stmxcsr): Likewise.
22746         (*sse_sfence): Likewise.
22747         (sse2_clflush): Likewise.
22748         (*sse2_mfence): Likewise.
22749         (*sse2_lfence): Likewise.
22750         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
22751         (<sse>_movup<ssemodesuffixf2c>): Likewise.
22752         (avx_movdqu<avxmodesuffix>): Likewise.
22753         (avx_lddqu<avxmodesuffix>): Likewise.
22754         (sse2_movntv2di): Change attr "type" to "ssemov".
22755         (sse2_movntsi): Likewise.
22756         (rsqrtv8sf2): Change attr "type" to "sseadd".
22757         (sse3_addsubv2df3): Set attr "atom_unit".
22758         (sse3_h<plusminus_insn>v4sf3): Likewise.
22759         (*sse2_pmaddwd): Likewise.
22760         (*vec_extractv2di_1_rex64): Likewise.
22761         (*vec_extractv2di_1_avx): Likewise.
22762         (sse2_psadbw): Likewise.
22763         (ssse3_phaddwv8hi3): Likewise.
22764         (ssse3_phaddwv4hi3): Likewise.
22765         (ssse3_phadddv4si3): Likewise.
22766         (ssse3_phadddv2si3): Likewise.
22767         (ssse3_phaddswv8hi3): Likewise.
22768         (ssse3_phaddswv4hi3): Likewise.
22769         (ssse3_phsubwv8hi3): Likewise.
22770         (ssse3_phsubwv4hi3): Likewise.
22771         (ssse3_phsubdv4si3): Likewise.
22772         (ssse3_phsubdv2si3): Likewise.
22773         (ssse3_phsubswv8hi3): Likewise.
22774         (ssse3_phsubswv4hi3): Likewise.
22775         (ssse3_pmaddubsw128): Likewise.
22776         (sse3_pmaddubsw: Likewise.
22777         (ssse3_palignrti): Likewise.
22778         (ssse3_palignrdi): Likewise.
22779
22780 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
22781
22782         * doc/install.texi (Specific): Fix two cross-references to MinGW.
22783
22784 2009-04-06  Richard Guenther  <rguenther@suse.de>
22785
22786         PR tree-optimization/28868
22787         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
22788         of which PHI results we inserted.
22789         (insert_into_preds_of_block): Record inserted PHIs.
22790         (eliminate): Eliminate redundant PHI nodes.
22791         (init_pre): Init inserted_phi_names.
22792
22793 2009-04-06  Richard Guenther  <rguenther@suse.de>
22794
22795         PR tree-optimization/39643
22796         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
22797         IMAGPART_EXPRs of complex constants.
22798         (execute_fold_all_builtins): If we folded a call queue
22799         TODO_update_address_taken.
22800
22801 2009-04-06  Jan Hubicka  <jh@suse.cz>
22802
22803         PR middle-end/39659
22804         * except.c (remove_unreachable_regions): Propagate may_contain_throw
22805         flag.
22806
22807 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
22808
22809         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
22810         delay slot.
22811         (ic_invalidate_array): Likewise.
22812
22813 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
22814
22815         * calls.c (emit_library_call_value_1): Fix a problem with parameter
22816         alignment for library calls.
22817
22818 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
22819
22820         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
22821         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
22822         * config/i386/mingw-stdint.h:  New file.
22823
22824 2009-04-05  Richard Guenther  <rguenther@suse.de>
22825
22826         PR tree-optimization/39648
22827         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
22828         our &A vs. &A[0] IL deficiencies.
22829
22830 2009-04-04  Jan Hubicka  <jh@suse.cz>
22831
22832         * except.c (sjlj_find_directly_reachable_regions): Be ready for
22833         removed toplevel regions.
22834         (sjlj_mark_call_sites): Likewise.
22835
22836 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
22837
22838         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
22839         (cygwin tm clause use_gcc_stdint):  Set to wrap.
22840         * config/i386/cygwin-stdint.h:  New file.
22841
22842 2009-04-04  Richard Guenther  <rguenther@suse.de>
22843
22844         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
22845         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
22846         single-argument PHIs if we are in loop-closed SSA form.
22847         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
22848         for the pre-condition.
22849         (slpeel_tree_peel_loop_to_edge): Likewise.
22850         (vect_build_loop_niters): Take an optional sequence to append stmts.
22851         (vect_generate_tmps_on_preheader): Likewise.
22852         (vect_do_peeling_for_loop_bound): Take extra guards for the
22853         pre-condition.
22854         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
22855         the cost model check.
22856         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
22857         guards if we are going to peel.  Do not apply versioning in that case.
22858         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
22859         (vect_do_peeling_for_loop_bound): Likewise.
22860         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
22861         loop bound only record extra pre-conditions, do not apply loop
22862         versioning.
22863
22864 2009-04-04  Richard Guenther  <rguenther@suse.de>
22865
22866         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
22867         renaming code.
22868
22869 2009-04-04  Jan Hubicka  <jh@suse.cz>
22870
22871         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
22872         last_basic_block for size of bb->index indexed array.
22873         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
22874         compute_out, link_btr_uses, build_btr_def_use_webs,
22875         build_btr_def_use_webs, migrate_btr_defs): Likewise.
22876
22877 2009-04-04  Jan Hubicka  <jh@suse.cz>
22878
22879         * except.c (remove_eh_handler_and_replace): Break out from ...
22880         (remove_eh_handler): ... here.
22881         (bring_to_root): New function.
22882         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
22883         handled ones, bring others to root of tree.
22884
22885 2009-04-04  Jan Hubicka  <jh@suse.cz>
22886
22887         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
22888         (all_phis_safe_to_merge): New function.
22889         (update_info): New structure.
22890         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
22891         (cleanup_empty_eh): Update SSA if possible.
22892
22893 2009-04-04  Richard Guenther  <rguenther@suse.de>
22894
22895         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
22896         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
22897         (append_vuse): Likewise.
22898
22899 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
22900
22901         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
22902         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
22903         instead of REG_UNSAVED for DW_CFA_undefined.
22904         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
22905         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
22906         outermost frame.
22907
22908 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
22909
22910         PR target/39501
22911         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
22912
22913 2009-04-04  Richard Guenther  <rguenther@suse.de>
22914
22915         PR tree-optimization/8781
22916         PR tree-optimization/37892
22917         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
22918         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
22919         (valueize_refs): Call it for *& valueizations.
22920         (shared_reference_ops_from_ref): Rename to ...
22921         (valueize_shared_reference_ops_from_ref): ... this and valueize.
22922         (shared_reference_ops_from_call): Rename to ...
22923         (valueize_shared_reference_ops_from_call): ... this and valueize.
22924         (vn_reference_lookup): Update.
22925         (visit_reference_op_call): Likewise.
22926         * tree-ssa-pre.c (phi_translate_1): Fold *&.
22927         (eliminate): Value-replace the call address in call statements.
22928
22929 2009-04-04  Richard Guenther  <rguenther@suse.de>
22930
22931         PR tree-optimization/39636
22932         * tree-ssa-forwprop.c
22933         (forward_propagate_addr_into_variable_array_index): Check for
22934         GIMPLE_ASSIGN before accessing the rhs code.
22935
22936 2009-04-03  Jason Merrill  <jason@redhat.com>
22937
22938         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
22939
22940 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
22941
22942         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
22943         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
22944         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
22945         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
22946         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
22947         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
22948         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
22949         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
22950         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
22951         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
22952         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
22953         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
22954         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
22955         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
22956         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
22957         Use fr_reg_or_fp01_operand instead of fr_register_operand
22958
22959         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
22960         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
22961         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
22962
22963 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
22964
22965         PR rtl-optimization/39607
22966         PR rtl-optimization/39631
22967
22968         Revert:
22969
22970         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
22971         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
22972         instead of DF_LR_OUT.
22973         * ira-lives.c (process_bb_node_lives): Ditto.
22974         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
22975         instead of DF_LR_{OUT,IN}.
22976         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
22977         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
22978
22979 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
22980
22981         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
22982         (execute_lower_omp): Always run but take the short way out if -fopenmp
22983         is not given.
22984         (gate_lower_omp): Remove, forcing the pass manager to always run the
22985         pass and always set PROP_gimple_lomp.
22986         (pass_lower_omp): Remove gate function.
22987         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
22988         PROP_trees.  Instead, require it.
22989         * ipa-cp.c (pass_ipa_cp): Likewise.
22990         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
22991         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
22992         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
22993         and PROP_gimple_leh.
22994
22995 2009-04-03  Richard Guenther  <rguenther@suse.de>
22996
22997         PR middle-end/13146
22998         PR tree-optimization/23940
22999         PR tree-optimization/33237
23000         PR middle-end/33974
23001         PR middle-end/34093
23002         PR tree-optimization/36201
23003         PR tree-optimization/36230
23004         PR tree-optimization/38049
23005         PR tree-optimization/38207
23006         PR tree-optimization/38230
23007         PR tree-optimization/38301
23008         PR tree-optimization/38585
23009         PR middle-end/38895
23010         PR tree-optimization/38985
23011         PR tree-optimization/39299
23012         * tree-ssa-structalias.h: Remove.
23013         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
23014         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
23015         (struct vuse_element_d): Remove.
23016         (struct vuse_vec_d): Likewise.
23017         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
23018         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
23019         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
23020         VUSE_ELEMENT_VAR): Likewise.
23021         (struct voptype_d): Likewise.
23022         (NUM_VOP_FREE_BUCKETS): Likewise.
23023         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
23024         (struct stmt_operands_d): Remove.
23025         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
23026         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
23027         VDEF_NUM, VDEF_VECT): Likewise.
23028         (copy_virtual_operands): Remove.
23029         (operand_build_cmp): Likewise.
23030         (create_ssa_artificial_load_stmt): Likewise.
23031         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
23032         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
23033         vuse_index and mayuse_index members.  Pack and move done and iter_type
23034         members to the front.
23035         (SSA_OP_VMAYUSE): Remove.
23036         (SSA_OP_VIRTUAL_USES): Adjust.
23037         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
23038         (unlink_stmt_vdef): Declare.
23039         (add_to_addressable_set): Remove.
23040         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
23041         (vrp_visit_stmt): Likewise.
23042         * doc/tree-ssa.texi (Alias analysis): Update.
23043         * doc/invoke.texi (max-aliased-vops): Remove docs.
23044         (avg-aliased-vops): Likewise.
23045         * tree-into-ssa.c (syms_to_rename): Remove.
23046         (need_to_update_vops_p): Likewise.
23047         (need_to_initialize_update_ssa_p): Rename to ...
23048         (update_ssa_initialized_fn): ... this.  Track function we are
23049         initialized for.
23050         (symbol_marked_for_renaming): Simplify.
23051         (add_new_name_mapping): Do not set need_to_update_vops_p.
23052         (dump_currdefs): Use SYMS_TO_RENAME.
23053         (rewrite_update_stmt): Always walk all uses/defs.
23054         (dump_update_ssa): Adjust.
23055         (init_update_ssa): Take function argument.  Track what we are
23056         initialized for.
23057         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
23058         (create_new_def_for): Initialize for cfun, assert we are initialized
23059         for cfun.
23060         (mark_sym_for_renaming): Simplify.
23061         (mark_set_for_renaming): Do not initialize update-ssa.
23062         (need_ssa_update_p): Simplify.  Take function argument.
23063         (name_mappings_registered_p): Assert we ask for the correct function.
23064         (name_registered_for_update_p): Likewise.
23065         (ssa_names_to_replace): Likewise.
23066         (release_ssa_name_after_update_ssa): Likewise.
23067         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
23068         (dump_decl_set): Do not print a newline.
23069         (debug_decl_set): Do it here.
23070         (dump_update_ssa): And here.
23071         * tree-ssa-loop-im.c (move_computations): Adjust.
23072         (movement_possibility): Likewise.
23073         (determine_max_movement): Likewise.
23074         (gather_mem_refs_stmt): Likewise.
23075         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
23076         or NAME_MEMORY_TAG.
23077         * tree-complex.c (update_all_vops): Remove.
23078         (expand_complex_move): Adjust.
23079         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
23080         Simplify test for memory referencing statement.  Exclude
23081         non-invariant ADDR_EXPRs.
23082         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
23083         * tree-loop-distribution.c (generate_memset_zero): Adjust.
23084         (rdg_flag_uses): Likewise.
23085         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
23086         related code.
23087         (tree_optimize_tail_calls_1): Also split the
23088         edge from the entry block if we have degenerate PHI nodes in
23089         the first basic block.
23090         * tree.c (init_ttree): Remove memory-tag related code.
23091         (tree_code_size): Likewise.
23092         (tree_node_structure): Likewise.
23093         (build7_stat): Re-write to be build6_stat.
23094         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
23095         (SSA_VAR_P): Adjust.
23096         (struct tree_memory_tag): Remove.
23097         (struct tree_memory_partition_tag): Likewise.
23098         (union tree_node): Adjust.
23099         (build7): Re-write to be build6.
23100         * tree-pass.h (pass_reset_cc_flags): Remove.
23101         (TODO_update_address_taken): New flag.
23102         (pass_simple_dse): Remove.
23103         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
23104         * params.h (MAX_ALIASED_VOPS): Remove.
23105         (AVG_ALIASED_VOPS): Likewise.
23106         * omp-low.c (expand_omp_taskreg): Update SSA form.
23107         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
23108         aliases the lhs in a copy stmt.
23109         * tree-ssa-dse.c (struct address_walk_data): Remove.
23110         (memory_ssa_name_same): Likewise.
23111         (memory_address_same): Likewise.
23112         (get_kill_of_stmt_lhs): Likewise.
23113         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
23114         unused stores.  Look through PHI nodes into post-dominated regions.
23115         (dse_optimize_stmt): Simplify.  Properly remove stores.
23116         (tree_ssa_dse): Compute dominators.
23117         (execute_simple_dse): Remove.
23118         (pass_simple_dse): Likewise.
23119         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
23120         gimple_loaded_syms and gimple_stored_syms computation.
23121         * toplev.c (dump_memory_report): Dump alias and pta stats.
23122         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
23123         (vn_reference_eq): Likewise.
23124         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
23125         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
23126         valueize_vuses): Remove.
23127         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
23128         (get_def_ref_stmt_vuse): ... this.
23129         (vn_reference_lookup_2): New function.
23130         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
23131         walking equivalent vuses.  Simplify.
23132         (vn_reference_lookup): Likewise.
23133         (vn_reference_insert): Likewise.
23134         (vn_reference_insert_pieces): Likewise.
23135         (visit_reference_op_call): Simplify.
23136         (visit_reference_op_load): Likewise.
23137         (visit_reference_op_store): Likewise.
23138         (init_scc_vn): Remove shared_lookup_vuses initialization.
23139         (free_scc_vn): Remove shared_lookup_vuses freeing.
23140         (sort_vuses, sort_vuses_heap): Remove.
23141         (get_ref_from_reference_ops): Export.
23142         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
23143         vector with single vuse pointer.
23144         (vn_reference_lookup_pieces, vn_reference_lookup,
23145         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
23146         (shared_vuses_from_stmt): Remove.
23147         (get_ref_from_reference_ops): Declare.
23148         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
23149         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
23150         memory-tag related code.
23151         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
23152         (likely_value): Add comment, skip static-chain of call statements.
23153         (surely_varying_stmt_p): Adjust.
23154         (gimplify_and_update_call_from_tree): Likewise.
23155         (execute_fold_all_builtins): Do not rebuild alias info.
23156         (gimplify_and_update_call_from_tree): Properly update VOPs.
23157         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
23158         (copy_ref_info): Remove memory-tag related code.
23159         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
23160         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
23161         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
23162         computation.
23163         * tree-ssa-dom.c (gimple_p): Remove typedef.
23164         (eliminate_redundant_computations): Adjust.
23165         (record_equivalences_from_stmt): Likewise.
23166         (avail_expr_hash): Likewise.
23167         (avail_expr_eq): Likewise.
23168         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
23169         (stmt_makes_single_load): Likewise.
23170         (stmt_makes_single_store): Likewise.
23171         * tree-ssa-alias.c: Rewrite completely.
23172         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
23173         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
23174         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
23175         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
23176         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
23177         Remove public functions.
23178         (pass_reset_cc_flags): Remove.
23179         (pass_build_alias): Move ...
23180         * tree-ssa-structalias.c (pass_build_alias): ... here.
23181         * tree-ssa-alias.c (may_be_aliased): Move ...
23182         * tree-flow-inline.h (may_be_aliased): ... here.
23183         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
23184         count_uses_and_derefs): Move ...
23185         * gimple.c: ... here.
23186         * gimple.h (count_uses_and_derefs): Declare.
23187         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
23188         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
23189         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
23190         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
23191         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
23192         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
23193         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
23194         New functions.
23195         * tree-dfa.c (refs_may_alias_p): Move ...
23196         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
23197         * tree-ssa-alias.h: New file.
23198         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
23199         (statement_sink_location): Likewise.
23200         * opts.c (decode_options): Do not adjust max-aliased-vops or
23201         avg-aliased-vops values.
23202         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
23203         (TV_CALL_CLOBBER): Likewise.
23204         (TV_FLOW_SENSITIVE): Likewise.
23205         (TV_FLOW_INSENSITIVE): Likewise.
23206         (TV_MEMORY_PARTITIONING): Likewise.
23207         (TV_ALIAS_STMT_WALK): New timevar.
23208         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
23209         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
23210         (get_address_description): Remove memory-tag related code.
23211         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
23212         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
23213         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
23214         and immediate uses in statements.  Document.
23215         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
23216         (dump_symbols): Remove.
23217         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
23218         * alias.c (get_deref_alias_set): New function split out from ...
23219         (get_alias_set): ... here.
23220         * alias.h (get_deref_alias_set): Declare.
23221         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
23222         type parameter.  Remove restrict pointer handling.  Create a
23223         ref-all pointer in case type-based alias sets do not conflict.
23224         (vect_analyze_data_refs): Remove SMT related code.
23225         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
23226         (vectorizable_load): Likewise.
23227         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
23228         (DR_SYMBOL_TAG, DR_VOPS): Remove.
23229         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
23230         Ignore vops and SMTs.
23231         (dr_analyze_alias): Likewise..
23232         (free_data_ref): Likewise.
23233         (create_data_ref): Likewise.
23234         (analyze_all_data_dependences): Likewise.
23235         (get_references_in_stmt): Adjust.
23236         * tree-flow-inline.h (gimple_aliases_computed_p,
23237         gimple_addressable_vars, gimple_call_clobbered_vars,
23238         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
23239         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
23240         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
23241         gimple_mem_ref_stats): Remove.
23242         (gimple_vop): New function.
23243         (op_iter_next_use): Remove vuses and mayuses cases.
23244         (op_iter_next_def): Remove vdefs case.
23245         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
23246         (clear_and_done_ssa_iter): Do not set removed fields.
23247         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
23248         Assert we are not iterating over vuses or vdefs if not also
23249         iterating over uses or defs.
23250         (op_iter_init_use): Likewise.
23251         (op_iter_init_def): Likewise.
23252         (op_iter_next_vdef): Remove.
23253         (op_iter_next_mustdef): Likewise.
23254         (op_iter_init_vdef): Likewise.
23255         (compare_ssa_operands_equal): Likewise.
23256         (link_use_stmts_after): Handle vuse operand.
23257         (is_call_used): Use is_call_clobbered.
23258         (is_call_clobbered): Global variables are always call clobbered,
23259         query the call-clobbers bitmap.
23260         (mark_call_clobbered): Ignore global variables.
23261         (clear_call_clobbered): Likewise.
23262         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
23263         virtual operands sanity check.
23264         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
23265         Remove.
23266         (TARGET_MEM_REF): Remove TMR_TAG operand.
23267         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
23268         Remove call-clobber related code.
23269         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
23270         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
23271         partitions or escape reason.
23272         (get_single_def_stmt, get_single_def_stmt_from_phi,
23273         get_single_def_stmt_with_phi): Remove.
23274         (dump_referenced_vars): Tidy.
23275         (get_ref_base_and_extent): Allow bare decls.
23276         (collect_dfa_stats): Adjust.
23277         * graphite.c (rename_variables_in_stmt): Adjust.
23278         (graphite_copy_stmts_from_block): Likewise.
23279         (translate_clast): Likewise.
23280         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
23281         (EXPR_DIES): New.
23282         (translate_vuse_through_block): Use the oracle.
23283         (phi_translate_1): Adjust.
23284         (value_dies_in_block_x): Use the oracle.  Cache the outcome
23285         in EXPR_DIES.
23286         (valid_in_sets): Check if the VUSE for
23287         a REFERENCE is available.
23288         (eliminate): Do not remove stmts during elimination,
23289         instead queue and remove them afterwards.
23290         (do_pre): Do not rebuild alias info.
23291         (pass_pre): Run TODO_rebuild_alias before PRE.
23292         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
23293         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
23294         (mark_all_v_defs_stmt): Remove.
23295         (mark_all_v_defs_seq): Adjust.
23296         (sra_replace): Likewise.
23297         (scalarize_use): Likewise.
23298         (scalarize_copy): Likewise.
23299         (scalarize_init): Likewise.
23300         (scalarize_ldst): Likewise.
23301         (todoflags): Remove.
23302         (tree_sra): Do not rebuild alias info.
23303         (tree_sra_early): Adjust.
23304         (pass_sra): Run TODO_update_address_taken before SRA.
23305         * tree-predcom.c (set_alias_info): Remove.
23306         (prepare_initializers_chain): Do not call it.
23307         (mark_virtual_ops_for_renaming): Adjust.
23308         (mark_virtual_ops_for_renaming_list): Remove.
23309         (initialize_root_vars): Adjust.
23310         (initialize_root_vars_lm): Likewise.
23311         (prepare_initializers_chain): Likewise.
23312         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
23313         (may_propagate_copy_into_stmt): Likewise.
23314         (merge_alias_info): Do nothing for now.
23315         (propagate_tree_value_into_stmt): Adjust.
23316         (stmt_may_generate_copy): Likewise.
23317         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
23318         not mark symbols for renaming.
23319         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
23320         with the same statement, make sure to update the new pointed-to one.
23321         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
23322         call statements, do not mark symbols for renaming.
23323         (mark_operand_necessary): Dump something.
23324         (ref_may_be_aliased): New function.
23325         (mark_aliased_reaching_defs_necessary_1): New helper function.
23326         (mark_aliased_reaching_defs_necessary): Likewise.
23327         (mark_all_reaching_defs_necessary_1): Likewise.
23328         (mark_all_reaching_defs_necessary): Likewise.
23329         (propagate_necessity): Do not process virtual PHIs.  For
23330         non-aliased loads mark all reaching definitions as necessary.
23331         For aliased loads and stores mark the immediate dominating
23332         aliased clobbers as necessary.
23333         (visited): New global static.
23334         (perform_tree_ssa_dce): Free visited bitmap after propagating
23335         necessity.
23336         (remove_dead_phis): Perform simple dead virtual PHI removal.
23337         (remove_dead_stmt): Properly unlink virtual operands when
23338         removing stores.
23339         (eliminate_unnecessary_stmts): Schedule PHI removal after
23340         stmt removal.
23341         * tree-ssa-ter.c (is_replaceable_p): Adjust.
23342         (process_replaceable): Likewise.
23343         (find_replaceable_in_bb): Likewise.
23344         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
23345         based on the single gimple vop.
23346         (verify_flow_insensitive_alias_info): Remove.
23347         (verify_flow_sensitive_alias_info): Likewise.
23348         (verify_call_clobbering): Likewise.
23349         (verify_memory_partitions): Likewise.
23350         (verify_alias_info): Likewise.
23351         (verify_ssa): Adjust..
23352         (execute_update_addresses_taken): Export.  Update SSA
23353         manually.  Optimize only when optimizing.  Use a local bitmap.
23354         (pass_update_address_taken): Remove TODO_update_ssa, add
23355         TODO_dump_func.
23356         (pass_update_address_taken): Just use TODO_update_address_taken.
23357         (init_tree_ssa): Do not initialize addressable_vars.
23358         (verify_ssa): Verify new VUSE / VDEF properties.
23359         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
23360         Do not call verify_alias_info.
23361         (delete_tree_ssa): Clear the VUSE, VDEF operands.
23362         Do not free the loaded and stored syms bitmaps.  Reset the escaped
23363         and callused solutions.  Do not free addressable_vars.
23364         Remove memory-tag related code.
23365         (warn_uninitialized_var): Aliases are always available.
23366         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
23367         * lambda-code.c (can_put_in_inner_loop): Adjust.
23368         (can_put_after_inner_loop): Likewise.
23369         (perfect_nestify): Likewise.
23370         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
23371         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
23372         (vectorizable_conversion): Do not mark symbols for renaming.
23373         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
23374         (expand_call_inline): Unlink the calls virtual operands before
23375         replacing it.
23376         (tree_function_versioning): Do not call update_ssa if we are not
23377         updating clones.  Simplify.
23378         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
23379         (propagate_with_phi): Likewise..
23380         * tree-outof-ssa.c (create_temp): Remove memory tag and call
23381         clobber code.  Assert we are not aliased or global.
23382         * tree-flow.h: Include tree-ssa-alias.h
23383         (enum escape_type): Remove.
23384         (struct mem_sym_stats_d): Likewise.
23385         (struct mem_ref_stats_d): Likewise.
23386         (struct gimple_df): Add vop member.  Remove global_var,
23387         call_clobbered_vars, call_used_vars, addressable_vars,
23388         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
23389         escaped and callused members.
23390         (struct ptr_info_def): Remove all members, add points-to solution
23391         member pt.
23392         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
23393         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
23394         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
23395         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
23396         (tree-ssa-alias.o): Likewise.
23397         (toplev.o): Add tree-ssa-alias.h
23398         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
23399         * gimple.c (gimple_set_bb): Fix off-by-one error.
23400         (is_gimple_reg): Do not handle memory tags.
23401         (gimple_copy): Also copy virtual operands.
23402         Delay updating the statement.  Do not reset loaded and stored syms.
23403         (gimple_set_stored_syms): Remove.
23404         (gimple_set_loaded_syms): Likewise.
23405         (gimple_call_copy_skip_args): Copy the virtual operands
23406         and mark the new statement modified.
23407         * tree-ssa-structalias.c (may_alias_p): Remove.
23408         (set_uids_in_ptset): Take the alias set to prune with as
23409         parameter.  Fold in the alias test of may_alias_p.
23410         (compute_points_to_sets): Compute whether a ptr is dereferenced
23411         in a local sbitmap.
23412         (process_constraint): Deal with &ANYTHING on the lhs, reject all
23413         other ADDRESSOF constraints on the lhs.
23414         (get_constraint_for_component_ref): Assert that we don't get
23415         ADDRESSOF constraints from the base of the reference.
23416         Properly generate UNKNOWN_OFFSET for DEREF if needed.
23417         (struct variable_info): Remove collapsed_to member.
23418         (get_varinfo_fc): Remove.
23419         (new_var_info): Do not set collapsed_to.
23420         (dump_constraint): Do not follow cycles.
23421         (dump_constraint_graph): Likewise.
23422         (build_pred_graph): Likewise.
23423         (build_succ_graph): Likewise.
23424         (rewrite_constraints): Likewise.
23425         (do_simple_structure_copy): Remove.
23426         (do_rhs_deref_structure_copy): Remove.
23427         (do_lhs_deref_structure_copy): Remove.
23428         (collapse_rest_of_var): Remove.
23429         (do_structure_copy): Re-implement.
23430         (pta_stats): New global variable.
23431         (dump_pta_stats): New function.
23432         (struct constraint_expr): Make offset signed.
23433         (UNKNOWN_OFFSET): Define special value.
23434         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
23435         (solution_set_expand): New helper function split out from ...
23436         (do_sd_constraint): ... here.
23437         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
23438         (do_ds_constraint): Likewise.
23439         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
23440         and CALLUSED = *CALLUSED.
23441         (set_union_with_increment): Make inc argument signed.
23442         (type_safe): Remove.
23443         (get_constraint_for_ptr_offset): Handle unknown and negative
23444         constant offsets.
23445         (first_vi_for_offset): Handle offsets before start.  Bail
23446         out early for offsets beyond the variable extent.
23447         (first_or_preceding_vi_for_offset): New function.
23448         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
23449         Together with ESCAPED = *ESCAPED this properly computes reachability.
23450         (find_what_var_points_to): New function.
23451         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
23452         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
23453         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
23454         pt_solutions_intersect): New functions.
23455         (compute_call_used_vars): Remove.
23456         (compute_may_aliases): New main entry into PTA computation.
23457         * gimple.h (gimple_p): New typedef.
23458         (struct gimple_statement_base): Remove references_memory_p.
23459         (struct gimple_statement_with_memory_ops_base): Remove
23460         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
23461         members.
23462         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
23463         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
23464         gimple_set_references_memory): Remove.
23465         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
23466         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
23467         New functions.
23468         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
23469         (verify_expr): Allow RESULT_DECL.
23470         (gimple_duplicate_bb): Do not copy virtual operands.
23471         (gimple_duplicate_sese_region): Adjust.
23472         (gimple_duplicate_sese_tail): Likewise.
23473         (mark_virtual_ops_in_region): Remove.
23474         (move_sese_region_to_fn): Do not call it.
23475         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
23476         and pass_simple_dse.
23477         (execute_function_todo): Handle TODO_update_address_taken,
23478         call execute_update_addresses_taken for TODO_rebuild_alias.
23479         (execute_todo): Adjust.
23480         (execute_one_pass): Init dump files early.
23481         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
23482         call-clobbered.
23483         (create_general_new_stmt): Clear vops.
23484         * tree-ssa-reassoc.c (get_rank): Adjust.
23485         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
23486         symbols for renaming.
23487         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
23488         (PARAM_AVG_ALIASED_VOPS): Likewise.
23489         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
23490         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
23491         * tree-ssa-operands.c: Simplify for new virtual operand representation.
23492         (operand_build_cmp, copy_virtual_operands,
23493         create_ssa_artificial_load_stmt, add_to_addressable_set,
23494         gimple_add_to_addresses_taken): Remove public functions.
23495         (unlink_stmt_vdef): New function.
23496
23497 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23498
23499         * config.gcc (powerpc-*-linux*): Merge variants.
23500
23501 2009-04-02  Chao-ying Fu  <fu@mips.com>
23502             James Grosbach  <james.grosbach@microchip.com>
23503
23504         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
23505         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
23506         cop0_sp_offset.
23507         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
23508         keep_interrupts_masked_p, use_debug_exception_return_p.
23509         (mips_attribute_table): Add interrupt, use_shadow_register_set,
23510         keep_interrupts_masked, use_debug_exception_return.
23511         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
23512         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
23513         New functions.
23514         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
23515         (mips_print_operand): Process COP0 registers to print $0 .. $31
23516         correctly for GAS to process.
23517         (mips_interrupt_extra_call_saved_reg_p): New function.
23518         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
23519         extra registers.
23520         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
23521         (mips_compute_frame_info): Add supports for interrupt context that
23522         includes doubleword accumulators and COP0 registers.
23523         (mips_for_each_saved_acc): New function.
23524         (mips_for_each_saved_gpr_and_fpr): Change the function name from
23525         mips_for_each_saved_reg.
23526         (mips_save_reg): Save accumulators.
23527         (mips_kernel_reg_p): A new for_each_rtx callback.
23528         (mips_expand_prologue): Support interrupt handlers.
23529         (mips_restore_reg): Restore accumulators.
23530         (mips_expand_epilogue): Support interrupt handlers.
23531         (mips_can_use_return_insn): Return false for interrupt handlers.
23532         (mips_epilogue_uses): New function.
23533         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
23534         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
23535         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
23536         cop0_move): New instructions.
23537         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
23538         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
23539         defines.
23540         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
23541         New defines.
23542         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
23543         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
23544         interrupt handlers, we use K0 as the temporary register.
23545         (EPILOGUE_USES): Change to a function call.
23546         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
23547         handlers, we use K0 as the temporary register.
23548
23549         * doc/extend.texi (Function Attributes): Document interrupt,
23550         use_shadow_register_set, keep_interrupts_masked,
23551         use_debug_exception_return for MIPS attributes.
23552
23553 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
23554
23555         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
23556         Remove a number of t-files from tmake_file.
23557         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
23558         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
23559         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
23560         target_prototype, not TARGET_PROTOTYPE.
23561         (LINK_OS_GNU_SPEC): Define.
23562         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
23563         and darwin-ldoubdle.c.
23564
23565 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23566
23567         PR driver/39293
23568         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
23569         (cpp_options): Ditto.
23570         (default_compilers): Ditto.
23571         (display_help): Ditto.
23572         (process_command): Ditto.
23573         (do_spec_1): Ditto.
23574         (set_input): Use lbasename instead of duplicate code.
23575         (save_temps_prefix): New static for -save-temps=obj.
23576         (save_temps_length): Ditto.
23577
23578         * doc/invoke.texi (-save-temps=obj): Document new variant to
23579         -save-temps switch.
23580
23581 2009-04-02  Jeff Law  <law@redhat.com>
23582
23583         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
23584         variable.
23585
23586 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23587
23588         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
23589         * configure: Regenerated.
23590
23591 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23592
23593         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
23594         share the argument list.
23595
23596 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23597
23598         Merge
23599
23600         2009-02-12  Diego Novillo  <dnovillo@google.com>
23601
23602         * varpool.c (debug_varpool): New.
23603         * cgraph.h (debug_varpool): Declare.
23604
23605 2009-04-02  Jan Hubicka  <jh@suse.cz>
23606
23607         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
23608         pass.
23609
23610 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
23611
23612         * config/i386/i386.c (ix86_abi): Move initialization to ...
23613         (override_options): Here.
23614
23615 2009-04-02  Christian Bruel  <christian.bruel@st.com>
23616
23617         * config/sh/sh.c (sh_dwarf_register_span): New function.
23618         (TARGET_DWARF_REGISTER_SPAN): Define.
23619         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
23620
23621 2009-04-02  Ira Rosen  <irar@il.ibm.com>
23622
23623         PR tree-optimization/39595
23624         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
23625         interleaved loads group is not  greater than the SLP group size.
23626
23627 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
23628
23629         * builtins.c (is_builtin_name): New.
23630         (called_as_built_in): Use is_builtin_name.
23631         * tree.h (is_builtin_name): New.
23632         * varasm.c (incorporeal_function_p): Use is_builtin_name
23633
23634 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
23635
23636         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
23637
23638 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
23639
23640         PR c++/26693
23641         * c-decl.c (clone_underlying_type): Move this ...
23642         * c-common.c (set_underlying_type): ... here.
23643         Also, make sure the function properly sets TYPE_STUB_DECL() on
23644         the newly created typedef variant type.
23645         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
23646         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
23647         points.
23648
23649 2009-04-02  Richard Guenther  <rguenther@suse.de>
23650
23651         PR tree-optimization/37221
23652         * tree-flow.h (degenerate_phi_result): Declare.
23653         * tree-ssa-dom.c (degenerate_phi_result): Export.
23654         * tree-scalar-evolution.c (analyze_initial_condition): If
23655         the initial condition is defined by a degenerate PHI node
23656         use the degenerate value.
23657
23658 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
23659
23660         PR rtl-optimization/39588
23661         * combine.c (merge_outer_ops): Do not set the constant when this
23662         is not necessary.
23663         (simplify_shift_const_1): Do not modify it either in this case.
23664
23665 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
23666
23667         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
23668         tuning is deprecated if -mtune value is set to an Itanium1 variant.
23669
23670 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
23671
23672         PR c/29027
23673         * c-lex.c (interpret_float): Default (no suffix) is double.
23674
23675 2009-04-1  Xinliang David Li  <davidxl@google.com>
23676
23677         * config/i386/i386.c (legitimate_constant_p): Recognize
23678         all one vector constant.
23679
23680 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23681
23682         * config/vax/vax.c: Add #includes to silence warnings.
23683         Change #include order to silence two warnings.
23684
23685 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23686
23687         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
23688         (ASM_SPEC): Pass -k to the assembler for PIC code.
23689
23690 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23691
23692         * config.gcc: Add vax-*-linux* to the switch.
23693         * config/vax/linux.h: New file. (TARGET_VERSION,
23694         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
23695
23696 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23697
23698         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
23699         Use predicate macros instead of GET_CODE() == foo.
23700         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
23701         ashlsi3, rotrsi3, <unnamed>): Likewise.
23702
23703 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23704
23705         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
23706         jbbccihi, jbbccisi): Remova trailing whitespace.
23707         * config/vax/constraints.md: Likewise.
23708         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
23709         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
23710         * config/vax/predicates.md: Likewise.
23711         * config/vax/vax.c (print_operand_address, vax_output_int_move,
23712         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
23713         * config/vax/vax.h: Likewise.
23714         * config/vax/vax.md (nonlocal_goto): Likewise.
23715
23716 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23717
23718         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
23719         (indirectable_address_p, adjacent_operands_p): Add spaces around
23720         braces.
23721         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
23722
23723 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23724
23725         * config/vax/vax.c (legitimate_constant_address_p,
23726         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
23727         index_term_p, reg_plus_index_p, legitimate_address_p,
23728         vax_mode_dependent_address_p): Update comments to match functions
23729         modified by the recent int->bool conversion.
23730
23731 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23732
23733         * config/vax/builtins.md: Update copyright message.
23734         * config/vax/constraints.md: Likewise.
23735         * config/vax/netbsd-elf.h: Likewise.
23736         * config/vax/predicates.md: Likewise.
23737         * config/vax/vax-protos.h: Likewise.
23738         * config/vax/vax.c: Likewise.
23739         * config/vax/vax.h: Likewise.
23740         * config/vax/vax.md: Likewise.
23741         * config/vax/vax.opt: Likewise.
23742
23743 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
23744
23745         * config/vax/builtins.md (ffssi2, ffssi2_internal,
23746         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
23747         * config/vax/constraints.md (B, R): Likewise.
23748         * config/vax/predicates.md (external_memory_operand,
23749         nonimmediate_addsub_di_operand): Likewise.
23750         * config/vax/vax.c (vax_output_int_add): Likewise.
23751         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
23752         untyped_call): Likewise.
23753
23754 2009-04-01  Matt Thomas  <matt@3am-software.com>
23755
23756         * config/vax/predicates.md: New file.
23757         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
23758         external_const_operand, nonsymbolic_operand, external_memory_operand,
23759         indirect_memory_operand, indexed_memory_operand,
23760         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
23761         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
23762         predicate.
23763         * config/vax/constraints.md: New file.
23764         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
23765         New constraint.
23766         * config/vax/builtins.md: New file.
23767         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
23768         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
23769         jbbccisi): Define.
23770         * config/vax/vax.opt (mqmath): Add option.
23771         * config/vax/vax.md (isfx): Extend with DI.
23772         (VAXintQH, VAXintQHSD): Define.
23773         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
23774         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
23775         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
23776         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
23777         (movdi): Update constraints and use vax_output_int_move().
23778         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
23779         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
23780         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
23781         nonlocal_goto): New.
23782         (mov<mode>): Extend accepted operand types.
23783         (subdi3_old): Rename from subdi3, change update constraints and use
23784         a new implementation.
23785         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
23786         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
23787         MOVE_RATIO, CLEAR_RATIO): Define.
23788         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
23789         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
23790         (PRINT_OPERAND): Redefine using a function instead of inlined code.
23791         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
23792         (split_quadword_operands): Make static and really allow variable
23793         splitting.
23794         (print_operand_address): Update for PIC generation.
23795         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
23796         indexable_address_p, fixup_mathdi_operand,
23797         vax_expand_addsub_di_operands, adjacent_operands_p): New.
23798         (vax_float_literal, legitimate_constant_p,
23799         indirectable_constant_address_p, index_term_p,
23800         reg_plus_index_p): Return bool instead of int.
23801         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
23802         where needed.
23803         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
23804         generation.
23805         (vax_output_conditional_branch): Indent.
23806         (legitimate_constant_address_p, indirectable_constant_address_p,
23807         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
23808         vax_mode_dependent_address_p): Return bool instead of int, update for
23809         PIC generation.
23810         * config/vax/vax-protos.h (legitimate_constant_address_p,
23811         legitimate_constant_p, legitimate_address_p,
23812         vax_mode_dependent_address_p): Change declaration to bool.
23813         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
23814         vax_expand_addsub_di_operands, vax_output_int_subtract,
23815         vax_output_movmemsi): Declare.
23816         (split_quadword_operands, vax_float_literal): Delete declaration.
23817         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
23818         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
23819         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
23820         ASM_OUTPUT_DWARF_PCREL): Define.
23821         (ASM_SPEC): Change definition to allow PIC generation.
23822
23823 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
23824
23825         * doc/sourcebuild.texi: Update front-end requirements.
23826
23827 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23828
23829         PR target/39226
23830         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
23831         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
23832         (booldi3_internal3): Use boolean_or_operator instead of
23833         boolean_operator.
23834
23835 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
23836
23837         PR c/39605
23838         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
23839         declarator whose size is not an integer constant expression but
23840         folds to an integer constant, then treat it as a constant
23841         subsequently.
23842
23843 2009-04-01  Richard Guenther  <rguenther@suse.de>
23844
23845         * fold-const.c (fold_plusminus_mult_expr): Do not fold
23846         i * 4 + 2 to (i * 2 + 1) * 2.
23847
23848 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23849
23850         PR c/37772
23851         * c-parser.c (c_parser_asm_statement): Skip until close paren and
23852         return if c_parser_asm_string_literal returned NULL.
23853
23854 2009-04-01  Nick Clifton  <nickc@redhat.com>
23855
23856         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
23857         already defined.
23858         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
23859         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
23860         other typedefs to avoid conflicts with libgcc2.c.  Define labels
23861         to gain 16-bit bit-manipulation functions from libgcc2.c and then
23862         include it.
23863         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
23864         to gain 16-bit trapping arithmetic functions from libgcc2.c and
23865         then include it.
23866
23867 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
23868
23869         * varasm.c (default_function_rodata_section): Declare DOT as
23870         const char*.
23871
23872 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
23873             Andrey Galkin  <agalkin@hypercom.com>
23874
23875         PR/39492
23876         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
23877         Make object_name unique for each process.
23878
23879 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
23880
23881         PR other/39591
23882         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
23883         addressable variables in the parallel that could go out of scope while
23884         running queued tasks.
23885
23886 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
23887
23888         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
23889         (CASE_VALUES_THRESHOLD): Redefine.
23890         * config/avr/avr.c (avr_override_options): Remove initialization of
23891         avr_case_values_threshold variable.
23892         (avr_case_values_threshold): Remove variable. Add new function.
23893         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
23894         * config/avr/avr.opt (mno-tablejump): Remove option.
23895         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
23896
23897 2009-04-01  DJ Delorie  <dj@redhat.com>
23898
23899         * varasm.c (default_function_rodata_section): Don't assume
23900         anything about where the first '.' in the section name is.
23901
23902 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
23903
23904         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
23905         rs6000_emit_stack_tie.
23906
23907 2009-03-31  Ian Lance Taylor  <iant@google.com>
23908
23909         * tree-eh.c (tree_remove_unreachable_handlers): Compare
23910         gimple_code with GIMPLE_RESX, not RESX.
23911
23912 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23913
23914         * c-common.c (c_get_ident): New.
23915         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
23916
23917 2009-04-01  Ben Elliston  <bje@au.ibm.com>
23918
23919         * config/rs6000/sysv4.opt (msdata): Improve option description.
23920
23921 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
23922
23923         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
23924         (divdf3_internal_lat): Remove.
23925         (divxf3_internal_lat): Remove.
23926         (divxf3_internal_thr): Remove.
23927         (divxf): Use divxf3_internal.
23928         * config/ia64/div.md (divsf3_internal_lat): New.
23929         (divdf3_internal_lat): New.
23930         (divxf3_internal): New.
23931
23932 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
23933
23934         PR c/448
23935         * Makefile.in (USE_GCC_STDINT): Define.
23936         (stmp-int-hdrs): Install stdint.h if applicable.
23937         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
23938         if known.
23939         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
23940         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
23941         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
23942         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23943         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23944         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23945         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23946         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23947         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23948         (c_common_nodes_and_builtins): Initialize
23949         underlying_wchar_type_node.  Do not initialize
23950         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
23951         nodes for new types.
23952         (c_stddef_cpp_builtins): Define macros for new types.
23953         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
23954         Remove.
23955         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
23956         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
23957         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
23958         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
23959         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
23960         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
23961         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
23962         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
23963         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
23964         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
23965         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
23966         int16_type_node, int32_type_node, int64_type_node,
23967         uint8_type_node, uint16_type_node, c_uint32_type_node,
23968         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
23969         int_least32_type_node, int_least64_type_node,
23970         uint_least8_type_node, uint_least16_type_node,
23971         uint_least32_type_node, uint_least64_type_node,
23972         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
23973         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
23974         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
23975         uintptr_type_node): Define.
23976         * c-cppbuiltin.c (builtin_define_constants,
23977         builtin_define_type_minmax): New.
23978         (builtin_define_stdint_macros): Define more macros.
23979         (c_cpp_builtins): Define more limit macros.
23980         (type_suffix): New.
23981         (builtin_define_type_max): Define in terms of
23982         builtin_define_type_minmax.  Remove is_long parameter.  All
23983         callers changed.
23984         * config.gcc (use_gcc_stdint): Define.
23985         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
23986         Add newlib-stdint.h for generic targets.
23987         * config/glibc-stdint.h, config/newlib-stdint.h,
23988         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
23989         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
23990         * config/score/score.h (UINTPTR_TYPE): Define.
23991         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
23992         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
23993         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
23994         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
23995         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
23996         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
23997         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
23998         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
23999         * config/spu/spu.h (STDINT_LONG32): Define.
24000         * configure.ac (use_gcc_stdint): Substitute.
24001         * configure: Regenerate.
24002         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
24003         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
24004         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
24005         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
24006         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
24007         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
24008         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
24009         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
24010         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
24011         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
24012         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
24013         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
24014         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
24015         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
24016         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
24017         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
24018         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
24019         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
24020         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
24021         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
24022         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
24023         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
24024         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
24025         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
24026         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
24027         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
24028         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
24029         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
24030         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
24031
24032 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
24033
24034         * loop-iv.c (suitable_set_for_replacement): Renamed from
24035         simplify_using_assignment; changed to return bool and to accept new
24036         args DEST and SRC.  Return true iff we find a source/destination pair
24037         that can be used to make a replacement, and fill SRC and DEST if so.
24038         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
24039         changed.
24040         (simplify_using_initial_values): Deal with altered regs here and track
24041         more precisely the effect they have on the validity of our expression.
24042
24043         * loop-iv.c (simplify_using_condition): A condition of the form
24044         (EQ REG CONST) can be used to simply make a substitution.
24045         (simplify_using_initial_values): Keep track of conditions we have seen
24046         and keep using them to simplify new expressions, while applying the
24047         same substitutions to them as to the expression.
24048
24049         * simplify-rtx.c (simplify_relational_operation_1): Simplify
24050         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
24051         GEU/LTU reversed.
24052
24053         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
24054         changed.  Use this when trying to improve the upper bound.
24055         Generate the comparison by using simplify_gen_relational.
24056
24057         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
24058
24059         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
24060         functions.
24061         (simplify_using_assignment, simplify_using_initial_values): Call
24062         replace_in_expr to make replacements.  Call replace_single_def_regs
24063         once on the initial version of the expression.
24064
24065 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24066
24067         PR target/27237
24068         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
24069
24070 2009-03-31  Richard Guenther  <rguenther@suse.de>
24071
24072         PR middle-end/31029
24073         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
24074         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
24075
24076 2009-03-31  Richard Guenther  <rguenther@suse.de>
24077
24078         * tree.h (div_if_zero_remainder): Declare.
24079         * fold-const.c (div_if_zero_remainder): Export.
24080         * tree-ssa-forwprop.c
24081         (forward_propagate_addr_into_variable_array_index): Handle
24082         constant array index addition outside of the variable index.
24083
24084 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24085
24086         PR target/39592
24087         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
24088         define_splits, floatunssi<mode>2): Require x87 conversions from
24089         DImode to be permitted.
24090
24091 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
24092
24093         PR preprocessor/15638
24094         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
24095
24096 2009-03-31  Richard Guenther  <rguenther@suse.de>
24097
24098         PR middle-end/23401
24099         PR middle-end/27810
24100         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
24101         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
24102         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
24103         a separate statement.
24104         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
24105         (lookup_tmp_var): Likewise.
24106         (is_gimple_formal_tmp_or_call_rhs): Remove.
24107         (is_gimple_reg_or_call_rhs): Rename to ...
24108         (is_gimple_reg_rhs_or_call): ... this.
24109         (is_gimple_mem_or_call_rhs): Rename to ...
24110         (is_gimple_mem_rhs_or_call): ... this.
24111         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
24112         DECL_GIMPLE_REG_P only if is_formal is true.
24113         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
24114         for non-proper post-modify expression gimplification.
24115         (gimplify_self_mod_expr): For post-modify expressions gimplify
24116         the lvalue to a minimal lvalue.
24117         (rhs_predicate_for): Remove formal temp case.
24118         (gimplify_modify_expr_rhs): Likewise.
24119         (gimplify_addr_expr): Use is_gimple_reg.
24120         (gimplify_expr): Remove formal temp cases.
24121         (gimple_regimplify_operands): Likewise.
24122         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
24123         and FILTER_EXPR like constants.
24124         * gimple.c (walk_gimple_op): Fix val_only initialization, use
24125         is_gimple_reg.
24126         (is_gimple_formal_tmp_rhs): Remove.
24127         (is_gimple_reg_rhs): Remove special casing.
24128         (is_gimple_mem_rhs): Fix.
24129         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
24130         (is_gimple_formal_tmp_var): Remove.
24131         (is_gimple_formal_tmp_reg): Likewise.
24132         (is_gimple_min_lval): Allow invariant component ref parts.
24133         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
24134         is_gimple_formal_tmp_reg): Remove declarations.
24135         * tree-cfg.c (verify_expr): Verify that variables with address
24136         taken do not have DECL_GIMPLE_REG_P set.
24137         * tree-mudflap.c (mf_build_check_statement_for): Use
24138         force_gimple_operand instead of gimplify_expr.
24139
24140 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
24141
24142         * modulo-sched.c (sms_schedule_by_order): Pass the actual
24143         schedulable rows to compute_split_row.
24144
24145 2009-03-31  Ben Elliston  <bje@au.ibm.com>
24146
24147         PR target/31635
24148         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
24149         OPT_mvrsave.
24150
24151 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
24152
24153         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
24154         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
24155         * configure: Regenerate.
24156         * config.in: Regenerate.
24157         * config/rs6000/rs6000.opt (mtls-markers): Add.
24158         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
24159         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
24160         (tls_ld_aix, tls_ld_sysv): Likewise.
24161         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
24162         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
24163
24164 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
24165
24166         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
24167
24168 2009-03-30  Jan Hubicka  <jh@suse.cz>
24169
24170         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
24171         out of RESX.
24172         (tree_remove_unreachable_handlers): Cleanup EH predecestor
24173         detection and label handling.
24174
24175 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24176
24177         * ira-int.h (ira_allocno): Rename left_conflicts_num to
24178         left_conflicts_size.
24179         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
24180         ALLOCNO_LEFT_CONFLICTS_SIZE.
24181
24182         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
24183         remove_allocno_from_bucket_and_push,
24184         allocno_spill_priority_compare, push_allocnos_to_stack,
24185         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24186         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
24187         (setup_allocno_left_conflicts_num): Ditto.  Rename to
24188         setup_allocno_left_conflicts_size.
24189         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
24190         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
24191         setup_allocno_left_conflicts_size instead of
24192         setup_allocno_left_conflicts_num.
24193
24194         * ira-build.c (ira_create_allocno): Use
24195         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
24196         ALLOCNO_LEFT_CONFLICTS_NUM.
24197
24198 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
24199
24200         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
24201         instead of DF_LR_OUT.
24202
24203         * ira-lives.c (process_bb_node_lives): Ditto.
24204
24205         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
24206         instead of DF_LR_{OUT,IN}.
24207
24208         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
24209
24210         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
24211
24212 2009-03-30  Jan Hubicka  <jh@suse.cz>
24213
24214         * except.c (label_to_region_map): Fix thinko.
24215
24216 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
24217
24218         PR middle-end/38237
24219         * tree.h (tree_find_value): New declaration.
24220         * tree.c (tree_find_value): New function.
24221         * varasm.c (assemble_external): Avoid duplicate entries on lists.
24222
24223 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
24224
24225         PR debug/39563
24226         * c-decl.c (struct c_binding): Add locus field.
24227         (bind): Add locus argument, set locus field from it.
24228         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
24229         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
24230         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
24231         implicitly_declare, undeclared_variable, lookup_label,
24232         declare_label, c_make_fname_decl, c_builtin_function,
24233         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
24234         bind callers.
24235
24236 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
24237
24238         PR target/38781
24239         * config/i386/i386.c (classify_argument): Check total size of
24240         structure.
24241
24242 2009-03-30  Martin Jambor  <mjambor@suse.cz>
24243
24244         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
24245         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
24246         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
24247         respectively.
24248
24249         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
24250         seen_variable_array_ref while also traversing a union.
24251
24252         * tree-inline.c (optimize_inline_calls): Do not call
24253         cgraph_node_remove_callees.
24254         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
24255         (pass_remove_cgraph_callee_edges): New variable.
24256         * passes.c (init_optimization_passes): Add
24257         pass_remove_cgraph_callee_edges after early inlining and before all
24258         late intraprocedural passes.
24259
24260         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
24261
24262 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24263
24264         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
24265         Fix typos in names.
24266
24267 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24268
24269         * combine.c (simplify_comparison): Use have_insn_for.
24270         * dojump.c (do_jump): Likewise.
24271
24272 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24273
24274         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
24275         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
24276         sparc_compare_op0 like sparc_compare_emitted used to be handled.
24277         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
24278         instead of sparc_compare_emitted.
24279         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
24280         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
24281         instead of sparc_compare_emitted.
24282
24283 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24284
24285         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
24286         enter/exit cfglayout mode.
24287         (pass_partition_block): Require it.
24288         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
24289         (combine_instructions): Track basic blocks instead of labels.
24290         (update_cfg_for_uncondjump): New.
24291         (try_combine): Use it.  Update jumps after rescanning.
24292         (pass_combine): Require PROP_cfglayout.
24293         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
24294
24295 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24296
24297         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
24298         Provide/destroy PROP_cfglayout respectively.
24299         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
24300         * tree-pass.h (PROP_cfglayout): New.
24301
24302 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
24303
24304         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
24305         fold_convert_const_fixed_from_fixed,
24306         fold_convert_const_fixed_from_int,
24307         fold_convert_const_fixed_from_real, fold_negate_const): Do not
24308         set TREE_CONSTANT_OVERFLOW.
24309         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
24310         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
24311
24312 2009-03-30  Ira Rosen  <irar@il.ibm.com>
24313
24314         * tree-vect-loop-manip.c: New file.
24315         * tree-vectorizer.c: Update documentation and included files.
24316         (vect_loop_location): Make extern.
24317         (rename_use_op): Move to tree-vect-loop-manip.c
24318         (rename_variables_in_bb, rename_variables_in_loop,
24319         slpeel_update_phis_for_duplicate_loop,
24320         slpeel_update_phi_nodes_for_guard1,
24321         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
24322         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
24323         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
24324         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
24325         find_loop_location): Likewise.
24326         (new_stmt_vec_info): Move to tree-vect-stmts.c.
24327         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
24328         get_vectype_for_scalar_type, vect_is_simple_use,
24329         supportable_widening_operation, supportable_narrowing_operation):
24330         Likewise.
24331         (bb_in_loop_p): Move to tree-vect-loop.c.
24332         (new_loop_vec_info, destroy_loop_vec_info,
24333         reduction_code_for_scalar_code, report_vect_op,
24334         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
24335         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
24336         (vect_supportable_dr_alignment): Likewise.
24337         * tree-vectorizer.h (tree-data-ref.h): Include.
24338         (vect_loop_location): Declare.
24339         Reorganize function declarations according to the new file structure.
24340         * tree-vect-loop.c: New file.
24341         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
24342         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
24343         * tree-vect-data-refs.c: New file.
24344         * tree-vect-patterns.c (timevar.h): Don't include.
24345         * tree-vect-stmts.c: New file.
24346         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
24347         tree-vect-slp.c, tree-vect-loop.c.
24348         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
24349         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
24350         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
24351         (tree-vect-analyze.o): Remove.
24352         (tree-vect-transform.o): Likewise.
24353         (tree-vect-data-refs.o): Add rule.
24354         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
24355         tree-vect-slp.o): Likewise.
24356         (tree-vect-patterns.o): Remove redundant dependencies.
24357         (tree-vectorizer.o): Likewise.
24358         * tree-vect-slp.c: New file.
24359
24360 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24361
24362         * optc-gen.awk: Warn if an option flag has multiple different
24363         help strings.
24364
24365 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
24366
24367         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
24368         -floop-block): Document dependences on PPL, CLooG and Graphite.
24369
24370 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
24371
24372         PR rtl-optimization/323
24373         * c-common.c (c_fully_fold, convert_and_check,
24374         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
24375         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
24376         * c-common.def (EXCESS_PRECISION_EXPR): New.
24377         * c-cppbuiltin.c (builtin_define_float_constants): Define
24378         constants with enough digits for long double.
24379         * c-lex.c (interpret_float): Interpret constant with excess
24380         precision where appropriate.
24381         * c-opts.c (c_common_post_options): Set
24382         flag_excess_precision_cmdline.  Give an error for
24383         -fexcess-precision=standard for C++ for processors where the
24384         option is significant.
24385         * c-parser.c (c_parser_conditional_expression): Handle excess
24386         precision in condition.
24387         * c-typeck.c (convert_arguments): Handle arguments with excess
24388         precision.
24389         (build_unary_op): Move excess precision outside operation.
24390         (build_conditional_expr): Likewise.
24391         (build_compound_expr): Likewise.
24392         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
24393         (build_modify_expr): Handle excess precision in RHS.
24394         (convert_for_assignment): Handle excess precision in converted
24395         value.
24396         (digest_init, output_init_element, process_init_element): Handle
24397         excess precision in initializer.
24398         (c_finish_return): Handle excess precision in return value.
24399         (build_binary_op): Handle excess precision in operands and add
24400         excess precision as needed for operation.
24401         * common.opt (-fexcess-precision=): New option.
24402         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
24403         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
24404         For standard excess precision, output explicit conversion to and
24405         truncation from XFmode.
24406         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
24407         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
24408         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
24409         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
24410         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
24411         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
24412         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
24413         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
24414         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
24415         define_splits, sqrt<mode>2): Disable where appropriate for
24416         standard excess precision.
24417         * convert.c (convert_to_real): Do not shorten arithmetic to type
24418         for which excess precision would be used.
24419         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
24420         * doc/invoke.texi (-fexcess-precision=): Document option.
24421         (-mfpmath=): Correct index entry.
24422         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
24423         flag_excess_precision): New.
24424         * langhooks.c (lhd_post_options): Set
24425         flag_excess_precision_cmdline.
24426         * opts.c (common_handle_option): Handle -fexcess-precision=.
24427         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
24428         init_excess_precision): New.
24429         (lang_dependent_init_target): Call init_excess_precision.
24430         * tree.c (excess_precision_type): New.
24431         * tree.h (excess_precision_type): Declare.
24432
24433 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
24434
24435         PR c/35235
24436         * c-typeck.c (build_component_ref): Do not copy qualifiers from
24437         non-lvalue to component.
24438
24439 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24440
24441         PR preprocessor/34695
24442         * Makefile.in (c-opts.o): Depend on c-tree.h.
24443         * c-common.c: Move down include of diagnostic.h.
24444         (done_lexing, c_cpp_error): New.
24445         * c-common.h (done_lexing): Declare.
24446         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
24447         (parse_in).
24448         * c-opts.c: Include c-tree.h.
24449         (c_common_init_options): Set preprocessor error callback.
24450         (c_common_handle_option): Do not set preprocessor
24451         inhibit_warnings, warnings_are_errors, warn_system_headers,
24452         pedantic_errors or inhibit_warnings flags.
24453         (c_common_post_options): Do not check cpp_errors (parse_in).
24454         (c_common_finish): Do not output dependencies if there were
24455         errors.  Do not check return value of cpp_finish.
24456         * c-ppoutput.c (pp_file_change): Set input_location.
24457         * c-tree.h (c_cpp_error): Declare.
24458         * diagnostic.c (diagnostic_set_info_translated): Also initialize
24459         override_column.
24460         (diagnostic_build_prefix): Check override_column.
24461         * diagnostic.h (diagnostic_info): Add override_column field.
24462         (diagnostic_override_column): Define.
24463
24464 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
24465
24466         * c-common.c (c_expand_expr, c_staticp): Remove.
24467         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
24468         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
24469         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
24470         * c-gimplify.c (gimplify_compound_literal_expr,
24471         optimize_compound_literals_in_ctor): Remove.
24472         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
24473         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
24474         * c-semantics.c (emit_local_var): Remove.
24475
24476         * langhooks-def.h (lhd_expand_expr): Remove.
24477         * langhooks.c (lhd_expand_expr): Remove.
24478         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
24479
24480         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
24481         handling from c-semantics.c; don't call into langhook.
24482         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
24483         * gimplify.c (gimplify_compound_literal_expr,
24484         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
24485         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
24486         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
24487         as was done in c-gimplify.c.
24488         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
24489         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
24490         Move from c-common.h.
24491         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
24492
24493         * tree.c (staticp): Do not call langhook.
24494         * langhooks.c (lhd_staticp): Delete.
24495         * langhooks-def.h (lhd_staticp): Delete prototype.
24496         (LANG_HOOKS_STATICP): Delete.
24497         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
24498
24499         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
24500         instead of DECL_STMTs.
24501
24502 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
24503
24504         PR c/456
24505         PR c/5675
24506         PR c/19976
24507         PR c/29116
24508         PR c/31871
24509         PR c/35198
24510         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
24511         void_type_node.
24512         (fold_call_expr): Return a NOP_EXPR from folding rather than the
24513         contained expression.
24514         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
24515         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
24516         conditional expressions for C.
24517         (decl_constant_value_for_optimization): Move from
24518         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
24519         whether optimizing and that the expression is a VAR_DECL not of
24520         array type instead of doing such checks in the caller.  Do not
24521         check pedantic.  Call gcc_unreachable for C++.
24522         * c-common.def (C_MAYBE_CONST_EXPR): New.
24523         * c-common.h (c_fully_fold, c_save_expr,
24524         decl_constant_value_for_optimization): New prototypes.
24525         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
24526         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
24527         EXPR_INT_CONST_OPERANDS): Define.
24528         * c-convert.c (convert): Strip nops from expression.
24529         * c-decl.c (groktypename): Take extra parameters expr and
24530         expr_const_operands.  Update call to grokdeclarator.
24531         (start_decl): Update call to grokdeclarator.  Add statement for
24532         expressions used in type of decl.
24533         (grokparm): Update call to grokdeclarator.
24534         (push_parm_decl): Update call to grokdeclarator.
24535         (build_compound_literal): Add parameter non_const and build a
24536         C_MAYBE_COSNT_EXPR if applicable.
24537         (grokdeclarator): Take extra parameters expr and
24538         expr_const_operands.  Track expressions used in declaration
24539         specifiers and declarators.  Fold array sizes and track whether
24540         they are constant expressions and whether they are integer
24541         constant expressions.
24542         (parser_xref_tag): Set expr and expr_const_operands fields in
24543         return value.
24544         (grokfield): Update call to grokdeclarator.
24545         (start_function): Update call to grokdeclarator.
24546         (build_null_declspecs): Set expr and expr_const_operands fields in
24547         return value.
24548         (declspecs_add_type): Handle expressions in typeof specifiers.
24549         * c-parser.c (c_parser_declspecs): Set expr and
24550         expr_const_operands fields for declaration specifiers.
24551         (c_parser_enum_specifier): Likewise.
24552         (c_parser_struct_or_union_specifier): Likewise.
24553         (c_parser_typeof_specifier): Likewise.  Update call to
24554         groktypename.  Fold expression as needed.  Return expressions with
24555         type instead of adding statements.
24556         (c_parser_attributes): Update calls to c_parser_expr_list.
24557         (c_parser_statement_after_labels): Fold expression before passing
24558         to objc_build_throw_stmt.
24559         (c_parser_condition): Fold expression.
24560         (c_parser_asm_operands): Fold expression.
24561         (c_parser_conditional_expression): Use c_save_expr.  Update call
24562         to build_conditional_expr.
24563         (c_parser_alignof_expression): Update call to groktypename.
24564         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
24565         original_code.  Fold expression argument of va_arg.  Create
24566         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
24567         argument to va_arg.  Update calls to groktypename.  Fold array
24568         index for offsetof.  Verify that first argument to
24569         __builtin_choose_expr has integer type.
24570         (c_parser_postfix_expression_after_paren_type): Update calls to
24571         groktypename and build_compound_literal.  Handle expressions with
24572         side effects in type name.
24573         (c_parser_postfix_expression_after_primary): Update call to
24574         c_parser_expr_list.  Set original_code for calls to
24575         __builtin_constant_p.
24576         (c_parser_expr_list): Take extra parameter fold_p.  Fold
24577         expressions if requested.
24578         (c_parser_objc_type_name): Update call to groktypename.
24579         (c_parser_objc_synchronized_statement): Fold expression.
24580         (c_parser_objc_receiver): Fold expression.
24581         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
24582         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
24583         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
24584         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
24585         (struct c_typespec): Add elements expr and expr_const_operands.
24586         (struct c_declspecs): Add elements expr and expr_const_operands.
24587         (groktypename, build_conditional_expr, build_compound_literal):
24588         Update prototypes.
24589         (in_late_binary_op): Declare.
24590         * c-typeck.c (note_integer_operands): New function.
24591         (in_late_binary_op): New variable.
24592         (decl_constant_value_for_broken_optimization): Move to c-common.c
24593         and rename to decl_constant_value_for_optimization.
24594         (default_function_array_conversion): Do not strip nops.
24595         (default_conversion): Do not call
24596         decl_constant_value_for_broken_optimization.
24597         (build_array_ref): Do not fold result.
24598         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
24599         result when operand is a VLA.
24600         (c_expr_sizeof_type): Update call to groktypename.  Handle
24601         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
24602         result when operand names a VLA type.
24603         (build_function_call): Update call to build_compound_literal.
24604         Only fold result for calls to __builtin_* functions.  Strip
24605         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
24606         the function designator.
24607         (convert_arguments): Fold arguments.  Update call to
24608         convert_for_assignment.
24609         (build_unary_op): Handle increment and decrement of
24610         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
24611         decrement earlier.  Fold operand of increment and decrement.
24612         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
24613         built for integer operand.  Wrap returns that are INTEGER_CSTs
24614         without being integer constant expressions or that have integer
24615         constant operands without being INTEGER_CSTs.
24616         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
24617         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
24618         result is an integer constant expression or can be used in
24619         unevaluated parts of one and avoid folding and wrap as
24620         appropriate.  Fold operands before possibly doing -Wsign-compare
24621         warnings.
24622         (build_compound_expr): Wrap result for C99 if operands can be used
24623         in integer constant expressions.
24624         (build_c_cast): Update call to digest_init.  Do not ignore
24625         overflow from casting floating-point constants to integers.  Wrap
24626         results that could be confused with integer constant expressions,
24627         null pointer constants or floating-point constants.
24628         (c_cast_expr): Update call to groktypename.  Handle expressions
24629         included in type name.
24630         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
24631         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
24632         Update calls to convert_for_assignment.
24633         (convert_for_assignment): Take new parameter
24634         null_pointer_constant.  Do not strip nops or call
24635         decl_constant_value_for_broken_optimization.  Set
24636         in_late_binary_op for conversions to boolean.
24637         (store_init_value): Update call to digest_init.
24638         (digest_init): Take new parameter null_pointer_constant.  Do not
24639         call decl_constant_value_for_broken_optimization.  pedwarn for
24640         initializers not constant expressions.  Update calls to
24641         convert_for_assignment.
24642         (constructor_nonconst): New.
24643         (struct constructor_stack): Add nonconst element.
24644         (really_start_incremental_init, push_init_level, pop_init_level):
24645         Handle constructor_nonconst and nonconst element.
24646         (set_init_index): Call constant_expression_warning for array
24647         designators.
24648         (output_init_element): Fold value.  Set constructor_nonconst as
24649         applicable.  pedwarn for initializers not constant expressions.
24650         Update call to digest_init.  Call constant_expression_warning
24651         where constant initializers are required.
24652         (process_init_element): Use c_save_expr.
24653         (c_finish_goto_ptr): Fold expression.
24654         (c_finish_return): Fold return value.  Update call to
24655         convert_for_assignment.
24656         (c_start_case): Fold switch expression.
24657         (c_process_expr_stmt): Fold expression.
24658         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
24659         ensure statement expression is not evaluated in constant expression.
24660         (build_binary_op): Track whether results are integer constant
24661         expressions or may occur in such, disable folding and wrap results
24662         as applicable.  Fold operands for -Wsign-compare warnings unless
24663         in_late_binary_op.
24664         (c_objc_common_truthvalue_conversion): Handle results folded to
24665         integer constants that are not integer constant expressions.
24666         * doc/extend.texi: Document when typeof operands are evaluated,
24667         that condition of __builtin_choose_expr is an integer constant
24668         expression, and more about use of __builtin_constant_p in
24669         initializers.
24670
24671 2009-03-29  Richard Guenther  <rguenther@suse.de>
24672
24673         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
24674         propagate addresses of array references.
24675
24676 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
24677
24678         * regmove.c (perhaps_ends_bb_p): Remove.
24679         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
24680         from INSN and check that the main loop stays within that basic block.
24681         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
24682         (regmove_forward_pass): Split out from regmove_optimize.  Use
24683         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
24684         (regmove_backward_pass): Split out from regmove_optimize.  Use
24685         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
24686         (regmove_optimize): Simplify.
24687
24688 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24689
24690         PR target/39545
24691         * config/i386/i386.c (classify_argument): Ignore flexible array
24692         member in struct and warn ABI change.
24693
24694 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
24695
24696         * config/i386/i386-protos.h (ix86_agi_dependent): New.
24697
24698         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
24699         (ix86_adjust_cost): Updated.
24700
24701 2009-03-29  Jan Hubicka  <jh@suse.cz>
24702
24703         PR middle-end/28850
24704         * tree-pass.h (pass_cleanup_eh): New function.
24705         (remove_unreachable_regions): Break code handling RTL
24706         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
24707         that can not be reached by runtime.
24708         (can_be_reached_by_runtime): New function.
24709         (label_to_region_map): New function.
24710         (num_eh_regions): New function.
24711         (rtl_remove_unreachable_regions): New function.
24712         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
24713         (remove_eh_region): New function.
24714         * except.h: Include sbitmap and vecprim.
24715         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
24716         num_eh_regions): Declare.
24717         * passes.c (init_optimization_passes): Schedule cleanup_eh.
24718         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
24719         * tree-eh.c (tree_remove_unreachable_handlers): New function.
24720         (tree_empty_eh_handler_p): New function.
24721         (cleanup_empty_eh): New function.
24722         (cleanup_eh): New function.
24723         (pass_cleanup_eh): New function.
24724
24725 2009-03-29  Jan Hubicka  <jh@suse.cz>
24726
24727         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
24728         for removed regions.
24729
24730 2009-03-29  Jan Hubicka  <jh@suse.cz>
24731
24732         * except.c (dump_eh_tree): Dump all datastructures.
24733
24734 2009-03-29  Jan Hubicka  <jh@suse.cz>
24735
24736         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
24737         (duplicate_eh_regions_1): Likewise.
24738         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
24739         vector; call EH verification.
24740         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
24741         Be ready for region being removed.
24742
24743 2009-03-29  Jan Hubicka  <jh@suse.cz>
24744
24745         * bitmap.c (bitmap_last_set_bit): New function.
24746         * bitmap.h (bitmap_last_set_bit): Declare.
24747
24748 2009-03-29  David Ayers  <ayers@fsfe.org>
24749
24750         PR objc/27377
24751         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
24752         by calling objc_compare_types and surpress warnings about
24753         incompatible C pointers that are compatible ObjC pointers.
24754
24755 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
24756
24757         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
24758         call initialize_inline_failed.
24759         (initialize_inline_failed): Move it from here ...
24760         * cgraph.c (initialize_inline_failed): ... to here.
24761         (cgraph_create_edge): Call initialize_inline_failed rather than
24762         setting inline_failed directly.
24763
24764 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24765
24766         PR target/32542
24767         * sysv4.opt (msdata): Improve comment.
24768         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
24769         * sysv4.h (SVR4_ASM_SPEC): Likewise.
24770
24771 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24772
24773         PR target/30451
24774         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
24775         load and store attributes.
24776
24777 2009-03-29  Ben Elliston  <bje@au.ibm.com>
24778
24779         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
24780         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
24781         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
24782         * doc/extend.texi (X86 Built-in Functions): Add index entries for
24783         __builtin_infq and __builtin_huge_valq.
24784
24785 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
24786
24787         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
24788         atmega8m1 devices.
24789         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
24790         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
24791
24792 2009-03-28  Xinliang David Li  <davidxl@google.com>
24793
24794         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
24795         (do_dbg_cnt): New function.
24796
24797 2009-03-28  Jan Hubicka  <jh@suse.cz>
24798
24799         Merge from pretty-ipa:
24800
24801         2009-03-27  Jan Hubicka  <jh@suse.cz>
24802
24803         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24804         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
24805         * passes.c (function_called_by_processed_nodes_p): New.
24806         * ipa-pure-const.c (check_call): Fix handling of operands.
24807         (analyze_function): Dump debug output for skipped bodies.
24808         (local_pure_const): Use function_called_by_processed_nodes_p.
24809         * dwarf2out.c (reference_to_unused): Use output.
24810         * passes.c (do_per_function_toporder): Likewise.
24811
24812         2008-11-12  Jan Hubicka  <jh@suse.cz>
24813
24814         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
24815         * ipa-pure-const.c (funct_state_d): Add can throw field; make
24816         state_set_in_source enum
24817         (check_decl): Ignore memory tags; do not set fake looping flags;
24818         dump diagnostics.
24819         (check_operand, check_tree, check_rhs_var, check_lhs_var,
24820         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
24821         (check_call, analyze_function): Rewrite.
24822         (check_stmt): New.
24823         (add_new_function): Update call of analyze_function.
24824         (generate_summary): Add call of analyze_function.
24825         (propagate): Propagate can_throw; handle state_set_in_source correctly.
24826         (local_pure_const): New function.
24827         (pass_local_pure_const): New pass.
24828         * ipa-inline.c (inline_transform): Set after_inlining.
24829         * tree-eh.c (stmt_can_throw_external): New.
24830         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
24831         work with aliasing built.
24832         * tree-flow.h (stmt_can_throw_external): New.
24833         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
24834         and local pure/const pass in early and late optimization queue.
24835
24836 2009-03-28  Martin Jambor  <mjambor@suse.cz>
24837
24838         * fold-const.c (get_pointer_modulus_and_residue): New parameter
24839         allow_func_align.
24840         (fold_binary): Allow function decl aligment consideration is the
24841         second argument is integer constant one.
24842         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
24843         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
24844         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
24845
24846 2009-03-28  Jan Hubicka  <jh@suse.cz>
24847
24848         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
24849         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
24850         * function.h (rtl_data): Add nothrow flag.
24851         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
24852         set DECL_NOTHROW for AVAILABLE functions.
24853
24854 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
24855
24856         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
24857         following vector keyword has expansion starting with pixel or bool
24858         keyword, expand vector to __vector and pixel or bool to __pixel or
24859         __bool.
24860
24861         PR c++/39554
24862         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
24863         warn_if_disallowed_function_p): Removed.
24864         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
24865         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
24866         warning_if_disallowed_function_p.
24867         * flags.h (warn_if_disallowed_function_p,
24868         warn_disallowed_functions): Removed.
24869         * common.opt (Wdisallowed-function-list=): Removed.
24870         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
24871
24872 2009-03-28  Richard Guenther  <rguenther@suse.de>
24873
24874         PR tree-optimization/38723
24875         * tree-ssa-pre.c (compute_avail): Add all default definitions to
24876         the entry block.
24877
24878 2009-03-28  Jan Hubicka  <jh@suse.cz>
24879
24880         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
24881         test introduced by my previous patch.
24882
24883 2009-03-28  Richard Guenther  <rguenther@suse.de>
24884
24885         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
24886         the PHIs value undefined.
24887
24888 2009-03-28  Jan Hubicka  <jh@suse.cz>
24889
24890         * tree-pass.h (pass_fixup_cfg): New pass.
24891         * ipa-inline.c (inline_transform): Set
24892         always_inline_functions_inlined/after_inlining.
24893         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
24894         (pass_fixup_cfg): New pass.
24895         * passes.c (init_optimization_passes): Add fixup_cfg.
24896
24897 2009-03-28  Richard Guenther  <rguenther@suse.de>
24898
24899         PR tree-optimization/38458
24900         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
24901         argument use the arguments copy-of value.
24902
24903 2009-03-28  Richard Guenther  <rguenther@suse.de>
24904
24905         PR tree-optimization/38180
24906         * tree-ssa-ccp.c (get_default_value): Simplify.
24907         (likely_value): Likewise.
24908         (surely_varying_stmt_p): Properly handle VOP case.
24909         (ccp_initialize): Likewise.
24910         (ccp_fold): Handle propagating through *&.
24911         (fold_const_aggregate_ref): Also handle decls.
24912
24913 2009-03-28  Jan Hubicka  <jh@suse.cz>
24914
24915         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
24916         * cgraph.h (cgraph_node): Likewise.
24917         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
24918         (cgraph_reset_node): Use process flag.
24919         (cgraph_mark_functions_to_output): Likewise.
24920         (cgraph_expand_function): Likewise.
24921         (cgraph_expand_all_functions): Likewise.
24922         (cgraph_output_in_order): Likewise.
24923         * dwarf2out.c (reference_to_unused): Likewise.
24924         * passes.c do_per_function_toporder): Likewise.
24925
24926 2009-03-28  Jan Hubicka  <jh@suse.cz>
24927
24928         Bring from lto-branch:
24929
24930         2008-09-03  Doug Kwan  <dougkwan@google.com>
24931
24932         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
24933         enums instead of reason strings.
24934         * cgraph.c (cgraph_create_edge): Same.
24935         (cgraph_inline_failed_string): New function.
24936         * cgraph.h (cgraph_inline_failed_t): New enum type.
24937         (cgraph_inline_failed_string): New prototype.
24938         (struct cgraph_edge): Change type of INLINED_FAILED from constant
24939         char pointer to cgraph_inline_failed_t.
24940         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
24941         (cgraph_default_inline_p): Ditto.
24942         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
24943         to cgraph_inline_failed_t pointer.
24944         * cif-code.def: New file.
24945         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
24946         reason string.
24947         (cgraph_check_inline_limits): Change type of REASON to pointer to
24948         cgraph_inline_failed_t.  Replace reason strings with enums.
24949         (cgraph_default_inline_p): Ditto.
24950         (cgraph_recursive_inlining_p): Ditto.
24951         (update_caller_keys): Change type of FAILED_REASON to
24952         cgraph_inline_failed_t.
24953         (cgraph_set_inline_failed): Change type of REASON to pointer to
24954         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
24955         convert enums to strings for text output.
24956         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
24957         to be of type cgraph_inline_failed_t.  Replace reason strings with
24958         enums.  Call cgraph_inline_failed_string to covert enums
24959         to strings for text output.
24960         (cgraph_decide_inlining): Replace reason strings with enums.
24961         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
24962         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
24963         for text output.
24964         * tree-inline.c (expand_call_inline): Change type of REASON
24965         to cgraph_inline_failed_t.  Replace reason strings with enums.
24966         Call cgraph_inline_failed_string for text output.
24967         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
24968         (cgraph.o): Ditto.
24969
24970 2009-03-28  Jan Hubicka  <jh@suse.cz>
24971
24972         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
24973         cgraph_clone_node): Remove master clone handling.
24974         (cgraph_is_master_clone, cgraph_master_clone): Remove.
24975         * cgraph.h (master_clone): Remove.
24976         (cgraph_is_master_clone, cgraph_master_clone): Remove.
24977         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
24978         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
24979
24980 2009-03-28  Jan Hubicka  <jh@suse.cz>
24981
24982         * cgraph.c (cgraph_function_body_availability): Functions declared
24983         inline are always safe to assume that it is not going to be replaced.
24984
24985 2009-03-28  Richard Guenther  <rguenther@suse.de>
24986
24987         PR tree-optimization/38513
24988         * tree-ssa-pre.c (eliminate): Remove redundant stores.
24989         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
24990         EXC_PTR_EXPR and FILTER_EXPR.
24991         (get_ref_from_reference_ops): Likewise.
24992
24993 2009-03-28  Richard Guenther  <rguenther@suse.de>
24994
24995         PR tree-optimization/38968
24996         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
24997         Use FLOOR_MOD_EXPR to compute misalignment.
24998
24999 2009-03-28  Richard Guenther  <rguenther@suse.de>
25000
25001         PR tree-optimization/37795
25002         * tree.h (combine_comparisons): Declare.
25003         * fold-const.c (combine_comparisons): Export.
25004         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
25005         comparisons.
25006         (ifcombine_iforif): Use combine_comparisons.
25007
25008 2009-03-28  Jan Hubicka  <jh@suse.cz>
25009
25010         * tree-eh.c (inlinable_call_p): New function.
25011         (make_eh_edges): Use it.
25012         (verify_eh_edges): Use it.
25013         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
25014         * except.c (reachable_next_level): Add inlinable_function argument
25015         (sjlj_find_directly_reachable_regions): Update.
25016         (add_reachable_handler): Do not set saw_any_handlers.
25017         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
25018         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
25019         Add new inlinable call parameter.
25020         (can_throw_internal, can_throw_external): Update.
25021         * except.h (can_throw_internal_1, can_throw_external_1,
25022         foreach_reachable_handler): Update declaration.
25023
25024 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
25025
25026         * config/arm/t-arm-coff, config/h8300/coff.h,
25027         config/i386/i386-aout.h, config/i386/i386-coff.h,
25028         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
25029         config/pdp11/2bsd.h, config/rs6000/aix41.h,
25030         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
25031         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
25032         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
25033         sys-types.h: Remove.
25034         * Makefile.in: Remove protoize and fixproto support and references
25035         in comments.
25036         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
25037         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
25038         Remove.
25039         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
25040         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
25041         unprotoize$(exeext).
25042         (rest.encap): Don't depend on $(STMP_FIXPROTO)
25043         (.PHONY): Don't depend on proto.
25044         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
25045         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
25046         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
25047         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
25048         build/gen-protos.o, build/scan.o, xsys-protos.h,
25049         build/fix-header$(build_exeext), build/fix-header.o,
25050         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
25051         stmp-install-fixproto): Remove.
25052         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
25053         SYSCALLS.c or fixproto files.
25054         (install-common): Don't install protoize.
25055         (install-headers-tar, install-headers-cpio, install-headers-cp):
25056         Don't depend on $(STMP_FIXPROTO).
25057         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
25058         install fixproto files or write out fixproto settings.
25059         (uninstall): Don't uninstall protoize.
25060         * config.gcc (use_fixproto): Remove.
25061         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
25062         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
25063         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
25064         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
25065         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
25066         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
25067         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
25068         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
25069         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
25070         * config/t-vxworks (STMP_FIXPROTO): Remove.
25071         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
25072         STMP_FIXPROTO): Remove.
25073         * config.in, configure: Regenerate.
25074         * crtstuff.c (gid_t, uid_t): Don't undefine.
25075         * doc/install.texi: Change m68k-coff to m68k-elf in example.
25076         (arm-*-coff, arm-*-aout: Remove target entries.
25077         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
25078         Remove mention of AIX 4.1.
25079         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
25080         * doc/invoke.texi (Running Protoize): Remove.
25081         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
25082         (Protoize Caveats): Remove.
25083         * tsystem.h: Update comments on headers assumed to exist.
25084
25085 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
25086
25087         * genautomata.c: Add a new year to the copyright.  Add a new
25088         reference.
25089         (struct insn_reserv_decl): Add comments for member bypass_list.
25090         (find_bypass): Remove.
25091         (insert_bypass): New.
25092         (process_decls): Use insert_bypass.
25093         (output_internal_insn_latency_func): Output all bypasses with the
25094         same input insn in one switch case.
25095
25096         * rtl.def (define_bypass): Describe bypass choice.
25097         * doc/md.texi (define_bypass): Ditto.
25098
25099 2009-03-27  Richard Guenther  <rguenther@suse.de>
25100
25101         * gimplify.c (mark_addressable): Export.
25102         * tree-flow.h (mark_addressable): Declare.
25103         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
25104         * tree-ssa.c (verify_phi_args): Verify that address taken
25105         variables have TREE_ADDRESSABLE set.
25106
25107 2009-03-27  Richard Guenther  <rguenther@suse.de>
25108
25109         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
25110         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
25111         Do not mark decls TREE_ADDRESSABLE.
25112         (build_fold_addr_expr): Adjust.
25113         (fold_addr_expr): Remove.
25114         (fold_unary): Use build_fold_addr_expr.
25115         (fold_comparison): Likewise.
25116         (split_address_to_core_and_offset): Likewise.
25117         * coverage.c (tree_coverage_counter_addr): Mark the array decl
25118         TREE_ADDRESSABLE.
25119         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
25120         (gimplify_modify_expr_to_memcpy): Mark source and destination
25121         addressable.
25122         * omp-low.c (create_omp_child_function): Mark the object decl
25123         TREE_ADDRESSABLE.
25124         (lower_rec_input_clauses): Mark the var we take the address of
25125         TREE_ADDRESSABLE.
25126         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
25127
25128 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25129
25130         PR middle-end/39315
25131         * cfgexpand.c (expand_one_stack_var_at): Change alignment
25132         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
25133
25134 2009-03-27  Richard Guenther  <rguenther@suse.de>
25135
25136         PR tree-optimization/39120
25137         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
25138         constraints.
25139         (handle_lhs_call): Process return constraints.  Add escape
25140         constraints if necessary.
25141         (handle_const_call): Fill out return constraints.  Make nested
25142         case more precise.  Avoid consttmp if possible.
25143         (handle_pure_call): Fill out return constraints.  Avoid
25144         callused if possible.
25145         (find_func_aliases): Simplify call handling.
25146
25147 2009-03-27  Richard Guenther  <rguenther@suse.de>
25148
25149         PR tree-optimization/39120
25150         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
25151         as a representative.
25152         (solve_graph): Do propagate CALLUSED.
25153         (handle_pure_call): Use a scalar constraint from CALLUSED for
25154         the return value.
25155         (find_what_p_points_to): CALLUSED shall not appear in poins-to
25156         solutions.
25157
25158 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25159
25160         PR c/39323
25161         * c-common.c (handle_aligned_attribute): Properly check alignment
25162         overflow.  Use (1U << i) instead of (1 << i).
25163
25164         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
25165
25166         * expr.h (get_mem_align_offset): Updated.
25167
25168         * tree.h (tree_decl_common): Change align to "unsigned int" and
25169         move it before pointer_alias_set.
25170
25171 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25172             Jakub Jelinek  <jakub@redhat.com>
25173
25174         PR target/38034
25175         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
25176         gr_register_operand with gr_reg_or_0_operand.
25177         (cmpxchg_rel_di): Likewise.
25178         (sync_lock_test_and_set<mode>): Likewise.
25179
25180 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25181
25182         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
25183         (true_regnum): Likewise.
25184
25185         * rtlanal.c (subreg_info): Moved to ...
25186         * rtl.h (subreg_info): Here.  New.
25187         (subreg_get_info): New.
25188
25189         * rtlanal.c (subreg_get_info): Make it extern.
25190
25191 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25192
25193         PR target/39472
25194         * config/i386/i386.c (ix86_abi): New.
25195         (override_options): Handle -mabi=.
25196         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
25197         (ix86_call_abi_override): Likewise.
25198         (init_cumulative_args): Likewise.
25199         (function_arg_advance): Likewise.
25200         (function_arg_64): Likewise.
25201         (function_arg): Likewise.
25202         (ix86_pass_by_reference): Likewise.
25203         (ix86_function_value_regno_p): Likewise.
25204         (ix86_build_builtin_va_list_abi): Likewise.
25205         (setup_incoming_varargs_64): Likewise.
25206         (is_va_list_char_pointer): Likewise.
25207         (ix86_init_machine_status): Likewise.
25208         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
25209         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
25210         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
25211         (ix86_function_abi): Make it static and return enum calling_abi.
25212         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
25213         with ix86_abi.
25214         (ix86_fn_abi_va_list): Updated.
25215
25216         * config/i386/i386.h (ix86_abi): New.
25217         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
25218         (CONDITIONAL_REGISTER_USAGE): Likewise.
25219         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
25220         (machine_function): Likewise.
25221
25222         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
25223         with ix86_abi.
25224         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
25225         (STACK_BOUNDARY): Likewise.
25226         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
25227
25228         * config/i386/i386.opt (mabi=): New.
25229
25230         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
25231         return enum calling_abi.
25232         (ix86_function_type_abi): Likewise.
25233         (ix86_function_abi): Removed.
25234
25235         * doc/invoke.texi: Document -mabi= option for x86.
25236
25237 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25238
25239         * builtins.c (real_dconstp): Delete.
25240         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
25241
25242 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
25243             Jakub Jelinek  <jakub@redhat.com>
25244
25245         PR debug/37959
25246         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
25247         (gen_subprogram_die): When a function is explicit, generate the
25248         DW_AT_explicit attribute.
25249         * langhooks.h (struct lang_hooks_for_decls): Add
25250         function_decl_explicit_p langhook.
25251         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
25252         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
25253
25254 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
25255
25256         * builtins.c (fold_builtin_memory_op): Optimize memmove
25257         into memcpy if we can prove source and destination don't overlap.
25258
25259         * tree-inline.c: Include gt-tree-inline.h.
25260         (clone_fn_id_num): New variable.
25261         (clone_function_name): New function.
25262         (tree_function_versioning): Use it.
25263         * Makefile.in (GTFILES): Add tree-inline.c.
25264
25265 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
25266
25267         * BASE-VER: Change to 4.5.0.
25268
25269 2009-03-27  Xinliang David Li  <davidxl@google.com>
25270
25271         PR tree-optimization/39557
25272         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
25273
25274 2009-03-27  Xinliang David Li  <davidxl@google.com>
25275
25276         PR tree-optimization/39548
25277         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
25278         candidate check.
25279
25280 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25281
25282         * c-common.c (pointer_int_sum): Use %wd on return from
25283         tree_low_cst.
25284
25285 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
25286
25287         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
25288         on return from tree_low_cst.
25289
25290 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
25291
25292         PR c++/36799
25293         * ginclude/stdarg.h (va_copy): Define also for
25294         __GXX_EXPERIMENTAL_CXX0X__.
25295
25296 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
25297
25298         PR c++/35652
25299         * builtins.h (c_strlen): Do not warn here.
25300         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
25301         * c-common.c (pointer_int_sum): Take an explicit location.
25302         Warn about offsets out of bounds.
25303         * c-common.h (pointer_int_sum): Adjust declaration.
25304
25305 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25306
25307         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
25308         markup glitch.
25309
25310 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
25311
25312         PR c++/39554
25313         * opts.c (warn_if_disallowed_function_p): Don't assume
25314         get_callee_fndecl must return non-NULL.
25315
25316 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
25317
25318         PR rtl-optimization/39522
25319         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
25320         when reg_reloaded_valid is set.
25321
25322 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25323
25324         * config/spu/divv2df3.c: New file.
25325         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
25326         (DPBIT_FUNCS): Filter out _div_df.
25327
25328 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
25329
25330         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
25331         a jump insn, count that jump in the distance to the loop start.
25332
25333 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
25334
25335         PR target/39523
25336         * config/sh/sh.c (calc_live_regs): Fix condition for global
25337         registers except PIC_OFFSET_TABLE_REGNUM.
25338
25339 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
25340
25341         PR/39518
25342         * doc/invoke.texi (-mconsole): New.
25343         (-mcygwin): New.
25344         (-mno-cygwin): New.
25345         (-mdll): New.
25346         (-mnop-fun-dllimport): New.
25347         (-mthread): New.
25348         (-mwin32): New.
25349         (-mwindows): New.
25350         (sub section "i386 and x86-64 Windows Options"): New.
25351
25352 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
25353
25354         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
25355         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
25356
25357 2009-03-25  Richard Guenther  <rguenther@suse.de>
25358
25359         PR middle-end/39497
25360         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
25361         of -Wno-error.
25362
25363 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
25364
25365         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
25366         neither of haifa/selective schedulers are working.
25367
25368 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25369
25370         * doc/invoke.texi (Debugging Options): Fix description of
25371         -fno-merge-debug-strings.
25372
25373 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
25374
25375         * config/cris/libgcc.ver: New version-script.
25376         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
25377
25378         * configure.ac <GAS features, nop mnemonic>: Add pattern
25379         crisv32-*-* for "nop".
25380         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
25381         * configure: Regenerate.
25382
25383 2009-03-24  Ira Rosen  <irar@il.ibm.com>
25384
25385         PR tree-optimization/39529
25386         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
25387         mark_sym_for_renaming for the tag copied to the new vector
25388         pointer.
25389
25390 2009-03-24  Arthur Loiret  <aloiret@debian.org>
25391
25392         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
25393         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
25394         EXTRA_SPEC_FUNCTIONS.
25395         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
25396         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
25397         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
25398         -march and -mtune options.
25399
25400 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
25401
25402         * config/m68k/t-rtems: Add m5329 multilib.
25403
25404 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
25405             Jakub Jelinek  <jakub@redhat.com>
25406
25407         PR debug/39524
25408         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
25409         nodes.
25410
25411 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25412
25413         PR c/39495
25414         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
25415         instead of c_parser_expression_conv, if original_code isn't one of the
25416         4 allowed comparison codes, fail.
25417
25418 2009-03-23  Richard Guenther  <rguenther@suse.de>
25419
25420         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
25421         * tree.h (struct tree_type): Likewise.
25422         * reload.h (struct insn_chain): Likewise.
25423         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
25424         * function.h (struct function): Likewise.
25425         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
25426
25427 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
25428
25429         PR tree-optimization/39516
25430         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
25431
25432 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
25433
25434         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
25435         should be set true if BITS_PER_WORD of target is bigger than 32
25436
25437 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
25438
25439         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
25440         Translate -B-options to -rpath-link.  Correct existing
25441         rpath-link and conditionalize on !nostdlib.
25442
25443 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25444
25445         * doc/extend.texi (Function Attributes, Variable Attributes):
25446         Fix typos.
25447         * doc/invoke.texi (Debugging Options, Optimize Options)
25448         (i386 and x86-64 Options, MCore Options): Likewise.
25449
25450 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
25451
25452         PR debug/37890
25453         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
25454         it for block local namespace aliases.
25455         (gen_decl_die): Pass context_die to gen_namespace_die.
25456
25457 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25458
25459         PR c/39495
25460         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
25461         minimum or maximum value.
25462
25463 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
25464
25465         * reginfo.c (globalize_reg): Recompute derived reg sets.
25466
25467 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
25468
25469         PR target/39063
25470         * libgcc2.c (mprotect): Do not use signed arguments for
25471         VirtualProtect, use DWORD arguments.  Also fix the 'may
25472         be used uninitialized' warning for the np variable.
25473
25474 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
25475
25476         PR target/39496
25477         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
25478         functions using regparm calling conventions when not optimizing.
25479         (ix86_function_sseregparm): Similarly for sseregparm calling
25480         conventions.
25481
25482 2009-03-19  Li Feng  <nemokingdom@gmail.com>
25483
25484         PR middle-end/39500
25485         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
25486         dependence if the first conflict is after niter iterations.
25487
25488 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
25489
25490         PR middle-end/38609
25491         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
25492         functions with dynamic stack-pointer adjustments.
25493
25494 2009-03-19  Ben Elliston  <bje@au.ibm.com>
25495
25496         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
25497         option; change to -msdata=data.
25498
25499 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25500
25501         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
25502         and -fopenmp.
25503
25504 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
25505
25506         PR target/35180
25507         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
25508
25509 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
25510
25511         * doc/invoke.texi (Code Gen Options): Expand discussion of
25512         -fno-common.
25513
25514 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
25515
25516         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
25517         * matrix-reorg.c (struct matrix_info): Likewise.
25518         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
25519         * rtl.h (struct mem_attrs): Likewise.
25520         * df.h (struct df): Likewise.
25521         * tree-data-ref.h (struct data_dependence_relation): Likewise.
25522         * ira-int.h (struct ira_allocno): Likewise.
25523         * df-scan.c (struct df_collection_rec): Likewise.
25524         * ira.c (struct equivalence): Likewise.
25525         * function.c (struct temp_slot): Likewise.
25526         * cfgloop.h (struct loop): Likewise.
25527
25528         PR debug/39485
25529         * function.c (use_register_for_decl): When not optimizing, disregard
25530         register keyword for variables with types containing methods.
25531
25532 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
25533
25534         PR middle-end/39447
25535         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
25536         (is_simple_operand): Call contains_component_ref_p before calling data
25537         reference analysis that would fail on COMPONENT_REFs.
25538
25539         * tree-vrp.c (search_for_addr_array): Fix formatting.
25540
25541 2009-03-18  Richard Guenther  <rguenther@suse.de>
25542
25543         * tree-vect-transform.c (vect_loop_versioning): Fold the
25544         generated comparisons.
25545         * tree-vectorizer.c (set_prologue_iterations): Likewise.
25546         (slpeel_tree_peel_loop_to_edge): Likewise.
25547
25548 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25549
25550         PR middle-end/37805
25551         * opts.c (print_specific_help): In addition to `undocumented',
25552         accept `separate' and `joined' flags if passed alone.  Describe
25553         output by the first matched one of those.
25554         (common_handle_option): Skip over empty strings.
25555         * gcc.c (display_help): Fix help string for `--help='.
25556         * doc/invoke.texi (Option Summary, Overall Options): With
25557         `--help=', classes and qualifiers can both be repeated, but
25558         only the latter can be negated.  One should not pass only
25559         negated qualifiers.  Fix markup and examples.
25560
25561         Revert
25562         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
25563         PR middle-end/37805
25564         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
25565         and -fhelp=separate.
25566
25567 2009-03-17  Jing Yu  <jingyu@google.com>
25568
25569         PR middle-end/39378
25570         * function.h (struct rtl_data): Move is_thunk from here...
25571         (struct function): ...to here.
25572         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
25573         * varasm.c (assemble_start_function): Change is_thunk from crtl to
25574         cfun.
25575         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
25576         cfun.
25577         (alpha_does_function_need_gp, alpha_start_function): Likewise.
25578         (alpha_output_function_end_prologue): Likewise.
25579         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
25580         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
25581         (rs6000_output_function_epilogue): Likewise.
25582         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
25583
25584 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
25585
25586         PR target/39482
25587         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
25588         from different units in a single alternative.
25589         (*truncdfsf_i387): Ditto.
25590         (*truncxfsf2_mixed): Ditto.
25591         (*truncxfdf2_mixed): Ditto.
25592
25593 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
25594
25595         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
25596         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
25597
25598         PR debug/39474
25599         * tree-ssa-live.c (remove_unused_locals): Don't remove local
25600         unused non-artificial variables when not optimizing.
25601
25602         PR debug/39471
25603         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
25604         DW_TAG_imported_module even if decl is IMPORTED_DECL with
25605         NAMESPACE_DECL in its DECL_INITIAL.
25606
25607         PR middle-end/39443
25608         * optabs.c (set_user_assembler_libfunc): New function.
25609         * expr.h (set_user_assembler_libfunc): New prototype.
25610         * c-common.c: Include libfuncs.h.
25611         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
25612         for memcmp, memset, memcpy, memmove and abort.
25613         * Makefile.in (c-common.o): Depend on libfuncs.h.
25614
25615         PR debug/39412
25616         * dwarf2out.c (gen_inlined_enumeration_type_die,
25617         gen_inlined_structure_type_die, gen_inlined_union_type_die,
25618         gen_tagged_type_instantiation_die): Removed.
25619         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
25620         do nothing.
25621
25622 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
25623
25624         PR testsuite/38526
25625         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
25626         its use.
25627         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
25628         (check-parallel-%): Ditto.
25629         (check-consistency): Ditto.
25630
25631 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
25632
25633         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
25634         local variable rhs by NULL_TREE.
25635
25636 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25637
25638         PR target/39477
25639         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
25640
25641 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25642
25643         PR target/39476
25644         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
25645
25646 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
25647
25648         PR target/39473
25649         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
25650         for ms->sysv ABI calls only in 64bit mode.
25651
25652         * config/i386/i386.md (untyped_call): Support 32bit.
25653
25654 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25655
25656         * doc/extend.texi: Replace x86_65 with x86_64.
25657
25658 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
25659
25660         PR tree-optimization/39455
25661         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
25662         mismatches for POINTER_TYPE_P (type).
25663         (number_of_iterations_le): Likewise.
25664
25665 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
25666
25667         * config/picochip/picochip.c: Removed profiling support.
25668         * config/picochip/picochip.md: Removed profiling instruction.
25669         * config/picochip/picochip.h: Removed profiling builtin.
25670
25671 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
25672
25673         * doc/install.texi (--with-host-libstdcxx): Document.
25674
25675 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
25676
25677         PR target/34299
25678         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
25679         generate a warning if the function name does not begin with
25680         "__vector" and the function has either the 'signal' or 'interrupt'
25681         attribute, from here to ...
25682         (avr_declare_function_name): ...here. New function.
25683         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
25684         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
25685
25686 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
25687
25688         PR bootstrap/39454
25689         * cse.c (fold_rtx): Don't modify original const_arg1 when
25690         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
25691         separate variable instead.
25692         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
25693         from out of range shift counts.
25694         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
25695
25696 2009-03-13  Catherine Moore  <clm@codesourcery.com>
25697
25698         * config/i386/x-mingw32 (host-mingw32.o): Replace
25699         diagnostic.h with $(DIAGNOSTIC_H).
25700
25701 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
25702
25703         PR target/39431
25704         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
25705         predicate.
25706         * config/i386/sync.md (sync_compare_and_swap<mode>,
25707         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
25708         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
25709         into a register.
25710         (sync_double_compare_and_swapdi_pic,
25711         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
25712         cmpxchg8b_pic_memory_operand instead of just memory_operand.
25713
25714 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25715
25716         PR target/39445
25717         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
25718
25719 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25720
25721         PR target/39327
25722         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
25723         (avx_addsubv4df3): Likewise.
25724         (*avx_addsubv4sf3): Likewise.
25725         (sse3_addsubv4sf3): Likewise.
25726
25727 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
25728
25729         PR target/38824
25730         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
25731
25732 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
25733
25734         PR debug/39432
25735         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
25736         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
25737         registers for allocnos created from user-defined variables.
25738
25739 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25740
25741         PR target/39181
25742         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
25743         of non-integer mode as well.
25744
25745 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
25746
25747         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
25748         for functions for which the parameter types are unknown.
25749
25750 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
25751
25752         PR target/39137
25753         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
25754         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
25755         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
25756         * config/i386/i386.c (ix86_local_alignment): For
25757         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
25758         long long variables on the stack to avoid dynamic realignment.
25759         Allow the first argument to be a decl rather than type.
25760         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
25761
25762 2009-03-11  Nick Clifton  <nickc@redhat.com>
25763
25764         PR target/5362
25765         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
25766         options.
25767         Add description to mno-lsim option.
25768         * config/mcore/mcore.h: Remove comment about deprecated m4align
25769         option.
25770         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
25771         * doc/invoke.texi: Add description of mno-lsim and
25772         mstack-increment options.
25773
25774         * config/fr30/fr30.opt: Document the -mno-lsim option.
25775         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
25776         and -mno-lsim options.
25777
25778 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25779
25780         * fold-const.c (fold_comparison): Only call fold_inf_compare
25781         if the mode supports infinities.
25782
25783 2009-03-11  Jason Merrill  <jason@redhat.com>
25784
25785         PR debug/39086
25786         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
25787         end already did.  Notice GIMPLE_CALL modifications of the result.
25788         Don't copy debug information from an ignored decl or a decl from
25789         another function.
25790
25791 2009-03-10  Richard Guenther  <rguenther@suse.de>
25792             Nathan Froyd  <froydnj@codesourcery.com>
25793
25794         PR middle-end/37850
25795         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
25796         (__divMODE3): Likewise.
25797
25798 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
25799
25800         PR tree-optimization/39394
25801         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
25802         DECL_SIZE_UNIT of variable length FIELD_DECLs.
25803
25804 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25805
25806         * recog.c (verfiy_changes): Disallow renaming of hard regs in
25807         inline asms for register asm ("") declarations.
25808
25809 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
25810
25811         * fold-const.c (fold_unary): Fix comment.
25812
25813 2009-03-07  Jan Hubicka  <jh@suse.cz>
25814
25815         PR target/39361
25816         * tree-inline.c (setup_one_parameter): Do replacement of const
25817         argument by constant in SSA form.
25818
25819 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
25820
25821         PR middle-end/38028
25822         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
25823         determine alignment passed to assign_stack_local.
25824         (assign_parms_unsplit_complex): Likewise.
25825         * except.c (sjlj_build_landing_pads): Likewise.
25826
25827 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
25828
25829         PR middle-end/39360
25830         * tree-flow.h (add_referenced_var): Return bool instead of void.
25831         * tree-dfa.c (add_referenced_var): Return result of
25832         referenced_var_check_and_insert call.
25833         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
25834         of referenced_var_check_and_insert.
25835
25836         PR debug/39372
25837         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
25838         (gen_variable_die): Emit DW_AT_location on abstract static variable's
25839         DIE, don't emit it if abstract origin already has it.
25840         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
25841         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
25842
25843 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
25844
25845         * genpreds.c (needs_variable): Fix parentheses at variable name
25846         detection.
25847         (write_tm_constrs_h): Indent generated code.
25848
25849 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25850
25851         * doc/extend.texi (Function Attributes): Add documentation
25852         for isr attributes.
25853
25854 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
25855
25856         PR debug/39387
25857         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
25858         take locus from its DECL_SOURCE_LOCATION instead of input_location.
25859
25860 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
25861
25862         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
25863         the loop as bad.
25864
25865 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
25866
25867         PR debug/39379
25868         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
25869         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
25870
25871 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
25872
25873         * config/i386/i386.md (R8_REG, R9_REG): New constants.
25874         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
25875         constants instead of magic numbers.
25876         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
25877         (QI_REG_P): Ditto.
25878         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
25879         (x86_64_ms_abi_int_parameter_registers): Ditto.
25880         (x86_64_int_return_registers): Ditto.
25881         (ix86_maybe_switch_abi): Ditto.
25882         (ix86_expand_call): Ditto for clobbered_registers array.
25883         (ix86_hard_regno_mode_ok): Ditto.
25884         (x86_extended_QIreg_mentioned_p): Ditto.
25885
25886 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
25887
25888         PR tree-optimization/39349
25889         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
25890
25891         * combine.c (gen_lowpart_for_combine): Use omode when generating
25892         clobber.
25893
25894 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
25895
25896         PR rtl-optimization/39235
25897         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
25898
25899 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
25900
25901         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
25902
25903 2009-03-04  Richard Guenther  <rguenther@suse.de>
25904
25905         PR tree-optimization/39362
25906         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
25907         that occur in abnormal PHIs should be varying.
25908
25909 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
25910
25911         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
25912         Extend comments.
25913         (simple_iv):  Take loop as an argument instead of statement.
25914         * tree-scalar-evolution.h (simple_iv): Declaration changed.
25915         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
25916         to simple_iv.
25917         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
25918         Ditto.
25919         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
25920         * matrix-reorg.c (analyze_transpose): Ditto.
25921         * tree-data-ref.c (dr_analyze_innermost): Ditto.
25922         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
25923         * tree-predcom.c (ref_at_iteration): Ditto.
25924         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
25925
25926 2009-03-04  Richard Guenther  <rguenther@suse.de>
25927
25928         PR tree-optimization/39358
25929         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
25930         escaped_id and callused_id.
25931         (solve_graph): Likewise.
25932
25933 2009-03-04  Richard Guenther  <rguenther@suse.de>
25934
25935         PR tree-optimization/39339
25936         * tree-sra.c (try_instantiate_multiple_fields): Make it
25937         no longer ICE on the above.
25938
25939 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
25940
25941         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
25942         that fits within Pmode.
25943
25944 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
25945
25946         PR middle-end/10109
25947         * tm.texi (LIBCALL_VALUE): Update description.
25948
25949 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
25950
25951         PR middle-end/34443
25952         * doc/extend.texi (section): Update description.
25953
25954 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
25955
25956         PR middle-end/39345
25957         * tree-inline.c (remapped_type): New.
25958         (can_be_nonlocal): Call remapped_type instead of remap_type.
25959
25960 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
25961
25962         PR fortran/39354
25963         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
25964         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
25965
25966 2009-03-03  Richard Guenther  <rguenther@suse.de>
25967
25968         PR middle-end/39272
25969         * tree.c (tree_nonartificial_location): New function.
25970         * tree.h (tree_nonartificial_location): Declare.
25971         * builtins.c (expand_builtin_memory_chk): Provide location
25972         of the call location for artificial function pieces.
25973         (maybe_emit_chk_warning): Likewise.
25974         (maybe_emit_sprintf_chk_warning): Likewise.
25975         (maybe_emit_free_warning): Likewise.
25976         * expr.c (expand_expr_real_1): Likewise.
25977
25978 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
25979
25980         PR tree-optimization/39343
25981         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
25982         COMPONENT_REF t has ARRAY_TYPE.
25983
25984 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
25985
25986         PR middle-end/39335
25987         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
25988         when the type precision of the induction variable should be
25989         larger than the type precision of nit.
25990         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
25991         * graphite.c (graphite_loop_normal_form): Same.
25992         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
25993
25994 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
25995
25996         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
25997         (*call_1_rex64_ms_sysv): Use named constants instead of magic
25998         numbers to describe clobbered registers.
25999         (*call_value_0_rex64_ms_sysv): Ditto.
26000         * config/i386/mmx.md (mmx_emms): Ditto.
26001         (mmx_femms): Ditto.
26002
26003 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
26004
26005         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
26006         of ABI_64.
26007
26008 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26009
26010         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
26011         (spu_section_type_flags): New function.
26012
26013 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
26014
26015         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
26016         reg_class_contents of FLOAT_REGS into a temporary.
26017
26018 2009-03-02  Richard Guenther  <rguenther@suse.de>
26019             Ira Rosen  <irar@il.ibm.com>
26020
26021         PR tree-optimization/39318
26022         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
26023         information to the vectorized statement.
26024
26025 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
26026
26027         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
26028         variable.  Use defined names instead of magic constants for REX SSE
26029         registers.
26030
26031 2009-03-01  Richard Guenther  <rguenther@suse.de>
26032
26033         PR tree-optimization/39331
26034         * omp-low.c (lower_send_shared_vars): Do not receive new
26035         values for the reference of DECL_BY_REFERENCE parms or results.
26036
26037 2009-03-01  Jan Hubicka  <jh@suse.cz>
26038
26039         PR debug/39267
26040         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
26041         BLOCK_NONLOCALIZED_VAR): New macros.
26042         (tree_block): Add nonlocalized_vars.
26043         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
26044         gen_decl_die): Add origin argument.  Allow generation of die with
26045         origin at hand only.
26046         (gen_member_die, gen_type_die_with_usage, force_decl_die,
26047         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
26048         of gen_*.
26049         (gen_block_die): Fix checking for unused blocks.
26050         (process_scope_var): Break out from .... ; work with origins only.
26051         (decls_for_scope) ... here; process nonlocalized list.
26052         (dwarf2out_ignore_block): Look for nonlocalized vars.
26053         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
26054         vars.
26055         (dump_scope_block): Dump them.
26056         * tree-inline.c (remap_decls): Handle nonlocalized vars.
26057         (remap_block): Likewise.
26058         (can_be_nonlocal): New predicate.
26059         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
26060
26061 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26062
26063         * configure: Regenerate.
26064
26065 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26066
26067         * optc-gen.awk: No need to duplicate option flags twice.
26068         Reuse help texts for duplicate options which do not have any.
26069
26070         * gcc.c (display_help): Document --version.
26071
26072         * gcc.c (main): If print_help_list and verbose_flag, ensure
26073         driver output comes before subprocess output.
26074
26075         * optc-gen.awk: Assign all remaining fields to help string,
26076         space-separated, for multi-line help in *.opt.
26077
26078         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
26079         -Wno-pedantic-ms-format is for MinGW targets only.
26080
26081         * doc/options.texi (Option file format): Fix bad indentation,
26082         restoring dropped sentence.
26083
26084 2009-02-28  Jan Hubicka  <jh@suse.cz>
26085
26086         * tree-inline.c (tree_function_versioning): Output debug info.
26087
26088 2009-02-28  Jan Hubicka  <jh@suse.cz>
26089
26090         PR debug/39267
26091         * tree-inline.c (setup_one_parameter): Do not copy propagate
26092         arguments when not optimizing.
26093
26094 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26095
26096         PR target/39327
26097         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
26098         (avx_addsubv4df3): Likewise.
26099         (*avx_addsubv4sf3): Likewise.
26100         (sse3_addsubv4sf3): Likewise.
26101         (*avx_addsubv2df3): Likewise.
26102         (sse3_addsubv2df3): Likewise.
26103         (avx_unpckhps256): Correct item selectors.
26104         (avx_unpcklps256): Likewise.
26105         (avx_unpckhpd256): Likewise.
26106         (avx_unpcklpd256): Likewise.
26107
26108 2009-02-28  Jan Hubicka  <jh@suse.cz>
26109
26110         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
26111         static vars.
26112         (copy_arguments_for_versioning): If var is declared don't declare it.
26113         (tree_function_versioning): First setup substitutions and then copy
26114         args.
26115
26116 2009-02-27  Jan Hubicka  <jh@suse.cz>
26117
26118         PR debug/39267
26119         * cgraph.h (varpool_output_debug_info): Remove.
26120         * cgraphunit.c (varpool_output_debug_info): Remove.
26121         * dwarf2out.c (deferred_locations_struct): New struct
26122         (deferred_locations): New type.
26123         (deferred_locations_list): New static var.
26124         (deffer_location): New function.
26125         (gen_variable_die): Use it.
26126         (decls_for_scope): Output info on local static vars.
26127         (dwarf2out_finish): Process deferred locations.
26128         * varpool.c (varpool_output_debug_info): Remove.
26129
26130 2009-02-27  Jan Hubicka  <jh@suse.cz>
26131
26132         PR debug/39267
26133         * tree.h (TREE_PROTECTED): Fix comment.
26134         (BLOCK_HANDLER_BLOCK): Remove.
26135         (struct tree_block): Remove handler_block add body_block.
26136         (inlined_function_outer_scope_p): New.
26137         (is_body_block): Remove.
26138         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
26139         * dwarf2out.c (is_inlined_entry_point): Remove.
26140         (add_high_low_attributes): Use inlined_function_outer_scope_p.
26141         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
26142         code.
26143         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
26144         * gimplify.c (gimplify_expr): Gimplify body blocks.
26145         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
26146         block with multiple subblocks.
26147         (dump_scope_block): Prettier output; dump more flags and info.
26148         (dump_scope_blocks): New.
26149         (remove_unused_locals): Use dump_scope_blocks.
26150         * tree-flow.h (dump_scope_blocks): Declare.
26151         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
26152         * stmt.c (is_body_block): Remove.
26153         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
26154         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
26155
26156 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
26157
26158         PR middle-end/39308
26159         * graphite.c (graphite_loop_normal_form): Do not call
26160         number_of_iterations_exit from a gcc_assert.
26161
26162 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26163
26164         * config/s390/s390.c (s390_swap_cmp): Look for conditional
26165         jumps if COND is NULL.
26166         (find_cond_jump): New function.
26167         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
26168         * config/s390/s390.md: Remove z10_cobra attribute value.
26169
26170 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
26171
26172         * config/alpha/alpha.h (alpha_expand_mov): Return false if
26173         force_const_mem returns NULL_RTX.
26174
26175 2009-02-26  Jan Hubicka  <jh@suse.cz>
26176
26177         PR debug/39267
26178         * cgraph.h (varpool_output_debug_info): Remove.
26179         * cgraphunit.c (varpool_output_debug_info): Remove.
26180         * dwarf2out.c (deferred_locations_struct): New struct
26181         (deferred_locations): New type.
26182         (deferred_locations_list): New static var.
26183         (deffer_location): New function.
26184         (gen_variable_die): Use it.
26185         (decls_for_scope): Output info on local static vars.
26186         (dwarf2out_finish): Process deferred locations.
26187         * varpool.c (varpool_output_debug_info): Remove.
26188
26189 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26190
26191         PR rtl-optimization/39241
26192         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
26193         to subreg_offset_representable_p.
26194
26195 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
26196
26197         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
26198         execute function prototype.  Get f and nregs from max_reg_num
26199         and get_insns.  Remove the first backward pass as it's dead,
26200         guard the forward pass by flag_expensive_optimizations.
26201         (rest_of_handle_regmove): Delete.
26202         (pass_regmove): Replace it with regmove_optimize.
26203
26204 2009-02-25  Martin Jambor  <mjambor@suse.cz>
26205
26206         PR tree-optimization/39259
26207         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
26208         calls_alloca function flags.
26209         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
26210         calls are detected.
26211
26212 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
26213
26214         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
26215         flags_set_1_rtx, flags_set_1_set): Delete.
26216         (regmove_optimize): Do not call mark_flags_life_zones.
26217
26218 2009-02-24  Julian Brown  <julian@codesourcery.com>
26219
26220         PR target/35965
26221         * config/arm/arm.c (require_pic_register): Only set
26222         cfun->machine->pic_reg once per function.
26223
26224 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
26225
26226         * doc/invoke.texi (Link Options): Document an easier way to pass
26227         options that take arguments to the GNU linker using -Xlinker and -Wl.
26228
26229 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
26230
26231         PR target/33785
26232         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
26233
26234 2009-02-24  Richard Guenther  <rguenther@suse.de>
26235
26236         PR debug/39285
26237         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
26238
26239 2009-02-24  Richard Guenther  <rguenther@suse.de>
26240             Zdenek Dvorak  <ook@ucw.cz>
26241
26242         PR tree-optimization/39233
26243         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
26244         from converting them to a generic type.
26245
26246 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
26247
26248         PR tree-optimization/39260
26249         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
26250         contains a condition with a real type.
26251         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
26252
26253 2009-02-23  Jason Merrill  <jason@redhat.com>
26254
26255         PR c++/38880
26256         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
26257         narrowing_initializer_constant_valid_p.
26258         (narrowing_initializer_constant_valid_p): Don't return
26259         null_pointer_node for adding a pointer to itself.
26260
26261 2009-02-23  Jan Hubicka  <jh@suse.cz>
26262
26263         PR c/12245
26264         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
26265         resizing.
26266
26267 2009-02-23  Jan Hubicka  <jh@suse.cz>
26268
26269         PR tree-optimization/37709
26270         * tree.c (block_ultimate_origin): Move here from dwarf2out.
26271         * tree.h (block_ultimate_origin): Declare.
26272         * dwarf2out.c (block_ultimate_origin): Move to tree.c
26273         * tree-ssa-live.c (remove_unused_scope_block_p):
26274         Eliminate blocks containig no instructions nor live variables nor
26275         nested blocks.
26276         (dump_scope_block): New function.
26277         (remove_unused_locals): Enable removal of dead blocks by default;
26278         enable dumping at TDF_DETAILS.
26279
26280 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26281
26282         * config/i386/i386.c (classify_argument): Don't allow COImode
26283         and OImode.
26284         (function_arg_advance_32): Don't allow OImode.
26285         (function_arg_32): Likewise.
26286         (function_value_32): Likewise.
26287         (return_in_memory_32): Likewise.
26288         (function_arg_64): Remove OImode comment.
26289
26290 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26291
26292         PR target/39261
26293         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
26294         ix86_expand_vector_set for V4DImode in 64bit mode only.
26295         (ix86_expand_vector_init_one_var): Likewise.
26296
26297 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
26298
26299         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
26300
26301 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
26302
26303         PR bootstrap/39257
26304         * loop-iv.c: Revert last change.
26305         * emit-rtl.c: Likewise.
26306
26307 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
26308
26309         PR target/39256
26310         * config/i386/i386.c (type_natural_mode): Remove an extra
26311         space in the warning message.
26312         (function_value_32): Handle 32-byte vector modes.
26313         (return_in_memory_32): Likewise.
26314
26315 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
26316
26317         * loop-iv.c (truncate_value): New function.
26318         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
26319         of lowpart_subreg.
26320         (lowpart_subreg): Move to...
26321         * emit-rtl.c: ...here.
26322
26323 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
26324
26325         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
26326         accidental and undocumented change at revision 140860.
26327
26328 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
26329
26330         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
26331         take gimple_seq * arguments.
26332         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
26333         types_compatible_p langhook.
26334
26335 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
26336             Joseph Myers  <joseph@codesourcery.com>
26337
26338         * config/arm/arm.c (arm_builtin_va_list): New function.
26339         (arm_expand_builtin_va_start): Likewise.
26340         (arm_gimplify_va_arg_expr): Likewise.
26341         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
26342         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
26343         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
26344         (va_list_type): New variable.
26345         (arm_mangle_type): Mangle va_list_type appropriately.
26346
26347 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
26348
26349         PR middle-end/39157
26350         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
26351         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
26352         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
26353         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
26354         parameter to 1000 for -O1 by default.
26355         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
26356         parameter.
26357         * loop-invariant.c: Include params.h.
26358         (move_loop_invariants): Don't call move_single_loop_invariants on
26359         very large loops.
26360
26361 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
26362
26363         * calls.c (emit_library_call_value_1): Use slot_offset instead of
26364         offset when calculating bounds for indexing stack_usage_map.  Fixes
26365         a buffer overflow with certain target setups.
26366
26367 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
26368
26369         PR target/39240
26370         * calls.c (expand_call): Clear try_tail_call if caller and callee
26371         disagree in promotion of function return value.
26372
26373 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
26374
26375         PR target/39175
26376         * c-common.c (c_determine_visibility): If visibility changed and
26377         DECL_RTL has been already set, call make_decl_rtl to update symbol
26378         flags.
26379
26380 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
26381
26382         PR c++/39188
26383         * varasm.c (assemble_variable): Don't check DECL_NAME when
26384         globalizing a variable.
26385
26386 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
26387
26388         PR c/38483
26389         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
26390         expression before any __builtin_trap call.
26391         * c-typeck.c (build_function_call): Convert and check function
26392         arguments before generating a call to a trap.  Evaluate the
26393         function arguments before the trap.
26394
26395 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
26396
26397         PR target/39228
26398         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
26399         (UNSPEC_FXAM_MEM): New unspec.
26400         (fxam<mode>2_i387_with_temp): New insn and split pattern.
26401         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
26402         memory using fxam<mode>2_i387_with_temp to remove excess precision.
26403
26404 2009-02-19  Richard Guenther  <rguenther@suse.de>
26405
26406         PR tree-optimization/39207
26407         PR tree-optimization/39074
26408         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
26409         storedanything_tree): New.
26410         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
26411         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
26412         (build_succ_graph): Add edges from STOREDANYTHING to all
26413         non-direct nodes.
26414         (init_base_vars): Initialize STOREDANYTHING.
26415         (compute_points_to_sets): Free substitution info after
26416         building the succ graph.
26417         (ipa_pta_execute): Likewise.
26418
26419         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
26420         field.
26421         (do_ds_constraint): Do not add to special var or non-pointer
26422         field solutions.
26423         (type_could_have_pointers): Split out from ...
26424         (could_have_pointers): ... here.  For arrays use the element type.
26425         (create_variable_info_for): Initialize may_have_pointers.
26426         (new_var_info): Likewise.
26427         (handle_lhs_call): Make the HEAP variable unknown-sized.
26428         (intra_create_variable_infos): Use a type with pointers for
26429         PARM_NOALIAS, make it unknown-sized.
26430
26431 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26432
26433         PR target/39224
26434         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
26435
26436 2009-02-18  Jason Merrill  <jason@redhat.com>
26437
26438         PR target/39179
26439         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
26440         value if DECL_EXTERNAL.
26441         * tree-sra.c (sra_walk_gimple_assign): Likewise.
26442         * target.h (gcc_target::binds_local_p): Clarify "module".
26443         * tree.h (TREE_PUBLIC): Clarify "module".
26444
26445 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
26446
26447         PR target/38891
26448         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
26449         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
26450
26451 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
26452
26453         PR target/39082
26454         * c.opt (Wabi): Support C and ObjC.
26455         (Wpsabi): New.
26456
26457         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
26458
26459         * config/i386/i386.c (classify_argument): Warn once about the ABI
26460         change when passing union with long double.
26461
26462         * doc/invoke.texi: Update -Wabi for warning psABI changes.
26463
26464 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
26465
26466         PR c/35447
26467         * c-parser.c (c_parser_compound_statement): Always enter and leave
26468         a scope.
26469
26470 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26471
26472         PR target/34587
26473         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
26474
26475 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
26476
26477         PR tree-optimization/36922
26478         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
26479         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
26480         Likewise.
26481
26482 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26483
26484         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
26485         to 0 for EABI64.
26486
26487 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26488
26489         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
26490
26491 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
26492
26493         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
26494         tree sharing.
26495
26496 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
26497             Richard Sandiford  <rdsandiford@googlemail.com>
26498
26499         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
26500         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
26501         (loongson_biadd): ...this.
26502
26503 2009-02-17  Richard Guenther  <rguenther@suse.de>
26504
26505         PR tree-optimization/39202
26506         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
26507         a var make sure to follow existing collapses.
26508
26509 2009-02-17  Richard Guenther  <rguenther@suse.de>
26510
26511         PR middle-end/39214
26512         * langhooks.c (lhd_print_error_function): Check for NULL block.
26513
26514 2009-02-17  Richard Guenther  <rguenther@suse.de>
26515
26516         PR tree-optimization/39204
26517         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
26518         of the PHI arg.
26519
26520 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
26521
26522         * config/soft-fp/double.h: Update from glibc CVS.
26523
26524 2009-02-17  Richard Guenther  <rguenther@suse.de>
26525
26526         PR tree-optimization/39207
26527         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
26528         strict-aliasing warnings for pointers pointing to NULL.
26529
26530 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
26531
26532         PR c/35446
26533         * c-parser.c (c_parser_braced_init): Call pop_init_level when
26534         skipping until next close brace.
26535
26536 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
26537
26538         PR target/37049
26539         * config/i386/i386.c (ix86_expand_push): Set memory alignment
26540         to function argument boundary.
26541
26542 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
26543
26544         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
26545         in the lea_add. Reload eventually constraints it properly.
26546         * config/picochip/constraints.md: Remove the target constraint
26547         "b", since it is not needed anymore.
26548
26549 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
26550
26551         * gthr-dce.h: Uglify function parameter and local variable names.
26552         * gthr-gnat.h: Likewise.
26553         * gthr-mipssde.h: Likewise.
26554         * gthr-nks.h: Likewise.
26555         * gthr-posix95.h: Likewise.
26556         * gthr-posix.h: Likewise.
26557         * gthr-rtems.h: Likewise.
26558         * gthr-single.h: Likewise.
26559         * gthr-solaris.h: Likewise.
26560         * gthr-tpf.h: Likewise.
26561         * gthr-vxworks.h: Likewise.
26562         * gthr-win32.h: Likewise.
26563
26564 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
26565
26566         PR target/39196
26567         * config/i386/i386.md: Restrict the new peephole2 to move
26568         between MMX/SSE registers.
26569
26570 2009-02-15  Richard Guenther  <rguenther@suse.de>
26571
26572         Revert
26573         2009-02-13  Richard Guenther  <rguenther@suse.de>
26574
26575         * configure.ac: Enable LFS.
26576         * configure: Re-generate.
26577         * config.in: Likewise.
26578
26579 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26580
26581         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
26582         spu_srqwbyte, spu_srqwbytebc): Define.
26583         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
26584         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
26585         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
26586         "shrqby_<mode>"): New insn-and-split patterns.
26587         * config/spu/spu.c (expand_builtin_args): Determine and return
26588         number of operands using spu_builtin_description data.
26589         (spu_expand_builtin_1): Use it.
26590
26591 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
26592
26593         PR target/38056
26594         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
26595         TARGET_CONST_GP.
26596
26597 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26598
26599         PR target/39149
26600         * config/i386/i386.c (override_options): Correct warning
26601         messages for -malign-loops, -malign-jumps and -malign-functions.
26602
26603 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26604
26605         PR target/39152
26606         * config/i386/i386.md: Restrict the new peephole2 to move
26607         between the general purpose registers.
26608
26609 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26610
26611         PR target/39162
26612         * config/i386/i386.c (type_natural_mode): Add a new argument.
26613         Return the original mode and warn ABI change if vector size is 32byte.
26614         (function_arg_advance): Updated.
26615         (function_arg): Likewise.
26616         (ix86_function_value): Likewise.
26617         (ix86_return_in_memory): Likewise.
26618         (ix86_sol10_return_in_memory): Likewise.
26619         (ix86_gimplify_va_arg): Likewise.
26620         (function_arg_32): Don't warn ABX ABI change here.
26621         (function_arg_64): Likewise.
26622
26623 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
26624
26625         * loop-iv.c (implies_p): In the final case, test that operands 0
26626         of the two comparisons match.
26627
26628         * config/bfin/bfin.c (find_prev_insn_start): New function.
26629         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
26630         (find_next_insn_start): Move.
26631
26632 2009-02-13  Richard Guenther  <rguenther@suse.de>
26633
26634         * configure.ac: Enable LFS.
26635         * configure: Re-generate.
26636         * config.in: Likewise.
26637
26638 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
26639
26640         PR c/35444
26641         * c-parser.c (c_parser_parms_list_declarator): Discard pending
26642         sizes on syntax error after some arguments have been parsed.
26643
26644 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26645
26646         * doc/invoke.texi (-fira): Remove.
26647
26648 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26649
26650         * caller-save.c: Replace regclass.c with reginfo.c in comments.
26651         * recog.c: Likewise.
26652         * rtl.h: Likewise.
26653
26654 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
26655
26656         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
26657         (umul_ppmm): Likewise.
26658         (count_leading_zeros): Likewise.
26659         (count_trailing_zeros): Likewise.
26660         (UMUL_TIME): Likewise.
26661
26662 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26663
26664         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
26665         soft-fp/t-softfp to tmake_file.
26666
26667         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
26668         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
26669         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
26670         IA64_BUILTIN_INFQ]: New.
26671         (ia64_init_builtins): Initialize __builtin_infq,
26672         __builtin_fabsq and __builtin_copysignq if not HPUX.
26673         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
26674         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
26675
26676         * config/ia64/lib1funcs.asm (__divtf3): Define only if
26677         SHARED is defined.
26678         (__fixtfti): Likewise.
26679         (__fixunstfti): Likewise.
26680         (__floattitf): Likewise.
26681
26682         * config/ia64/libgcc-glibc.ver: New.
26683         * config/ia64/t-fprules-softfp: Likewise.
26684         * config/ia64/sfp-machine.h: Likewise.
26685
26686         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
26687         (LIBGCC2_TF_CEXT): Likewise.
26688         (TF_SIZE): Likewise.
26689         (TARGET_INIT_LIBFUNCS): Likewise.
26690
26691         * config/ia64/t-glibc (SHLINB_MAPFILES):
26692         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
26693
26694 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
26695
26696         * config/i386/i386.c (construct_container): Rewrite processing
26697         BLKmode with X86_64_SSE_CLASS.
26698
26699 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
26700
26701         PR target/39152
26702         * config/i386/i386.md: Replace simplify_replace_rtx with
26703         replace_rtx in the new peephole2.
26704
26705 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
26706
26707         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
26708         loop unrolling do not happen at -O2.
26709
26710 2009-02-12  Michael Matz  <matz@suse.de>
26711
26712         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
26713
26714 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
26715
26716         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
26717         for -g3.
26718
26719 2009-02-12  Ben Elliston  <bje@au.ibm.com>
26720
26721         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
26722         patterns when updating the back chain.  Missed in the 2009-02-10
26723         change.
26724
26725 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
26726
26727         * doc/extend.texi (Decimal Floating Types): Update identifier of
26728         draft TR and list of missing support.
26729
26730 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
26731
26732         PR middle-end/39154
26733         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
26734         bit to variable length decl's flags, add it also to its
26735         pointer replacement variable.
26736
26737 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
26738             Jakub Jelinek  <jakub@redhat.com>
26739
26740         PR target/39118
26741         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
26742         (memory_blockage): New expander.
26743         (*memory_blockage): New insn pattern.
26744         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
26745         instead of general blockage at the end of function prologue when
26746         frame pointer is used to access red zone area.  Do not emit blockage
26747         when profiling, it is emitted in generic code.
26748         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
26749         function epilogue when frame pointer is used to access red zone area.
26750
26751 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
26752
26753         PR target/38824
26754         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
26755         by arithmetic with memory operands.
26756         * config/i386/predicates.md (commutative_operator): New.
26757
26758 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
26759
26760         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
26761         bulleted lists.
26762
26763 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
26764
26765         * alias.h (record_alias_subset): Declare.
26766         * alias.c (record_alias_subset): Make global.
26767
26768 2009-02-10  Nick Clifton  <nickc@redhat.com>
26769
26770         * tree-parloops.c: Change license to GPLv3.
26771         * ipa-struct-reorg.c: Change license to GPLv3.
26772         * ipa-struct-reorg.h: Change license to GPLv3.
26773
26774 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
26775
26776         PR c/39084
26777         * c-decl.c (start_struct): Return NULL on error.
26778
26779 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
26780
26781         PR middle-end/39124
26782         * cfgloopmanip.c (remove_path): Call remove_bbs after
26783         cancel_loop_tree, not before it.
26784
26785         PR target/39139
26786         * function.h (struct function): Add has_local_explicit_reg_vars bit.
26787         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
26788         VAR_DECLs were seen.
26789         * tree-ssa-live.c (remove_unused_locals): Recompute
26790         cfun->has_local_explicit_reg_vars.
26791         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
26792         copies or clearings if cfun->has_local_explicit_reg_vars.
26793
26794 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
26795
26796         PR target/39118
26797         * config/i386/i386.c (expand_prologue): Emit blockage at the end
26798         of function prologue when frame pointer is used to access
26799         red zone area.
26800
26801 2009-02-10  Richard Guenther  <rguenther@suse.de>
26802
26803         PR middle-end/39127
26804         * gimplify.c (gimple_regimplify_operands): Always look if
26805         we need to create a temporary.
26806
26807 2009-02-10  Richard Guenther  <rguenther@suse.de>
26808
26809         PR tree-optimization/39132
26810         * tree-loop-distribution.c (todo): New global var.
26811         (generate_memset_zero): Trigger TODO_rebuild_alias.
26812         (tree_loop_distribution): Return todo.
26813
26814 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
26815
26816         PR target/39119
26817         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
26818         (x86_64_reg_class_name): Removed.
26819         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
26820         first one isn't X86_64_SSE_CLASS or any other ones aren't
26821         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
26822         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
26823         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
26824         and 3 X86_64_SSEUP_CLASS.
26825         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
26826         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
26827
26828 2009-02-10  Ben Elliston  <bje@au.ibm.com>
26829
26830         * config/rs6000/rs6000.md (allocate_stack): Always use an update
26831         form instruction to update the stack back chain word, even if the
26832         user has disabled the generation of update instructions.
26833         (movdi_<mode>_update_stack): New.
26834         (movsi_update_stack): Likewise.
26835         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
26836         always use an update form instruction to update the stack back
26837         chain word.
26838
26839 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
26840
26841         PR middle-end/38953
26842         * graphite.c (if_region_set_false_region): After moving a region in
26843         the false branch of a condition, remove the empty dummy basic block.
26844         (gloog): Remove wrong fix for PR38953.
26845
26846 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26847
26848         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
26849         generation due to implicit sign extension.
26850
26851 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
26852
26853         PR middle-end/38981
26854         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
26855         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
26856
26857 2009-02-09  Richard Guenther  <rguenther@suse.de>
26858
26859         PR middle-end/35202
26860         * convert.c (convert_to_real): Disable (float)fn((double)x)
26861         to fnf(x) conversion if errno differences may occur and
26862         -fmath-errno is set.
26863
26864 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
26865
26866         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
26867         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
26868         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
26869
26870 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
26871
26872         PR c/35434
26873         * c-common.c (handle_alias_attribute): Disallow attribute for
26874         anything not a FUNCTION_DECL or VAR_DECL.
26875
26876 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
26877
26878         PR c/39035
26879         * real.c (do_compare): Special-case compare of zero against
26880         decimal float value.
26881
26882 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
26883
26884         PR c/36432
26885         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
26886         as indicating flexible array members unless the field itself is
26887         being declarared as the incomplete array.
26888
26889 2009-02-06  Jan Hubicka  <jh@suse.cz>
26890
26891         PR tree-optimization/38844
26892         * ipa-inline.c (try_inline): Stop inlining recursion when edge
26893         is already inlined.
26894
26895 2009-02-06  Richard Guenther  <rguenther@suse.de>
26896
26897         PR middle-end/38977
26898         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
26899         fork because we may expand it as __gcov_fork.
26900
26901 2009-02-06  Nick Clifton  <nickc@redhat.com>
26902
26903         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
26904
26905 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
26906
26907         PR tree-optimization/35659
26908         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
26909         vn_phi_eq): Shortcut if hashcode does not match.
26910         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
26911         NULL operands.
26912         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
26913         and avoid iterative_hash_expr.
26914         (FOR_EACH_VALUE_ID_IN_SET): New.
26915         (value_id_compare): Remove.
26916         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
26917         sort expressions by value id.
26918
26919 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
26920
26921         PR target/38991
26922         * config/sh/predicates.md (general_movsrc_operand): Don't check
26923         the subreg of system registers here.
26924
26925 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
26926
26927         PR c++/39106
26928         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
26929         on the copied decl.
26930
26931 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
26932
26933         PR rtl-optimization/39110
26934         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
26935         addresses, not aligned ones.
26936
26937 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
26938             Richard Guenther  <rguenther@suse.de>
26939
26940         PR tree-optimization/39100
26941         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
26942         comment says and add edges.
26943
26944 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
26945
26946         PR c/35435
26947         * c-common.c (handle_tls_model_attribute): Ignore attribute for
26948         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
26949
26950 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
26951
26952         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
26953         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
26954         register_bb_in_sese, new_sese, free_sese): Moved.
26955         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
26956         outermost_loop_in_scop, build_scop_iteration_domain,
26957         expand_scalar_variables_ssa_name, get_vdef_before_scop,
26958         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
26959         Use loop_in_sese_p instead of loop_in_scop_p.
26960         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
26961         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
26962         (scopdet_basic_block_info): Fix bug in scop detection.
26963         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
26964         eq_loop_to_cloog_loop): Remove.
26965         (nb_loops_around_loop_in_scop, nb_loop
26966         ref_nb_loops): Moved here...
26967         * graphite.h (ref_nb_loops): ... from here.
26968         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
26969         (loop_domain_dim, loop_iteration_vector_dim): Remove.
26970         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
26971
26972 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
26973             Hans-Peter Nilsson  <hp@axis.com>
26974
26975         PR rtl-optimization/37889
26976         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
26977         Move offset handling from PLUS to before the switch.  Use new
26978         arguments when considering SYMBOL_REFs too.
26979         (rtx_addr_can_trap_p): Pass dummy offset and size.
26980         (enum may_trap_p_flags): Remove.
26981         (may_trap_p_1): Pass size from MEM_SIZE.
26982
26983         PR rtl-optimization/38921
26984         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
26985         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
26986         * rtlanal.c (may_trap_after_code_motion_p): Delete.
26987         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
26988
26989 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
26990
26991         AVX Programming Reference (January, 2009)
26992         * config/i386/sse.md (*vpclmulqdq): New.
26993
26994 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
26995
26996         PR tree-optimization/38977
26997         PR gcov-profile/38292
26998         * calls.c (special_function_p): Disregard __builtin_ prefix.
26999
27000 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
27001
27002         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
27003         non-indexable addresses even before reload.
27004
27005 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
27006
27007         PR c/29129
27008         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
27009         as having variable size.  Do not give an error for unnamed
27010         parameters with [*] declarators.  Give a warning for type names
27011         with [*] declarators and mark them as variable size.
27012         * c-parser.c (c_parser_sizeof_expression): Do not give an error
27013         for sizeof applied to [*] type names.
27014
27015 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27016
27017         PR C++/36607
27018         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
27019
27020 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
27021
27022         * gcc.c (process_command): Update copyright notice dates.
27023         * gcov.c (print_version): Likewise.
27024         * gcov-dump.c (print_version): Likewise.
27025         * mips-tfile.c (main): Likewise.
27026         * mips-tdump.c (main): Likewise.
27027
27028 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
27029
27030         PR c/35433
27031         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
27032         for composite type involving a zero-length array type.
27033
27034 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
27035
27036         PR target/35318
27037         * function.c (match_asm_constraints_1): Skip over
27038         initial optional % in the constraint.
27039
27040         PR inline-asm/39059
27041         * c-parser.c (c_parser_postfix_expression): If fixed point is not
27042         supported, don't accept FIXED_CSTs.
27043         * c-decl.c (finish_declspecs): Error if fixed point is not supported
27044         and _Sat is used without _Fract/_Accum.  Set specs->type to
27045         integer_type_node for cts_fract/cts_accum if fixed point is not
27046         supported.
27047
27048 2009-02-02  Catherine Moore  <clm@codesourcery.com>
27049
27050         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
27051
27052 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
27053
27054         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
27055         (ABI_HAS_64BIT_SYMBOLS): Use it.
27056         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
27057
27058 2009-02-02  Paul Brook  <paul@codesourcery.com>
27059
27060         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
27061
27062 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
27063
27064         PR inline-asm/39058
27065         * recog.h (asm_operand_ok): Add constraints argument.
27066         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
27067         recurse on matching constraint.
27068         (check_asm_operands): Pass constraints as 3rd argument to
27069         asm_operand_ok.  Don't look up matching constraint here.
27070         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
27071         to asm_operand_ok.
27072
27073 2009-02-02  Ben Elliston  <bje@au.ibm.com>
27074
27075         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
27076         TARGET_NARROW_VOLATILE_BITFIELD macro names.
27077
27078 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27079
27080         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
27081         information.  Remove some obsolete information.  Reorganize.
27082
27083         * config/pa/fptr.c: Revert license to GPL 2.
27084         * config/pa/milli64.S: Likewise.
27085
27086 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
27087
27088         PR target/38904
27089         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
27090         LIBRARY name in, instead of hard-coding it.
27091         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
27092         extra target make frag to tmake_files according to EH model.
27093         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
27094         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
27095         frags that define makefile variable EH_MODEL appropriately.
27096         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
27097         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
27098         to "-sjlj" according to type of EH configured.
27099         (LIBGCC_SONAME):  Concatenate it to shared library base name.
27100         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
27101         to "_sjlj" according to type of EH configured.
27102         (LIBGCC_SONAME):  Concatenate it to shared library base name.
27103         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
27104         (SHLIB_LINK):  Add missing semicolon to if-else construct.
27105         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
27106         string value of "pe_dll" command-line option.
27107         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
27108         (SHLIB_SONAME):  Use it when overriding t-cygming default.
27109         (SHLIB_IMPLIB):  Override t-cygming default.
27110         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
27111         string value of "pe_dll" command-line option.
27112
27113 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
27114
27115         PR target/38952
27116         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
27117         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
27118
27119 2009-01-31  Richard Guenther  <rguenther@suse.de>
27120
27121         PR tree-optimization/38937
27122         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
27123         computing the transitive closure.
27124
27125 2009-01-30  Richard Guenther  <rguenther@suse.de>
27126
27127         PR tree-optimization/39041
27128         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
27129         Propagate variable indices only if the types match for this stmt.
27130
27131 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
27132
27133         PR target/39013
27134         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
27135         inline but never defined.
27136
27137 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
27138
27139         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
27140         (*insv_h_di_reg_extimm): New insn.
27141         (*insv_l<mode>_reg_extimm): New insn.
27142
27143 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27144
27145         * config/picochip/picochip.c (flag_conserve_stack): set
27146         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
27147         fconserve-stack. Reduce call-overhead used by inliner.
27148
27149 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27150
27151         PR/38157
27152         * common.opt (flag_conserve_stack): Initialised to zero.
27153
27154 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
27155
27156         PR/39002
27157         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
27158         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
27159         method.
27160
27161 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
27162
27163         * ira-color.c (allocno_reload_assign): Update comments.
27164         * regmove.c (regmove_optimize): Likewise.
27165
27166         * ra.h: Removed.
27167
27168 2009-01-29  Robert Millan  <rmh@aybabtu.com>
27169
27170         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
27171         * config/i386/kopensolaris-gnu.h: New file.  Undefine
27172         `MD_UNWIND_SUPPORT'.
27173         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
27174
27175 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
27176
27177         PR tree-optimization/39007
27178         * tree-loop-distribution.c (generate_builtin): Use
27179         recompute_dominator to compute the immediate dominator of the
27180         basic block just after the loop.
27181
27182 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
27183
27184         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
27185         (ASM_OUTPUT_DWARF_PCREL): Define.
27186
27187 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
27188
27189         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
27190         * doc/passes.texi: Remove entries about regclass, local-alloc, and
27191         global.  Modify entries about regmove and IRA.
27192
27193         * ra-conflict.c: Remove the file.
27194
27195         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
27196
27197         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
27198         (pass_regclass_init): Rename to pass_reginfo_init.
27199
27200         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
27201
27202         * toplev.h (flag_ira): Remove.
27203
27204         * caller-save.c (setup_save_areas): Remove flag_ira.
27205
27206         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
27207
27208         * global.c: Remove the file.
27209
27210         * opts.c (decode_options): Remove flag_ira.
27211
27212         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
27213
27214         * regmove.c: Modify file description.
27215         (find_use_as_address, try_auto_increment): Define them only if
27216         AUTO_INC_DEC is defined.
27217         (replacement_quality, replace_in_call_usage, fixup_match_1,
27218         stable_and_no_regs_but_for_p): Remove.
27219         (reg_set_in_bb): Make it static.
27220         (regmove_optimize): Remove flag_ira and code which worked for
27221         !flag_ira.
27222
27223         * local-alloc.c: Remove the file.
27224
27225         * common.opt (fira): Remove.
27226
27227         * ira.c: Include except.h.
27228         (eliminable_regset): Move from global.c.
27229         (mark_elimination): Ditto.  Remove flag_ira.
27230         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
27231         equiv_mem_modified, validate_equiv_mem_from_store,
27232         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
27233         contains_replace_regs, memref_referenced_p, memref_used_between_p,
27234         no_equiv, recorded_label_ref): Move from local-alloc.c.
27235         (update_equiv_regs): Ditto.  Make it static.
27236         (print_insn_chain, print_insn_chains): Move it from global.c.
27237         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
27238         (build_insn_chain): Ditto.  Make it static.
27239         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
27240         Rename to init_live_subregs.
27241         (gate_ira): Remove flag_ira.
27242
27243         * regclass.c: Rename reginfo.c.  Change file description.
27244         (FORBIDDEN_INC_DEC_CLASSES): Remove.
27245         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
27246         (init_reg_sets_1): Remove code for evaluation of
27247         reg_class_superclasses and losing_caller_save_reg_set.
27248         (init_regs): Remove init_reg_autoinc.
27249         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
27250         ok_for_base_p_nonstrict): Remove.
27251         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
27252         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
27253         corresponding entries.
27254         (dump_regclass, record_operand_costs, scan_one_insn,
27255         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
27256         record_address_regs, auto_inc_dec_reg_p): Remove.
27257         (gt-regclass.h): Rename to gt-reginfo.h.
27258
27259         * rtl.h (dump_global_regs, retry_global_alloc,
27260         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
27261
27262         * Makefile.in (RA_H): Remove.
27263         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
27264         Rename regclass.o to reginfo.o.
27265         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
27266         gt-reginfo.h.
27267         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
27268         (GTFILES): Rename regclass.c to reginfo.c.
27269
27270         * passes.c (init_optimization_passes): Remove pass_local_alloc and
27271         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
27272
27273         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
27274         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
27275         Remove flag_ira.
27276         (finish_spills): Ditto.  Remove code for !flag_ira.
27277
27278 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
27279
27280         PR middle-end/35854
27281         * doc/invoke.texi (rtl debug options): Complete rewrite.
27282         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
27283         to auto_inc_dec".
27284         * mode-switching.c (pass_mode_switching): Rename pass from
27285         "mode-sw" to "mode_sw".
27286         * except.c (pass_convert_to_eh_ranges): Rename pass from
27287         "eh-ranges" to "eh_ranges".
27288         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
27289         to "subreg1".
27290
27291
27292 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
27293             Alexander Monakov  <amonakov@ispras.ru>
27294
27295         PR middle-end/38857
27296         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
27297         register.
27298         (move_exprs_to_boundary): Change return type and pass through
27299         should_move from move_op.  Relax assert.  Update usage ...
27300         (schedule_expr_on_boundary): ... here.  Use should_move instead of
27301         cant_move.
27302         (move_op_orig_expr_found): Indicate that insn was disconnected from
27303         stream.
27304         (code_motion_process_successors): Do not call after_merge_succs
27305         callback if original expression was not found when traversing any of
27306         the branches.
27307         (code_motion_path_driver): Change return type.  Update prototype.
27308         (move_op): Update comment.  Add a new parameter (should_move).  Update
27309         prototype.  Set *should_move based on indication provided by
27310         move_op_orig_expr_found.
27311
27312 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
27313
27314         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
27315         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
27316         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
27317         * config/rs6000/rs6000.c (rs6000_override_options): Default
27318         avoid-indexed-addresses on for Power6, off for everything else.
27319         (avoiding_indexed_address_p): New function.
27320         (rs6000_legitimize_address): Use it.
27321         (rs6000_legitimate_address): Likewise.
27322         * config/rs6000/rs6000.md (movXX_updateX): Likewise
27323
27324 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
27325
27326         PR tree-optimization/38997
27327         * tree-loop-distribution.c (generate_memset_zero): Use
27328         POINTER_PLUS_EXPR for a pointer addition.
27329
27330 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
27331
27332         * config/s390/s390.md (bswap<mode>2): New pattern added.
27333
27334 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27335
27336         * config/s390/s390.md (*tls_load_31): Added type attribute.
27337
27338 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27339
27340         * config/s390/s390.md: Fix a few comments.
27341
27342 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
27343
27344         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
27345         (*tm<mode>_full): Fixed z10prop attribute.
27346         (*tst<mode>_extimm): Fixed z10prop attribute.
27347         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
27348         (*tstqiCCT_cconly): Fixed z10prop attribute.
27349         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
27350         (*movsi_larl): Fixed z10prop attribute.
27351         (*movsi_zarch): Fixed z10prop attribute.
27352         (*movsi_eas): Fixed z10prop attribute.
27353         (*movhi): Fixed z10prop attribute.
27354         (*movqi): Fixed z10prop attribute.
27355         (*movstrictqi): Fixed z10prop attribute.
27356         (*mov<mode>): Fixed z10prop attribute.
27357         (*movcc): Fixed z10prop attribute.
27358         (*sethighpartdi_64): Fixed z10prop attribute.
27359         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
27360         (*negdi2_sign_cc): Fixed z10prop attribute.
27361         (*negdi2_sign): Fixed z10prop attribute.
27362         (*absdi2_sign_cc): Fixed z10prop attribute.
27363         (*absdi2_sign): Fixed z10prop attribute.
27364         (*negabsdi2_sign_cc): Fixed z10prop attribute.
27365         (*negabsdi2_sign): Fixed z10prop attribute.
27366         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
27367         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
27368         (doloop_si64): Fixed z10prop attribute.
27369         (doloop_si31): Fixed z10prop attribute.
27370         (doloop_long): Fixed z10prop attribute.
27371         (indirect_jump): Fixed z10prop attribute.
27372         (nop): Fixed z10prop attribute.
27373         (main_base_64): Fixed z10prop attribute.
27374         (reload_base_64): Fixed z10prop attribute.
27375
27376 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
27377
27378         PR rtl-optimization/38740
27379         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
27380         if !optimize.
27381         * config/mips/mips.c (mips_reorg): Likewise.
27382
27383 2009-01-28  Richard Guenther  <rguenther@suse.de>
27384
27385         PR tree-optimization/38926
27386         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
27387         with the correct value id to a value.
27388         (do_regular_insertion): Use the value number of edoubleprime
27389         for the value number of the expr.
27390
27391         Revert
27392         2008-08-21  Richard Guenther  <rguenther@suse.de>
27393
27394         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
27395         a PHI ask VN if it is already available.
27396         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
27397         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
27398
27399 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
27400
27401         PR middle-end/38934
27402         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
27403         set to varying whenever max has TREE_OVERFLOW set, similarly
27404         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
27405
27406 2009-01-28  Richard Guenther  <rguenther@suse.de>
27407
27408         PR middle-end/38908
27409         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
27410         uninitialized aggregate uses in call arguments.
27411
27412 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
27413
27414         PR tree-optimization/38984
27415         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
27416         the nothing_id variable if -fno-delete-null-pointer-checks.
27417
27418 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
27419
27420         PR target/38988
27421         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
27422         (set_got_offset_rex64): Ditto.
27423
27424 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
27425
27426         PR target/38941
27427         * doc/extend.texi: Improve local variable with asm reg.
27428
27429 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
27430
27431         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
27432         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
27433         was not supplied then set warn_packed_bitfield_compat to the
27434         default value of 1.
27435         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
27436         against 1.
27437
27438 2009-01-27  Richard Guenther  <rguenther@suse.de>
27439
27440         PR tree-optimization/38503
27441         * cfgexpand.c (expand_gimple_basic_block): Ignore
27442         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
27443         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
27444         variables that cannot have TBAA applied.
27445         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
27446         statements.
27447
27448 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
27449
27450         PR middle-end/38969
27451         * calls.c (initialize_argument_information): Do not wrap complex
27452         arguments in SAVE_EXPR.
27453
27454 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
27455
27456         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
27457         (INSTALL_LIBGCC): Revert typo commit.
27458
27459 2009-01-26  Richard Guenther  <rguenther@suse.de>
27460
27461         PR tree-optimization/38745
27462         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
27463         from special handling.
27464
27465 2009-01-26  Richard Guenther  <rguenther@suse.de>
27466
27467         PR tree-optimization/38745
27468         * tree-ssa.c (execute_update_addresses_taken): Do not include
27469         variables that cannot possibly be a register in not_reg_needs.
27470         Do not clear TREE_ADDRESSABLE on vars that may not become
27471         registers.
27472         * tree-ssa.c (update_alias_info_1): Include those in the set
27473         of addressable vars.
27474
27475 2009-01-26  Richard Guenther  <rguenther@suse.de>
27476
27477         PR middle-end/38851
27478         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
27479         * tree-ssa-dse.c: Include langhooks.h
27480         (execute_simple_dse): Remove stores with zero size.
27481
27482 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
27483
27484         PR c/38957
27485         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
27486         as PLUS_EXPR.
27487
27488 2009-01-24  Julian Brown  <julian@codesourcery.com>
27489
27490         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
27491         config/arm/linux-atomic.c.
27492         * config/arm/linux-atomic.c: New.
27493
27494 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
27495
27496         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
27497         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
27498         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
27499
27500 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
27501
27502         PR c/38938
27503         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
27504         properly.
27505
27506 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
27507
27508         PR tree-optimization/38953
27509         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
27510         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
27511         (gloog): Split the exit of the scop when the scop exit is a loop exit.
27512         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
27513         changed the CFG.
27514
27515 2009-01-24  Paul Brook  <paul@codesourcery.com>
27516
27517         * config/arm/neon.md (neon_type): Move to arm.md.
27518         (neon_mov<VSTRUCT>): Add neon_type attribute.
27519         * config/arm/arm.md (neon_type): Move to here.
27520         (conds): Add "unconditioal" and use as default for NEON insns.
27521
27522 2009-01-24  Ben Elliston  <bje@au.ibm.com>
27523
27524         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
27525         void *' warning from -Wc++-compat.
27526         * Makefile.in (dominance.o-warn): Remove.
27527
27528 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
27529
27530         PR tree-optimization/38932
27531         * fold-const.c (fold_unary_ignore_overflow): New.
27532         * tree.h (fold_unary_ignore_overflow): Declare.
27533         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
27534         * tree-ssa-sccvn.c (visit_reference_op_load,
27535         simplify_unary_expression): Likewise.
27536
27537 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
27538
27539         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
27540         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
27541         regardless of their type.
27542         * c-common.c (handle_packed_attribute): Don't ignore packed on
27543         bitfields.
27544         * c.opt (Wpacked-bitfield-compat): New warning option.
27545         * stor-layout.c (place_field): Warn if offset of a field changed.
27546         * doc/extend.texi (packed): Mention the ABI change.
27547         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
27548         (Warning Options): Add it to the list.
27549
27550 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
27551
27552         * c-opts.c (c_common_post_options): Fix a typo in comments.
27553
27554 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
27555
27556         PR middle-end/38615
27557         * gimplify.c (gimplify_init_constructor): Fix promotion of const
27558         variables to static.
27559         * doc/invoke.texi (-fmerge-all-constants): Update description.
27560
27561 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
27562
27563         PR target/38931
27564         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
27565         (*movdi_1_rex64): Use type "mmx" for alternative 5.
27566
27567 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
27568
27569         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
27570         a word boundary.
27571         (LOCAL_ALIGNMENT): Similarly.
27572
27573 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27574             Joseph Myers  <joseph@codesourcery.com>
27575
27576         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
27577         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
27578         * config/arm/arm-tune.md: Regenerate.
27579         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
27580         -march=iwmmxt2.
27581
27582 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
27583
27584         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
27585         version number to five.
27586
27587 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
27588
27589         PR c++/38930
27590         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
27591         * c-common.c (set_underlying_type): Likewise.
27592         (is_typedef_decl ): Likewise
27593         * tree.h: Likewise
27594         (set_underlying_type): Likewise.
27595         (is_typedef_type): Likewise.
27596
27597 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
27598
27599         PR middle-end/38587
27600         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
27601         crossing setjmps.
27602
27603 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
27604
27605         PR bootstrap/37660
27606         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
27607         (LIBGCC_SPEC):  Don't define.
27608         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
27609
27610 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
27611
27612         PR rtl-optimization/38879
27613         * alias.c (base_alias_check): Unaligned access via AND address can
27614         alias all surrounding object types except those with sizes equal
27615         or wider than the size of unaligned access.
27616
27617 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
27618
27619         PR c++/26693
27620         * c-decl.c (clone_underlying_type): Move this ...
27621         * c-common.c (set_underlying_type): ... here.
27622         Also, make sure the function properly sets TYPE_STUB_DECL() on
27623         the newly created typedef variant type.
27624         (is_typedef_decl ): New entry point.
27625         * tree.h: Added a new member member_types_needing_access_check to
27626         struct tree_decl_non_common.
27627         (set_underlying_type): New entry point.
27628         (is_typedef_type): Likewise.
27629
27630 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
27631
27632         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
27633         Check whether two instructions have memory references that
27634         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
27635         are helper functions for traversing.
27636         * alias.h (insn_alias_sets_confilict_p): New prototypes.
27637         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
27638         not to draw dependency edge for instructions with non-conflicting
27639         alias sets.
27640
27641 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
27642
27643         PR other/38758
27644         * longlong.h: Update copyright years.  Use soft-fp license notice.
27645         Sync __clz_tab declaration with glibc.
27646
27647 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
27648
27649         PR target/30687
27650         * doc/extend.texi (syscall_linkage): New.
27651         (version_id): Modify.
27652
27653 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
27654             Richard Guenther  <rguenther@suse.de>
27655
27656         PR tree-optimization/38747
27657         PR tree-optimization/38748
27658         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
27659         conversion if the base address is an indirect reference and the
27660         aliasing sets could cause issues.
27661
27662 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
27663
27664         * common.opt (fgraphite, fgraphite-identity): Add comment for
27665         explaining why these options are not documented.
27666
27667 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
27668
27669         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
27670         gimple_call_lhs is NULL.
27671
27672 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
27673
27674         PR target/38868
27675         * emit-rtl.c (adjust_address_1): Make sure memref is never
27676         overwritten.
27677
27678 2009-01-20  Ben Elliston  <bje@au.ibm.com>
27679
27680         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27681         const qualifier from arg parameter. Remove unnecessary cast to char *.
27682         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
27683         const qualifier from arg 2.
27684
27685 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27686
27687         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
27688
27689 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
27690
27691         PR c/38869
27692         * rtl.h (reinit_regs): New prototype.
27693         * regclass.c: Include ira.h.
27694         (reinit_regs): New.
27695         * Makefile.in (regclass.o): Add ira.h.
27696         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
27697
27698 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
27699
27700         PR target/38736
27701         * c-common.c (handle_aligned_attribute): Use
27702         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
27703         default alignment value.
27704
27705         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
27706
27707         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
27708         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
27709
27710         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
27711         __BIGGEST_ALIGNMENT__.
27712
27713         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
27714
27715 2009-01-18  Richard Guenther  <rguenther@suse.de>
27716
27717         PR tree-optimization/38819
27718         * tree-flow.h (operation_could_trap_helper_p): Declare.
27719         * tree-eh.c (operation_could_trap_helper_p): Export.
27720         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
27721         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
27722         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
27723         are about to insert a possibly trapping instruction and fail
27724         in this case.
27725
27726 2009-01-18  Andreas Schwab  <schwab@suse.de>
27727
27728         * doc/install.texi (Configuration): Remove obsolete paragraph
27729         about use of --with-gnu-ld with --with-gnu-as.
27730
27731 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
27732
27733         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
27734         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
27735         Follow spelling conventions.
27736
27737 2009-01-18  Ben Elliston  <bje@au.ibm.com>
27738
27739         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
27740         C++ warning about implicit conversion from void * to struct
27741         bitmap_head_def *.
27742         (bitmap_obstack_free): Likewise for bitmap_element *.
27743         * Makefile.in (bitmap.o-warn): Remove.
27744
27745 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
27746
27747         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
27748
27749 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
27750             Tobias Grosser  <tobi.grosser@amd.com>
27751
27752         * graphite.c (graphite_trans_scop_block): Do not block single
27753         nested loops.
27754
27755 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
27756
27757         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
27758         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
27759         test with assertion.
27760
27761 2009-01-16  Richard Guenther  <rguenther@suse.de>
27762
27763         PR tree-optimization/38835
27764         PR middle-end/36227
27765         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
27766         and INT + PTR -> (INT)(PTR p+ INT) folding.
27767         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
27768
27769 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
27770
27771         PR target/38554
27772         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
27773         the subreg from a lowpart subreg if it is also casting the value.
27774
27775 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27776             Tobias Grosser  <tobi.grosser@amd.com>
27777
27778         * graphite.c (compare_prefix_loops): New.
27779         (build_scop_canonical_schedules): Rewritten.
27780         (graphite_transform_loops): Move build_scop_canonical_schedules
27781         after build_scop_iteration_domain.
27782
27783 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
27784             Tobias Grosser  <tobi.grosser@amd.com>
27785
27786         * graphite.c (add_conditions_to_domain): Add the loops to
27787         the dimension of the iteration domain.  Do copy the domain
27788         only when it exists.
27789         (build_scop_conditions_1): Do not call add_conditions_to_domain.
27790         (add_conditions_to_constraints): New.
27791         (can_generate_code_stmt, can_generate_code): Removed.
27792         (gloog): Do not call can_generate_code.
27793         (graphite_transform_loops): Call add_conditions_to_constraints
27794         after building the iteration domain.
27795
27796 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
27797
27798         PR tree-optimization/38789
27799         * tree-ssa-threadedge.c
27800         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
27801         __builtin_constant_p.
27802
27803 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
27804
27805         * dce.c (delete_unmarked_insns): Reversed the order that insns are
27806         examined before deleting them.
27807
27808 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
27809
27810         * function.c (aggregate_value_p): Correctly extract the function
27811         type from CALL_EXPR_FN lookup.
27812
27813 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
27814
27815         * config/picochip/picochip.c (picochip_override_options): Revert
27816         CFI asm flag disable commited previously.
27817
27818 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
27819             Tobias Grosser  <tobi.grosser@amd.com>
27820             Jan Sjodin  <jan.sjodin@amd.com>
27821
27822         * graphite.c (scan_tree_for_params): On substractions negate
27823         all the coefficients of the term.
27824         (clast_to_gcc_expression_red): New.  Handle reduction expressions
27825         of more than two operands.
27826         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
27827         (get_vdef_before_scop): Handle also the case of default definitions.
27828
27829 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
27830
27831         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
27832         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
27833         Also use them when walking CALL_INSN_FUNCTION_USAGE.
27834
27835 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
27836             Joey Ye  <joey.ye@intel.com>
27837
27838         PR middle-end/37843
27839         * cfgexpand.c (expand_stack_alignment): Don't update stack
27840         boundary nor check incoming stack boundary here.
27841         (gimple_expand_cfg): Update stack boundary and check incoming
27842         stack boundary here.
27843
27844 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
27845
27846         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
27847
27848 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
27849
27850         PR rtl-optimization/38245
27851         * calls.c (expand_call): Add stack arguments to
27852         CALL_INSN_FUNCTION_USAGE even for pure calls (when
27853         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
27854         in regs and partially in memory or BLKmode arguments.
27855         (emit_library_call_value_1): Add stack arguments to
27856         CALL_INSN_FUNCTION_USAGE even for pure calls (when
27857         ACCUMULATE_OUTGOING_ARGS).
27858         * dce.c: Include tm_p.h.
27859         (find_call_stack_args): New function.
27860         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
27861         argument.
27862         (mark_insn): Call find_call_stack_args for CALL_Ps.
27863         (prescan_insns_for_dce): Walk insns backwards in bb rather than
27864         forwards.  Allocate and free arg_stores bitmap if needed, pass it
27865         down to deletable_insn_p, don't mark stores set in arg_stores
27866         bitmap, clear the bitmap at the beginning of each bb.
27867         * Makefile.in (dce.o): Depend on $(TM_P_H).
27868
27869 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
27870
27871         PR target/22599
27872         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
27873         to make sure the insn is a conditional test (bug 22599).  Reformat a
27874         few long lines.
27875
27876 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
27877
27878         PR middle-end/38431
27879         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
27880         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
27881         (gloog): Do not call cleanup_tree_cfg.
27882         (graphite_transform_loops): Call cleanup_tree_cfg after all
27883         scops have been code generated.
27884
27885 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
27886         * doc/gty.texi (Invoking the garbage collector): Added new node
27887         and section documenting ggc_collect.
27888
27889 2009-01-14  Richard Guenther  <rguenther@suse.de>
27890
27891         PR tree-optimization/38826
27892         PR middle-end/38477
27893         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
27894         initialization notes only if we actually emitted a warning.
27895         (intra_create_variable_infos): Add constraints for a result decl
27896         that is passed by hidden reference.
27897         (build_pred_graph): Mark all related variables non-direct on
27898         address-taking.
27899
27900 2009-01-14  Nick Clifton  <nickc@redhat.com>
27901
27902         * ira-conflicts.c: Include addresses.h for the definition of
27903         base_reg_class.
27904         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
27905         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
27906
27907 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
27908
27909         PR target/38811
27910         * Makefile.in (ira-lives.o): Add except.h.
27911
27912         * ira-lives.c: Include except.h.
27913         (process_bb_node_lives): Process can_throw_internal.
27914
27915 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
27916
27917         PR rtl-optimization/38774
27918         * combine.c (simplify_set): When undoing cc_use change, don't do
27919         PUT_CODE on the newly created comparison, but instead put back the
27920         old comparison.
27921
27922 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
27923
27924         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
27925         values.  Remove duplicate arm8 entry.
27926
27927 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
27928
27929         PR tree-optimization/38786
27930         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
27931         the SSA_NAME case of expand_scalar_variables_expr.
27932         Set the type of an expression to the type of its assign statement.
27933         (expand_scalar_variables_expr): Also gather the scalar computation
27934         used to index the memory access.  Do not pass loop_p.
27935         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
27936         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
27937         the gimple_stmt_iterator where it inserts new code.
27938         Do not pass loop_p.
27939         (copy_bb_and_scalar_dependences): Do not pass loop_p.
27940         (translate_clast): Update call to copy_bb_and_scalar_dependences.
27941
27942 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
27943
27944         * graphite.h (debug_value): Removed.
27945         * graphite.c (debug_value): Removed.
27946
27947 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
27948
27949         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
27950         ldrd/strd with two 32-bit instructions.
27951
27952 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
27953
27954         * config/arm/arm.c (struct processors): Pass for speed down into
27955         cost helper functions.
27956         (const_ok_for_op): Handle COMPARE and inequality nodes.
27957         (arm_rtx_costs_1): Rewrite.
27958         (arm_size_rtx_costs): Update prototype.
27959         (arm_rtx_costs): Pass speed down to helper functions.
27960         (arm_slowmul_rtx_costs): Rework cost calculations.
27961         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
27962         (arm_9e_rtx_costs): Likewise.
27963
27964 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
27965
27966         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
27967         relocations of local symbols wider than UNITS_PER_WORD are not valid.
27968         (alpha_legitimize_address): Do not split local symbols wider than
27969         UNITS_PER_WORD into HIGH/LO_SUM parts.
27970
27971 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
27972
27973         PR bootstrap/38580
27974         * gcc.c (process_command): Replace call to execvp with calls
27975         to pex_one and exit.
27976
27977 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
27978
27979         PR target/29141
27980         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
27981         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
27982         variant for devices with 3-byte PC.
27983         (__tablejump_elpm__): New.
27984
27985 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
27986
27987         PR c/32041
27988         * c-parser.c (c_parser_postfix_expression): Allow `->' in
27989         offsetof member-designator, handle it as `[0].'.
27990
27991 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27992
27993         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
27994         function when not using named sections on targets with named sections
27995         if branch distance is less than 262132.
27996
27997 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
27998
27999         * combine.c (combine_instructions):  Recompute
28000         optimize_this_for_speed_p  for each BB in the main combine loop.
28001
28002 2009-01-12  Tomas Bily  <tbily@suse.cz>
28003
28004         PR middlend/38385
28005         * tree-loop-distribution.c (prop_phis): New function.
28006         (generate_builtin): Call prop_phis.
28007
28008 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
28009
28010         PR tree-optimization/38807
28011         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
28012         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
28013
28014 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
28015
28016         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
28017         subreg of op0 to the original op0.
28018
28019 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
28020
28021         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
28022
28023 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
28024
28025         PR debug/7055
28026         * mips-tfile.c (parse_def): Fix parsing of def strings
28027         starting with digits.
28028
28029 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
28030
28031         PR target/38695
28032         * config/arm/arm.c (arm_is_long_call_p): Don't call
28033         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
28034
28035 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
28036
28037         * regrename.c (regrename_optimize): Fix dumping.
28038         (find_oldest_value_reg): Preserve REG_POINTER.
28039         (copy_hardreg_forward_1): Likewise.
28040
28041 2009-01-09  Diego Novillo  <dnovillo@google.com>
28042
28043         * gimple.h (struct gimple_statement_base) <uid>: Document
28044         the restrictions on its use.
28045         (gimple_uid): Tidy.
28046         (gimple_set_uid): Tidy.
28047
28048 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28049
28050         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
28051         zero guard even if align_bytes != 0 and count is smaller than
28052         size_needed.
28053
28054 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
28055
28056         PR rtl-optimization/38495
28057         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
28058         (add_range_and_copies_from_move_list): Print all added ranges.
28059         Add ranges to memory optimized destination.
28060
28061 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28062
28063         PR target/38686
28064         PR target/38708
28065         * config/i386/i386.c (override_options): Reject
28066         -mstringop-strategy=rep_8byte with -m32.
28067         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
28068         to 1.  Do count comparison against epilogue_size_needed at compile
28069         time even when count_exp was constant forced into register.  For
28070         size_needed don't jump to epilogue, instead just avoid aligning
28071         and invoke the body algorithm.  If need_zero_guard, add zero guard
28072         even if count is non-zero, but smaller than size_needed + number of
28073         bytes that could be stored for alignment.
28074         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
28075         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
28076         but smaller than size_needed + number of bytes that could be stored
28077         for alignment.  Compare size_needed with epilogue_size_needed instead
28078         of desired_align - align, don't adjust size_needed, pass
28079         epilogue_size_needed to the epilogue expanders.
28080
28081         PR c/35742
28082         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
28083
28084 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28085
28086         * pa.c (last_address): Change to unsigned.
28087         (update_total_code_bytes): Change argument to unsigned.  Don't
28088         check if insn addresses are set.
28089         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
28090         addresses are not set.
28091         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
28092
28093 2009-01-09  Nick Clifton  <nickc@redhat.com>
28094
28095         * config/sh/symbian.c: Replace uses of DECL_INLINE with
28096         DECL_DECLARED_INLINE_P.
28097
28098 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
28099
28100         PR middle-end/38347
28101         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
28102         GET_MODE (op0) in operand_subword_force calls.
28103
28104         PR middle-end/38771
28105         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
28106         fold_convert arg0 operands to TREE_TYPE (op0) first.
28107
28108 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
28109
28110         * params.def (ira-max-conflict-table-size): Decrease default value
28111         to 1000.
28112
28113 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
28114
28115         PR tree-optimization/37031
28116         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
28117         on parameter_set.
28118         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
28119         allocate it using gc instead of heap, use VEC_quick_push instead of
28120         VEC_safe_push.
28121         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
28122         instead of heap, use VEC_quick_push instead of VEC_safe_push.
28123         * tree-data-ref.h (struct access_matrix): Change matrix to gc
28124         allocated vector from heap allocated.
28125         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
28126         * tree-loop-linear.c (linear_transform_loops): Allocate nest
28127         vector only after perfect_loop_nest_depth call.
28128
28129 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
28130             Jan Sjodin  <jan.sjodin@amd.com>
28131
28132         PR tree-optimization/38559
28133         * graphite.c (debug_value, copy_constraint,
28134         swap_constraint_variables, scale_constraint_variable, ): New.
28135         (get_lower_bound, get_upper_bound): Removed.
28136         (graphite_trans_bb_strip_mine): Clean up this code that works
28137         only for constant number of iterations.  Fully copy upper and
28138         lower bound constraints, not only the constant part of them.
28139         * graphite.h (debug_value): Declared.
28140
28141 2009-01-08  Ira Rosen  <irar@il.ibm.com>
28142
28143         PR tree-optimization/37194
28144         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
28145         Don't add the cost of cost model guard in prologue to scalar
28146         outside cost in case of known number of iterations.
28147
28148 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
28149             Alan Modra  <amodra@bigpond.net.au>
28150
28151         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
28152         non-word-aligned REG+CONST addressing.
28153
28154 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
28155
28156         PR target/38706
28157         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
28158         free_after_compilation when outputting a thunk.
28159         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
28160         Do not call free_after_compilation here.
28161
28162 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
28163
28164         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
28165         (ix86_valid_target_attribute_inner_p): Ditto.
28166
28167 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
28168
28169         PR tree-optimization/38492
28170         PR tree-optimization/38498
28171         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
28172         * tree-chrec.h (scev_is_linear_expression): Declared.
28173         * graphite.c (graphite_cannot_represent_loop_niter): New.
28174         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
28175         (graphite_loop_normal_form): Use gcc_assert.
28176         (scan_tree_for_params): Use CASE_CONVERT.
28177         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
28178         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
28179         Use gcc_assert.  Discard scops that contain unhandled cases.
28180         (build_scop_conditions): Return a boolean status for unhandled cases.
28181         (strip_mine_profitable_p): Print the loop number, not its depth.
28182         (is_interchange_valid): Pass the depth of the loop nest, don't
28183         recompute it wrongly.
28184         (graphite_trans_bb_block): Same.
28185         (graphite_trans_bb_block): Print tentative of loop blocking.
28186         (graphite_trans_scop_block): Do not print that the loop has been
28187         blocked.
28188         (graphite_transform_loops): Do not handle scops that contain condition
28189         scalar phi nodes.
28190
28191 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
28192
28193         AVX Programming Reference (December, 2008)
28194         * config/i386/avxintrin.h (_mm256_stream_si256): New.
28195         (_mm256_stream_pd): Likewise.
28196         (_mm256_stream_ps): Likewise.
28197
28198         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
28199         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
28200         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
28201         (bdesc_special_args): Add __builtin_ia32_movntdq256,
28202         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
28203         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
28204         (ix86_expand_special_args_builtin): Likewise.
28205
28206         * config/i386/sse.md (AVXMODEDI): New.
28207         (avx_movnt<mode>): Likewise.
28208         (avx_movnt<mode>): Likewise.
28209         (<sse>_movnt<mode>): Remove AVX support.
28210         (sse2_movntv2di): Likewise.
28211
28212 2009-01-07  Richard Guenther  <rguenther@suse.de>
28213
28214         PR middle-end/38751
28215         * fold-const.c (extract_muldiv): Remove obsolete comment.
28216         (fold_plusminus_mult_expr): Undo MINUS_EXPR
28217         to PLUS_EXPR canonicalization for the canonicalization.
28218
28219 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
28220
28221         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
28222         hosted cross-compilers generating less efficient code.
28223
28224 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
28225
28226         * function.h (rtl_data): Add a dbr_scheduled_p field.
28227         * reorg.c (dbr_schedule): Set it.
28228         (gate_handle_delay_slots): Check it.
28229         * config/mips/mips.c (mips_base_delayed_branch): Delete.
28230         (mips_reorg): Check flag_delayed_branch instead of
28231         mips_base_delayed_branch.
28232         (mips_override_options): Don't set mips_base_delayed_branch
28233         or flag_delayed_branch.
28234
28235 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
28236
28237         PR rtl-optimization/38426.
28238         * ira.c (ira): Set current_function_is_leaf earlier.
28239
28240 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
28241
28242         PR rtl-optimization/38722
28243         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
28244         too early, only set a flag and modify after last possible
28245         undo_all point.
28246
28247 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
28248
28249         PR c/34252
28250         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
28251         * real.c (decimal_single_format): Correct values of emin and emax.
28252         (decimal_double_format): Ditto.
28253         (decimal_quad_format): Ditto.
28254         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
28255         computation of DECnn_MIN and DECnn_MAX for corrected values of
28256         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
28257         __DECnn_MIN__, and adjust its computation for the corrected value
28258         of emin.
28259
28260 2009-01-06  Jan Hubicka  <jh@suse.cz>
28261
28262         PR target/38744
28263         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
28264
28265 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
28266
28267         * doc/contrib.texi (Contributors): Slightly adjust the end note.
28268         Add Robert Clark to the list of testers.
28269
28270 2009-01-06  Jan Hubicka  <jh@suse.cz>
28271             Kai Tietz  <kai.tietz@onevision.com>
28272
28273         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
28274         * config/i386/i386.c (ix86_expand_call): Add clobbers.
28275
28276 2009-01-06  Jan Hubicka  <jh@suse.cz>
28277             Kai Tietz  <kai.tietz@onevision.com>
28278
28279         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
28280         for w64 ABI.
28281         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
28282         (ix86_nsaved_regs): Count only general purpose regs.
28283         (ix86_nsaved_sseregs): New.
28284         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
28285         to 16 for w64; compute padding and size of sse reg save area.
28286         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
28287         general purpose regs.
28288         (ix86_emit_save_sse_regs_using_mov): New.
28289         (ix86_expand_prologue): Save SSE regs if needed.
28290         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
28291         (ix86_emit_restore_sse_regs_using_mov): New.
28292         (ix86_expand_epilogue): Save SSE regs if needed.
28293
28294 2009-01-06  Jan Hubicka  <jh@suse.cz>
28295             Kai Tietz  <kai.tietz@onevision.com>
28296
28297         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
28298         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
28299         functions when accumulate outgoing args is off.
28300
28301 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28302
28303         PR bootstrap/38742
28304         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
28305         before using pseudos_have_intersected_live_ranges_p.
28306
28307         * ira-int.h (ira_assert): Always define.
28308
28309 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
28310
28311         AVX Programming Reference (December, 2008)
28312         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
28313         (_mm256_permute2_pd): Likewise.
28314         (_mm_permute2_ps): Likewise.
28315         (_mm256_permute2_ps): Likewise.
28316         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
28317         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
28318
28319         * config/i386/i386.c (ix86_builtins): Remove
28320         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
28321         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
28322         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
28323         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
28324         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
28325         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
28326         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
28327         __builtin_ia32_vpermil2ps256.
28328         (ix86_init_mmx_sse_builtins): Updated.
28329         (ix86_expand_args_builtin): Likewise.
28330
28331 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
28332
28333         * pa.c (output_call): Relocate non-jump insns in the delay slot of
28334         long absolute calls when generating PA 2.0 code.
28335
28336 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
28337
28338         PR rtl-optimization/38583
28339         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
28340
28341         * params.def (ira-max-conflict-table-size): New.
28342
28343         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
28344
28345         * ira.h (ira_conflicts_p): New external definition.
28346
28347         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
28348         table.  Report this.  Return result of building.
28349         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
28350         building conflict table.
28351
28352         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
28353         (ira_color): Use ira_conflicts_p.
28354
28355         * global.c: Include ira.h.
28356         (pseudo_for_reload_consideration_p, build_insn_chain): Use
28357         ira_conflicts_p.
28358
28359         * Makefile.in (global.o): Add ira.h.
28360
28361         * ira-build.c (mark_all_loops_for_removal,
28362         propagate_some_info_from_allocno): New.
28363         (remove_unnecessary_allocnos): Call
28364         propagate_some_info_from_allocno.
28365         (remove_low_level_allocnos): New.
28366         (remove_unnecessary_regions): Add parameter.  Call
28367         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
28368         parameter to remove_unnecessary_regions.
28369         (ira_build): Remove all regions but root if the conflict table was
28370         not built.  Update conflict hard regs for allocnos crossing calls.
28371
28372         * ira.c (ira_conflicts_p): New global.
28373         (ira): Define and use ira_conflicts_p.
28374
28375         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
28376         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
28377         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
28378
28379 2009-01-06  Ben Elliston  <bje@au.ibm.com>
28380
28381         * gengtype-lex.l (YY_NO_INPUT): Define.
28382
28383 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
28384
28385         PR c/34911
28386         * c-common.c (handle_vector_size_attribute): Also reject
28387         BOOLEAN_TYPE types.
28388
28389 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
28390
28391         PR tree-optimization/38492
28392         * graphite.c (rename_map_elt, debug_rename_elt,
28393         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
28394         rename_map_elt_info, eq_rename_map_elts,
28395         get_new_name_from_old_name, bb_in_sese_p): Moved around.
28396         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
28397         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
28398         (sese_build_livein_liveouts): New.
28399         (new_sese, free_sese): New.
28400         (new_scop): Call new_sese.
28401         (free_scop): Call free_sese.
28402         (rename_variables_from_edge, rename_phis_end_scop): Removed.
28403         (register_old_new_names): Renamed register_old_and_new_names.
28404         (register_scop_liveout_renames, add_loop_exit_phis,
28405         insert_loop_close_phis, struct igp,
28406         default_liveout_before_guard, add_guard_exit_phis,
28407         insert_guard_phis, copy_renames): New.
28408         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
28409         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
28410         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
28411         (scop_adjust_phis_for_liveouts): New.
28412         (gloog): Call scop_adjust_phis_for_liveouts.
28413
28414         * graphite.h (struct sese): Documented.  Added fields liveout,
28415         num_ver and livein.
28416         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
28417         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
28418         (struct scop): Added field liveout_renames.
28419         (SCOP_LIVEOUT_RENAMES): New.
28420
28421 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28422
28423         PR tree-optimization/38510
28424         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
28425         (translate_clast): Call recompute_all_dominators before
28426         graphite_verify.
28427         (gloog): Call recompute_all_dominators before graphite_verify.
28428
28429 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
28430             Jan Sjodin  <jan.sjodin@amd.com>
28431
28432         PR tree-optimization/38500
28433         * graphite.c (create_sese_edges): Call fix_loop_structure after
28434         splitting blocks.
28435
28436 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
28437
28438         * config.gcc: Add m32r*-*-rtems*.
28439         * config/m32r/rtems.h: New file.
28440
28441 2009-01-05  Ben Elliston  <bje@au.ibm.com>
28442
28443         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
28444         (.po.pox): Likewise.
28445         (po/gcc.pot): Likewise.
28446
28447 2009-01-04  David S. Miller  <davem@davemloft.net>
28448
28449         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
28450         (STARTING_FRAME_OFFSET): Always set to zero.
28451
28452 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28453
28454         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
28455         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
28456         fixed-point types, and vectors of the same.
28457
28458 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28459
28460         * config/mips/sync.md (*mb_barrier): Rename to...
28461         (*memory_barrier): ...this.
28462
28463 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
28464
28465         * doc/extend.texi (Function Attributes): Move @cindex after @item
28466         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
28467         and put in alphabetical order. Fix 'target' name and put in order.
28468         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
28469         typos.
28470
28471 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
28472
28473         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
28474         (memory_barrier): Expand as unspec instead of unspec_volatile.
28475         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28476         (*memory_barrier): Define as unspec instead of unspec_volatile.
28477         Use (match_dup 0) as input operand.
28478
28479         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
28480         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
28481         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
28482         scratch register.  Remove operand 1.
28483         (*stbar): Define as unspec instead of unspec_volatile.
28484         Use (match_dup 0) as input operand, remove (const_int 8).
28485         (*membar): Define as unspec instead of unspec_volatile.
28486         Use (match_dup 0) as input operand, remove input operand 2.
28487
28488         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
28489         (memory_barrier): Expand as unspec instead of unspec_volatile.
28490         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28491         (*memory_barrier): Define as unspec instead of unspec_volatile.
28492         Use (match_dup 0) as input operand.
28493
28494         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
28495         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28496         Set volatile flag on operand 0.
28497         (*memory_barrier): New insn pattern.
28498
28499         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
28500         insn operands.
28501         (*memory_barrier): Use (match_dup 0) as input operand.
28502
28503         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
28504         Remove mem:BLK from insn operands.  Use Pmode scratch register.
28505         Set volatile flag on operand 0.
28506         (*mb_internal): New insn pattern.
28507
28508         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
28509
28510 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28511
28512         PR middle-end/38586
28513         * function.c (struct temp_slot): Move to the section of the file
28514         that deals with temp slots.  Remove field 'address'.
28515         (temp_slot_address_table): New hash table of address -> temp slot.
28516         (struct temp_slot_address_entry): New struct, items for the table.
28517         (temp_slot_address_compute_hash, temp_slot_address_hash,
28518         temp_slot_address_eq, insert_temp_slot_address): Support functions
28519         for the new table.
28520         (find_temp_slot_from_address): Rewrite to use the new hash table.
28521         (remove_unused_temp_slot_addresses): Remove addresses of temp
28522         slots that have been made available.
28523         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
28524         worker function for remove_unused_temp_slot_addresses.
28525         (assign_stack_temp_for_type): Don't clear the temp slot address list.
28526         Add the temp slot address to the address -> temp slot map.
28527         (update_temp_slot_address): Update via insert_temp_slot_address.
28528         (free_temp_slots): Call remove_unused_temp_slot_addresses.
28529         (pop_temp_slots): Likewise.
28530         (init_temp_slots): Allocate the address -> temp slot map, or empty
28531         the map if it is already allocated.
28532         (prepare_function_start): Initialize temp slot processing.
28533
28534 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
28535
28536         PR middle-end/38584
28537         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
28538         Calculate the size of all stack vars assuming no packing of stack
28539         vars will happen, replacing a quadratic algorithm with a linear one.
28540
28541 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28542
28543         PR target/38707
28544         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
28545         can't be used.
28546
28547 2009-01-03  Diego Novillo  <dnovillo@google.com>
28548
28549         * doc/contrib.texi: Update contributions.
28550
28551 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
28552
28553         PR c++/38705
28554         * builtins.c (fold_builtin_memory_op): Give up if either operand
28555         is volatile.  Set srctype or desttype to non-qualified version
28556         of the other type.
28557
28558         PR c/38700
28559         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
28560         and FUNCTION_DECLs.
28561
28562 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
28563
28564         PR rtl-optimization/35805
28565         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
28566         problem if fast dce is able to remove any instructions.
28567         * dce.c (dce_process_block): Fix dump message.
28568
28569 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
28570
28571         PR 33649
28572         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
28573
28574 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
28575
28576         PR middle-end/38690
28577         * tree-flow.h (op_code_prio, op_prio): New prototypes.
28578         * tree-pretty-print.c (op_code_prio): New function.
28579         (op_prio): No longer static.  Use op_code_prio.
28580         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
28581         Use op_prio and op_code_prio to determine if () should be
28582         printed around operand(s) or not.
28583
28584         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
28585         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
28586         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
28587         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
28588         pp_character instead of pp_string for single letter printing.
28589
28590 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
28591
28592         * doc/extend.texi: Fix '#pragma GCC option' typo.
28593
28594 2009-01-02  Richard Guenther  <rguenther@suse.de>
28595
28596         * doc/install.texi (--enable-checking): Mention different
28597         default for stage1.
28598         (--enable-stage1-checking): Document.
28599
28600 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
28601
28602         PR middle-end/30142
28603         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
28604         case to be an error.
28605
28606 2009-01-02  Ben Elliston  <bje@au.ibm.com>
28607
28608         * config/fp-bit.h (pack_d): Constify argument.
28609         * config/fp-bit.c (makenan): Constify return type. Remove casts.
28610         (isnan): Constify argument.
28611         (isinf): Likewise.
28612         (iszero): Likewise.
28613         (pack_d): Likewise.
28614         (_fpadd_parts): Constify return type.
28615         (_fpmul_parts): Likewise.
28616         (_fpdiv_parts): Likewise.
28617
28618 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
28619
28620         PR c/36489
28621         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
28622         warn about overwriting initializer with side-effects or
28623         -Woverride-init if !IMPLICIT.
28624         (output_init_element): Likewise.  Pass IMPLICIT down to
28625         add_pending_init.
28626         (process_init_element): Add IMPLICIT argument.  Pass it down
28627         to output_init_element.
28628         (push_init_element, pop_init_level, set_designator): Adjust
28629         process_init_element callers.
28630         (set_nonincremental_init, set_nonincremental_init_from_string):
28631         Adjust add_pending_init callers.
28632         (output_pending_init_elements): Adjust output_init_element callers.
28633         * c-tree.h (process_init_element): Adjust prototype.
28634         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
28635         process_init_element callers.
28636
28637 \f
28638 Copyright (C) 2009 Free Software Foundation, Inc.
28639
28640 Copying and distribution of this file, with or without modification,
28641 are permitted in any medium without royalty provided the copyright
28642 notice and this notice are preserved.