OSDN Git Service

PR middle-end/46314
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
2
3         PR middle-end/46314
4         * target.def (generate_internal_label): New asm_out hook.
5         * output.h (default_generate_internal_label): Declare.
6         * varasm.c (default_generate_internal_label): Define.
7
8 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
9
10         PR target/44981
11         * doc/extend.tex (format): Document NSString extension.
12         (format_arg): Likewise.
13         (Darwin Format Checks): New section.
14         * doc/tm.texi: Document string object hooks (generated).
15         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
16         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
17         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
18         * target.def (objc_construct_string_object): Rename, amend 
19         documentation.
20         (string_object_ref_type_p): New hook.
21         (check_string_object_format_arg): New hook.
22         * c-parser.c (c_parser_attributes): Allow objective-c class names as
23         attribute identifiers.
24         * config/darwin-c.c (darwin_cfstring_ref_p): New.
25         (darwin_check_cfstring_format_arg): New.
26         (darwin_additional_format_types): New.
27         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
28         (darwin_check_cfstring_format_arg): New.
29         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
30         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
31         (TARGET_N_FORMAT_TYPES): New.
32         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
33
34 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
35             Pascal Obry  <obry@adacore.com>
36
37         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
38         in 64-bit mode and 17 otherwise.
39
40 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41
42         PR debug/45939
43         * var-tracking.c (emit_note_insn_var_location): Make sure that
44         call related var location notes come before the normal ones.
45
46 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
47
48         PR target/46326
49         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
50         in the last change.
51
52 2010-11-05  Ian Lance Taylor  <iant@google.com>
53
54         * explow.c (allocate_dynamic_stack_space): Check
55         MALLOC_ABI_ALIGNMENT.
56
57 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
58
59         PR c/44772
60         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
61         pointer_set_contains if DECL_NAME is NULL.
62
63 2010-11-05  Ian Lance Taylor  <iant@google.com>
64
65         PR target/46084
66         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
67         request enough additional space for alignment, and force
68         alignment.
69
70 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
71
72         * config/i386/i386.c (legitimate_pic_address_disp_p):
73         Handle UNSPEC_PCREL.
74         (ix86_legitimate_address_p): Likewise.
75         (legitimize_pic_address): Likewise.
76         (output_pic_addr_const): Likewise.
77         (ix86_delegitimize_address): Likewise.
78         (ix86_find_base_term): Likewise.
79         (memory_address_length): Likewise.
80         (x86_output_mi_thunk): Handle special case x64
81         for non local binding.
82         * config/i386/i386.md (UNSPEC_PCREL): New.
83         * config/i386/winnt.c (i386_pe_binds_local_p):
84         Allow weak symbol for x64 windows with non-local binding.
85
86 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
87
88         PR target/45670
89         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
90         instead of EXPAND_NORMAL for base expansion.
91
92 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
93
94         * config.gcc: Support --with-fpmath=avx for x86.
95         * config/i386/avxmath.h: New.
96         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
97
98 2010-11-05  Ian Lance Taylor  <iant@google.com>
99
100         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
101         * gengtype.c (walk_type): Don't recognize descbits option.
102
103 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
104
105         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
106         WORD_SWITCH_TAKES_ARG): Remove.
107         * doc/options.texi (Args): Document.
108         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
109         * doc/tm.texi: Regenerate.
110         * opt-functions.awk (switch_flags): Handle Args.
111         * opts-common.c: Update comment on tm.h include.
112         (decode_cmdline_option): Handle options with multiple arguments.
113         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
114         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
115         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
116         CL_COMMON): Update values.
117         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
118         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
119         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
120         sectobjectsymbols, sectorder, segcreate, segprot): New.
121
122 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
123             Uros Bizjak  <ubizjak@gmail.com>
124
125         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
126         256bit AVX register is used.
127         (ix86_expand_vector_move_misalign): Likewise.
128         (ix86_expand_vector_move): Replace use_avx256_p with
129         VALID_AVX256_REG_MODE.
130
131 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
132
133          PR target/44750
134         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
135         change.  Set $@-warn.o to -Wno-error.
136
137         PR bootstrap/44756
138         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
139         comparing it to a signed value.
140
141         PR bootstrap/44756
142         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
143         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
144         to i.
145
146         PR target/44754
147         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
148         (m32c_function_arg).  Add comma between arguments two and three.
149         (m32c_promote_prototypes): Remove declaration.
150         (current_function_special_page_vector): Likewise.
151         (m32c_regno_reg_class): Change return type to enum reg_class.
152         (m32c_pushm_popm): Use add_reg_note.
153         (m32c_push_rounding): Change return type to unsigned int.
154         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
155         enum reload_type.
156         (m32c_insert_attributes): Constify variable name.
157         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
158         (m32c_prepare_shift): Remove variable lref.
159         (m32c_expand_movcc): Remove variable cmp.
160         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
161         (m32c_compare_redundant): Remove variable op2.
162         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
163         (m32c_pragma_memregs): Assign the number to target_memregs.
164         (m32c_pragma_address): Remove variable var_str.
165         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
166         enum reg_class.
167         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
168         * config/m32c/bitops.md (andsi3): Add default case to switch.
169         (iorsi3, xorsi3): Likewise.
170         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
171         * config/m32c/jump.md (call, call_value): Likewise.
172         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
173         (m32c_regno_reg_class): Likewise.
174         (current_function_special_page_vector): Declare.
175
176 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
177
178         * cfgexpand.c (expand_debug_expr): Handle MEM_REF
179         with non-zero offset.
180
181         PR tree-optimization/46099
182         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
183         if it is NULL and uid wasn't found in the hash table.  Just fold the
184         result if it is NULL otherwise.  Insert other potentially needed
185         stmts right before current stmt instead of on the entry edge.
186         (struct elv_data): Add gsi and reset fields.
187         (eliminate_local_variables_1): Adjust caller.  If take_address_of
188         failed for debug stmt, set dta->reset and return.
189         (eliminate_local_variables_stmt): Change STMT argument for GSI,
190         pass GSI through to the callback, handle resetting of debug stmts.
191         (eliminate_local_variables): Adjust caller.  Process debug stmts
192         in second phase.
193
194         PR middle-end/43690
195         * gimplify.c (gimplify_asm_expr): If a "m" input is a
196         {pre,post}{in,de}crement, fail.
197
198         PR debug/46307
199         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
200         * tree-pretty-print.c (dump_generic_node): Likewise.
201         (op_code_prio): Likewise.
202         * cfgexpand.c (expand_debug_expr): Likewise.
203
204 2010-11-04  Paul Koning  <ni1d@arrl.net>
205
206         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
207         constraints.
208
209 2010-11-04  Chao-ying Fu  <fu@mips.com>
210
211         * configure.ac: Test assembler support for DSP Rev1 mult.
212         * configure: Regenerate.
213         * config.in: Regenerate.
214         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
215         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
216         (CODE_FOR_mips_multu): New define.
217         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
218         dspr2_32 to dsp_32.
219         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
220         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
221         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
222         New define_expand patterns.
223         * config/mips/constraints.md (ka): Update the constraint to test
224         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
225         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
226         mips_multu): Delete.
227         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
228         Change target constraint to "ka".
229         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
230         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
231         Emit the accumulator destination when ISA_HAS_DSP_MULT.
232         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
233         Emit the accumulator destination when ISA_HAS_DSP_MULT.
234         (<u>maddsidi4): Likewise.
235         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
236         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
237
238 2010-11-04  Paul Koning  <ni1d@arrl.net>
239
240         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
241
242 2010-11-04  Paul Koning  <ni1d@arrl.net>
243
244         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
245
246 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
247
248         Fixed using the Objective-C 2.0 dot-syntax with class names.
249         * c-parser.c (c_parser_next_token_starts_declspecs): In
250         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
251         (c_parser_next_token_starts_declaration): Same.
252         (c_parser_postfix_expression): Parse the Objective-C 2.0
253         dot-syntax with a class name.
254
255 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
256
257         * final.c (compute_alignments): Compute/free loop info all the time.
258         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
259         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
260         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
261         * config/rs6000/rs6000.c (cfgloop.h): Include.
262         (can_override_loop_align): New.
263         (rs6000_option_override_internal): Set it.
264         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
265         (rs6000_loop_align): New function.
266         (rs6000_loop_align_max_skip): Likewise.
267
268 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
269
270         PR driver/45703
271         * collect2.c (main): Print --help output to stdout.  Do not
272         exit right away, so ld --help is appended.  Add empty lines
273         to separate output suitably.
274
275 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
276
277         PR tree-optimization/46233
278         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
279         after calling analyze_function, not before.
280
281         PR target/46234
282         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
283         instead of build_va_arg_indirect_ref.
284         * config/spu/spu.c (spu_va_start): Likewise.
285         * config/s390/s390.c (s390_va_start): Likewise.
286
287 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
288
289         PR middle-end/46292
290         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
291         if the innermode is not vector mode, determine the mode of a subreg
292         by using mode_for_size of inner_size.
293
294 2010-11-04  Richard Guenther  <rguenther@suse.de>
295
296         PR rtl-optimization/46183
297         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
298         (execute_rtl_pre): Likewise.
299         (execute_rtl_hoist): Likewise.
300
301 2010-11-04  Richard Guenther  <rguenther@suse.de>
302
303         PR tree-optimization/46068
304         * ipa-split.c (consider_split): Remove gcc_unreachable.
305
306 2010-11-04  Richard Guenther  <rguenther@suse.de>
307
308         * tree-nested.c (build_addr): Use build_fold_addr_expr.
309
310 2010-11-04  Richard Guenther  <rguenther@suse.de>
311
312         PR tree-optimization/45991
313         * gimplify.c (force_gimple_operand_1): Use the provded test
314         function in the initial test.
315
316 2010-11-04  Jeff Law  <law@redhat.com>
317
318         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
319         of readonly memory equivalances for const/pure calls.
320
321 2010-11-04  Richard Guenther  <rguenther@suse.de>
322
323         PR tree-optimization/45733
324         * tree-vect-stmts.c (reverse_vec_elements): Honor the
325         permute builtins function return type.
326
327 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
328
329         PR middle-end/44765
330         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
331         as an index, check it is not INVALID_REGNUM.
332
333         PR bootstrap/44756
334         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
335         unsignedp.
336         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
337
338         PR bootstrap/44756
339         * function.c (thread_prologue_and_epilogue_insns): Add
340         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
341
342         PR bootstrap/44756
343         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
344
345         PR target/44750
346         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
347         (pdp11_preferred_reload_class): Rename class to rclass.
348         (pdp11_preferred_output_reload_class): Likewise.
349         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
350         ALL_COMPILERFLAGS .
351         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
352
353         PR bootstrap/44756
354         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
355         iteration variables to enum machine_mode.
356
357         PR target/44751
358         * config/h8300/h8300.c: Include df.h.
359         (push, pop): Use add_reg_note.
360         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
361         (compute_a_shift_cc): Likewise.
362         (expand_a_shift): Argument code has type enum rtx_code.
363         (struct shift_insn): Member cc_valid has type enum attr_cc.
364         (struct shift_info) <cc_inline, cc_special>: Likewise.
365         enum attr_cc.
366         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
367         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
368
369 2010-11-04  Ira Rosen  <irar@il.ibm.com>
370
371         PR tree-optimization/46213
372         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
373         MINUS_EXPR only if the first operand is reduction operand.
374
375 2010-11-04  Richard Guenther  <rguenther@suse.de>
376             Richard Henderson  <rth@redhat.com>
377
378         * tree.def (FMA_EXPR): New tree code.
379         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
380         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
381         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
382         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
383         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
384         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
385         (execute_optimize_widening_mul): Call it.  Reorganize to allow
386         dead stmt removal.  Move TODO flags ...
387         (pass_optimize_widening_mul): ... here.
388         * flag-types.h (enum fp_contract_mode): New enum.
389         * common.opt (flag_fp_contract_mode): New variable.
390         (-ffp-contract): New option.
391         * opts.c (common_handle_option): Handle it.
392         * doc/invoke.texi (-ffp-contract): Document.
393         * tree.h (fold_fma): Declare.
394         * builtins.c (fold_fma): New function.
395         (fold_builtin_fma): Likewise.
396         (fold_builtin_3): Call it for fma.
397         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
398         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
399         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
400         New expanders.
401         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
402         named patterns.
403         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
404         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
405         (fms_optab, fnma_optab, fnms_optab): New defines.
406         * gimplify.c (gimplify_expr): Handle binary truth expressions
407         explicitly.  Handle FMA_EXPR.
408         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
409         operations.
410
411 2010-11-04  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
412             Richard Guenther  <rguenther@suse.de>
413
414         * passes.c (init_optimization_passes): Move veclower after SSA.
415         * tree-vect-generic.c (uniform_vector_p): New function.
416         (expand_vector_operations_1): Handle conversion.
417         (pass_lower_vector): Update SSA form.
418
419 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
420
421         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
422         plugin capabilities.
423         * configure: Regenerate.
424
425 2010-11-03  Xinliang David Li  <davidxl@google.com>
426
427         PR target/46200
428         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
429         Adjust cbase if the use stmt is after iv update.
430
431 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
432
433         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
434
435 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
436
437         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
438         comment.  Pass true to the last argument of output_stack_adjust.
439
440 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
441
442         PR target/46295
443         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
444         if 256bit AVX register is used.
445
446 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
447
448         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
449         xsmindp/xsmaxdp on VSX for single precision min/max.
450         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
451         (vsx_sminsf3): Ditto.
452
453 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
454
455         * combine.c (try_combine): Fix formatting issues, improve comments and
456         fix a pasto.
457
458 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
459
460         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
461         of the result before building binary expressions.
462
463 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
464
465         PR rtl-optimization/45865
466         * Makefile.in (df-problems.o): Revert revision 164552.
467         * basic-block.h (enum bb_flags): Likewise.
468         * cfgcleanup.c (block_was_dirty): Likewise.
469         (try_forward_edges): Likewise.
470         (try_crossjump_bb): Likewise.
471         (try_head_merge_bb): Likewise.
472         (try_optimize_cfg): Likewise.
473         (cleanup_cfg): Likewise.
474         * df-core.c (df_set_bb_dirty): Likewise.
475         * df-problems.c: Likewise.
476         (df_simulate_find_uses): Likewise.
477         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
478         (find_memory, find_memory_store): Likewise.
479         (can_move_insns_across): Likewise.
480         * df.h (can_move_insns_across): Likewise.
481         * ifcvt.c (find_memory): Likewise.
482         (dead_or_predicable): Likewise.
483
484 2010-11-03  Richard Guenther  <rguenther@suse.de>
485
486         PR middle-end/46288
487         * predict.c (strip_predict_hints): Simply DCE builtin expect if
488         the result is unused.
489
490 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
491
492         PR tree-optimization/46009
493         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
494         cond_if_else_store_replacement if bb1 and bb2 have the same
495         single successor.
496         (cond_store_replacement): Use gimple_assign_single_p, don't
497         check if rhs is SSA_NAME or invariant.  Call release_defs for
498         assign.
499         (cond_if_else_store_replacement): New function.
500
501 2010-11-03  Richard Guenther  <rguenther@suse.de>
502
503         * opts.c (finish_options): Properly check for all WHOPR
504         flags before complaining about -flto-partition.
505
506 2010-11-04  Alan Modra  <amodra@gmail.com>
507
508         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
509         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
510         TARGET_SECURE_PLT.
511         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
512         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
513         on input, "r" on output.
514
515 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
516
517         Implemented -fobjc-std=objc1 flag.
518         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
519         option.
520         * doc/standards.texi (Standards): Updated the section on
521         Objective-C; mention support for Objective-C 2.0 features and the
522         new -fstd-objc=objc1 flag to disable them.
523
524 2010-11-03  Richard Guenther  <rguenther@suse.de>
525
526         PR middle-end/46241
527         * dwarf2out.c (scope_die_for): Properly detect global scope.
528
529 2010-11-03  Richard Guenther  <rguenther@suse.de>
530
531         PR tree-optimization/46190
532         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
533         Properly compute peel iterations.
534
535 2010-11-03  Richard Guenther  <rguenther@suse.de>
536
537         PR tree-optimization/46286
538         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
539         re-allocated vector data.
540
541 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
542
543         PR target/46285
544         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
545         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
546         is completed.
547
548 2010-11-03  Richard Guenther  <rguenther@suse.de>
549
550         PR tree-optimization/46217
551         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
552         flag matches.
553         (execute_update_addresses_taken): Likewise.
554
555 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
556
557         PR bootstrap/44335
558         * targhooks.c (targhook_words_big_endian): New function.
559         (targhook_float_words_big_endian): Likewise.
560         * targhooks.h (targhook_words_big_endian): Declare.
561         (targhook_float_words_big_endian): Likewise.
562         * target.def (words_big_endian, float_words_big_endian): New hooks.
563
564 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
565
566         PR tree-optimization/46165
567         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
568         a normal call into noreturn call.
569
570 2010-11-03  Richard Guenther  <rguenther@suse.de>
571
572         PR middle-end/46251
573         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
574         not INDIRECT_REFs.
575
576 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
577
578         PR tree-optimization/46107
579         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
580         if cfg_hook_duplicate_loop_to_header_edge failed.
581
582 2010-11-03  Ian Lance Taylor  <iant@google.com>
583
584         PR lto/46273
585         * config.gcc: Don't set lto_binary_reader.
586         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
587         (Configuration): Mention --disable-lto.  Remove --with-libelf
588         paragraph.
589
590 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
591
592         PR debug/46252
593         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
594         prev_real_insn.
595         * gcse.c (insert_insn_end_basic_block): Likewise.
596
597         PR rtl-optimization/46034
598         PR rtl-optimization/46212
599         PR rtl-optimization/46248
600         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
601         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
602         before i0dest -> i0src substitution and pass 1 instead of 0 as last
603         argument to subst on i2pat.
604
605 2010-11-02  Ian Lance Taylor  <iant@google.com>
606
607         * configure.ac: Use AC_SYS_LARGEFILE.
608         * configure: Rebuild.
609         * config.in: Rebuild.
610
611 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
612
613         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
614         fold_convert.
615         * c-typeck.c (build_function_call_vec): Likewise.
616         * cfgexpand.c (expand_debug_expr): Likewise.
617         * cgraphunit.c (assemble_thunk): Likewise.
618         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
619         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
620         (fold_binary_loc, fold_ternary_loc): Likewise.
621         * gimple-fold.c (get_symbol_constant_value): Likewise.
622         * gimple-low.c (lower_builtin_setjmp): Likewise.
623         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
624         * gimplify.c (gimplify_init_constructor): Likewise.
625         * lambda.h (build_linear_expr): Likewise.
626         * omp-low.c (omp_reduction_init): Likewise.
627         * tree-inline.c (remap_ssa_name): Likewise.
628         * tree-object-size.c (compute_object_sizes): Likewise.
629         * tree-sra.c (init_subtree_with_zero): Likewise.
630         (sra_ipa_modify_assign): Likewise.
631         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
632         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
633         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
634         (undistribute_ops_list): Likewise.
635         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
636         * tree-vect-stmts.c (vectorizable_call): Likewise.
637         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
638         (build_zero_cst): Handle more cases directly.  Update comment.
639
640 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
641
642         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
643         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
644
645         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
646         and call ix86_split_call_vzeroupper instead of
647         ix86_split_call_pop_vzeroupper.
648         (*call_pop_1_vzeroupper): Likewise.
649         (*sibcall_pop_1_vzeroupper): Likewise.
650         (*call_value_pop_0_vzeroupper): Likewise.
651         (*call_value_pop_1_vzeroupper): Likewise.
652         (*sibcall_value_pop_1_vzeroupper): Likewise.
653
654 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
655
656         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
657
658 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
659
660         * basic-block.h (insert_insn_end_bb_new): Delete.
661         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
662
663 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
664             H.J. Lu  <hongjiu.lu@intel.com>
665
666         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
667         (ix86_split_call_pop_vzeroupper): Likewise.
668
669         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
670         (ix86_expand_call): Conditionally decorate calls with
671         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
672         (ix86_split_call_vzeroupper): New.
673         (ix86_split_call_pop_vzeroupper): Likewise.
674
675         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
676         (*call_pop_0_vzeroupper): New insn_and_split pattern.
677         (*call_pop_1_vzeroupper): Likewise.
678         (*sibcall_pop_1_vzeroupper): Likewise.
679         (*call_0_vzeroupper): Likewise.
680         (*call_1_vzeroupper): Likewise.
681         (*sibcall_1_vzeroupper): Likewise.
682         (*call_1_rex64_vzeroupper): Likewise.
683         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
684         (*call_1_rex64_large_vzeroupper): Likewise.
685         (*sibcall_1_rex64_vzeroupper): Likewise.
686         (*call_value_pop_0_vzeroupper): Likewise.
687         (*call_value_pop_1_vzeroupper): Likewise.
688         (*sibcall_value_pop_1_vzeroupper): Likewise.
689         (*call_value_0_vzeroupper): Likewise.
690         (*call_value_0_rex64_vzeroupper): Likewise.
691         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
692         (*call_value_1_vzeroupper): Likewise.
693         (*sibcall_value_1_vzeroupper): Likewise.
694         (*call_value_1_rex64_vzeroupper): Likewise.
695         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
696         (*call_value_1_rex64_large_vzeroupper): Likewise.
697         (*sibcall_value_1_rex64_vzeroupper): Likewise.
698
699 2010-11-02  Ian Lance Taylor  <iant@google.com>
700
701         PR lto/46273
702         * config.gcc: Revert last patch: set lto_binary_reader.
703
704 2010-11-02  Richard Guenther  <rguenther@suse.de>
705
706         PR tree-optimization/46149
707         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
708         non-indirect MEM_REF variants.
709
710 2010-11-02  Richard Guenther  <rguenther@suse.de>
711
712         PR tree-optimization/46216
713         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
714         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
715
716 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
717
718         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
719         (*-*-osf*): Likewise.
720         * configure: Regenerate.
721
722 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
723
724         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
725         for Intel Core 2 and Core i7.
726
727 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
728
729         Model decoder of Core 2/i7 for multipass scheduling.
730
731         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
732         New type to hold target-specific data for multipass scheduling.
733         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
734         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
735         Core 2/i7.
736         (core2i7_secondary_decoder_max_insn_size,)
737         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
738         New static variables.
739         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
740         ([_]ix86_first_cycle_multipass_data): New static variable.
741         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
742         Implement targetm.sched hooks.
743         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
744         of ...
745         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
746         Implement new targetm.sched hooks.
747         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
748         targetm.sched hook to install multipass scheduling hooks on demand.
749
750         * doc/tm.texi.in: Document new targetm.sched hooks.
751         * doc/tm.texi: Regenerate.
752
753         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
754         (first_cycle_multipass_data_t): New typedef.
755         (struct choice_entry: target_data): New field.
756         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
757         to allow target model restrictions not represented in DFA.
758         (choose_ready, schedule_block): Update.
759         (sched_extend_ready_list, sched_finish_ready_list): Call new target
760         hooks to initialize target-specific data for multipass scheduling.
761         * sched-int.h (max_issue): Update declaration.
762         * sel-sched.c (choose_best_insn): Update.
763         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
764         (first_cycle_multipass_{init, fini}): Define and document new
765         targetm.sched hooks.
766
767 2010-11-02  Richard Guenther  <rguenther@suse.de>
768
769         PR tree-optimization/46184
770         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
771         input vector type from the reduction operand as well.
772
773 2010-11-02  Richard Guenther  <rguenther@suse.de>
774
775         PR tree-optimization/46177
776         * tree-loop-distribution.c (prop_phis): Use
777         mark_virtual_phi_result_for_renaming.
778
779 2010-11-02  Martin Jambor  <mjambor@suse.cz>
780
781         PR middle-end/46120
782         * tree.c (get_binfo_at_offset): Bail out on artificial
783         fields.  Identify primary bases according to their offsets.
784
785 2010-11-02  Martin Jambor  <mjambor@suse.cz>
786
787         PR tree-optimization/45875
788         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
789         (gimple_get_relevant_ref_binfo): Detect primary bases according to
790         their field offset.
791
792 2010-11-02  Ian Lance Taylor  <iant@google.com>
793
794         * doc/install.texi (Configuration): Note in two places that Java
795         is not enabled by default.
796
797 2010-11-02  Ian Lance Taylor  <iant@google.com>
798
799         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
800         (Configuration): Mention --disable-lto.  Remove --with-libelf
801         paragraph.
802
803 2010-11-02  Ian Lance Taylor  <iant@google.com>
804
805         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
806         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
807         LIBELFINC.  Remove HAVE_libelf.
808         * config.gcc: Don't set lto_binary_reader.
809         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
810         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
811         (LIBS): Remove $(LIBELFLIBS).
812         (INCLUDES): Remove $(LIBELFINC).
813         * configure: Rebuild.
814         * config.in: Rebuild.
815
816 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
817
818         * config/microblaze/microblaze-protos.h (function_arg): Delete.
819         (function_arg_advance): Delete.
820         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
821         (FUNCTION_ARG): Delete.
822         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
823         (microblaze_function_arg_advance): ...this.  Make static.  Take a
824         const_tree and a bool.
825         (function-arg): Rename to...
826         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
827         and a bool.
828         (microblaze_expand_prologue): Call targetm.calls.function_arg and
829         targetm.calls.function_arg_advance.
830         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
831
832 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
833
834         Merge from FSF "apple/trunk" branch.
835
836         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
837         * config/darwin.opt: .. to here.
838         (matt-stubs): New option.
839         * config/i386/darwin.opt: Delete.
840         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
841         (MACHO_DYNAMIC_NO_PIC_P): New.
842         (MACHOPIC_INDIRECT): New.
843         (MACHOPIC_PURE): New.
844         * config/i386/darwin.h (DARWIN_X86) Define to 1.
845         (MACHOPIC_ATT_STUB): New.
846         (CC1_SPEC): Do not remove mdynamic-no-pic.
847         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
848         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
849         (FUNCTION_PROFILER): Correct over-length line.
850         (SUBTARGET_OVERRIDE_OPTIONS): New.
851         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
852         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
853         (legitimate_constant_p): Handle mdynamic-no-pic.
854         (ix86_legitimate_address_p): Likewise.
855         (ix86_legitimize_address): Likewise.
856         (ix86_expand_move): Likewise.
857         (machopic_output_stub): Update for ATT-style stubs and
858         mdynamic-no-pic.
859         * config/darwin-protos.h (machopic_symbol_defined_p): New.
860         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
861         TARGET_DYNAMIC_NO_PIC: Remove.
862         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
863         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
864         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
865         Remove handling of mdynamic-no-pic.
866         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
867         Define if required.
868         (machopic_symbol_defined_p): Do not try to use current_function_decl
869         when generating _get_pc thunks within stubs.
870         (machopic_indirect_data_reference): Rework for direct conditionals
871         rather than #ifdefs, add x86 mdynamic-no-pic
872         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
873         defined value.
874         (darwin_override_options): Handle mdynamic-no-pic here.
875         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
876         (machopic_lazy_symbol_ptr3_section): New.
877         (machopic_picsymbol_stub2_section): New.
878         (machopic_picsymbol_stub3_section): New.
879         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
880         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
881         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
882         Moved common definition from x86 and rs6000.
883         (MACHO_DYNAMIC_NO_PIC_P): Override value.
884         (MACHOPIC_INDIRECT): Likewise.
885         (MACHOPIC_PURE): Likewise.
886         * config.gcc (x86-darwin-*): Remove darwin.opt.
887
888 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
889
890         PR debug/46255
891         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
892         instead of gsi_last_bb.
893
894 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
895             Maxim Kuvyrkov  <maxim@codesourcery.com>
896
897         * config/i386/i386.c (cpu_names): Add "corei7".
898         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
899
900 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
901             Maxim Kuvyrkov  <maxim@codesourcery.com>
902
903         Tune alignment for Intel Core i7
904
905         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
906         (enum processor_type): Update comment.  Add entries for Core i7.
907         * config/i386-c.c (ix86_target_macros_internal): Update.
908         * config/i386.c (m_COREI7{_32,_64}): New macros.
909         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
910         (processor_target_table): Tune alignment for Core i7.
911         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
912
913         * doc/invoke.texi: Document "corei7" option value.
914
915 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
916             Maxim Kuvyrkov  <maxim@codesourcery.com>
917             H.J. Lu  <hjl.tools@gmail.com>
918
919         Basic support for Intel Core i7
920
921         * i386.c (ix86_option_override_internal): Add entry for corei7, use
922         generic tuning.  Use generic32 when compiling for 32-bit ABI.
923
924 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
925
926         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
927         sections and call darwin_asm_dwarf_section() to handle them.
928         (darwin_asm_dwarf_section): New.
929         (darwin_file_start): Remove code emitting dwarf section symbols.
930
931 2010-11-02  Chung-Lin Tang <cltang@codesourcery.com>
932
933         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
934         explicitly disable stack protection when building libgcc.
935         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
936
937 2010-11-01  Jason Merrill  <jason@redhat.com>
938
939         * fold-const.c (fold_indirect_ref_1): Handle folding
940         POINTER_PLUS_EXPR to ARRAY_REF.
941
942 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
943
944         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
945         (sh_delegitimize_address): New function.
946
947 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
948
949         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
950         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
951         (CC1_SPEC): Don't handle -target.
952         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
953         options.
954         * config/darwin.opt (Zallowable_client, Zbundle_loader,
955         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
956         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
957         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
958         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
959         Zweak_reference_mismatches, client_name, compatibility_version,
960         current_version, dylinker_install_name, pagezero_size,
961         read_only_relocs, seg1addr, segs_read_only_addr,
962         segs_read_write_addr, sub_library, sub_umbrella): New.
963         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
964         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
965         * config/freebsd.opt: New.
966         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
967         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
968         * config/rpath.opt: New.
969         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
970         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
971         Use rpath.opt.
972
973 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
974
975         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
976         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
977         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
978         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
979         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
980         Document that options in .opt files do not need to be included.
981         * doc/tm.texi: Regenerate.
982         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
983         * opts-common.c: Update comment on tm.h include.
984         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
985         * system.h (SWITCH_TAKES_ARG): Poison.
986         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
987         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
988         in darwin.opt.
989         (LINK_COMMAND_SPEC_A): Don't include %{x}.
990         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
991         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
992         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
993         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
994         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
995         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
996         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
997         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
998         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
999         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
1000         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
1001         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
1002         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
1003         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
1004         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
1005         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
1006         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
1007         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
1008         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
1009         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
1010         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
1011         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
1012         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1013
1014 2010-11-01  Paul Koning  <ni1d@arrl.net>
1015
1016         * config/pdp11/pdp11.md: Use iterators.
1017         (addqi3, subqi3, iorsi3, xorsi3): Delete.
1018
1019 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
1020
1021         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
1022         GCC_INSN_FLAGS_H.
1023         * libgcov.c (__gcov_indirect_call_profiler): Set
1024         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
1025         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
1026
1027 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
1028
1029         PR tree-optimization/46259
1030
1031         Revert:
1032         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1033
1034         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1035         build_vector_from_val.
1036
1037 2010-11-01  DJ Delorie  <dj@redhat.com>
1038
1039         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
1040         as well as an assertion.
1041
1042 2010-11-01  Paul Koning  <ni1d@arrl.net>
1043
1044         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
1045         complex modes in memory.
1046
1047 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
1048
1049         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
1050
1051 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
1052
1053         PR target/45250
1054         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
1055         (cfa_base_offset): New variable.
1056         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
1057         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
1058         is NULL.
1059         (vt_init_cfa_base): Initialize cfa_base_offset.
1060
1061 2010-11-01  Alan Modra  <amodra@gmail.com>
1062
1063         PR target/46030
1064         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
1065         and savres_strategy.
1066         (stack_info): New file scope var.
1067         (rs6000_init_machine_status): Init stack_info.
1068         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
1069         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1070         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
1071         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
1072         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
1073         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
1074         (rs6000_savres_strategy): Rewrite.
1075         (rs6000_stack_info): Use "stack_info" in place of local "info".
1076         Return cached stack info when reload_completed unless ENABLE_CHECKING
1077         in which case confirm newly calculated stack info matches old info.
1078         Delay calculation of lr_save_p, set it for out of line gp save/restore
1079         as well as fp.  Call rs6000_savres_strategy from here..
1080         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
1081         (rs6000_output_function_prologue): Use info->savres_strategy to
1082         determine whether fp save/restore externs need to be emitted.
1083
1084 2010-10-31  Jason Merrill  <jason@redhat.com>
1085
1086         * tree.h (EXPR_LOC_OR_HERE): New macro.
1087         * builtins.c (c_strlen): Use it.
1088         * c-decl.c (build_enumerator): Likewise.
1089         * gimplify.c (internal_get_tmp_var): Likewise.
1090         (shortcut_cond_expr): Likewise.
1091         (gimplify_one_sizepos): Likewise.
1092
1093 2010-10-31  Richard Henderson  <rth@redhat.com>
1094
1095         * config/i386/cygming.h (TARGET_SEH): New.
1096         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
1097         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
1098         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
1099         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
1100         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
1101         (ASM_DECLARE_FUNCTION_SIZE): New.
1102         * config/i386/i386-protos.h: Update.
1103         * config/i386/i386.c (ix86_option_override_internal): Enable
1104         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
1105         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
1106         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
1107         (ix86_compute_frame_layout): For SEH, disable
1108         use_fast_prologue_epilogue, move frame pointer to the end of
1109         the frame.  Initialize hfp_save_offset.
1110         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
1111         at end of prologue for SEH.
1112         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
1113         emit blockage at beginning of epilogue.
1114         (ix86_expand_binary_operator): After reload, emit LEA if needed.
1115         (ix86_output_call_insn): New.
1116         * config/i386/i386.h (TARGET_SEH): New.
1117         (struct machine_function): Add member seh.
1118         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
1119         * config/i386/winnt.c (struct seh_frame_state): New.
1120         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
1121         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
1122         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
1123         i386_pe_start_function, i386_pe_end_function): New.
1124
1125         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
1126         as CFA_STORE in rules 12 and 13.
1127
1128 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
1129
1130         PR tree-optimization/46142
1131         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
1132         accommodate third function argument.
1133
1134 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1135
1136         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
1137
1138 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1139
1140         * fold-const.c (build_zero_vector): Use build_vector_from_val.
1141         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1142         (get_initial_def_for_reduction): Likewise.
1143         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1144         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1145         * tree.c (build_one_cst): Likewise.
1146         (build_vector_from_val): Use types_compatible_p for assert.
1147
1148 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1149
1150         * emit-rtl.c (mark_used_flags): New function.
1151         (set_used_flags, reset_used_flags): Call it.
1152
1153 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
1154
1155         PR middle-end/44569
1156         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
1157         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
1158
1159 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1160
1161         PR target/46195
1162         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
1163         (ix86_compat_aligned_value_p): This.
1164         (ix86_old_function_arg_boundary): Renamed to ...
1165         (ix86_compat_function_arg_boundary): This.  Updated.
1166         (ix86_contains_aligned_value_p): New.
1167         (ix86_function_arg_boundary): Align long double parameters on
1168         stack to 4byte in 32bit.
1169
1170 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1171
1172         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1173         * c-parser.c (c_parser_objc_at_property_declaration): Removed
1174         parsing of RID_COPIES and RID_IVAR.  Updated call to
1175         objc_add_property_declaration.
1176         * c-typecheck.c (build_component_ref): Call
1177         objc_maybe_build_component_ref instead of objc_build_setter_call.
1178         Use objc_is_property_ref to improve Objective-C checks.
1179         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
1180         of objc_build_getter_call.
1181
1182 2010-10-29  Paul Koning  <ni1d@arrl.net>
1183
1184         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1185         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
1186         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
1187         (REG_OK_STRICT): Move description.
1188
1189 2010-10-29  Paul Koning  <ni1d@arrl.net>
1190
1191         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
1192
1193 2010-10-29  Paul Koning  <ni1d@arrl.net>
1194
1195         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
1196
1197 2010-10-29  Paul Koning  <ni1d@arrl.net>
1198
1199         PR/41822
1200         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
1201
1202 2010-10-29  Richard Henderson  <rth@redhat.com>
1203
1204         PR rtl-opt/46226
1205         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
1206         for asm goto.
1207
1208 2010-10-29  Paul Koning  <ni1d@arrl.net>
1209
1210         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
1211         register to register move.
1212
1213 2010-10-29  Paul Koning  <ni1d@arrl.net>
1214
1215         * config/pdp11/pdp11.c (print_operand_address): Correct handling
1216         of integer constant addresses, delete vax-only logic.
1217
1218 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
1219
1220         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
1221         a conditional expression.
1222
1223 2010-10-29  Paul Koning  <ni1d@arrl.net>
1224
1225         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
1226         instruction encoding.
1227
1228 2010-10-29  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1229             Andrew Pinski <pinskia@gmail.com>
1230
1231         * tree.h (build_vector_from_val): Declare.
1232         * tree.c (build_vector_from_val): New function.
1233         * c-typeck.c (build_binary_op): Handle vector shifting.
1234         * doc/extend.texi: Description of the vector shifting operation.
1235
1236 2010-10-29  Paul Koning  <pkoning@equallogic.com>
1237
1238         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
1239         pdp11_secondary_memory_needed): Declare.
1240         * config/pdp11/predicates.md (float_operand): New predicate.
1241         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
1242         (cbranchdf4, movdf): Change predicate.
1243         (movsf): Handle FPU register case.
1244         (truncdfsf2, extendsfdf2): Add FPU register case.
1245         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
1246         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
1247         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1248         (pdp11_register_move_cost): Update cost matrix.
1249         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
1250         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
1251         pdp11_secondary_memory_needed): New function.
1252         (pdp11_return_in_memory): Add other float types.
1253         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
1254         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
1255         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
1256         REGISTER_MOVE_COST): Delete.
1257         (BASE_RETURN_VALUE_REG): Add other float types.
1258
1259 2010-10-29  Nick Clifton<nickc@redhat.com>
1260
1261         * doc/invoke.texi: Document -mam34 and -mtune options.
1262         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
1263         (mn10300_tune_cpu): New variable.
1264         (mn10300_handle_option): Handle -mam34 and -mtune options.
1265         (mn10300_option_override): Convert tune string into tune cpu variable.
1266         (mn10300_legitimate_constant_p): Delete unused local variable.
1267         (is_load_insn): New function.
1268         (is_store_insn): New function.
1269         (mn10300_adjust_schedule_cost): New function.
1270         (TARGET_SCHED_ADJUST_COST): Define.
1271         * config/mn10300/mn10300.opt (mam34): New option.
1272         (mtune): New option.
1273         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
1274         (enum processor_type): Add AM34.
1275         (TARGET_AM34): Define.
1276         * config/mn10300/mn10300.md (attr cpu): Add am34.
1277         Add pipeline description.
1278         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
1279         Remove unneeded alternatives.  Add timing attribute.
1280         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
1281         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
1282         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
1283         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
1284         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
1285         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
1286         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
1287         float_conditional_branch, jump, indirect_jump, tablejump,
1288         call_internal, call_value_internal, zero_extendqisi2_am33,
1289         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
1290         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
1291         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
1292         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
1293         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
1294         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
1295         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
1296         return_internal_regs, store_movm, return, call_next_insn):
1297         Add timing attribute.
1298         (am33_subsi3): Add missing clobber of CC_REG.
1299         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
1300         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
1301         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
1302         extendqisi2): Fix predicates.
1303         (call_internal, call_internal_value): Separate alternatives.
1304         * config/mn10300/t-mn10300: Add AM34 multilib.
1305
1306 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
1307
1308         * config/sh/sh.c (sh_promote_function_mode): Use
1309         default_promote_function_mode if !sh_promote_prototypes.
1310
1311 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
1312
1313         * recog.c (split_all_insns): Remove dead code.
1314
1315 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1316
1317         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1318
1319 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1320
1321         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1322         (FUNCTION_ARG_ADVANCE): Delete.
1323         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
1324         functions.
1325         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
1326         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1327         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1328
1329 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1330
1331         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
1332         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1333         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
1334         Take a const_tree and a bool.
1335         (mcore_function_arg_advance): New function.
1336         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1337
1338 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1339
1340         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
1341         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1342         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
1343         Take a const_tree and a bool.
1344         (mcore_function_arg_advance): New function.
1345         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1346
1347 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1348
1349         * config/h8300/h8300-protos.h (function_arg): Delete.
1350         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1351         * config/h8300/h8300.c (function_arg): Rename to...
1352         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
1353         a bool.
1354         (h8300_function_arg_advance): New function.
1355         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1356
1357 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1358
1359         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
1360         to...
1361         * config/arc/arc.c (arc_function_arg): ...here and...
1362         (arc_function_arg_advance): ...here.  New functions.
1363         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1364
1365 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1366
1367         * config/crx/crx-protos.h (crx_function_arg): Delete.
1368         (crx_function_arg_advance): Delete.
1369         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1370         * config/crx/crx.c (crx_function_arg): Make static.  Take a
1371         const_tree and a bool.
1372         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
1373         (enough_regs_for_param): Take a const_tree.
1374         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1375
1376 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1377
1378         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
1379         (m68hc11_function_arg_advance): Delete.
1380         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
1381         (FUNCTION_ARG_ADVANCE): Delete.
1382         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
1383         Take a const_tree and a bool.
1384         (m68hc11_function_arg_advance): Likewise.
1385         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1386
1387 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1388
1389         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
1390         (xstormy16_function_arg_advance): Delete.
1391         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
1392         (FUNCTION_ARG_ADVANCE): Delete.
1393         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
1394         Take a const_tree and a bool.
1395         (xstormy16_function_arg_advance): Likewise.  Return void, updating
1396         the CUM parameter instead.
1397         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1398
1399 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1400
1401         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
1402         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1403         (MOXIE_FUNCTION_ARG_SIZE): Move to...
1404         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
1405         (moxie_function_arg): Make static.  Take a const_tree and a bool.
1406         (moxie_function_arg_advance): New function.
1407         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1408
1409 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1410
1411         * config/mn10300/mn10300-protos.h (function_arg): Delete.
1412         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
1413         (FUNCTION_ARG_ADVANCE): Delete.
1414         * config/mn10300/mn10300.c (function_arg): Rename to...
1415         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
1416         and a bool.
1417         (mn10300_function_arg_advance): New function.
1418         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1419
1420 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1421
1422         * config/iq2000/iq2000-protos.h (function_arg): Delete.
1423         (function_arg_advance): Delete.
1424         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1425         * config/iq2000/iq2000.c (function_arg): Rename to...
1426         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
1427         a bool.
1428         (function_arg_advance): Rename to...
1429         (iq2000_function_arg_advance): ...this.  Make static.  Take a
1430         const_tree and a bool.
1431         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
1432         iq2000_function_arg.
1433         (iq2000_pass_by_reference): Call iq2000_function_arg).
1434         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1435
1436 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1437
1438         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
1439         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1440         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
1441         const_tree.
1442         (fr30_function_arg): New function.
1443         (fr30_function_arg_advance): New function.
1444         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1445
1446 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1447
1448         * config/frv/frv-protos.h (frv_function_arg): Delete.
1449         (frv_function_arg_advance): Delete.
1450         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1451         * config/frv/frv.c (frv_function_arg): Rename to...
1452         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
1453         (frv_function_arg, frv_function_incoming_arg): New functions.
1454         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
1455         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1456         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1457
1458 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
1459
1460         PR target/46153
1461         * config/i386/sse.md (sse_movhlps_exp): Use destination
1462         returned from ix86_fixup_binary_operands to expand insn.
1463         (sse_movlhps_exp): Ditto.
1464         (sse_loadhps_exp): Ditto.
1465         (sse_loadlps_exp): Ditto.
1466         (sse2_loadhpd_exp): Ditto.
1467         (sse2_loadlpd_exp): Ditto.
1468
1469 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
1470
1471         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
1472         constants in thumb2.
1473
1474 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
1475
1476         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
1477         arithmetics in masking operations.
1478         (contains_muldiv): Likewise.
1479         (try_combine): Likewise.
1480         (find_split_point): Likewise.
1481         (combine_simplify_rtx): Likewise.
1482         (simplify_if_then_else): Likewise.
1483         (simplify_set): Likewise.
1484         (expand_compound_operation): Likewise.
1485         (expand_field_assignment): Likewise.
1486         (make_extraction): Likewise.
1487         (extract_left_shift): Likewise.
1488         (make_compound_operation): Likewise.
1489         (force_to_mode): Likewise.
1490         (make_field_assignment): Likewise.
1491         (reg_nonzero_bits_for_combine): Likewise.
1492         (simplify_shift_const_1): Likewise.
1493         (simplify_comparison): Likewise.
1494
1495 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
1496
1497         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
1498         (ia64_function_arg_advance): Delete.
1499         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1500         (FUNCTION_ARG_ADVANCE): Delete.
1501         * config/ia64/ia64.c (ia64_function_arg): Rename to...
1502         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
1503         bool arguments.
1504         (ia64_function_arg, ia64_function_incoming_arg): New functions.
1505         (ia64_function_arg_advance): Make static.  Take a const_tree and
1506         a bool.
1507         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1508         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1509
1510 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
1511
1512         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
1513         (TARGET_GET_RAW_ARG_MODE): New.
1514         * doc/tm.texi: Regenerate.
1515         * target.def (get_raw_result_mode): New.
1516         (get_raw_arg_mode): New.
1517         * targhooks.c (default_get_reg_raw_mode): New.
1518         * targhooks.h (default_get_reg_raw_mode): New.
1519         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
1520         (apply_result_size): Ditto.
1521         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
1522         (TARGET_GET_RAW_RESULT_MODE): Define.
1523         (TARGET_GET_RAW_ARG_MODE): Ditto.
1524
1525 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1526
1527         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
1528         for newer Solaris 10 release.
1529         (sparc_fallback_frame_state): Likewise.
1530
1531 2010-10-27  Jason Merrill  <jason@redhat.com>
1532
1533         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
1534         variables sooner.
1535
1536 2010-10-27  Jie Zhang  <jie@codesourcery.com>
1537             Maxim Kuvyrkov  <maxim@codesourcery.com>
1538
1539         * haifa-sched.c (ISSUE_POINTS): Remove.
1540         (max_issue): Don't issue more than issue_rate instructions.
1541
1542 2010-10-27  Ian Lance Taylor  <iant@google.com>
1543
1544         PR target/46197
1545         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
1546         (split_stack_return): Replace UNSPEC_STACK_CHECK with
1547         UNSPECV_SPLIT_STACK_RETURN.
1548
1549 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1550
1551         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
1552
1553         * config/i386/i386.c (block_info): New.
1554         (BLOCK_INFO): Likewise.
1555         (call_avx256_state): Likewise.
1556         (check_avx256_stores): Likewise.
1557         (move_or_delete_vzeroupper_2): Likewise.
1558         (move_or_delete_vzeroupper_1): Likewise.
1559         (move_or_delete_vzeroupper): Likewise.
1560         (use_avx256_p): Likewise.
1561         (function_pass_avx256_p): Likewise.
1562         (flag_opts): Add -mvzeroupper.
1563         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
1564         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
1565         is disabled.
1566         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
1567         generate vzeroupper.
1568         (init_cumulative_args): Add an int to indicate caller.  Set
1569         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
1570         based on return type.
1571         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
1572         caller_pass_avx256_p based on argument type.
1573         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
1574         is used, but not returned by caller.
1575         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
1576         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
1577         is used.
1578         (ix86_minimum_alignment): Likewise.
1579         (ix86_expand_special_args_builtin): Set target to
1580         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
1581         (ix86_reorg): Run the vzeroupper optimization if needed.
1582
1583         * config/i386/i386.h (ix86_args): Add caller.
1584         (INIT_CUMULATIVE_ARGS): Updated.
1585         (machine_function): Add use_vzeroupper_p, use_avx256_p,
1586         caller_pass_avx256_p, caller_return_avx256_p,
1587         callee_pass_avx256_p and callee_return_avx256_p.
1588
1589         * config/i386/i386.opt (-mvzeroupper): New.
1590
1591         * config/i386/predicates.md (vzeroupper_operation): Removed.
1592
1593         * config/i386/sse.md (avx_vzeroupper): Removed.
1594         (*avx_vzeroupper): Removed.
1595         (avx_vzeroupper): New.
1596
1597         * doc/invoke.texi: Document -mvzeroupper.
1598
1599 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1600
1601         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
1602         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
1603         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
1604
1605 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1606             Olivier Hainque  <hainque@adacore.com>
1607
1608         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
1609         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
1610         fs->signal_frame instead.
1611
1612 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1613
1614         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
1615         parsing of RID_COPIES and RID_IVAR.
1616
1617 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1618
1619         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
1620         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
1621         Do not use objc_set_property_attr, but use local variables
1622         instead.  Detect repeated usage of setter, getter and ivar
1623         attributes.  Improved error processing when a setter name does not
1624         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
1625         that the token is a keyword.  Updated call to
1626         objc_add_property_declaration.
1627
1628 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1629
1630         * c-parser.c (c_parser_objc_at_property): Renamed to
1631         c_parser_objc_at_property_declaration.  Updated calls to
1632         objc_add_property_variable, now objc_add_property_declaration.
1633         Code rewritten to be much more robust in recovering from syntax
1634         errors.  Added comments.
1635         (c_parser_objc_property_attrlist): Removed.
1636         (c_parser_external_declaration): Updated calls to
1637         c_parser_objc_at_property, now
1638         c_parser_objc_at_property_declaration.
1639         (c_parser_objc_methodprotolist): Same change.
1640
1641 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1642
1643         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
1644
1645 2010-10-26  Jan Hubicka  <jh@suse.cz>
1646
1647         * ipa.c (process_references): Enqueue all referenced nodes;
1648         mark as reachable only non-external nodes.
1649         (cgraph_remove_unreachable_nodes): All referenced nodes should
1650         be enqueued; remove bogues node->needed check.
1651
1652 2010-10-26  Jan Hubicka  <jh@suse.cz>
1653
1654         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
1655         to represent OMP.
1656
1657 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1658
1659         * config/i386/i386.md (split_stack_return): Replace
1660         unspec_volatile with unspec.
1661
1662 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
1663
1664         * doc/install.texi: Fix typo in --with-sysroot description.
1665
1666 2010-10-26  Jan Hubicka  <jh@suse.cz>
1667
1668         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1669         Use info provided by linker plugin.
1670
1671 2010-10-26  Jason Merrill  <jason@redhat.com>
1672
1673         * varasm.c (constructor_static_from_elts_p): Don't require a
1674         CONSTRUCTOR to have elements to be suitable for static
1675         initialization.  Allow ARRAY_TYPE as well.
1676
1677 2010-10-26  Jan Hubicka  <jh@suse.cz>
1678
1679         PR middle-end/45736
1680         * cgraph.c (cgraph_set_readonly_flag): Rename to...
1681         (cgraph_set_const_flags) ... this one; get also looping argument;
1682         clear constructor/destructor flags.
1683         (cgraph_set_pure_flag): Likewise.
1684         (cgraph_set_looping_const_or_pure_flag): Remove.
1685         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
1686         to optimize away static ctors/dtors; it does not work on inline clones;
1687         external functions can always be rmeoved.
1688         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
1689         inline clones; in LTO external functions always can go.
1690         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
1691         (cgraph_mark_address_taken_node): Assert that we are not taking
1692         address of inline clone.
1693         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
1694         external functions.
1695         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
1696         address taken.
1697         (ipcp_initialize_node_lattices): Only local functions can be
1698         handled without cloning.
1699         * cgraph.h (cgraph_set_readonly_flag,
1700         cgraph_set_looping_const_or_pure_flag): Remove.
1701         (cgraph_set_const_flag): Declare.
1702         (cgraph_set_pure_flag): Update.
1703         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
1704         flags setting code.
1705         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
1706         look at inline clones; fix handling of external definitions.
1707         (cgraph_postorder): Do not look at inline clones in the first pass.
1708         (function_and_variable_visibility): Drop constructors/destructor
1709         flags at pure and const functions.
1710         * tree-profile.c (tree_profiling): Update.
1711         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
1712         address taken; external functions do not account to whole program size.
1713         (cgraph_decide_inlining): Likewise; do not try to inline
1714         functions already inlined.
1715
1716 2010-10-26  Jie Zhang  <jie@codesourcery.com>
1717
1718         * doc/invoke.texi: Improve documentation of
1719         -fstrict-volatile-bitfields.
1720
1721 2010-10-26  Ira Rosen  <irar@il.ibm.com>
1722
1723         PR tree-optimization/46167
1724         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
1725         is basic block for the statement.
1726
1727 2010-10-26  Paul Koning  <ni1d@arrl.net>
1728
1729         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
1730         current definition of struct_real_format.
1731
1732 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1733
1734         PR target/44948
1735         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
1736         (ix86_function_arg_boundary): Always align parameters on stack
1737         in 64bit and align parameters with alignment >= 16byte on stack
1738         in 32bit.  Warn alignment change.
1739
1740 2010-10-26  Ian Lance Taylor  <iant@google.com>
1741
1742         PR middle-end/45687
1743         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
1744         offset.
1745
1746 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
1747
1748         Implement opaque-enum-specifiesr for C++0x
1749         * tree.h (ENUM_IS_OPAQUE): New.
1750         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
1751
1752 2010-10-26  Jie Zhang  <jie@codesourcery.com>
1753
1754         * stor-layout.c (layout_decl): Use the field's type to
1755         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
1756         * config/arm/arm.c (arm_override_options): Default to
1757         -fstrict-volatile-bitfields.
1758
1759 2010-10-25  Paul Koning  <ni1d@arrl.net>
1760
1761         * config/pdp11/pdp11.md: Add define_constants for register
1762         numbers, branch offset limits.
1763         * config/pdp11/pdp11.c: Use named constants instead of numbers.
1764         * config/pdp11.pdp11.h: Ditto.
1765
1766 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1767
1768         * configure.ac: Use $cpu_type instead of $target to define the nop.
1769         * configure: Regenerate.
1770
1771 2010-10-25  Jie Zhang  <jie@codesourcery.com>
1772
1773         * combine.c (try_combine): If insns need to be kept around, check that
1774         they can be copied in the merged instruction.
1775
1776 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1777
1778         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
1779         has been modified.
1780         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
1781         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
1782         it has been modified.
1783
1784 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1785
1786         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
1787
1788 2010-10-24  Paul Koning  <ni1d@arrl.net>
1789
1790         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
1791         * config/pdp11/pdp11.c (output_jump): Ditto.
1792
1793 2010-10-24  Ian Lance Taylor  <iant@google.com>
1794
1795         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
1796
1797 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1798
1799         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
1800         least one insn with a locus corresponding to an edge's goto_locus,
1801         disregard non-fallthru edges to the exit block and merge the blocks
1802         created for the same goto_locus.
1803
1804 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
1805
1806         * gcc.c (n_switches_alloc_debug_check): New.
1807         (set_option_handlers): New.
1808         (process_command): Use set_option_handlers.
1809         (do_self_spec): Pass spec-generated options through option handlers.
1810         (main): Also save and restore n_switches_alloc when swapping
1811         switch arrays.
1812
1813 2010-10-23  Richard Henderson  <rth@redhat.com>
1814
1815         PR target/46144
1816         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
1817         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
1818         Honor matching operands when splitting to XOR.
1819
1820 2010-10-23  Ian Lance Taylor  <iant@google.com>
1821
1822         * tree-vrp.c (extract_range_from_binary_expr): If
1823         flag_non_call_exceptions don't eliminate division by zero.
1824         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1825
1826 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
1827
1828         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1829         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
1830         __ORDER_PDP_ENDIAN__.
1831         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1832         (struct DWstruct): Define based on __BYTE_ORDER__.
1833         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1834         (struct INTstruct): Define based on __BYTE_ORDER__.
1835         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1836         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
1837         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
1838         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1839         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1840         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1841         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1842         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1843         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1844         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1845         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1846         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1847         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1848         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1849         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1850         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1851         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1852         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1853         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1854         * doc/tm.texi: Regenerate.
1855         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
1856         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
1857
1858 2010-10-23  Jie Zhang  <jie@codesourcery.com>
1859
1860         PR rtl-optimization/37360
1861         * config/mips/mips.c (cached_can_issue_more): New local variable.
1862         (mips_sched_reorder_1): New.
1863         (mips_sched_reorder): Use mips_sched_reorder_1.
1864         (mips_sched_reorder2): New.
1865         (mips_variable_issue): Set cached_can_issue_more.
1866         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
1867         instead of mips_sched_reorder.
1868
1869         Revert:
1870         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
1871         PR rtl-optimization/37360
1872         * haifa-sched.c (max_issue): Do not assert that we never issue more
1873         insns than issue_rate.  Add comment.
1874
1875 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
1876
1877         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
1878         location info of the expression.
1879
1880 2010-10-22  DJ Delorie  <dj@redhat.com>
1881
1882         * doc/extend.texi (Named Address Spaces): Document the M32C named
1883         address space.
1884
1885         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
1886         __far address space.
1887         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
1888         "__far" address space for R8C and M16C processor variants.
1889         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
1890         (far_addr_space_p): New.
1891         (encode_pattern_1): Add sign and zero extend support.
1892         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
1893         (m32c_extra_constraint_p2): Add SF constraint.
1894         (m32c_legitimate_address_p): Support __far addresses.
1895         (m32c_addr_space_pointer_mode): New.
1896         (m32c_addr_space_address_mode): New.
1897         (m32c_addr_space_legitimate_address_p): New.
1898         (m32c_addr_space_legitimize_address): New.
1899         (m32c_addr_space_subset_p): New.
1900         (m32c_addr_space_convert): New.
1901         (conversions): Add __far operand patterns.
1902         (m32c_prepare_move): Force constants into registers for __far moves.
1903         (m32c_split_move): __far moves are always split.
1904         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
1905         * config/m32c/mov.md (mov<mode>_far_op1): New.
1906         (mov<mode>_far_op2): New.
1907         (movqi_op): Add __far (SF) support.
1908         (movhi_op): Likewise.
1909         (movsi_splittable): Split A1A0 also.
1910
1911 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
1912             Andrew Pinski  <pinskia@gmail.com>
1913
1914         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
1915         * doc/extend.texi: New paragraph
1916
1917 2010-10-22  Paul Koning  <ni1d@arrl.net>
1918
1919         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
1920
1921 2010-10-22  DJ Delorie  <dj@redhat.com>
1922
1923         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
1924
1925 2010-10-22  Paul Koning  <ni1d@arrl.net>
1926
1927         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
1928
1929 2010-10-22  Richard Henderson  <rth@redhat.com>
1930
1931         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
1932         cases for __builtin_fma and __builtin_fmaf.
1933
1934 2010-10-22  Richard Henderson  <rth@redhat.com>
1935
1936         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
1937         NEG+USE for vectors as well.
1938         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
1939         and splitter.
1940
1941 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
1942
1943         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
1944         SWITCH_CURTAILS_COMPILATION): Remove.
1945         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
1946         * doc/tm.texi: Regenerate.
1947         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
1948
1949 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
1950
1951         * config/i386/bdver1.md: New file.
1952         * config/i386/i386.md (include "bdver1.md"): Invoke the
1953         pipeline description for bdver1.
1954         (x86_sahf_1): Add "bdver1_decode" attribute.
1955         (*cmpfp_i_mixed): Likewise.
1956         (*cmpfp_i_sse): Likewise.
1957         (*cmpfp_i_i387): Likewise.
1958         (*cmpfp_iu_mixed): Likewise.
1959         (*cmpfp_iu_sse): Likewise.
1960         (*cmpfp_iu_387): Likewise.
1961         (*swap<mode>,*swap<mode>_1): Likewise.
1962         (fixuns_trunc<mode>hi2): Likewise.
1963         (fix_trunc<mode>si_sse): Likewise.
1964         (x86_fnstcw_1): Likewise.
1965         (x86_fldcw_1): Likewise.
1966         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
1967         (*floatsi<mode>2_vector_mixed): Likewise.
1968         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
1969         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1970         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1971         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
1972         (*floatsi<mode>2_vector_sse): Likewise.
1973         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
1974         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1975         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1976         (*mul<mode>3_1): Likewise.
1977         (*mulsi3_1_zext): Likewise.
1978         (*mulhi3_1): Likewise.
1979         (*mulqi3_1): Likewise.
1980         (*<u>mul<mode><dwi>3_1): Likewise.
1981         (*<u>mulqihi3_1): Likewise.
1982         (*<s>muldi3_highpart_1): Likewise.
1983         (*<s>mulsi3_highpart_1): Likewise.
1984         (*<s>mulsi3_highpart_zext): Likewise.
1985         (x86_64_shld): Likewise.
1986         (x86_shld): Likewise.
1987         (x86_64_shrd): Likewise.
1988         (x86_shrd): Likewise.
1989         (sqrtxf2): Likewise.
1990         (sqrt_extend<mode>xf2_i387): Likewise.
1991         (*sqrt<mode>2_sse): Likewise.
1992         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
1993         (sse_cvtsi2ssq): Likewise.
1994         (sse_cvtss2si): Likewise.
1995         (sse_cvtss2si_2): Likewise.
1996         (sse_cvtss2siq): Likewise.
1997         (sse_cvtss2siq_2): Likewise.
1998         (sse_cvttss2si): Likewise.
1999         (sse_cvttss2siq): Likewise.
2000         (sse2_cvtpi2pd): Likewise.
2001         (sse2_cvttpd2pi): Likewise.
2002         (sse2_cvtsi2sd): Likewise.
2003         (sse2_cvtsi2sdq): Likewise.
2004         (sse2_cvtsd2si): Likewise.
2005         (sse2_cvtsd2si_2): Likewise.
2006         (sse2_cvtsd2siq): Likewise.
2007         (sse2_cvtsd2siq_2): Likewise.
2008         (sse2_cvttsd2si): Likewise.
2009         (sse2_cvttsd2siq): Likewise.
2010         (*sse2_cvtpd2dq): Likewise.
2011         (*sse2_cvttpd2dq): Likewise.
2012         (sse2_cvtsd2ss): Likewise.
2013         (sse2_cvtss2sd): Likewise.
2014         (*sse2_cvtpd2ps): Likewise.
2015         (sse2_cvtps2pd): Likewise.
2016
2017 2010-10-22  Richard Guenther  <rguenther@suse.de>
2018
2019         PR middle-end/46137
2020         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
2021         remove the virtual operands if they are not needed.
2022
2023 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
2024
2025         * config/i386/i386.c (processor_costs bdver1_cost): Update
2026         insn costs and architectural parameters for bdver1.
2027
2028 2010-10-22  Richard Guenther  <rguenther@suse.de>
2029
2030         * gimple.h (gimple_register_canonical_type): Declare.
2031         * gimple.c (gimple_canonical_types): New global hashtable.
2032         (struct gimple_type_leader_entry_s): New type.
2033         (gimple_type_leader): New global cache.
2034         (gimple_lookup_type_leader): New function.
2035         (gtc_visit): Query the proper cache.
2036         (gimple_types_compatible_p): Likewise.
2037         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
2038         (gimple_canonical_type_eq): New function.
2039         (gimple_register_canonical_type): Likewise.
2040         (print_gimple_types_stats): Adjust for gimple_canonical_types.
2041         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
2042         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
2043         gimple_types_compatible_p for LTO.
2044
2045 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
2046
2047         PR target/46098
2048         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
2049         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
2050         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
2051         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
2052         (<sse>_movu<ssemodesuffix>): New expander.
2053         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
2054         (avx_movdqu<avxmodesuffix>): New expander.
2055         (*sse2_movdqu): Rename from sse2_movdqu.
2056         (sse2_movdqu): New expander.
2057
2058 2010-10-22  Richard Guenther  <rguenther@suse.de>
2059
2060         PR tree-optimization/45720
2061         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2062         Handle negative step.
2063         (vect_enhance_data_refs_alignment): Likewise.
2064         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
2065         (vect_create_cond_for_align_checks): Likewise.
2066         (vect_create_cond_for_alias_checks): Likewise.
2067
2068 2010-10-22  Ira Rosen  <irar@il.ibm.com>
2069
2070         PR tree-optimization/46126
2071         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
2072         vectorizable_shift in case of basic block vectorization.
2073
2074 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
2075
2076         * target.h (enum opt_levels, struct default_options): New.
2077         * target.def (handle_ofast): Remove hook.
2078         (target_option.optimization): Change to
2079         target_option.optimization_table.
2080         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
2081         TARGET_OPTION_OPTIMIZATION_TABLE.
2082         (CAN_DEBUG_WITHOUT_FP): Remove.
2083         * doc/tm.texi: Regenerate.
2084         * opts.c (maybe_default_option, maybe_default_options,
2085         default_options_table): New.
2086         (default_options_optimization): Take extra parameters.  Don't
2087         assert that global_options and global_options_set are in use.  Use
2088         maybe_default_options.
2089         (decode_options): Pass extra parameters to
2090         default_options_optimization.
2091         * common.opt (falign-loops): Use value 0 with Var.
2092         (frerun-cse-after-loop, ftree-ter): Remove Init.
2093         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
2094         TARGET_OPTION_OPTIMIZATION): Remove.
2095         * targhooks.c (empty_optimization_table): New.
2096         * targhooks.h (empty_optimization_table): Declare.
2097         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
2098         * config/alpha/alpha.c (alpha_option_optimization_table,
2099         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2100         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
2101         * config/arm/arm.c (arm_option_optimization: Change to
2102         arm_option_optimization_table.
2103         (TARGET_OPTION_OPTIMIZATION): Change to
2104         TARGET_OPTION_OPTIMIZATION_TABLE.
2105         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
2106         * config/avr/avr.c (avr_option_optimization_table,
2107         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2108         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
2109         * config/cris/cris.c (cris_option_optimization): Change to
2110         cris_option_optimization_table.
2111         (TARGET_OPTION_OPTIMIZATION): Change to
2112         TARGET_OPTION_OPTIMIZATION_TABLE.
2113         * config/crx/crx.c (crx_option_optimization): Change to
2114         crx_option_optimization_table.
2115         (TARGET_OPTION_OPTIMIZATION): Change to
2116         TARGET_OPTION_OPTIMIZATION_TABLE.
2117         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2118         * config/fr30/fr30.c (fr30_option_optimization_table,
2119         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2120         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
2121         * config/frv/frv.c (frv_option_optimization_table,
2122         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2123         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
2124         * config/h8300/h8300.c (h8300_option_optimization): Change to
2125         h8300_option_optimization_table.
2126         (TARGET_OPTION_OPTIMIZATION): Change to
2127         TARGET_OPTION_OPTIMIZATION_TABLE.
2128         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2129         * config/i386/i386.c (ix86_option_optimization): Change to
2130         ix86_option_optimization_table.
2131         (TARGET_OPTION_OPTIMIZATION): Change to
2132         TARGET_OPTION_OPTIMIZATION_TABLE.
2133         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2134         as initializer.
2135         * config/ia64/ia64.c (ia64_option_optimization): Change to
2136         ia64_option_optimization_table.
2137         (TARGET_OPTION_OPTIMIZATION): Change to
2138         TARGET_OPTION_OPTIMIZATION_TABLE.
2139         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
2140         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
2141         initializer.
2142         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2143         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2144         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2145         * config/lm32/lm32.c (lm32_option_optimization_table,
2146         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2147         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
2148         * config/m32r/m32r.c (m32r_option_optimization): Change to
2149         m32r_option_optimization_table.
2150         (TARGET_OPTION_OPTIMIZATION): Change to
2151         TARGET_OPTION_OPTIMIZATION_TABLE.
2152         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
2153         CAN_DEBUG_WITHOUT_FP): Remove.
2154         * config/mcore/mcore.c (mcore_option_optimization): Change to
2155         mcore_option_optimization_table.
2156         (TARGET_OPTION_OPTIMIZATION): Change to
2157         TARGET_OPTION_OPTIMIZATION_TABLE.
2158         * config/mep/mep.c (mep_option_optimization): Change to
2159         mep_option_optimization_table.
2160         (TARGET_OPTION_OPTIMIZATION): Change to
2161         TARGET_OPTION_OPTIMIZATION_TABLE.
2162         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
2163         * config/microblaze/microblaze.c
2164         (microblaze_option_optimization_table,
2165         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2166         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
2167         * config/mips/mips.c (mips_option_optimization_table,
2168         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2169         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
2170         * config/mmix/mmix.c (mmix_option_optimization): Change to
2171         mmix_option_optimization_table.
2172         (TARGET_OPTION_OPTIMIZATION): Change to
2173         TARGET_OPTION_OPTIMIZATION_TABLE.
2174         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
2175         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2176         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2177         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2178         * config/pa/pa.c (pa_option_optimization_table,
2179         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2180         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2181         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
2182         pdp11_option_optimization_table.
2183         (TARGET_OPTION_OPTIMIZATION): Change to
2184         TARGET_OPTION_OPTIMIZATION_TABLE.
2185         * config/picochip/picochip.c (picochip_option_optimization_table,
2186         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2187         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
2188         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
2189         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2190         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2191         * config/rx/rx.c (rx_option_optimization_table,
2192         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2193         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2194         * config/s390/s390.c (s390_option_optimization): Change to
2195         s390_option_optimization_table.
2196         (s390_option_override): Update comment.
2197         (TARGET_OPTION_OPTIMIZATION): Change to
2198         TARGET_OPTION_OPTIMIZATION_TABLE.
2199         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
2200         * config/score/score.c (score_option_optimization_table,
2201         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2202         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
2203         * config/sh/sh.c (sh_option_optimization): Change to
2204         sh_option_optimization_table.
2205         (TARGET_OPTION_OPTIMIZATION): Change to
2206         TARGET_OPTION_OPTIMIZATION_TABLE.
2207         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
2208         (sh_option_override, expand_block_move, multcosts, find_barrier,
2209         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
2210         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
2211         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
2212         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
2213         instead of TARGET_SMALLCODE.
2214         * config/sh/sh.opt (mspace): Make into an alias for -Os.
2215         * config/sparc/sparc.c (sparc_option_optimization_table,
2216         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2217         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
2218         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2219         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2220         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
2221         * config/v850/v850.c (v850_option_optimization): Change to
2222         v850_option_optimization_table.
2223         (TARGET_OPTION_OPTIMIZATION): Change to
2224         TARGET_OPTION_OPTIMIZATION_TABLE.
2225         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
2226         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
2227         xtensa_option_optimization_table.
2228         (TARGET_OPTION_OPTIMIZATION): Change to
2229         TARGET_OPTION_OPTIMIZATION_TABLE.
2230         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2231
2232 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
2233
2234         Based on the CFString implementation in FSF apple/trunk branch.
2235
2236         * target.def (objc_construct_string): New Hook.
2237         * doc/tm.texi (objc_construct_string): Document.
2238         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
2239         * config/t-darwin: Amend build rules for darwin.o.
2240         * config/darwin.opt: Add cfstrings flags.
2241         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
2242         (darwin_objc_construct_string): New.
2243         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
2244         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
2245         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
2246         (darwin_fold_builtin): Likewise.
2247         (darwin_build_constant_cfstring): Likewise.
2248         (darwin_objc_construct_string): Likewise.
2249         (darwin_cfstring_p): Likewise.
2250         (darwin_enter_string_into_cfstring_table): Likewise.
2251         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
2252         * config/darwin.c (darwin_running_cxx): New var.
2253         (machopic_select_section): Return cfstring_constant_object_section.
2254         (darwin_override_options): Set darwin_running_cxx.
2255         (add_builtin_field_decl): New.
2256         (darwin_init_cfstring_builtins): New.
2257         (darwin_build_constant_cfstring): New.
2258         (darwin_fold_builtin): New.
2259         (cfstring_hash): New.
2260         (cfstring_eq): New.
2261         (darwin_enter_string_into_cfstring_table): New.
2262         * config/darwin-sections.def (cfstring_constant_object_section): New.
2263         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
2264         (TARGET_OBJC_CONSTRUCT_STRING): Define.
2265
2266 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2267
2268         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
2269         TYPE_STUB_DECL instead of TREE_CHAIN.
2270         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
2271         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
2272         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
2273         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
2274         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
2275         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
2276         Likewise.
2277         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
2278
2279 2010-10-22  Jie Zhang  <jie@codesourcery.com>
2280
2281         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
2282         (copy_blkmode_from_reg): Likewise.
2283         (read_complex_part): Likewise.
2284         (expand_expr_real_1): Calculate packedp and pass it to
2285         extract_bit_field.
2286         * expr.h (extract_bit_field): Update declaration.
2287         * calls.c (store_unaligned_arguments_into_pseudos): Update call
2288         to extract_bit_field.
2289         * expmed.c (extract_fixed_bit_field): Update calls to
2290         extract_fixed_bit_field.
2291         (store_split_bit_field): Likewise.
2292         (extract_bit_field_1): Add new argument packedp.
2293         (extract_bit_field): Add new argument packedp.
2294         (extract_fixed_bit_field): Add new argument packedp and let
2295         packed attribute override volatile.
2296         * stmt.c (expand_return): Update call to extract_bit_field.
2297
2298 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2299
2300         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
2301
2302 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2303
2304         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
2305         of gcc_checking_assert.
2306         * sel-sched.c (code_motion_process_successors): Likewise.
2307
2308 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
2309
2310         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
2311         when stopping because of a different locus on edge or insn.
2312         (try_optimize_cfg): Add comment.
2313         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
2314         block is a forwarder block, propagate locus on the edge.
2315         (cfg_layout_merge_blocks): Likewise.
2316
2317 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
2318
2319         PR target/45946
2320         * config/i386/i386.md (*pushti2): New insn pattern.
2321         (pushti2 splitter): New insn splitter.
2322         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
2323         DWI mode iterator.
2324
2325 2010-10-21  Paul Koning  <ni1d@arrl.net>
2326
2327         * config/pdp11/pdp11-protos.md (arith_operand,
2328         const_immediate_operand, expand_shift_operand,
2329         immediate15_operand): Delete
2330         * config/pdp11/pdp11.c: Ditto.
2331         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
2332         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2333         EXTRA_CONSTRAINT): Delete.
2334         * config/pdp11/pdp11.md (various): Use standard constraints
2335         instead of removed ones.
2336         * config/pdp11/constraints.md: New file.
2337         * config/pdp11/predicates.md: New file.
2338
2339 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
2340
2341         PR c/45834
2342         * alias.c (true_dependence_1): Remove obsolete check for QImode.
2343         (may_alias_p): Ditto.
2344
2345 2010-10-21  Martin Jambor  <mjambor@suse.cz>
2346
2347         PR tree-optimization/45875
2348         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
2349
2350 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2351
2352         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
2353         variables.
2354         (create_new_def_for): Likewise.
2355
2356 2010-10-21  Nick Clifton  <nickc@redhat.com>
2357
2358         * config/mn10300/mn10300.c: Fold code to 80-character width.
2359         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2360         MEM, CONST_INT and CONST_DOUBLE.
2361         (targetm): Move initialization to end of file.
2362         (print_operand): Rename to mn10300_print_operand.
2363         (print_operand_address): Rename to mn10300_print_operand_address.
2364         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
2365         (expand_prologue): Rename to mn10300_expand_prologue.
2366         (expand_epilogue): Rename to mn10300_expand_epilogue.
2367         (initial_offset): Rename to mn10300_initial_offset.
2368         (function_arg): Rename to mn10300_function_arg.
2369         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
2370         (symbolic_operand): Rename to mn10300_symbolic_operand.
2371         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
2372         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
2373         * config/mn10300/mn10300-protos.h: Update prototypes.
2374         * config/mn10300/mn10300.h: Fold code to 80-character width.
2375         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2376         MEM, CONST_INT and CONST_DOUBLE.
2377         (CPP_SPEC): Move to...
2378         (TARGET_CPU_CPP_BUILTINS): ... here.
2379         * config/mn10300/mn10300.md: Fold code to 80-character width.
2380         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2381         MEM, CONST_INT and CONST_DOUBLE.
2382
2383 2010-10-21  Ira Rosen  <irar@il.ibm.com>
2384
2385         PR tree-optimization/46049
2386         PR tree-optimization/46052
2387         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
2388         (vect_get_slp_defs): Add arguments.
2389         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
2390         operands to vect_get_slp_defs.
2391         (vectorizable_reduction): Fix comment, pass scalar operands to
2392         vect_get_slp_defs.
2393         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
2394         type to determine number of units in the created vector.
2395         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
2396         (vectorizable_conversion): Fix comment.
2397         (vectorizable_shift): New function.
2398         (vectorizable_operation): Move code that handles shifts to
2399         vectorizable_shift.
2400         (vectorizable_type_demotion): Fix comment, pass scalar operands to
2401         vect_get_slp_defs.
2402         (vectorizable_type_promotion, vectorizable_store): Likewise.
2403         (vectorizable_condition): Fix comment.
2404         (vect_analyze_stmt): Call vectorizable_shift.
2405         (vect_transform_stmt): Likewise.
2406         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
2407         Use it as the operand to create vectors for, except reduction
2408         initial definition and store.  Use operands type.
2409         (vect_get_slp_defs): Add new arguments.  Pass them to
2410          vect_get_constant_vectors.
2411
2412 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2413
2414         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
2415         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
2416         * cfghooks.c (fixup_reorder_chain): Likewise.
2417         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
2418         * cgraph.c (cgraph_add_thunk): Likewise.
2419         (cgraph_create_edge_1): Likewise.
2420         (cgraph_create_virtual_clone): Likewise.
2421         * ddg.c (add_cross_iteration_register_deps): Likewise.
2422         * dwarf2out.c (modified_type_die): Likewise.
2423         * emit-rtl.c (set_mem_alias_set): Likewise.
2424         * ggc-zone.c (zone_allocate_marks): Likewise.
2425         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
2426         * gimple.c (iterative_hash_gimple_type): Likewise.
2427         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
2428         (create_single_exit_edge): Likewise.
2429         * haifa-sched.c (choose_ready): Likewise.
2430         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2431         * passes.c (execute_todo): Likewise.
2432         * sched-ebb.c (begin_schedule_ready): Likewise.
2433         * sel-sched.c (code_motion_process_successors): Likewise.
2434         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
2435         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
2436         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
2437         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
2438         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
2439         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
2440         (ssa_conflicts_add): Likewise.
2441         * tree-ssa-copy.c (replace_exp): Likewise.
2442         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
2443         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
2444         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2445         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
2446         (compute_antic): Likewise.
2447         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
2448         (add_dependence): Likewise.
2449         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
2450         * tree-vrp.c (supports_overflow_infinity): Likewise.
2451         (make_overflow_infinity, negative_overflow_infinity): Likewise.
2452         (avoid_overflow_infinity, register_new_assert_for): Likewise.
2453         (process_assert_insertions_for): Likewise.
2454         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
2455         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
2456         (intersect_loc_chains, variable_merge_over_cur): Likewise.
2457
2458 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2459
2460         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
2461         * reload1.c (has_nonexceptional_receiver): Likewise.
2462         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
2463         (create_new_def_for): Likewise.
2464         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
2465         (merge_phi_nodes): Likewise.
2466         (has_abnormal_incoming_edge_p): Delete.
2467
2468 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
2469
2470         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
2471
2472 2010-10-21  Richard Guenther  <rguenther@suse.de>
2473             Michael Matz  <matz@suse.de>
2474
2475         PR tree-optimization/45764
2476         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2477         Adjust initial misalignment for negative DR_STEP.
2478         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
2479         do not have the same alignment over the whole iteration domain.
2480
2481 2010-10-21  Richard Guenther  <rguenther@suse.de>
2482
2483         PR tree-optimization/46111
2484         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
2485
2486 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2487
2488         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
2489
2490 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2491
2492         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
2493         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
2494
2495 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2496
2497         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
2498         signal_frame.
2499         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
2500
2501 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2502
2503         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
2504         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
2505
2506 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
2507
2508         * basic-block.h (find_fallthru_edge): Define.
2509         * cfgcleanup.c (merge_blocks_move): Use it.
2510         (try_crossjump_bb): Likewise.
2511         * cfglayout.c (fixup_reorder_chains): Likewise.
2512         (fixup_fallthru_exit_predecessor): Likewise.
2513         * cfgrtl.c (rtl_split_edge): Likewise.
2514         (rtl_verify_flow_info): Likewise.
2515         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2516         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
2517         * ifcvt.c (block_fallthru): Likewise.
2518         * reload1.c (fixup_abnormal_edges): Likewise.
2519         * sched-ebb.c (being_schedule_ready): Likewise.
2520         (schedule_ebb): Likwise.
2521         * sched-rgn.c (find_single_block_region): Likewise.
2522         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
2523         * tree-complex.c (expand_complex_move): Likewise.
2524         * sched-int.h (find_fallthru_edge): Rename to...
2525         (find_fallthru_edge_from): ...this.
2526         * haifa-sched.c (find_fallthru_edge): Rename to...
2527         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
2528         (init_before_recovery): Call find_fallthru_edge_from.
2529         * sel-sched-ir.c (merge_fences): Likewise.
2530         * sel-sched.c (in_fallthru_bb_p): Likewise.
2531         (move_cond_jump): Likewise.
2532
2533 2010-10-20  Paul Koning  <ni1d@arrl.net>
2534
2535         * config/pdp11/pdp11.md (various): Fix conditions on a number of
2536         insn to check for target 11/40 or higher.
2537
2538 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2539
2540         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
2541         bool instead of a tree.
2542         (c_parser_objc_method_decl): Added bool argument.  Updated call to
2543         objc_build_method_signature.
2544         (c_parser_objc_method_definition): Do not call
2545         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
2546         c_parser_objc_method_decl and objc_start_method_definition.
2547         (c_parser_objc_methodproto): Do not call objc_set_method_type.
2548         Updated calls to c_parser_objc_method_type,
2549         c_parser_objc_method_decl and objc_add_method_declaration.
2550
2551 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
2552
2553         PR tree-optimization/45919
2554         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
2555         array members.
2556
2557         PR tree-optimization/46066
2558         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
2559         instead of gsi_last_bb.
2560
2561 2010-10-20  DJ Delorie  <dj@redhat.com>
2562
2563         * config/m32c/m32c.c (m32c_option_override): Always disable
2564         function-cse in 16-bit mode.  Indirect calls are always worse than
2565         direct calls as there is no 16-bit indirect call opcode.
2566         (m32c_override_options_after_change): New, likewise.
2567
2568 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
2569
2570         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
2571         emitting the conditional move in the inner mode of the SUBREG.
2572
2573 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
2574
2575         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
2576         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
2577         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2578         (ia64_preferred_reload_class): Make static.  Change rclass argument
2579         and result types from enum reg_class to reg_class_t.
2580
2581 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
2582
2583         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
2584         call for single operand expression.
2585
2586 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
2587
2588         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
2589         if there is a call statement to pure or const function in the block.
2590
2591 2010-10-20  Paul Koning  <pkoning@equallogic.com>
2592
2593         Fix several build errors for pdp11 target.
2594         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
2595         (cbranchdf4): Conditional on TARGET_FPU.
2596         (movdf): Ditto; correct alternatives check.
2597         (movmemhi): Fix predicate and constraint.
2598         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
2599
2600 2010-10-20  Richard Guenther  <rguenther@suse.de>
2601
2602         PR lto/45667
2603         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
2604         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
2605         (verify_gimple_assign_single): Disable ADDR_EXPR type check
2606         when in LTO.
2607
2608 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
2609
2610         PR fortran/42169
2611         * ira-emit.c (store_can_be_removed_p): Return false instead of
2612         gcc_unreachable.
2613
2614 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
2615
2616         * fold-const.c (fold_binary_loc): New transformation.
2617
2618 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2619
2620         PR target/46085
2621         * config/i386/sse.md (reduc_splus_v8sf): Updated.
2622         (reduc_splus_v4df): Likewise.
2623
2624 2010-10-20  Richard Guenther  <rguenther@suse.de>
2625
2626         PR tree-optimization/45860
2627         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
2628         conditional store replacement for non-register type stores.
2629
2630 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
2631
2632         * stor-layout.c (skip_simple_constant_arithmetic): New function.
2633         (self_referential_size): Use it instead of skip_simple_arithmetic.
2634
2635 2010-10-20  Olivier Hainque  <hainque@adacore.com>
2636
2637         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
2638         If the current function calls eh_return, claim live all registers
2639         that we need to check for liveness otherwise.
2640
2641 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2642
2643         * c-decl.c (c_write_global_declarations): Call
2644         objc_write_global_declarations when compiling Objective-C.
2645         * c-lang.c (finish_file): Removed.
2646
2647 2010-10-19  DJ Delorie  <dj@redhat.com>
2648
2649         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
2650         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
2651         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2652         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2653         * doc/tm.texi: Regenerate.
2654         * targhooks.h (default_label_align_after_barrier_max_skip,
2655         default_loop_align_max_skip, default_label_align_max_skip,
2656         default_jump_align_max_skip): Declare.
2657         * target.def (label_align_after_barrier_max_skip): New.
2658         (loop_align_max_skip): New.
2659         (label_align_max_skip): New.
2660         (jump_align_max_skip): New.
2661         * system.h (poison): Add those macros to the list.
2662         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
2663         (LOOP_ALIGN_MAX_SKIP): Remove.
2664         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
2665         (JUMP_ALIGN_MAX_SKIP): Remove.
2666         (default_label_align_after_barrier_max_skip): New.
2667         (default_loop_align_max_skip): New.
2668         (default_label_align_max_skip): New.
2669         (default_jump_align_max_skip): New.
2670         (compute_alignments): Use the new hooks.
2671         (shorten_branches): Likewise.
2672
2673 2010-10-19  Richard Henderson  <rth@redhat.com>
2674
2675         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
2676         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
2677         (fma4i_fmadd_<mode>): New.
2678         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
2679         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
2680         standard fma patterns.
2681         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
2682         enable for FMA.
2683         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2684         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2685         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
2686
2687 2010-10-19  Paul Koning  <pkoning@equallogic.com>
2688
2689         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
2690         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
2691
2692 2010-10-19  Richard Henderson  <rth@redhat.com>
2693
2694         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
2695         (fmadf4, *fmsdf4, *nfmadf4): New.
2696         (fmaxf4, *fmsxf4, *nfmaxf4): New.
2697
2698 2010-10-19  Michael Eager  <eager@eagercon.com>
2699
2700         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
2701         Use sjlj unwind info for exceptions.
2702
2703 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
2704
2705         PR fortran/43414
2706         * dwarf2out.c (add_calling_convention_attribute): Flag main
2707         Fortran subroutine with DW_AT_main_subprogram.
2708
2709 2010-10-19  Nick Clifton  <nickc@redhat.com>
2710
2711         * config/rx/rx.c (rx_function_value): Small integer types are
2712         promoted to SImode.
2713         (rx_promote_function_mode): New function.
2714         (TARGET_PROMOTE_FUNCTION_MODE): Define.
2715
2716 2010-10-19  Nick Clifton  <nickc@redhat.com>
2717
2718         * config/mep/mep.c (mep_print_operand): Use
2719         targetm.strip_name_encoding.
2720         (mep_output_aligned_common): Likewise.
2721
2722 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
2723
2724         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
2725
2726 2010-10-18  Richard Henderson  <rth@redhat.com>
2727
2728         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
2729         (fma (neg a) (neg b) c) and (fma a (neg b) c).
2730
2731 2010-10-18  Richard Henderson  <rth@redhat.com>
2732
2733         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
2734         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
2735         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
2736         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
2737         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
2738         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
2739         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
2740         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
2741         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
2742         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
2743         (bdesc_multi_arg): Remove the corresponding builtins.
2744         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
2745         (UNSPEC_FMA4_FMSUBADD): Remove.
2746         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
2747         * config/i386/sse.md (FMA4MODEF4): Remove.
2748         (FMAMODE): Add.
2749         (fma<mode>4): New expander.
2750         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
2751         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
2752         (*fma4i_fmsub_<mode>): Similarly.
2753         (*fma4i_fnmadd_<mode>): Similarly.
2754         (*fma4i_fnmsub_<mode>): Similarly.
2755         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
2756         with the first operand.
2757         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
2758         of explicit arithmetic.  Macroize with AVXMODEF2P.
2759         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
2760         (xop_frcz<mode>2): Macroize with FMAMODE.
2761         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
2762         the first operand.
2763         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
2764         extra negations.
2765         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
2766         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
2767         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
2768         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
2769         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
2770         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
2771         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
2772         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
2773
2774 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
2775
2776         PR rtl-optimization/45966
2777         * combine.c (try_combine): If added_sets_2, deal with the case
2778         where i0 feeds i1 and i1 feeds i2.
2779
2780 2010-10-18  Jan Hubicka  <jh@suse.cz>
2781
2782         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
2783         preserve flags before trying to guess on visibility.
2784         (varpool_externally_visible_p): New function.
2785         (function_and_variable_visibility): Use it.
2786
2787 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2788
2789         Implemented parsing @synthesize and @dynamic for Objective-C.
2790         * c-parser.c (c_parser_external_declaration): Recognize
2791         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2792         (c_parser_objc_at_synthesize_declaration): New.
2793         (c_parser_objc_at_dynamic_declaration): New.
2794
2795 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2796
2797         * c-parser.c (c_parser_objc_class_declaration): After finding an
2798         error, parse the whole declaration then reset parser->error.
2799
2800 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2801
2802         PR target/46041
2803         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
2804         * builtins.c (mode_has_fma): Ditto.
2805
2806 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
2807
2808         PR target/36898
2809         PR middle-end/43760
2810         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
2811
2812 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
2813
2814         * config/i386/i386.c (ix86_option_override_internal): Define and
2815         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
2816         default.
2817         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2818         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
2819
2820 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2821
2822         Merge from 'apple/trunk' branch on FSF servers.
2823         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
2824         following Objective-C change:
2825
2826         2005-10-10  Fariborz Jahanian <fjahanian@apple.com>
2827
2828         Radar 4301047
2829         * c-parse.in (objc_quals): Build objc qualifier list same way
2830         as gcc-3.3
2831
2832 2010-10-18  Jan Hubicka  <jh@suse.cz>
2833
2834         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
2835         function_and_variable_visibility): Revert accidental commit.
2836
2837 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2838
2839         Merge from 'apple/trunk' branch on FSF servers.
2840         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
2841         the following Objective-C change:
2842
2843         2005-10-07  Fariborz Jahanian <fjahanian@apple.com>
2844
2845         Radar 4204796
2846         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
2847         'volatilized' type used in a typeof operator.
2848
2849 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
2850
2851         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
2852         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
2853         rewrite modelled on gimple_purge_dead_eh_edges.
2854         (gimple_purge_all_dead_abnormal_call_edges): New function.
2855         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
2856         directly instead of through gimple_purge_dead_abnormal_call_edges.
2857         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
2858         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
2859         removed AB side-effects from one of its statements.
2860         (init_pre): Initialize need_ab_cleanup.
2861         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
2862         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
2863
2864 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
2865
2866         PR c/46015
2867         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
2868         on computed goto argument.
2869
2870 2010-10-18  Richard Guenther  <rguenther@suse.de>
2871
2872         PR tree-optimization/45967
2873         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
2874         (could_have_pointers): Likewise.
2875         (handle_rhs_call, handle_const_call, handle_pure_call,
2876         find_func_aliases, intra_create_variable_infos): Remove calls to them.
2877         (struct fieldoff): Add must_have_pointers field.
2878         (type_must_have_pointers): New function.
2879         (field_must_have_pointers): Likewise.
2880         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
2881         Adjust field merging.
2882         (create_function_info_for): May-have-pointers of varinfo is
2883         almost always true.
2884         (create_variable_info_for_1): Likewise.
2885
2886 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
2887
2888         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
2889         of operands to vec_concat.
2890
2891 2010-10-18  Richard Guenther  <rguenther@suse.de>
2892
2893         PR lto/44950
2894         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
2895         also clear references to entries of it.
2896
2897 2010-10-18  Andi Kleen  <ak@linux.intel.com>
2898
2899         PR other/43448
2900         * gccbug.in: Remove.
2901         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
2902         (doc, distclean, install-common): Remove reference to gccbug.
2903         * configure: Regenerate.
2904         * configure.ac (all_outputs): Remove gccbug.
2905         * doc/configfiles.texi: Remove references to gccbug.
2906         * doc/sourcebuild.texi: Dito.
2907
2908 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
2909
2910         PR middle-end/46019
2911         * fold-const.c (fold_binary_loc): If integer_pow2p has
2912         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
2913
2914 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
2915             Jeremie Salvucci  <jeremie.salvucci@free.fr>
2916
2917         * gengtype.c (verbosity_level): Add variable.
2918         (set_gc_used): Count variables for verbosity.
2919         (close_output_files): Backing up files, counting written ones
2920         verbosily.
2921         (write_types): Count emitted functions for verbosity. Added
2922         debug messages.
2923         (write_enum_defn): Count structures for verbosity. Added debug
2924         messages.
2925         (gengtype_long_options): Add "verbose" & "backupdir".
2926         (print_usage): Ditto.
2927         (main): Verbose display of parsed files.
2928
2929         * gengtype.h (verbosity_level): Add declaration.
2930
2931 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
2932
2933         * gengtype.c (parse_program_options): Add allocation of
2934         plugin_files, and correct test on nb_plugin_files.
2935
2936 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
2937
2938         Merge from 'apple/trunk' branch on FSF servers.
2939
2940         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2941
2942         Radar 4133425
2943         * c-decl.c (undeclared_variable): Issue diagnostic on
2944         private 'ivar' access.
2945
2946 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
2947
2948         PR target/46051
2949         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
2950         generated sequence to match *avx_vperm2f128<mode>_nozero.
2951         (vec_interleave_lowv4df): Ditto.
2952         (vec_interleave_highv8sf): Ditto.
2953         (vec_interleave_lowv8sf): Ditto.
2954
2955 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
2956
2957         * libgcov.c (create_file_directory): Enable it for win32 case.
2958         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
2959         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
2960         (GCOV_PREFIX_SKIP): Likewise.
2961
2962 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
2963
2964         * doc/objc.texi (GNU Objective-C runtime API): New section.
2965         (Modern GNU Objective-C runtime API): New section.
2966         (Traditional GNU Objective-C runtime API): New section.
2967         (Executing code before main): Mention that this section is
2968         specific to the GNU Objective-C runtime.
2969         (Garbage Collection): Same.
2970
2971 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
2972
2973         * c-parser.c (c_parser_for_statement): Move initialization of
2974         cond and incr before if.
2975
2976 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
2977
2978         * target.def (preferred_output_reload_class): New hook.
2979         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
2980         * doc/tm.texi: Regenerate.
2981         * targhooks.c (default_preferred_output_reload_class): New function.
2982         * targhooks.h (default_preferred_output_reload_class): Declare.
2983         * reload.c (find_dummy_reload): Change rclass argument type from
2984         enum reg_class to reg_class_t. Change this_alternative array type
2985         from enum reg_class to reg_class_t.
2986         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2987         (push_reload): Change preferred_class variable type to reg_class_t.
2988         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2989         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
2990         argument type from enum reg_class to reg_class_t. Use
2991         HARD_REGISTER_NUM_P predicate.
2992         * recog.h (reg_fits_class_p): Update prototype.
2993
2994         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2995         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
2996         Remove.
2997         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
2998         static. Change regclass argument and result types from enum reg_class
2999         to reg_class_t.
3000         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3001
3002 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
3003
3004         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
3005         visibility enum, and handle @package.
3006
3007 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3008
3009         * doc/objc.texi (What you can and what you cannot do in +load):
3010         Document that sending messages to constant string objects in +load
3011         is not guaranteed to work.
3012
3013 2010-10-16  Jan Hubicka  <jh@suse.cz>
3014
3015         PR middle-end/44206
3016         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
3017         existence of refrences before removing the function.
3018
3019 2010-10-16  Jan Hubicka  <jh@suse.cz>
3020
3021         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
3022         only_called_at_startup and only_called_at_exit.
3023         (cgraph_propagate_frequency): Compute only_called_at_startup and
3024         only_called_at_exit.
3025         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
3026         only_called_at_exit.
3027         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
3028         flags.
3029         * predict.c (compute_function_frequency): Initialize the new flags.
3030
3031 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3032
3033         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
3034         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
3035         on the bounds of its domain.
3036         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
3037
3038 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
3039
3040         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
3041         * config/avr/avr-protos.h (preferred_reload_class): Remove.
3042         * config/avr/avr.c (preferred_reload_class): Remove.
3043         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
3044         * config/pa/pa.c (emit_move_sequence): Update comment
3045         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
3046         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
3047         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
3048         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
3049         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
3050         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
3051         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
3052         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
3053         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
3054         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
3055         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
3056         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
3057         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
3058
3059 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
3060
3061         * opts.c (set_fast_math_flags,
3062         set_unsafe_math_optimizations_flags): Make static.
3063         * toplev.h (set_fast_math_flags,
3064         set_unsafe_math_optimizations_flags): Remove prototypes.
3065
3066 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
3067
3068         * config/arm/arm.c (arm_option_optimization): Set
3069         flag_section_anchors to 1 not 2.
3070         * config/i386/i386.c (ix86_option_override_internal): Check
3071         global_options_set.x_flag_zee and
3072         global_options_set.x_flag_omit_frame_pointer.
3073         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
3074         flag_zee to 2.
3075         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3076         global_options_set.x_flag_omit_frame_pointer.
3077         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
3078         opts->x_flag_section_anchors to 1 not 2.
3079         * config/sh/sh.c (sh_option_optimization): Don't set
3080         flag_schedule_insns to 2.
3081         (sh_option_override): Check
3082         global_options_set.x_flag_schedule_insns.
3083         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
3084
3085 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
3086
3087         * configure.ac: Make sure inhibit_libc remains false for mingw targets
3088         as cross.
3089         * configure: Regenerated.
3090
3091 2010-10-15  Xinliang David Li  <davidxl@google.com>
3092
3093         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
3094         function.
3095         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
3096         into a recursive function.
3097
3098 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
3099
3100         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
3101         (*movdfcc_1): ditto.
3102
3103 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3104
3105         * target.def (target_option.init_struct): New hook.
3106         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
3107         * doc/tm.texi: Regenerate.
3108         * hooks.c (hook_void_gcc_optionsp): New.
3109         * hooks.h (hook_void_gcc_optionsp): Declare.
3110         * langhooks-def.h (lhd_init_options_struct): Remove.
3111         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
3112         * langhooks.c (lhd_init_options_struct): Remove.
3113         * opts.c (init_options_struct): Also call
3114         targetm.target_option.init_struct.
3115         * config/i386/i386.c (ix86_option_init_struct,
3116         TARGET_OPTION_INIT_STRUCT): New.
3117         (ix86_option_optimization): Move some settings to
3118         ix86_option_init_struct.
3119         * config/pdp11/pdp11.c (pdp11_option_init_struct,
3120         TARGET_OPTION_INIT_STRUCT): New.
3121         (pdp11_option_optimization): Move some settings to
3122         pdp11_option_init_struct.
3123         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
3124         rs6000_option_init_struct.  Use options structure pointer.
3125         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3126         * config/s390/s390.c (s390_option_init_struct,
3127         TARGET_OPTION_INIT_STRUCT): New.
3128         (s390_option_optimization): Don't set
3129         flag_asynchronous_unwind_tables here.
3130         * config/sh/sh.c (sh_option_init_struct,
3131         TARGET_OPTION_INIT_STRUCT): New.
3132         (sh_option_optimization): Don't set flag_finite_math_only here.
3133         * config/spu/spu.c (spu_option_optimization): Replace by
3134         spu_option_optimization.  Use options structure pointer.
3135         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3136
3137 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3138
3139         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
3140
3141         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
3142         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
3143         (Standard names): Document fma.
3144
3145         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
3146         __FP_FAST_FMAF, __FP_FAST_FMAL.
3147
3148         * builitns.c (expand_builtin_mathfn_ternary): New function for
3149         expanding ternary math functions, like fma.
3150         (expand_builtin): Call it for the fma builtins.
3151
3152         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
3153         ops at present.
3154
3155         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
3156         vectorizable functions to support vectorizing fma.
3157
3158         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3159         Handle fma builtins.
3160
3161         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
3162         (UNSPEC_VSX_MSUB): Ditto.
3163         (UNSPEC_VSX_NMADD): Ditto.
3164         (UNSPEC_VSX_NMSUB): Ditto.
3165         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
3166         of UNSPEC. Renumber combiner patterns.
3167         (vsx_fmsub<mode>4*): Ditto.
3168         (vsx_fnmadd<mode>4*): Ditto.
3169         (vsx_fnmsub<mode>4*): Ditto.
3170
3171         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
3172         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
3173         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
3174         (altivec_vmaddfp_1): Ditto.
3175         (altivec_vmaddfp_2): Ditto.
3176         (atlivec_mulv4sf3): Ditto.
3177         (altivec_vnmsubfp): Ditto.
3178         (altivec_vnmsubfp_1): Ditto.
3179         (altivec_vnmsubfp_2): Ditto.
3180         (altivec_vnmsubfp_3): Delete.
3181
3182         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
3183         (fmasf4_fpr): Ditto.
3184         (fmssf4_fpr): Ditto.
3185         (fnmasf4_fpr): Ditto.
3186         (fnmssf4_fpr): Ditto.
3187         (fmadf4): Ditto.
3188         (fmadf4_fpr): Ditto.
3189         (fmsdf4_fpr): Ditto.
3190         (fnmadf4_fpr): Ditto.
3191         (fnmsdf4_fpr): Ditto.
3192
3193         * optabs.h (OTI_fma): Add fma optab.
3194         (fma_optab): Ditto.
3195
3196         * genopinit.c (optabs): Set fma optab.
3197
3198         * rtl.def (FMA): Add FMA rtl.
3199
3200         * tree.h (mode_has_fma): New function to return if MODE supports a
3201         fast multiply and add instruction.
3202         * builtins.c (mode_has_fma): Ditto.
3203
3204 2010-10-15  Jan Hubicka  <jh@suse.cz>
3205
3206         * lto-streamer-out.c (write_symbol): Use pointer set of seen
3207         objects instead of bitmap.
3208         (produce_symtab): Likewise; output defined symbols first.
3209
3210 2010-10-15  Jie Zhang  <jie@codesourcery.com>
3211
3212         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
3213         Option Summary and Index.
3214
3215 2010-10-15  Richard Guenther  <rguenther@suse.de>
3216
3217         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
3218         for automatic variables again.
3219
3220 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3221
3222         * doc/extend.texi (Variable Length): Don't refer to VLAs not
3223         conforming to C99.
3224
3225 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3226
3227         * config/rx/rx.c (rx_option_optimization): Change to
3228         rx_override_options_after_change.  Don't change
3229         flag_lto_compression_level.  Don't check for changes to whether
3230         FPU instructions can be used.  Check and set only
3231         flag_finite_math_only, not other fast-math flags.
3232         (rx_option_override): Call rx_override_options_after_change.
3233         (TARGET_OPTION_OPTIMIZATION): Remove.
3234         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3235
3236 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3237
3238         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
3239         disable section anchors for lang_hooks.name[4] != 'O'.
3240
3241 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3242
3243         * config/frv/frv.c (frv_option_optimization,
3244         TARGET_OPTION_OPTIMIZATION): Remove.
3245         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
3246
3247 2010-10-15  Michael Matz  <matz@suse.de>
3248
3249         * cgraphunit.c (clone_of_p): Define unconditionally.
3250
3251 2010-10-15  Richard Guenther  <rguenther@suse.de>
3252
3253         PR lto/45957
3254         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
3255
3256 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
3257
3258         * ifcvt.c (find_active_insn_before): New function.
3259         (find_active_insn_after): New function.
3260         (cond_exec_process_if_block): Use new functions to replace
3261         prev_active_insn() and next_active_insn().
3262
3263 2010-10-14  Yao Qi  <yao@codesourcery.com>
3264
3265         PR target/45447
3266         * config/arm/arm.c (arm_build_builtin_va_list): Assign
3267         va_list_name to TYPE_STUB_DECL (va_list_type).
3268
3269 2010-10-14  Jan Hubicka  <jh@suse.cz>
3270
3271         PR middle-end/45621
3272         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
3273         redirected to clone, be happy.
3274         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
3275         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
3276         former_clone_of unconditionally.
3277
3278 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3279
3280         Merge from FSF apple 'trunk' branch.
3281         2006 Fariborz Jahanian <fjahanian@apple.com>
3282
3283         Radars 4436866, 4505126, 4506903, 4517826
3284         * c-parser.c (c_parser, objc_property_attr_context) New flag.
3285         (c_lex_one_token): Handle property attributes.
3286         (c_parser_external_declaration): Handle @property.
3287         (c_parser_declaration_or_fndef): Warn on invalid attributes before
3288         @alias, @class, @end and @property objc keywords.
3289         (c_parser_objc_methodprotolist): Handle @property.
3290         (c_parser_objc_property_attrlist): New.
3291         (c_parser_objc_at_property): New.
3292         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
3293         (build_modify_expr): Likewise.
3294
3295 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
3296
3297         PR tree-optimization/46008
3298         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
3299
3300 2010-10-14  Richard Guenther  <rguenther@suse.de>
3301
3302         PR tree-optimization/44913
3303         * tree-data-ref.c (disjoint_objects_p): Remove.
3304         (dr_may_alias_p): Simplify.  Only hand the base object to
3305         the alias-oracle.
3306         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3307         some more trees, bail out instead of asserting.
3308         (ptr_derefs_may_alias_p): Likewise.  Export.
3309         (refs_may_alias_p_1): Handle STRING_CSTs.
3310         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
3311
3312 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
3313
3314         PR c/45969
3315         * c-typeck.c (build_binary_op): Don't try to compute a semantic
3316         type with excess precision for boolean operations.
3317
3318 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
3319             Basile Starynkevitch  <basile@starynkevitch.net>
3320
3321         * gengtype.c:  Include getopt.h and version.h.
3322
3323         (lang_bitmap, struct outf, outf_p)
3324         (get_output_file_with_visibility, oprintf): Definitions moved to
3325         gengtype.h
3326         (output_files, header_file, srcdir, srcdir_len, this_file)
3327         (do_dump): No more static variables.
3328         (do_debug): New.
3329         (dbgprint_count_type_at): Added new function.
3330         (gengtype_long_options): New.
3331         (print_usage, print_version, parse_program_options): New.
3332         (main): Call parse_program_options, and removed old option
3333         handling code.  Added some debug output.
3334
3335         * gengtype.h:  Updated copyright year.
3336         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
3337         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
3338         Moved from gengtype.c to here.
3339         (do_debug, read_state_filename, write_state_filename): New variables.
3340         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
3341
3342         * Makefile.in:
3343         (REVISION): Always defined.
3344         (version.o): Removed ifdef REVISION_c.
3345         (s-gtype): Pass arguments to build/gengtype program.
3346         (build/version.o): Added building rule.
3347         (build/gengtype$(build_exeext)): Added build/version.o.
3348
3349 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3350
3351         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
3352         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
3353         __strong macros.
3354
3355 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
3356
3357         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
3358         may_trap_or_fault_p instead of may_trap_p predicate.
3359         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
3360         (substitute_placeholder_in_expr): Likewise.
3361         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
3362         flag on MEM_REF nodes.
3363         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
3364         flags on INDIRECT_REF nodes.
3365
3366 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
3367
3368         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
3369         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
3370         (arm*-*-eabi*) <tm_file>: Likewise.
3371         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
3372         (frv-*-*linux*) <tm_file>: Likewise.
3373         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
3374         and associated helper macros.
3375         * config/frv/frv-abi.h: Delete.
3376
3377 2010-10-14  Richard Guenther  <rguenther@suse.de>
3378
3379         PR lto/44561
3380         * tree.def (NULLPTR_TYPE): New tree code.
3381         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
3382         * dwarf2out.c (is_base_type): Likewise.
3383         (gen_type_die_with_usage): Likewise.
3384         * sdbout.c (plain_type_1): Likewise.
3385         * tree.c (build_int_cst_wide): Likewise.
3386         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
3387
3388 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
3389
3390         * params.c (params_finished): New.
3391         (add_params): Assert !params_finished.
3392         (finish_params): New.
3393         (set_param_value_internal): Take params and params_set
3394         parameters.  Assert params_finished.
3395         (set_param_value, maybe_set_param_value): Take params and
3396         params_set parameters.  Update calls to set_param_value_internal.
3397         (set_default_param_value): Assert !params_finished.  Don't use
3398         set_param_value_internal.
3399         (default_param_value, init_param_values): New.
3400         * params.h (struct param_info): Change value to default_value.
3401         Remove set.
3402         (set_param_value, maybe_set_param_value): Add params and
3403         params_set parameters.
3404         (PARAM_VALUE): Get parameters from global_options.
3405         (PARAM_SET_P): Remove.
3406         (finish_params, default_param_value, init_param_values): New.
3407         * common.opt (param_values): New Variable.
3408         * config/arm/arm.c (arm_option_override): Pass extra arguments to
3409         maybe_set_param_value.
3410         * config/i386/i386.c (ix86_option_override_internal): Pass extra
3411         arguments to maybe_set_param_value.
3412         * config/picochip/picochip.c (picochip_option_override): Pass
3413         extra arguments to maybe_set_param_value.
3414         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
3415         extra arguments to maybe_set_param_value.
3416         * config/s390/s390.c (s390_option_override): Use
3417         maybe_set_param_value instead of set_param_value.  Pass extra
3418         arguments to maybe_set_param_value.
3419         * config/sparc/sparc.c (sparc_option_override): Pass extra
3420         arguments to maybe_set_param_value.
3421         * config/spu/spu.c (spu_option_override): Pass extra arguments to
3422         maybe_set_param_value.
3423         * opts.c (handle_param): Take opts and opts_set parameters.
3424         Update call to set_param_value.
3425         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
3426         initial_loop_invariant_max_bbs_in_loop): Remove.
3427         (init_options_once): Don't set them.
3428         (init_options_struct): Initialize parameters structures.
3429         (default_options_optimization): Use default_param_value when
3430         restoring defaults.  Update calls to maybe_set_param_value.
3431         (finish_options): Update calls to maybe_set_param_value.
3432         (common_handle_option): Update calls to handle_param and
3433         set_param_value.
3434         * toplev.c (DEFPARAM): Update definition for changes to param_info.
3435         (general_init): Call finish_params.
3436
3437 2010-10-14  Nick Clifton  <nickc@redhat.com>
3438
3439         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
3440         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
3441         (FIRST_PSEUDO_REGISTER): Increase by one.
3442         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
3443         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
3444         (MODES_TIEABLE): Call mn10300_modes_tieable.
3445         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
3446         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
3447         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
3448         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
3449         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
3450         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3451         (mn10300_cc_status_mdep): Delete.
3452         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
3453         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
3454         the combine-stack-adjust pass.
3455         (print_operand): Use the mode of the comparison operation to
3456         select the comparison suffix.
3457         (notice_update_cc): Delete.
3458         (mn10300_secondary_reload_class): Remove test for stack pointer
3459         based arithmetic.
3460         (output_tst): Rename to mn10300_output_cmp.
3461         (impossible_plus_operand): Move into predicates.md.
3462         (mn10300_legitimize_address): Make static.
3463         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
3464         constant pic operands.
3465         (mn10300_legitimate_constant_p): New function.
3466         (mn10300_case_values_threshold): Make static.
3467         (mn10300_hard_regno_mode_ok): New function.
3468         (mn10300_modes_tieable): New function.
3469         (mn10300_select_cc_mode): New function.
3470         * config/mn10300/predicates.md (impossible_plus_operand): Define.
3471         * config/mn10300/mn10300-protos.h: Tidy.
3472         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
3473         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
3474         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
3475         with clobbers or sets of CC_REG.
3476         (CC_REG): Define.
3477         (mov*): Remove use of CLR instruction.
3478         (cbranch_si4_<code>): New pattern/split.
3479         (integer_conditional_branch): New pattern.
3480         (cbranch_sf4_<code>): New pattern/split.
3481         (float_conditional_branch): New pattern.
3482         (casesi): Use addsi3 pattern instead of movsi pattern to add and
3483         move a value at the same time.
3484         (cc0 peepholes): Remove.
3485
3486 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3487
3488         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
3489         on RTX_FRAME_RELATED_P insns and the insn to which
3490         NOTE_INSN_EPILOGUE_BEG is attached.
3491         * sched-vis.c (print_value): Allow NULL value.
3492
3493 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3494
3495         PR rtl-optimization/45570
3496         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
3497         assert that we are pipelining outer loops.  Allow returning
3498         zero predecessors.
3499
3500 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3501
3502         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
3503         (tidy_control_flow): Tidy vertical space.
3504         (sel_remove_bb): New variable idx.  Use it to remember the basic
3505         block index before deleting the block.
3506         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
3507         (sel_merge_blocks): ... here.
3508         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
3509
3510 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
3511
3512         * cse.c (is_dead_reg): Change into inline function that is not
3513         called through for_each_rtx.
3514         (set_live_p): Adjust caller.
3515         (insn_live_p): Don't reset DEBUG_INSNs here.
3516         (struct dead_debug_insn_data): New data.
3517         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
3518         (delete_trivially_dead_insns): If there is just one setter for the
3519         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
3520         and add DEBUG_INSN for it right before the removed setter and
3521         use the DEBUG_EXPR instead of the dead pseudo.
3522
3523 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
3524
3525         * et-forest.c (et_nca): Return NULL immediately when
3526         the dominance forest has disjoint components.
3527
3528 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
3529
3530         * ira.c (setup_class_hard_regs): Fix typo in indexing
3531         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
3532
3533 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
3534
3535         * graph.c (inbb): New variable.
3536         (start_bb): Set inbb to 1 if output is inside of a building block.
3537         (end_bb): Check if output is inside of a building block.
3538
3539 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
3540
3541         PR rtl-optimization/45912
3542         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
3543         regno of registers instead of their index to compute the alignment.
3544
3545 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
3546
3547         * config/i386/i386.c (ix86_build_const_vector): Check vector
3548         mode instead of scalar mode.
3549         (ix86_build_signbit_mask): Likewise.
3550         (ix86_expand_fp_absneg_operator): Updated.
3551         (ix86_expand_copysign): Likewise.
3552         (ix86_expand_int_vcond): Likewise.
3553         (ix86_emit_swdivsf): Likewise.
3554         (ix86_sse_copysign_to_positive): Likewise.
3555         (ix86_expand_sse_fabs): Likewise.
3556         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
3557         * config/i386/sse.md (copysign<mode>3): Likewise.
3558         (sse2_cvtudq2ps): Likewise.
3559         (vec_unpacku_float_hi_v4si): Likewise.
3560         (vec_unpacku_float_lo_v4si): Likewise.
3561
3562         * config/i386/i386.c (ix86_builtins): Add
3563         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
3564         (bdesc_args): Likewise.
3565         (ix86_builtin_vectorized_function): Support
3566         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
3567         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
3568         and IX86_BUILTIN_CVTPS2DQ256.
3569         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
3570
3571         * config/i386/sse.md (STORENT_MODE): New.
3572         (VEC_FLOAT_MODE): Likewise.
3573         (VEC_EXTRACT_MODE): Likewise.
3574         (*avx_cvtdq2pd256_2): Likewise.
3575         (vec_pack_trunc_v4df): Likewise.
3576         (vec_interleave_highv8sf): Likewise.
3577         (vec_interleave_lowv8sf): Likewise.
3578         (storent<mode>): Macroized.
3579         (<code><mode>2: absneg): Likewise.
3580         (copysign<mode>3): Likewise.
3581         (vec_extract<mode>): Likewise.
3582
3583         PR target/44180
3584         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
3585         for V8SFmode.
3586
3587 2010-10-13  Richard Guenther  <rguenther@suse.de>
3588             H.J. Lu  <hongjiu.lu@intel.com>
3589
3590         * config/i386/sse.md (reduc_splus_v8sf): Add.
3591         (reduc_splus_v4df): Likewise.
3592         (vec_unpacks_hi_v8sf): Likewise.
3593         (vec_unpacks_lo_v8sf): Likewise.
3594         (*avx_cvtps2pd256_2): Likewise.
3595         (vec_unpacks_float_hi_v8si): Likewise.
3596         (vec_unpacks_float_lo_v8si): Likewise.
3597         (vec_interleave_highv4df): Likewise.
3598         (vec_interleave_lowv4df): Likewise.
3599
3600 2010-10-13  Richard Guenther  <rguenther@suse.de>
3601
3602         PR objc/45878
3603         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
3604         alone if there are no virtual methods.
3605
3606 2010-10-13  Richard Henderson  <rth@redhat.com>
3607
3608         * expr.c (build_personality_function): Take parameter LANG instead
3609         of parameter NAME.  Build the name based on the lang prefix and the
3610         unwind method in use.
3611         * tree.c (lhd_gcc_personality): Update call to
3612         build_personality_function.
3613
3614 2010-10-13  Richard Guenther  <rguenther@suse.de>
3615
3616         PR objc/45878
3617         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
3618
3619 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
3620
3621         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
3622         Canonicalize input operands of ASM_OPERANDS insns.
3623
3624 2010-10-13  Richard Guenther  <rguenther@suse.de>
3625
3626         PR tree-optimization/45788
3627         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
3628         EH update until fixup-cfg.
3629
3630 2010-10-13  Julian Brown  <julian@codesourcery.com>
3631
3632         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
3633         from CORE_REGS and GENERAL_REGS classes.
3634         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
3635         final constraint for register preferencing.
3636
3637 2010-10-13  Richard Guenther  <rguenther@suse.de>
3638
3639         PR tree-optimization/45970
3640         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
3641         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
3642         (stmt_kills_ref_p): Likewise.
3643         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
3644
3645 2010-10-13  Richard Guenther  <rguenther@suse.de>
3646
3647         PR tree-optimization/45982
3648         * tree-ssa-structalias.c (make_constraints_to): New function.
3649         (make_constraint_to): Implement in terms of make_constraints_to.
3650         (find_func_aliases): Properly make return values of pure/const
3651         functions escape if they assign to sth that is not a pointer.
3652
3653 2010-10-13  Richard Guenther  <rguenther@suse.de>
3654
3655         PR middle-end/45874
3656         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3657         Fixup the CFG when EH was fixed up.
3658
3659 2010-10-13  Ira Rosen  <irar@il.ibm.com>
3660
3661         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
3662         Use operand's type for POINTER_PLUS_EXPR.
3663
3664 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
3665
3666         * c-parser.c (c_parser_for_statement): Initialize incr.
3667
3668 2010-10-12  Xinliang David Li  <davidxl@google.com>
3669
3670         PR tree-optimization/45972
3671         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
3672         with too many arguments.
3673
3674 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
3675
3676         PR fortran/45636
3677         * tree-ssa-forwprop.c: Include expr.h.
3678         (constant_pointer_difference, simplify_builtin_call): New functions.
3679         (tree_ssa_forward_propagate_single_use_vars): Call
3680         simplify_builtin_call on builtin calls.
3681
3682 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
3683
3684         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
3685         (*adddi3_extend_sp32): Likewise.
3686         (*subdi3_insn_sp32): Likewise.
3687         (*subdi3_extend_sp32): Likewise.
3688         (*negdi2_sp32): Use negative test for consistency.
3689
3690 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
3691
3692         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
3693         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3694         * config/fixed-bit.h: Likewise.
3695         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3696         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3697         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
3698         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
3699         (DF_SIZE): Likewise.
3700         * doc/tm.texi: Regenerate.
3701
3702 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
3703
3704         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
3705         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
3706         (*isel_reversed_unsigned_<mode>): New.
3707         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
3708         as valid comparisons and adjust operands and output appropriately.
3709         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
3710
3711 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
3712
3713         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
3714         DATA_ALIGNMENT and add COND parameter. Update comments above.
3715         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
3716         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
3717
3718 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3719
3720         PR bootstrap/45958
3721         * exec-tool.in: Support '-plugin' as the second option to the linker.
3722
3723 2010-10-12  Richard Henderson  <rth@redhat.com>
3724
3725         PR middle-end/45962
3726         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
3727         (expand_stack_vars): Assert large base allocated when used.
3728
3729 2010-10-12  Richard Guenther  <rguenther@suse.de>
3730
3731         * tree-ssa-structalias.c (get_constraint_for_1): Constants
3732         only point to nonlocal, not anything.
3733
3734 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
3735
3736         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
3737         unwind info for exceptions.
3738
3739 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3740
3741         PR testsuite/45851
3742         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
3743         Document optional target selector.
3744
3745 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
3746
3747         * flag-types.h: New.
3748         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
3749         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
3750         options.h.
3751         (OPTIONS_H): Define.
3752         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
3753         of options.h.
3754         * configure.ac (tm_include_list): Include options.h not flags.h.
3755         * configure: Regenerate.
3756         * flags.h: Include flag-types.h.  Include options.h at top of file
3757         again.
3758         (enum debug_info_type, enum debug_info_level, enum
3759         debug_info_usage, enum symbol_visibility, struct visibility_flags,
3760         enum ira_algorithm, enum ira_region, enum excess_precision, enum
3761         graph_dump_types, enum stack_check_type,
3762         enum warn_strict_overflow_code): Move to flag-types.h
3763         * opth-gen.awk: Include flag-types.h in options.h.
3764
3765 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
3766
3767         * expr.c (store_expr): Share code for STRING_CST and
3768         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
3769         check if target is a MEM.
3770
3771         * rtl.h: Include hashtab.h.
3772         (iterative_hash_rtx): New prototype.
3773         * rtl.c (iterative_hash_rtx): New function.
3774         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
3775         (output_loc_list): Return immediately if emitted is set, set it.
3776         (hash_loc_operands, hash_locs, hash_loc_list,
3777         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
3778         optimize_location_lists_1, optimize_location_lists): New function.
3779         (dwarf2out_finish): Call optimize_location_lists.
3780         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
3781
3782 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3783
3784         PR testsuite/45974
3785         Revert:
3786         * Makefile.in ($(lang_checks_parallel))
3787         ($(lang_checks_parallelized)): Use single quotes for
3788         $(RUNTESTFLAGS), to allow passing quoted content.
3789
3790 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3791
3792         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
3793         actual_oldval.  Use __builtin_expect.
3794         (SUBWORD_VAL_CAS): Likewise.
3795
3796 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
3797
3798         * recog.c (nonmemory_operand): Call immediate_operand for
3799         CONSTANT_P operands.
3800
3801 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
3802
3803         * config/i386/i386.md (movmem<mode>): Macroize expander from
3804         movmem{si,di} using SWI48 mode iterator.
3805         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
3806         *strmovsi_rex_1 using P mode iterator.
3807         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
3808         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
3809         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
3810         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
3811         (setmem<mode>): Macroize expander from setmem{si,di} using
3812         SWI48 mode iterator.
3813         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
3814         *strsetsi_rex_1 using P mode iterator.
3815         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
3816         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
3817         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
3818         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
3819         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
3820         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
3821         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
3822         mode iterator.
3823         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
3824         *strlenqi_rex_1 using P mode iterator.
3825
3826 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
3827
3828         PR bootstrap/45445
3829         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
3830         static functions.
3831         (mark_ref_live, mark_ref_dead): Use them.
3832         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
3833         Save the original reg, and use the new functions.
3834         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
3835         changed.
3836         (check_and_make_def_conflict): Save the original reg.
3837
3838 2010-10-11  Martin Jambor  <mjambor@suse.cz>
3839
3840         PR middle-end/45699
3841         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
3842         thunks.
3843
3844 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3845
3846         * Makefile.in ($(lang_checks_parallel))
3847         ($(lang_checks_parallelized)): Use single quotes for
3848         $(RUNTESTFLAGS), to allow passing quoted content.
3849
3850         PR bootstrap/35855
3851         * opt-functions.awk (BEGIN): New section.
3852         (lower, upper, digit, alnum): New variables.
3853         (static_var, opt_sanitized_name): Use alnum instead of character
3854         classes, for non-C locale.
3855         * optc-gen.awk: Likewise.
3856         * opth-gen.awk: Likewise.
3857
3858 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
3859
3860         * target.def (preferred_reload_class): New hook.
3861         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
3862         * doc/tm.texi: Regenerate.
3863         * targhooks.c (default_preferred_reload_class): New function.
3864         * targhooks.h (default_preferred_reload_class): Declare.
3865         * reload.c (find_dummy_reload): Change preferred_class variable type
3866         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
3867         target hook.
3868         (find_reloads): Change goal_alternative array type from int to
3869         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
3870         (push_reload, find_reloads_address_part): Use
3871         TARGET_PREFERRED_RELOAD_CLASS target hook.
3872         * reload1.c (emit_input_reload_insns): Ditto.
3873         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
3874         hook. Change rclass argument and secondary_class variable types from
3875         'enum reg_class' to reg_class_t.
3876
3877         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
3878         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
3879         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
3880         Change regclass argument and result types from enum reg_class to
3881         reg_class_t.
3882         (TARGET_PREFERRED_RELOAD_CLASS): Define.
3883
3884 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
3885
3886         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
3887         in masking operations.
3888         (simplify_const_unary_operation): Likewise.
3889         (simplify_binary_operation_1): Likewise.
3890         (simplify_const_binary_operation): Likewise.
3891         (simplify_const_relational_operation): Likewise.
3892         (simplify_ternary_operation): Likewise.
3893         (simplify_immed_subreg): Likewise.
3894
3895 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3896
3897         PR middle-end/45862
3898         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
3899         (TARGET_SUPPORTS_WEAK): New.
3900         * doc/tm.texi: Regenerate.
3901         * defaults.h (SUPPORTS_WEAK): Update comment.
3902         (TARGET_SUPPORTS_WEAK): New.
3903         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
3904         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
3905         SUPPORTS_WEAK.
3906         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
3907         make_decl_one_only): Likewise.
3908         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
3909         TARGET_SUPPORTS_WEAK.
3910         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
3911         instead of SUPPORTS_WEAK.
3912
3913 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3914
3915         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
3916
3917 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
3918
3919         * vec.h (VEC_qsort): Define.
3920         * dbxout.c (output_used_types): Use it.
3921         * df-scan.c (df_sort_and_compress_refs): Likewise.
3922         (df_sort_and_compress_mws): Likewise.
3923         * genautomata.c (uniq_sort_alt_states): Likewise.
3924         (evaluate_equiv_classes): Likewise.
3925         (output_trans_table): Likewise.
3926         (output_state): Likewise.
3927         * gimplify.c (compare_case_labels): Likewise.
3928         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
3929         * ipa.c (build_cdtor_fns): Likewise.
3930         * lto.c (lto_wpa_write_files): Likewise.
3931         * sel-sched.c (fill_vec_av_set): Likewise.
3932         * tree-predcom.c (determine_roots_comp): Likewise.
3933         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
3934         (splice_param_accesses): Likewise.
3935         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
3936         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3937         (reassociate_bb): Likewise.
3938         * tree-ssa-sccvn.c (sort_scc): Likewise.
3939         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
3940
3941 2010-10-11  Ian Lance Taylor  <iant@google.com>
3942
3943         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
3944         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
3945         TREE_THIS_NOTRAP when appropriate.
3946         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
3947         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
3948         newly created MEM_REF.
3949
3950 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
3951
3952         Nathan Froyds patch to hooks FUNCTION_ARG etc.
3953         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
3954         (picochip_incoming_function_arg): Delete.
3955         (picochip_arg_advance): Delete.
3956         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
3957         (FUNCTION_INCOMING_ARG): Delete.
3958         (FUNCTION_ARG_ADVANCE): Delete.
3959         * config/picochip/picochip.c (picochip_function_arg): Take a
3960         const_tree and a bool.
3961         (picochip_incoming_function_arg): Likewise.
3962         (picochip_arg_advance): Likewise.
3963         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3964         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3965
3966 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3967
3968         PR middle-end/45955
3969         * ipa.c (build_cdtor): Delete endless loop.
3970
3971 2010-10-07  Andi Kleen  <ak@linux.intel.com>
3972
3973         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
3974         checksum-options.
3975         (checksum-options): Add.
3976         (cc1-dummy): Remove.
3977         (cc1-checksum): Change to run checksum over object files
3978         and options only.
3979         * dummy-checksum.c: Remove.
3980         * genchecksum.c: Update copyright.
3981         (usage): Allow multiple arguments.
3982         (BLOCKSIZE): Add.
3983         (dosum): Change for incremental checksum. Remove C output.
3984         (main): Iterate over all argument files. Add C output.
3985
3986 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
3987
3988         * params.c (set_param_value_internal): New.
3989         (set_param_value): Use set_param_value_internal.
3990         (maybe_set_param_value, set_default_param_value): New.
3991         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
3992         (maybe_set_param_value, set_default_param_value): Declare.
3993         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
3994         * config/i386/i386.c (ix86_option_override_internal): Use
3995         maybe_set_param_value.
3996         * config/ia64/ia64.c (ia64_option_default_params,
3997         TARGET_OPTION_DEFAULT_PARAMS): New.
3998         (ia64_option_optimization): Move some code to
3999         ia64_option_default_params.
4000         * config/picochip/picochip.c (picochip_option_override): Use
4001         maybe_set_param_value.
4002         * config/rs6000/rs6000.c (rs6000_option_default_params,
4003         TARGET_OPTION_DEFAULT_PARAMS): New.
4004         (rs6000_option_override_internal): Use maybe_set_param_value.
4005         (rs6000_option_optimization): Move some code to
4006         rs6000_option_default_params.
4007         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
4008         * config/sh/sh.c (sh_option_default_params,
4009         TARGET_OPTION_DEFAULT_PARAMS): New.
4010         (sh_option_optimization): Move some code to sh_option_default_params.
4011         * config/sparc/sparc.c (sparc_option_override): Use
4012         maybe_set_param_value.
4013         * config/spu/spu.c (spu_option_default_params,
4014         TARGET_OPTION_DEFAULT_PARAMS): New.
4015         (spu_option_optimization): Move some code to spu_option_default_params.
4016         (spu_option_override): Use maybe_set_param_value.
4017         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
4018         * doc/tm.texi: Regenerate.
4019         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
4020         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
4021         compiler_params.
4022         (default_options_optimization): Use maybe_set_param_value.
4023         (finish_options): Use maybe_set_param_value.
4024         * target.def (target_option.default_params): New hook.
4025         * toplev.c (general_init): Call targetm.target_option.default_params.
4026
4027 2010-10-11  Ira Rosen  <irar@il.ibm.com>
4028
4029         PR tree-optimization/45902
4030         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
4031         vector type for constants, unless it's a pointer.
4032
4033 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4034
4035         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
4036
4037 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
4038
4039         PR target/45870
4040         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
4041         (ix86_delegitimize_address): Use it.
4042
4043 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
4044
4045         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
4046
4047 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
4048
4049         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
4050         to cum struct in the call to function_arg_advance.
4051         (alpha_function_arg_advance): Mark named as unused.
4052
4053 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
4054
4055         * config/mips/mips.c (mips_handle_option): Make "value" with
4056         ATTRIBUTE_UNUSED.
4057
4058 2010-10-09  Richard Henderson  <rth@redhat.com>
4059
4060         PR rtl-opt/33721
4061         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
4062         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
4063         required_align, tidy the code a bit.  Emit split_stack code in the
4064         right place.  Mark the return value with the alignment properly.
4065         * expr.h (allocate_dynamic_stack_space): Update decl.
4066         * builtins.c (expand_builtin_apply): Update call to
4067         allocate_dynamic_stack_space.
4068         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
4069         * calls.c (initialize_argument_information): Update call to
4070         allocate_dynamic_stack_space.
4071         (expand_call): Likewise.
4072
4073         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
4074         Don't update_stack_alignment here.
4075         (alloc_stack_frame_space): Make ALIGN unsigned.
4076         (stack_var_cmp): Sort by alignment too.
4077         (partition_stack_vars): Don't merge large and small alignment vars.
4078         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
4079         Take care when BASE is not virtual_stack_vars_rtx.
4080         (expand_stack_vars): Allocate dynamic stack space for large
4081         alignment variables.
4082         (expand_one_stack_var): Update all to expand_one_stack_var_at.
4083         (defer_stack_allocation): True for large alignment vars.
4084         (update_stack_alignment): Merge into ...
4085         (expand_one_var): ... here.
4086         (gimple_expand_cfg): Place code from expand_stack_vars.
4087
4088 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4089
4090         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4091         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
4092         (pdp11_function_arg_advance): New function.
4093         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4094
4095 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4096
4097         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
4098         * libgcc2.c: Likewise.
4099
4100 2010-10-09  Richard Guenther  <rguenther@suse.de>
4101
4102         PR lto/45956
4103         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
4104         Properly check if a decl is an automatic var.
4105
4106 2010-10-09  Richard Guenther  <rguenther@suse.de>
4107
4108         PR lto/45947
4109         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
4110
4111 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4112
4113         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
4114         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4115         * config/mmix/mmix.c (mmix_function_arg): Rename to...
4116         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
4117         bool arguments.
4118         (mmix_function_arg): New function.
4119         (mmix_function_incoming_arg): New function.
4120         (mmix_function_arg_advance): New function.
4121         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4122         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4123
4124 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4125
4126         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4127         * config/vax/vax.c (vax_function_arg): New function.
4128         (vax_function_arg_advance): New function.
4129         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4130
4131 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4132
4133         * config/pa/pa-protos.h (function_arg): Delete.
4134         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4135         * config/pa/pa.c (function_arg): Rename to...
4136         (pa_function_arg): ...this.  Make static.  Take a const_tree and
4137         a bool.
4138         (pa_function_arg_advance): New function.
4139         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4140
4141 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4142
4143         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4144         * config/m68k/m68k.c (m68k_function_arg): New function.
4145         (m68k_function_arg_advance): New function.
4146         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4147
4148 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4149
4150         * config/avr/avr-protos.h (function_arg): Delete.
4151         (function_arg_advance): Delete.
4152         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4153         * config/avr/avr.c (function_arg): Rename to...
4154         (avr_function_arg): ...this.  Make static.  Take a const_tree and
4155         a bool.
4156         (function_arg_advance): Rename to...
4157         (avr_function_arg_advance): ...this.  Make static.  Take a
4158         const_tree and a bool.
4159         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4160
4161 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4162
4163         * config/alpha/alpha-protos.h (function_arg): Delete.
4164         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4165         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
4166         * config/alpha/alpha.c (function_arg): Rename to...
4167         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
4168         a bool.  Delete TARGET_ABI_UNICOSMK code.
4169         (alpha_function_arg_advance): New function.
4170         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4171
4172 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4173
4174         * config/mep/mep-protos.h (mep_function_arg): Delete.
4175         (mep_function_arg_advance): Delete.
4176         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4177         * config/mep/mep.c (mep_function_arg): Make static.  Take a
4178         const_tree and a bool.
4179         (mep_function_arg_advance): Likewise.
4180         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4181
4182 2010-10-09  Richard Guenther  <rguenther@suse.de>
4183
4184         PR tree-optimization/45945
4185         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
4186
4187 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
4188
4189         PR tree-optimization/45612
4190         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
4191         Test LABEL_DECLs as well.  Fix formatting issues.
4192         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
4193         whose label is present in NON_SSA_VARS.
4194         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
4195         as well.  Fix formatting issues.
4196         (visit_bb): Fix typos and formatting issue.
4197
4198 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4199
4200         PR tree-optimization/45950
4201         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
4202         before initializing vno->op.
4203
4204 2010-10-09  Ralf Corsépius <ralf.corsepius@rtems.org>
4205
4206         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
4207         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
4208
4209 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
4210
4211         PR target/45913
4212         * config/i386/i386.c (ix86_binary_operator_ok): Support
4213         "andhi/andsi/anddi" as a zero-extending move.
4214
4215 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4216
4217         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
4218         into a temporary array.
4219
4220 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
4221
4222         PR tree-optimization/45903
4223         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
4224         of {A,L}SHIFTRT of MEM.
4225
4226 2010-10-08  Richard Guenther  <rguenther@suse.de>
4227
4228         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4229         Re-construct BLOCK_VARS.
4230         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
4231         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4232         * tree.c (free_lang_data_in_block): Remove.
4233         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
4234         Do not touch the BLOCK tree.
4235         * expr.c (expand_expr_real_1): Allow externals.
4236
4237 2010-10-08  Richard Guenther  <rguenther@suse.de>
4238
4239         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
4240         Do not output BLOCK_SUBBLOCKS.
4241         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
4242         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
4243         Re-construct BLOCK_SUBBLOCKS of parent block.
4244         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
4245         for BINFO_BASE_ACCESSES.
4246
4247 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4248
4249         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
4250         (TREE_H): Include $(FLAGS_H) instead of options.h.
4251         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
4252         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4253         * common.opt (flag_complex_method, flag_evaluation_order,
4254         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
4255         Variable declarations.
4256         * configure.ac (tm_include_list): Include flags.h instead of options.h.
4257         * configure: Regenerate.
4258         * flags.h: Condition out contents for target libraries.  Include
4259         options.h at end of file.
4260         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
4261         flag_evaluation_order, flag_warn_unused_result): Remove.
4262         * gcc.c (main): Intialize global_options with global_options_init.
4263         * langhooks-def.h (lhd_init_options_struct): Declare.
4264         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4265         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
4266         * langhooks.c (lhd_init_options_struct): New.
4267         * langhooks.h (struct lang_hooks): Add init_options_struct.
4268         Update comment on init_options.
4269         * optc-gen.awk: Generate initializer for global_options_init, not
4270         global_options.
4271         * opth-gen.awk: Condition out structure declarations for target
4272         libraries.  Declare global_options_init.
4273         * opts-common.c: Include flags.h instead of options.h.
4274         * opts.c (flag_warn_unused_result): Remove.
4275         (read_cmdline_options): Take gcc_options parameters.  Pass them to
4276         read_cmdline_option.
4277         (initial_lang_mask, initial_min_crossjump_insns,
4278         initial_max_fields_for_field_sensitive,
4279         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
4280         (init_options_once): New.  Split out of decode_options.
4281         (init_options_struct): New.  Split out of decode_options.
4282         (decode_cmdline_options_to_array_default_mask): New.
4283         (default_options_optimization): New.  Split out of decode_options.
4284         (decode_options): Move most code to other functions.  Update call
4285         to read_cmdline_options.
4286         (finish_options): New.  Split out of decode_options.
4287         * opts.h (decode_options): Add gcc_options parameters.
4288         (init_options_once, init_options_struct,
4289         decode_cmdline_options_to_array_default_mask): New.
4290         * toplev.c (flag_complex_method, flag_ira_algorithm,
4291         flag_ira_region, flag_evaluation_order): Remove.
4292         (general_init): Use global_options_init for initial flag values
4293         for global_dc.
4294         (toplev_main): Call init_options_once, init_options_struct,
4295         lang_hooks.init_options_struct,
4296         decode_cmdline_options_to_array_default_mask and
4297         lang_hooks.init_option before decode_options.  Update arguments to
4298         decode_options.
4299         * tree.h: Include flags.h instead of options.h.
4300
4301 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4302
4303         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4304
4305 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4306
4307         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
4308         Delete.
4309         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4310         (FUNCTION_INCOMING_ARG): Delete.
4311         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
4312         (function_arg_slotno): Likewise.  Take bool arguments.
4313         (sparc_arg_partial_bytes): Update call to it.
4314         (function_arg): Rename to...
4315         (sparc_function_arg_1): ...this.  Take bool arguments.
4316         (sparc_function_arg, sparc_function_incoming_arg): New functions.
4317         (function_arg_advance): Rename to...
4318         (sparc_function_arg_advance): ...this.  Take bool argument.
4319         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
4320         (TARGET_FUNCTION_INCOMING_ARG): Define.
4321
4322 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4323
4324         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
4325         Delete.
4326         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4327         * config/bfin/bfin.c (function_arg_advance): Rename to...
4328         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
4329         and bool arguments.
4330         (function_arg): Rename to...
4331         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
4332         arguments.
4333         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4334
4335 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4336
4337         * config/score/score-protos.h (score_function_arg): Delete.
4338         (score_function_arg_advance): Delete.
4339         * config/score/score3.h (score3_function_arg_advance): Take a
4340         const_tree and a bool.
4341         (score3_function_arg): Likewise.
4342         * config/score/score7.h (score7_function_arg_advance): Likewise.
4343         (score7_function_arg): Likewise.
4344         * config/score/score3.c (score3_classify_arg): Likewise.
4345         (score3_function_arg_advance, score3_function_arg): Likewise.
4346         * config/score/score7.c (score7_classify_arg): Likewise.
4347         (score7_function_arg_advance, score7_function_arg): Likewise.
4348         * config/score/score.c (score_function_arg_advance): Likewise.
4349         (score_function_arg): Likewise.  De-const-ify `cum' argument.
4350         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4351
4352 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4353
4354         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
4355         (s390_function_arg): Delete.
4356         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4357         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
4358         (s390_function_arg_integer): Likewise.
4359         (s390_function_arg_advance): Make static.  Take a const_tree and
4360         a bool.
4361         (s390_function_arg): Likewise.
4362         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4363
4364 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4365
4366         * config/spu/spu-protos.h (spu_function_arg): Delete.
4367         * config/spu/spu.h (FUNCTION_ARG): Delete.
4368         (FUNCTION_ARG_ADVANCE): Move code to ...
4369         * config/spu/spu.c (spu_function_arg_advance): New function.
4370         (spu_function_arg): Make static.  Take a const_tree and a bool.
4371         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
4372         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4373
4374 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4375
4376         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4377
4378 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4379
4380         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
4381         (init_vn_nary_op_from_op): New function.
4382         (init_vn_nary_op_from_stmt): New function.
4383         (vn_nary_op_lookup_1): New function.
4384         (sizeof_vn_nary_op): New function.
4385         (alloc_vn_nary_op_noinit): New function.
4386         (alloc_vn_nary_op): New function.
4387         (vn_nary_op_insert_into): New function.
4388         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
4389         (vn_nary_op_lookup): Likewise.
4390         (vn_nary_op_lookup_stmt): Likewise.
4391         (vn_nary_op_insert_pieces): Likewise.
4392         (vn_nary_op_insert): Likewise.
4393         (vn_nary_op_insert_stmt): Likewise.
4394         (copy_nary): Likewise.
4395         (set_value_id_for_result): New function.
4396         (set_hashtable_value_ids): Call it.
4397
4398 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4399
4400         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4401         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
4402
4403 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4404
4405         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
4406         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4407
4408 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
4409
4410         PR debug/45656
4411         * cse.c (cse_extended_basic_block): Preserve cc0 info across
4412         debug isnsn.  Skip them when searching for cc0 setter.
4413         (set_live_p): Skip debug insns when searching for cc0 user.
4414
4415 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
4416
4417         PR debug/45673
4418         PR debug/45604
4419         PR debug/45419
4420         PR debug/45408
4421         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
4422         type of MEM_REFs to INTEGER_CSTs.
4423
4424 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
4425
4426         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
4427         m68hc11_print_operand_address.
4428
4429 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
4430
4431         * builtins.c (rewrite_call_expr): Move code to...
4432         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
4433         (rewrite_call_expr_array): New function.
4434         (fold_builtin_sprintf_chk_1): New function.
4435         (fold_builtin_sprintf_chk): Call it.
4436         (gimple_fold_builtin_sprintf_chk): Likewise.
4437         (fold_builtin_snprintf_chk_1): New function.
4438         (fold_builtin_snprintf_chk): Call it.
4439         (gimple_fold_builtin_snprintf_chk): Likewise.
4440         (gimple_rewrite_call_expr): Delete.
4441
4442 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4443
4444         * config.host: Update copyright year.
4445
4446 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4447
4448         * config.host (host_lto_plugin_soname): New shell variable.
4449         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
4450         * config.in: Regenerate.
4451         * configure: Regenerate.
4452         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
4453         LTO plugin shared library.
4454
4455 2010-10-07  Richard Henderson  <rth@redhat.com>
4456
4457         * target.h (enum unwind_info_type): Move ...
4458         * coretypes.h: ... here.
4459
4460 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
4461
4462         * doc/objc.texi (Fast enumeration protocol): Mention that
4463         'unsigned int' can also be used instead of 'unsigned long' in
4464         countByEnumeratingWithState:objects:count:.
4465
4466 2010-10-07  Martin Jambor  <mjambor@suse.cz>
4467
4468         * tree-sra.c (struct access): New field grp_assignment_write.
4469         (dump_access): Dump grp_assignment_write.
4470         (build_accesses_from_assign): Set grp_assignment_write.
4471         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
4472         (mark_read_status): Renamed to mark_rw_status, individual values
4473         renamed too.
4474         (analyze_access_subtree): Changed type of mark_write to
4475         mark_read_status.  Fixed propagating of mark_read and
4476         mark_write.  Changed benefit estimate.  Updated comment.
4477
4478 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
4479
4480         PR Tree-Vect/45847
4481         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
4482         check for vectype_out returned by get_vectype_for_scalar_type().
4483
4484 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
4485
4486         PR target/45805
4487         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
4488         constraint, add register specifier in instruction template.
4489         (neon_vec_pack_trunc_<mode>): Likewise.
4490         (neon_vec_<US>mult_<mode>): Add register specifier to
4491         instruction template.
4492
4493 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4494
4495         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
4496         cygwin2.o.
4497         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
4498         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
4499         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
4500         (cygwin2.o): Likewise.
4501         * config/i386/cygwin1.c: Delete file.
4502         * config/i386/cygwin2.c: Likewise.
4503         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
4504         make all {%!mno-cygwin} ones unconditional.
4505         (STARTFILE_SPEC): Likewise.
4506         (REAL_LIBGCC_SPEC): Likewise.
4507         (LIB_SPEC): Likewise.
4508         (CXX_WRAP_SPEC): Likewise.
4509         (LINK_SPEC): Likewise.
4510         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
4511         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
4512         (cygwin_gplusplus_include_dir): Delete now-unused array.
4513         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
4514         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
4515         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
4516         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
4517         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
4518         (cygwin_local_include_dir): Delete now-unused array.
4519         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
4520         (cygwin_cross_include_dir): Delete now-unused array.
4521         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
4522         (cygwin_tool_include_dir): Delete now-unused array.
4523         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
4524         (cygwin_standard_include_dir): Delete now-unused array.
4525         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
4526         (GEN_CVT_ARRAY): Delete now-unused macro definition.
4527         (cvt_to_mingw): Delete now-unused array.
4528         (mingw_scan): Remove prototype of deleted function.
4529         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
4530         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
4531         * doc/invoke.texi (-mcygwin): Don't document removed option.
4532         (-mno-cygwin): Likewise.
4533
4534 2010-10-07  Richard Guenther  <rguenther@suse.de>
4535
4536         * machmode.h (mode_for_vector): Declare.
4537         * stor-layout.c (mode_for_vector): New function, split out from ...
4538         (layout_type): ... here.
4539         * tree-vectorizer.h (current_vector_size): Declare.
4540         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
4541         mask vector type is available.
4542         (get_vectype_for_scalar_type): Rename to ...
4543         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
4544         size argument.
4545         (get_vectype_for_scalar_type): New wrapper around
4546         get_vectype_for_scalar_type_and_size using current_vector_size.
4547         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
4548         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
4549         of vect_analyze_loop here.
4550         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
4551         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
4552         to autodetect.
4553         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
4554         V8SF to V8SI conversion builtin.
4555
4556 2010-10-07  Richard Guenther  <rguenther@suse.de>
4557
4558         * target.def (autovectorize_vector_sizes): New target hook.
4559         * targhooks.c (default_autovectorize_vector_sizes): New function.
4560         * targhooks.h (default_autovectorize_vector_sizes): Declare.
4561         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4562         Document.
4563         * doc/tm.texi: Update.
4564         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
4565         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4566
4567 2010-10-07  Richard Guenther  <rguenther@suse.de>
4568
4569         * target.def (units_per_simd_word): Rename to ...
4570         (preferred_simd_mode): ... this.  Return mode instead of size.
4571         * targhooks.c (default_units_per_simd_word): Rename to ...
4572         (default_preferred_simd_mode): ... this.  Return word_mode.
4573         * targhooks.h (default_preferred_simd_mode): Declare.
4574         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
4575         (arm_preferred_simd_mode): ... this.  Re-implement.
4576         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
4577         (ix86_preferred_simd_mode): ... this.  Re-implement.
4578         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
4579         (sparc_preferred_simd_mode): ... this.  Re-implement.
4580         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
4581         (mips_preferred_simd_mode): ... this.  Re-implement.
4582         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
4583         (rs6000_preferred_simd_mode): ... this.  Re-implement.
4584         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
4585         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
4586         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
4587         * doc/tm.texi: Update.
4588
4589 2010-10-07  Richard Guenther  <rguenther@suse.de>
4590
4591         PR middle-end/45869
4592         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
4593         of pointers.
4594
4595 2010-10-07  Alan Modra  <amodra@gmail.com>
4596
4597         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
4598         rather than sign extension by hand.
4599
4600 2010-10-07  Jan Hubicka  <jh@suse.cz>
4601
4602         PR middle-end/45926
4603         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
4604
4605 2010-10-07  Richard Guenther  <rguenther@suse.de>
4606
4607         PR bootstrap/45914
4608         * configure.ac: Fix typo.
4609         * configure: Regenerated.
4610
4611 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4612
4613         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
4614         define_builtin_std where it's unnecessary.
4615         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
4616
4617 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
4618
4619         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
4620         * doc/tm.texi.in: Regenerate.
4621         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
4622         * targhooks.c (default_class_likely_spilled_p): Don't use the
4623         CLASS_LIKELY_SPILLED_P macro.
4624
4625         * config/arm/arm.md: Update comment.
4626
4627 2010-10-06  Jan Hubicka  <jh@suse.cz>
4628
4629         * ipa.c (cgraph_remove_unreachable_nodes): External references can
4630         always be removed.
4631         (cgraph_externally_visible_p): We can not bring local comdats that
4632         are known to linker; fix handling of internal visibility.
4633         (function_and_variable_visibility): Likewise.
4634
4635 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
4636
4637         PR rtl-optimization/45394
4638         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
4639         (struct rtx_subst_pair): Remove AFTER field.
4640         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
4641         (propagate_for_debug): Remove MOVE parameter and adjust.
4642         (try_combine): In the special case where I2 is a PARALLEL, combine only
4643         destinations of SETs and set I2SRC to the I2 source.
4644         Adjust calls to propagate_for_debug throughout.
4645         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
4646         insns.
4647
4648 2010-10-06  Olivier Hainque  <hainque@adacore.com>
4649
4650         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
4651         switch on insn codes as sequence of ifs.
4652
4653 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
4654
4655         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
4656         be UI_NONE for picochip.
4657         (picochip_option_override): Do not disable exception flags.
4658         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
4659         Declare.
4660
4661 2010-10-06  Richard Guenther  <rguenther@suse.de>
4662
4663         * Makefile.in (regmove.o): Depend on $(TARGET_H).
4664
4665 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4666
4667         Implemented fast enumeration for Objective-C.
4668         * c-parser.c (objc_could_be_foreach_context): New.
4669         (c_lex_one_token): Recognize RID_IN keyword in a potential
4670         Objective-C foreach context.
4671         (c_parser_declaration_or_fndef): Added parameter.  Accept
4672         Objective-C RID_IN keyword as terminating a declaration; in that
4673         case, return the declaration in the new parameter.
4674         (c_parser_extenral_declaration): Updated calls to
4675         c_parser_declaration_or_fndef.
4676         (c_parser_declaration_or_fndef): Same change.
4677         (c_parser_compound_statement_nostart): Same change.
4678         (c_parser_label): Same change.
4679         (c_parser_objc_methodprotolist): Same change.
4680         (c_parser_omp_for_loop): Same change.
4681         (c_parser_for_statement): Detect and parse Objective-C foreach
4682         statements.
4683         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
4684         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
4685         fast enumeration parsing code to turn off the c99 error but still
4686         perform checks on the loop declarations.
4687         * c-tree.h (check_for_loop_decls): Updated declaration.
4688         * doc/objc.texi: Document fast enumeration.
4689
4690 2010-10-06  Nick Clifton  <nickc@redhat.com>
4691
4692         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
4693         (MDR_REGNUM): Define.
4694         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
4695         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
4696         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
4697         (REGISTER_NAMES): Add MDR.
4698         (DWARF2_DEBUGGING_INFO): Define to 1.
4699         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4700         (F): New function.  Sets RTX_FRAME_RELATED_P.
4701         (mn10300_gen_multiple_store): Use F.
4702         (expand_prologue): Use F.  Use gen_movsf() to push floating
4703         point registers.
4704         (expand_epilogue): Use gen_movsf() to pop floating point registers.
4705         (mn10300_option_override): Disable combine stack adjust pass.
4706
4707 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
4708
4709         PR target/45901
4710         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
4711         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
4712
4713 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
4714
4715         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
4716         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
4717         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
4718         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
4719         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
4720         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
4721         BUILT_IN_TOUPPER): Mark as leaf.
4722
4723         PR middle-end/45838
4724         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4725         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4726         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4727         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4728         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
4729         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
4730         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
4731
4732 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
4733
4734         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
4735         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4736         (m68hc11_class_likely_spilled_p): New function.
4737
4738 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
4739
4740         * c-parser.c (c_parser_objc_method_definition): Updated comment.
4741
4742 2010-10-05  Jan Hubicka  <jh@suse.cz>
4743
4744         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
4745         Document.
4746         * opts.c (decode_options): Handle lto partitions.
4747         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
4748         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
4749
4750 2010-10-05  Jan Hubicka  <jh@suse.cz>
4751
4752         * cgraphunit.c (assemble_function): Output thunks and aliases before
4753         the function itself.
4754
4755 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
4756
4757         * config/picochip/picochip.c (picochip_option_override): Disable
4758         exception flags for picochip.
4759
4760 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4761
4762         * opts-common.c (handle_option, handle_generated_option,
4763         read_cmdline_option, set_option): Add diagnostic_context
4764         parameter.  Update calls among these functions.
4765         (set_option): Don't use global_dc.
4766         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
4767         (decode_options): Pass global_dc to enable_warning_as_error.
4768         (common_handle_option): Pass global_dc to enable_warning_as_error.
4769         (enable_warning_as_error): Add diagnostic_context parameter.
4770         Document parameters.  Don't use global_dc.  Pass
4771         diagnostic_context parameter to handle_generated_option.
4772         * opts.h (set_option, handle_option, handle_generated_option,
4773         read_cmdline_option, enable_warning_as_error): Add
4774         diagnostic_context parameter.
4775         * Makefile.in (lto-opts.o): Update dependencies.
4776         * coretypes.h (struct diagnostic_context, diagnostic_context):
4777         Declare here.
4778         * diagnostic.h (diagnostic_context): Don't declare typedef here.
4779         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
4780         * langhooks-def.h (struct diagnostic_context): Don't declare here.
4781         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
4782         using diagnostic_context typedef.
4783         * langhooks.c (lhd_initialize_diagnostics): Declare using
4784         diagnostic_context typedef.
4785         * langhooks.h (struct diagnostic_context): Don't declare here.
4786         (initialize_diagnostics, print_error_function): Declare using
4787         diagnostic_context typedef.
4788         * lto-opts.c: Include diagnostic.h.
4789         (lto_reissue_options): Pass global_dc to set_option.  Pass
4790         DK_UNSPECIFIED not 0.
4791         * plugin.c (plugins_internal_error_function): Declare using
4792         diagnostic_context typedef.
4793         * plugin.h (struct diagnostic_context): Don't declare here.
4794         (plugins_internal_error_function): Declare using
4795         diagnostic_context typedef.
4796
4797 2010-10-05  Olivier Hainque  <hainque@adacore.com>
4798             Nicolas Roche  <roche@adacore.com>
4799
4800         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
4801         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
4802
4803 2010-10-05  Ira Rosen  <irar@il.ibm.com>
4804
4805         PR tree-optimization/45752
4806         * tree-vect-slp.c (vect_get_mask_element): Remove static
4807         variables, make them function arguments.
4808         (vect_transform_slp_perm_load): Pass new arguments to
4809         vect_get_mask_element.
4810
4811 2010-10-05  Richard Guenther  <rguenther@suse.de>
4812
4813         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
4814         (gimple_mod_pow2): Likewise.
4815         (gimple_mod_subtract): Likewise.
4816         (gimple_ic): Likewise.
4817         (gimple_stringop_fixed_value): Likewise.
4818         * tree-profile.c (tree_init_edge_profiler): Mark profile
4819         functions nothrow and leaf.
4820         (add_abnormal_goto_call_edges): Remove.
4821         (tree_gen_edge_profiler): Work on SSA form.
4822         (tree_gen_ic_profiler): Likewise.  Simplify.
4823         (do_tree_profiling): Update SSA form.
4824         (pass_tree_profile): Remove.
4825         (do_tree_profiling): Likewise.
4826         (gate_tree_profile_ipa): New function.
4827         (pass_ipa_tree_profile): New.
4828         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
4829         state of instrumented functions.
4830         * passes.c (init_optimization_passes): Remove early non-SSA
4831         inlining.  Move profiling after early optimizations.
4832         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
4833         (pass_ipa_early_inline): Likewise.
4834         * tree-pass.h (pass_ipa_early_inline): Remove.
4835         (pass_tree_profile): Likewise.
4836         (pass_ipa_tree_profile): Declare.
4837
4838 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4839             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
4840
4841         * config/s390/s390.c (z196_cost): New.
4842         (s390_handle_arch_option): Add -march=z196.
4843         (s390_option_override): Use the new cost function and use the z10
4844         defaults also for z196.
4845         (legitimate_reload_constant_p): Adjust comment.
4846         (legitimate_reload_fp_constant_p): New function.
4847         (s390_preferred_reload_class): Distingiush between FP and Int constants.
4848         (preferred_la_operand_p): Avoid la with index on z196.
4849         (s390_adjust_priority): Trigger also for z196.
4850         (s390_issue_rate): Issue rate for z196 is 3.
4851         (s390_z10_fix_long_loop_prediction): Rename to ...
4852         (s390_fix_long_loop_prediction): ... this.
4853         (s390_reorg): Apply the z10 adjustments also for z196.
4854         (s390_loop_unroll_adjust): Do this also for z196.
4855         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
4856         (enum processor_flags): Add PF_Z196.
4857         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
4858         (TARGET_CPU_Z196, TARGET_Z196): New macros.
4859         * config.gcc: Enable z196 for --with-arch.
4860         * config/s390/2817.md: New file.
4861         * config/s390/2084.md: New type for multiply and add.
4862         * config/s390/2097.md: Likewise.
4863         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
4864         (UNSPECV_ATOMIC_OP): New constants.
4865         (fmadddf, fmaddsf): New values for type attribute.
4866         (z196prop): New insn attribute.
4867         (cpu, cpu_facility): Add z196.
4868         (ATOMIC_Z196): New code iterator.
4869         (noxa): New code attribute.
4870         (gk): New mode attribute.
4871         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
4872         Support load zero for fp constants.
4873         (fixuns_truncdddi2, fixuns_trunctddi2)
4874         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
4875         for z196.
4876         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
4877         (popcounthi2, popcountqi2): New expander.
4878         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
4879         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
4880         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
4881         insn definition.
4882         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
4883         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
4884         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
4885         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
4886         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
4887         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
4888         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
4889         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
4890         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
4891         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
4892         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
4893         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
4894         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
4895         Support new z196 instructions.
4896
4897 2010-10-05  Richard Guenther  <rguenther@suse.de>
4898
4899         PR middle-end/45877
4900         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
4901         case where gimplification optimizes away the stmt.
4902
4903 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
4904
4905         PR debug/45849
4906         * var-tracking.c (strip_pointer_flags): New function.
4907         (emit_note_insn_var_location): If rtx_equal_p check failed,
4908         retry on locations simplified with simplify_replace_fn_rtx
4909         and strip_pointer_flags as its callback.
4910
4911 2010-10-04  Jan Hubicka  <jh@suse.cz>
4912
4913         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
4914         (can_refer_decl_in_current_unit_p): ... this one; reverse return
4915         value; handle comdats too.
4916         (canonicalize_constructor_val): Use it; handle function_decls
4917         correctly.
4918         (gimple_fold_obj_type_ref_known_binfo): Likewise.
4919         * gimple.c (get_base_address): Accept all kinds of decls.
4920
4921 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
4922
4923         * flags.h (g_switch_value, g_switch_set): Remove.
4924         * opts.c (g_switch_value, g_switch_set): Remove.
4925         * config/g.opt (G): Add Var(g_switch_value).
4926         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
4927         (alpha_option_override): Check global_options_set.x_g_switch_value
4928         instead of g_switch_set.
4929         (alpha_in_small_data_p): Remove cast in comparison with
4930         g_switch_value.
4931         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
4932         g_switch_value to unsigned HOST_WIDE_INT.
4933         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
4934         with g_switch_value.
4935         (frv_handle_option): Don't handle -G here.
4936         (frv_option_override): Check global_options_set.x_g_switch_value
4937         instead of g_switch_set.  Don't modify g_switch_set.
4938         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
4939         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
4940         g_switch_value to unsigned HOST_WIDE_INT.
4941         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
4942         (ia64_option_override): Check global_options_set.x_g_switch_value
4943         instead of g_switch_set.
4944         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
4945         Remove.
4946         (lm32_in_small_data_p): Remove cast in comparison with
4947         g_switch_value.
4948         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
4949         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
4950         HOST_WIDE_INT.
4951         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
4952         (m32r_init): Check global_options_set.x_g_switch_value instead of
4953         g_switch_set.
4954         (m32r_in_small_data_p): Remove cast in comparison with
4955         g_switch_value.
4956         (m32r_file_start): Format g_switch_value with %d.
4957         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
4958         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
4959         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
4960         handle -G here.
4961         (microblaze_option_override): Check
4962         global_options_set.x_g_switch_value instead of g_switch_set.
4963         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
4964         (mips_option_override): Check global_options_set.x_g_switch_value
4965         instead of g_switch_set.
4966         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
4967         (rs6000_file_start): Format g_switch_value with %d.
4968         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
4969         comparisons with g_switch_value.
4970         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4971         global_options_set.x_g_switch_value instead of g_switch_set.
4972         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4973         global_options_set.x_g_switch_value instead of g_switch_set.
4974         * config/score/score.c (score_handle_option): Don't handle -G here.
4975         * config/score/score3.c (score3_option_override): Check
4976         global_options_set.x_g_switch_value instead of g_switch_set.
4977         * config/score/score7.c (score7_option_override): Check
4978         global_options_set.x_g_switch_value instead of g_switch_set.
4979
4980 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
4981
4982         * common.opt (fira-coalesce): Remove.
4983
4984         * doc/invoke.texi (flag_ira_coalesce): Remove.
4985
4986         * ira-color.c (allocno_coalesced_p): Move before
4987         copy_freq_compare_func.
4988         processed_coalesced_allocno_bitmap): Ditto.
4989         (update_conflict_hard_regno_costs): Don't use
4990         ALLOCNO_FIRST_COALESCED_ALLOCNO.
4991         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
4992         (assign_hard_reg): Assume no coalesced allocnos.
4993         (get_coalesced_allocnos_attributes): Remove.
4994         (bucket_allocno_compare_func): Assume no coalesced allocnos.
4995         (push_allocno_to_stack): Ditto.
4996         (remove_allocno_from_bucket_and_push): Use
4997         ira_print_expanded_allocno instead of print_coalesced_allocno.
4998         (push_allocnos_to_stack): Assume uncoalesced allocnos.
4999         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
5000         all_conflicting_hard_regs.
5001         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
5002         (setup_allocno_left_conflicts_size): Ditto.
5003         (put_allocno_into_bucket): Ditto.
5004         (copy_freq_compare_func): Remove.
5005         (copy_freq_compare_func, merge_allocnos): Move before
5006         coalesced_pseudo_reg_freq_compare.
5007         coalesced_allocno_conflict_p): Ditto.
5008         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
5009         parameter.  Assume it true.
5010         (color_allocnos): Assume uncoalesced allocnos.  Use
5011         ira_print_expanded_allocno instead of print_coalesced_allocno.
5012         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
5013         parameter.
5014
5015         * ira.c: Remove comment about coalescing.
5016
5017 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5018
5019         * config/mips/mips.h (target_flags_explicit): Declare for
5020         GENERATOR_FILE.
5021
5022 2010-10-04  Andi Kleen <ak@linux.intel.com>
5023
5024         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
5025         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
5026
5027 2010-10-04  Matthias Klose  <doko@ubuntu.com>
5028
5029         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
5030         multilib osdirname if it exists.
5031         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
5032
5033 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
5034
5035         PR middle-end/45876
5036         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
5037         arg0's type or its unsigned counterpart as utype.  Convert
5038         arg1 to utype unconditionally.
5039
5040 2010-10-04  Julian Brown  <julian@codesourcery.com>
5041
5042         * expr.c (expand_assignment): Add assertion to prevent emitting
5043         null rtx for movmisalign pattern.
5044         (expand_expr_real_1): Likewise.
5045         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
5046         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
5047         (arm_vector_alignment_reachable): New.
5048         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
5049         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
5050         (arm_print_operand): Include alignment qualifier in %A.
5051         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
5052         (movmisalign<mode>): New expander.
5053         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
5054         insn patterns.
5055
5056 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5057
5058         * optc-gen.awk: Define global_options_set.  Don't define
5059         target_flags_explicit.
5060         * opth-gen.awk: Declare global_options_set.  Define
5061         target_flags_explicit as macro.
5062         * opts-common.c (handle_option): Take opts_set and generated_p
5063         parameters.
5064         (handle_generated_option, read_cmdline_option, set_option): Take
5065         opts_set parameter.
5066         (set_option): Use opts_set instead of hardcoding target_flags and
5067         target_flags_explicit.
5068         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
5069         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
5070         flag_value_profile_transformations_set, flag_peel_loops_set,
5071         flag_branch_probabilities_set, flag_inline_functions_set,
5072         flag_ipa_cp_set, flag_ipa_cp_clone_set,
5073         flag_predictive_commoning_set, flag_unswitch_loops_set,
5074         flag_gcse_after_reload_set): Remove.
5075         (common_handle_option, lang_handle_option, target_handle_option):
5076         Take opts_set parameter.  Assert that it is &global_options_set.
5077         (common_handle_option): Don't set _set variables.  Check opts_set
5078         instead of such variables.
5079         (enable_warning_as_error): Pass &global_options_set to
5080         handle_generated_option.
5081         * opts.h (cl_option_handler_func.handler, set_option,
5082         handle_option, handle_generated_option, read_cmdline_option): Add
5083         opts_set parameters.
5084         (handle_option): Add generated_p parameter.
5085         * config/i386/i386.c (ix86_function_specific_save,
5086         ix86_function_specific_restore): Updat for renaming of
5087         target_flags_explicit field.
5088         * config/i386/i386.opt (target_flags_explicit): Rename to
5089         ix86_target_flags_explicit.
5090         * config/ia64/ia64.c (ia64_override_options_after_change): Check
5091         global_options_set.x_flag_selective_scheduling and
5092         global_options_set.x_flag_selective_scheduling2, not
5093         sel_sched_switch_set.
5094         * flags.h (sel_sched_switch_set,
5095         flag_speculative_prefetching_set): Remove.
5096         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
5097         that it is &global_options_set.
5098         (process_command): Pass &global_options_set to read_cmdline_option.
5099         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
5100         set_option.
5101         * toplev.c (target_flags_explicit): Remove.
5102
5103 2010-10-04  Jan Hubicka  <jh@suse.cz>
5104
5105         PR middle-end/45871
5106         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
5107         use get_ref_base_and_offset to handle references.
5108         (fold_const_aggregate_ref): Update.
5109
5110 2010-10-04  Martin Jambor  <mjambor@suse.cz>
5111
5112         PR tree-optimization/45572
5113         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
5114         ipa_check_create_node_params.
5115         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
5116
5117 2010-10-04  Yao Qi  <yao@codesourcery.com>
5118
5119         * doc/passes.texi: Clean up.
5120
5121 2010-10-03  Ian Lance Taylor  <iant@google.com>
5122
5123         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
5124         referring to a field using a typedef name.
5125         (find_anonymous_field_with_type): New static function.
5126         (convert_to_anonymous_field): New static function.
5127         (convert_for_assignment): If -fplan9-extensions, permit converting
5128         pointer to struct to pointer to anonymous field.
5129         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
5130         (is_duplicate_field): New static function.
5131         (detect_field_duplicates_hash): If -fplan9-extensions, check for
5132         typedef names duplicating field names.
5133         (detect_field_duplicates): Likewise.
5134         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
5135         (C Dialect Options): Document -fplan9-extensions.
5136         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
5137
5138 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
5139
5140         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
5141         revision 164914.
5142         (vect_create_data_ref_ptr): Likewise.
5143         * tree-vect-stmts.c (vectorizable_store): Likewise.
5144         (perm_mask_for_reverse): Likewise.
5145         (reverse_vec_elements): Likewise.
5146         (vectorizable_load): Likewise.
5147
5148 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5149
5150         * cppbuiltin.c: New file.
5151         * cppbuiltin.h: New file.
5152         * Makefile.in: Take into account cppbuiltin.{h,c}.
5153
5154 2010-10-03  Andi Kleen <ak@linux.intel.com>
5155
5156         * lto-cgraph.c (input_cgraph): Check for missing sections.
5157
5158 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
5159
5160         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
5161         to nonimmediate_operand.  Force operand 2 to register when allowed.
5162         (*<shiftrt_insn><mode>3_mask): Ditto.
5163         (*<rotate_insn><mode>3_mask): Ditto.
5164
5165 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
5166
5167         PR tree-optimization/45720
5168         PR tree-optimization/45764
5169         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5170         Don't accept backwards consecutive accesses.
5171         (vect_create_data_ref_ptr): Disallow negative steps.
5172
5173         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
5174         (perm_mask_for_reverse): Removed.
5175         (reverse_vec_elements): Likewise.
5176         (vectorizable_load): Don't handle negative steps.
5177
5178 2010-10-02  Jan Hubicka  <jh@suse.cz>
5179
5180         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
5181         call destination is known.
5182
5183 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5184
5185         PR target/45820
5186         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
5187         earlier.
5188
5189 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5190
5191         * doc/install.texi (Configuration): Document build_configargs,
5192         host_configargs, target_configargs.
5193
5194 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
5195
5196         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
5197         (*<shiftrt_insn><mode>3_mask): Ditto.
5198         (*<rotate_insn><mode>3_mask): Ditto.
5199
5200 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
5201
5202         PR tree-optimization/44716
5203         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5204         (HOT_TEXT_SECTION_NAME): Define.
5205
5206 2010-10-01  Nick Clifton  <nickc@redhat.com>
5207
5208         * common.opt: Add -fcombine-stack-adjustments.
5209         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
5210         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
5211         flag_combine_stack_adjustments.
5212         * doc/invoke.texi: Document the new option.
5213
5214 2010-10-01  Richard Guenther  <rguenther@suse.de>
5215
5216         PR tree-optimization/45854
5217         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
5218
5219 2010-10-01  Anthony Green  <green@moxielogic.com>
5220
5221         * config.gcc: Fix moxie-*-rtems* configuration.
5222
5223 2010-10-01  Richard Guenther  <rguenther@suse.de>
5224
5225         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
5226         (gen_decl_die): Likewise.
5227
5228 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5229
5230         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
5231         to the function code for SPU MD builtins.
5232         (spu_expand_builtin): Update.
5233         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
5234
5235 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5236
5237         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
5238         sjlj_except_unwind_info.
5239
5240 2010-10-01  Tristan Gingold  <gingold@adacore.com>
5241
5242         * configure.ac: Define the nop insn for avr*-*-*
5243         * configure: Regenerate.
5244
5245 2010-10-01  Alan Modra  <amodra@gmail.com>
5246
5247         PR target/45807
5248         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
5249         extend toc_restore_insn.
5250
5251 2010-09-30  Richard Guenther  <rguenther@suse.de>
5252
5253         PR tree-optimization/43959
5254         * function.c (gimplify_parameters): Use create_tmp_reg instead of
5255         create_tmp_var.
5256
5257 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5258
5259         * config/sh/sh.c (sh_expand_prologue): Set
5260         current_function_static_stack_size.
5261
5262 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5263
5264         * configure.ac: Check for Solaris 8 ld with .hidden support.
5265         * configure: Regenerate.
5266
5267 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5268
5269         PR middle-end/45758
5270         * graphite.c (graphite_initialize): Call scev_reset.
5271
5272 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5273
5274         * sese.h (scev_analyzable_p): Return false for real or floating
5275         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
5276
5277 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5278
5279         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
5280         and ps.
5281         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
5282         domain.
5283         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
5284         Do not allocate ub_expr, it is passed in initialized.
5285
5286 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5287
5288         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
5289         (build_cloog_prog): Dump CLooG input file when
5290         flag_graphite_dump_cloog is set.  This is disabled on trunk.
5291         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
5292
5293 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5294
5295         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
5296         verify_dominators for CDI_POST_DOMINATORS.
5297         * sese.h: Remove comment about CDI_POST_DOMINATORS.
5298         (recompute_all_dominators): Remove call to free_dominance_info
5299         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
5300         for CDI_POST_DOMINATORS.
5301
5302 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5303
5304         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
5305         over pbb_dim_iter_domain.
5306
5307 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5308
5309         * graphite-flattening.c: Fix comments.
5310
5311 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5312
5313         * Makefile.in (OBJS-common): Add graphite-flattening.o.
5314         (graphite-flattening.o): New rule.
5315         * common.opt (floop-flatten): New flag.
5316         * doc/invoke.texi (-floop-flatten): Documented.
5317         * graphite-flattening.c: New.
5318         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
5319         * graphite-poly.h (flatten_all_loops): Declared.
5320         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
5321         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
5322         is set, also set flag_graphite.
5323
5324 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5325
5326         * graphite-poly.c (cloog_checksum): New.
5327         * graphite-poly.h (cloog_checksum): Declared.
5328
5329 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5330
5331         * graphite-poly.c (pbb_number_of_iterations): Removed.
5332         (pbb_number_of_iterations_at_time): Correctly compute the number
5333         of iterations in the transformed loop.
5334         * graphite-poly.h (pbb_number_of_iterations): Removed.
5335
5336 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5337
5338         * graphite-poly.h (lst_update_scattering_seq): Removed.
5339         (lst_update_scattering): Correctly handle outermost loop dewey
5340         renumbering.
5341
5342 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5343
5344         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
5345         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
5346         * graphite-poly.h (lst_niter_for_loop): New.
5347
5348 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5349
5350         * graphite-poly.c (apply_poly_transforms): Do not abort when the
5351         transform read from disk is not legal.  Call fatal_error instead.
5352
5353 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5354
5355         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
5356         (print_scop_header): Removed.  Inlined in the only call place...
5357         (print_scop): ... here.
5358
5359 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5360
5361         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
5362
5363 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5364
5365         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
5366
5367 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5368
5369         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
5370         (dot_deps_stmt): Same.
5371         * graphite-poly.c (dot_lst): Same.
5372
5373 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5374
5375         * graphite-blocking.c (scop_do_strip_mine): Do not call
5376         graphite_legal_transform.
5377         (scop_do_block): Same.
5378
5379 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
5380
5381         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
5382         description.
5383
5384 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5385
5386         * tree-scalar-evolution.c (instantiate_array_ref): New.
5387         (instantiate_scev_r): Also handle ARRAY_REFs.
5388
5389 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5390
5391         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5392         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
5393         RESULT_DECL, and FIELD_DECL.  Return false for an
5394         SSA_NAME_IS_DEFAULT_DEF.
5395         (compute_scalar_evolution_in_loop): Do not further analyze the
5396         scalar evolution when no_evolution_in_loop_p returns true.
5397
5398 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5399
5400         * tree-chrec.h (evolution_function_is_affine_p): Do not check
5401         whether CHREC_LEFT is invariant.  A function is affine when
5402         CHREC_RIGHT is invariant.
5403
5404 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5405
5406         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
5407         is_gimple_reg.
5408         (rewrite_degenerate_phi): Same.
5409         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
5410
5411 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
5412
5413         * graphite-scop-detection.c (graphite_can_represent_scev,
5414         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
5415         graphite_can_represent_loop): Remove outermost_loop.
5416
5417 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5418
5419         PR middle-end/45229
5420         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
5421         handle GIMPLE_CALLs with no LHS.
5422
5423 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5424
5425         * graphite-poly.c (init_graphite_out_file): New.
5426         (init_graphite_in_file): New.
5427         (apply_poly_transforms): Updated to enable reading and writing of
5428         multiple scop files.
5429
5430 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
5431
5432         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
5433         redundant checks.
5434
5435 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5436
5437         * graphite-clast-to-gimple.c (precision_for_value): Adjust
5438         computation of precision by 1.
5439
5440 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5441
5442         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
5443         (openscop_read_polyhedron_matrix): New.
5444         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
5445         (openscop_read_N_int): Same.
5446         * graphite-poly.c (openscop_read_N_int): New.
5447         (openscop_read_one_int): New.
5448         (openscop_read_N_string): New.
5449         (openscop_read_one_string): New.
5450         (openscop_read_powerset_matrix): New.
5451         (graphite_read_transforms): Remove.
5452         (graphite_read_scatt): New.
5453         (graphite_read_scop_file): New.
5454         (apply_poly_transforms): Updated to call graphite_read_scop_file.
5455
5456 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5457
5458         * graphite-poly.c: Change include order.
5459
5460 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5461
5462         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
5463         (cloog_matrix_nrows): New.
5464
5465 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5466
5467         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
5468         from matrix lines.
5469         * graphite-poly.c (openscop_print_scattering_function_1): Same.
5470         (print_scattering_function_1): Same.
5471         (openscop_print_pbb_domain): Same.
5472         (openscop_print_scop_context): Same.
5473         (print_scop_context): Same.
5474
5475 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5476
5477         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
5478         (openscop_print_pdr_polyhedron): Print pph.
5479
5480 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5481
5482         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
5483         priority signed types.
5484
5485 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5486
5487         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
5488         the call to lang_hooks.types.type_for_size.  Call
5489         build_nonstandard_integer_type.
5490
5491 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5492
5493         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
5494         (openscop_print_polyhedron_matrix): New.
5495         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
5496         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
5497         (openscop_print_pdr_powerset): New.
5498         (openscop_print_powerset_matrix): New.
5499         (openscop_print_scattering_function_1): New.
5500         (print_scattering_function): Add support for scattering names and
5501         OpenScop format.
5502         (graphite_write_transforms): Remove.
5503         (print_pdr_access_layout): Updated to support OpenScop format.
5504         (print_pdr): Same.
5505         (openscop_print_pbb_domain): New.
5506         (print_pbb_body): Added a parameter to allow indicating that pbb_body
5507         is not provided.
5508         (print_pbb): Updated to call the new print_pbb_body.
5509         (openscop_print_scop_context): New.
5510         (print_scop_header): New.
5511         (print_scop): Updated to call print_scop_header.
5512         * graphite-poly.h: Document OpenScop format.
5513
5514 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
5515
5516         * config/cris/m32c.c (cris_memory_move_cost): New.
5517         (cris_register_move_cost): Make static. Change arguments type from
5518         enum reg_class to reg_class_t.
5519         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5520         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5521         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
5522
5523 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
5524
5525         PR target/45843
5526         * config/i386/i386.c (ix86_gimplify_va_arg): Use
5527         INTVAL (XEXP (slot, 1)) as prev_size.
5528
5529 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5530
5531         PR target/45837
5532         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
5533         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
5534         defined.
5535         * config/rs6000/option-defaults.h (toplevel): Change #if
5536         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
5537         global option changes.
5538
5539 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
5540
5541         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
5542
5543         PR tree-optimization/31261
5544         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
5545         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
5546
5547 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5548
5549         PR bootstrap/45796
5550         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
5551         special-casing for generators and turn into ...
5552         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
5553         rule, for better error messages in case of toplevel dependency errors.
5554         (genprog): Add hooks, rename to ...
5555         (genprogerr): ... this, and let genprog also contain check,
5556         checksum, condmd.
5557         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
5558         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
5559         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
5560
5561 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
5562             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5563
5564         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
5565         for GMP, MPFR and MPC.
5566
5567 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5568
5569         * config/sparc/sparc.opt (mimpure-text): Move ...
5570         * config/sol2.opt: ... here.  Correct description.
5571         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
5572         * doc/invoke.texi (Option Summary, SPARC Options): Move
5573         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
5574         (Option Summary, Solaris 2 Options): ... here.
5575         (Submodel Options, Solaris 2 Options): New menu entry.
5576         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
5577         (Solaris 2 Options): ... here.
5578
5579 2010-09-30  Michael Eager  <eager@eagercon.com>
5580
5581         * extend.texi (interrupt_handler): Add MicroBlaze to list.
5582         (save_volatiles): Describe option for MicroBlaze.
5583         * invoke.texi: Add MicroBlaze Options.
5584         * contrib.texi: Add acknowledgment.
5585         * md.texi: Add MicroBlaze d and z constraints.
5586         * install.texi: Add microblaze-*-elf.
5587         * configure.ac: Add microblaze-*-* to target list.
5588         * configure: Regenerate.
5589         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
5590         * config/microblaze/microblaze-protos.h: New.
5591         * config/microblaze/crti.s: New.
5592         * config/microblaze/predicates.md: New.
5593         * config/microblaze/linux.h: New.
5594         * config/microblaze/microblaze.md: New.
5595         * config/microblaze/constraints.md: New.
5596         * config/microblaze/crtn.s: New.
5597         * config/microblaze/microblaze.opt: New.
5598         * config/microblaze/microblaze-c.c: New.
5599         * config/microblaze/t-microblaze: New.
5600         * config/microblaze/microblaze.c: New.
5601         * config/microblaze/microblaze.h: New.
5602
5603 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
5604
5605         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
5606         parse @optional/@required and set the flags as appropriate.
5607
5608 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
5609
5610         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
5611
5612 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
5613
5614         * opt-functions.awk (static_var): Update comment.
5615         (var_ref): Return offsetof expression or -1, not variable address.
5616         * optc-gen.awk: Generate structure field initializers instead of
5617         static variables.  Expect -1 for missing variables instead of null
5618         pointer.  Add gcc_options parameters to generated functions.
5619         * opth-gen.awk: Generate structure fields for static variables.
5620         Add gcc_options parameters to generated functions.
5621         * common.opt (optimize, optimize_size): Add variables.
5622         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
5623         &global_options to cl_target_option_restore.
5624         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
5625         &global_options to cl_optimization_restore, cl_target_option_save
5626         and cl_target_option_restore.
5627         (ix86_set_current_function): Pass &global_options to
5628         cl_target_option_restore.
5629         * config/pdp11/pdp11.h (optimize): Remove.
5630         * config/rs6000/rs6000.h (optimize): Remove.
5631         * config/sh/sh.h (optimize): Remove.
5632         * config/xtensa/xtensa.h (optimize): Remove.
5633         * coretypes.h (struct gcc_options): Declare.
5634         * diagnostic.c (diagnostic_initialize): Initialize
5635         context->option_state.
5636         (diagnostic_report_diagnostic): Pass option_state to
5637         option_enabled hook.
5638         * diagnostic.h (diagnostic_context.option_enabled): Add void *
5639         parameter.
5640         (diagnostic_context.option_state): New field.
5641         * final.c (final_start_function, final, final_scan_insn): Rename
5642         optimize parameter to optimize_p.
5643         * flags.h (optimize, optimize_size): Remove.
5644         * function.c (invoke_set_current_function_hook): Pass
5645         &global_options to cl_optimization_restore.
5646         * gcc.c (driver_handle_option): Take gcc_options parameter.
5647         Assert that it is &global_options.
5648         (process_command): Pass &global_options to read_cmdline_option.
5649         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
5650         option_enabled.
5651         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
5652         &global_options to set_option.
5653         * opts-common.c (handle_option, handle_generated_option,
5654         read_cmdline_option, set_option): Take explicit gcc_options
5655         parameters.  Use option_flag_var.
5656         (option_flag_var): New.
5657         * opts.c (common_handle_option, lang_handle_option,
5658         target_handle_option): Take gcc_options parameter.  Assert that it
5659         is &global_options.
5660         (read_cmdline_options): Pass &global_options to read_cmdline_option.
5661         (print_filtered_help): Use option_flag_var.  Pass &global_options
5662         to option_enabled.
5663         (common_handle_option): Use option_flag_var.
5664         (option_enabled): Take opts parameter.  Use option_flag_var.
5665         (get_option_state): Take gcc_options parameter.  Use
5666         option_flag_var.  Pass gcc_options parameter to option_enabled.
5667         (enable_warning_as_error): Pass &global_options to
5668         handle_generated_option.
5669         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
5670         (cl_option_handler_func.handler): Take gcc_options parameter.
5671         (option_enabled, get_option_state, set_option, handle_option,
5672         handle_generated_option, read_cmdline_option): Take gcc_options
5673         parameters.
5674         * toplev.c (optimize, optimize_size): Remove.
5675         (print_switch_values): Pass &global_options to option_enabled.
5676         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
5677         to get_option_state.
5678         (general_init): Initialize global_dc->option_state.
5679         * tree.c (build_optimization_node): Pass &global_options to
5680         cl_optimization_save.
5681         (build_target_option_node): Pass &global_options to
5682         cl_target_option_save.
5683
5684 2010-09-30  Martin Jambor  <mjambor@suse.cz>
5685
5686         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
5687         zero sized bit-fields.
5688
5689 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
5690
5691         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
5692         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
5693         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
5694         (c_parser_objc_class_declaration): Same change.
5695         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
5696         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5697         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
5698         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
5699         and RID_AT_PUBLIC instead of RID_PUBLIC.
5700         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
5701         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5702
5703 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
5704
5705         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
5706         Add links to current providers of packages for Solaris and IRIX.
5707
5708 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
5709
5710         Merge from 'apple/trunk' branch on FSF servers.
5711         * c-parser.c: Applied change originally in c-parse.in.
5712
5713         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
5714
5715         Radar 4281748
5716         * c-decl.c (start_decl): Check for redeclaration of class name.
5717         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
5718
5719 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
5720
5721         * config/ia64/ia64.c (ia64_builtin_decl): New.
5722         (TARGET_BUILTIN_DECL): Define.
5723         (ia64_builtins): New.
5724         (ia64_init_builtins): Save decls in ia64_builtins.
5725
5726 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
5727
5728         PR target/40457
5729         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
5730         (move2add_use_add3_insn): Likewise.
5731         (reload_cse_move2add): Likewise.
5732         * rtlanal.c (get_full_rtx_cost): New function.
5733         * rtl.h (struct full_rtx_costs): New.
5734         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
5735         costs_add_n_insns): New inline functions.
5736         (get_full_rtx_cost): Declare.
5737
5738         PR c/45054
5739         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
5740         invariants.  Check for reg_equiv_invariant.
5741         (reload): Assert that spilled_pseudos is empty when returning.
5742
5743 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
5744
5745         * config/i386/mingw32.h (TARGET_64BIT): replaced by
5746         TARGET_64BIT_DEFAULT in #if check.
5747
5748 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
5749
5750         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
5751
5752 2010-09-29  Mike Stump  <mikestump@comcast.net>
5753
5754         * config/darwin.h (flag_mkernel): Remove.
5755         (flag_apple_kext): Likewise.
5756
5757 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
5758             Jack Howarth <howarth@bromo.med.uc.edu>
5759
5760         * config/darwin.opt (undefined): Add.
5761
5762 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
5763
5764         PR testsuite/45664
5765         * configure.ac: Add --enable-indirect-function option.
5766         * config.gcc: Add default_gnu_indirect_function.
5767         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
5768         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
5769         * varasm.c (do_assemble_alias): Adjust for macro name change.
5770         * configure: Rebuilt.
5771         * doc/install.texi: Document --enable-indirect-function.
5772
5773 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
5774
5775         * doc/options.texi (Variable, Var, Init): Update documentation
5776         without reference to VarExists.
5777         (VarExists): Remove.
5778         * common.opt, config/i386/i386.opt, config/linux.opt,
5779         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
5780         Don't use VarExists.
5781
5782 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
5783
5784         * optc-gen.awk: Generate global_options initializer instead of
5785         individual variables.  Add x_ prefix to names of structure members.
5786         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
5787         names of structure members.
5788         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5789         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
5790         * doc/tm.texi: Regenerate.
5791         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5792         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5793         * c-parser.c (disable_extension_diagnostics,
5794         restore_extension_diagnostics): Update names of cpp_options members.
5795         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5796         * common.opt (fcompare-debug-second): Don't use Var.
5797         * config/alpha/alpha.h (target_flags): Remove.
5798         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5799         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5800         * config/bfin/bfin.h (target_flags): Remove.
5801         * config/cris/cris.h (target_flags): Remove.
5802         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
5803         cl_target_option members.
5804         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
5805         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
5806         ix86_can_inline_p): Update names of cl_target_option members.
5807         * config/i386/i386.h (ix86_isa_flags): Remove.
5808         * config/lm32/lm32.h (target_flags): Remove.
5809         * config/mcore/mcore.h (mcore_stack_increment): Remove.
5810         * config/mcore/mcore.md (addsi3): Remove extern declaration of
5811         flag_omit_frame_pointer.
5812         * config/mep/mep.h (target_flags): Remove.
5813         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5814         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5815         * config/mmix/mmix.h (target_flags): Remove.
5816         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
5817         flag_expensive_optimizations): Remove.
5818         * config/s390/s390.h (flag_pic): Remove.
5819         * config/score/score-conv.h (target_flags): Remove.
5820         * config/sh/sh.h (sh_fixed_range_str): Remove.
5821         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
5822         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5823         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5824         * diagnostic.c (diagnostic_initialize): Update names of
5825         diagnostic_context members.
5826         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
5827         warn_system_headers.
5828         (diagnostic_report_warnings_p): Update for new names.
5829         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5830         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
5831         HARD_FRAME_POINTER_IS_ARG_POINTER.
5832         * flags.h (flag_compare_debug): Declare.
5833         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5834         * opts.c (flag_compare_debug): Define.
5835         (common_handle_option): Update names of diagnostic_context
5836         members.  Handle -fcompare-debug-second.
5837         (fast_math_flags_struct_set_p): Update names of cl_optimization
5838         members.
5839         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5840         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5841         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5842         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5843         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5844         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5845         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
5846         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5847         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5848
5849 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
5850
5851         * config/picochip/picochip.c (picochip_output_internal_label):
5852         This function can now be called for debug CFI labels, which can come
5853         in the middle of a vliw instruction.  Postpone until end of vliw.
5854
5855 2010-09-29  Richard Guenther  <rguenther@suse.de>
5856
5857         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
5858         (DECL_FILE_SCOPE_P): Use it.
5859         (TYPE_FILE_SCOPE_P): New macro.
5860
5861 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
5862
5863         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
5864         a CPP_NAME which is a reserved word, clearly separate cases for
5865         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
5866
5867 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
5868
5869         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
5870         token->value with the canonical spelling.  Do exactly like C and
5871         C++ and leave it as it is.
5872
5873 2010-09-28  Richard Henderson  <rth@redhat.com>
5874
5875         * config/alpha/alpha.c (alpha_builtins): New.
5876         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
5877         (alpha_builtin_function): New.
5878         (alpha_add_builtins, alpha_init_builtins): Use it.
5879
5880 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
5881
5882         * doc/standards.texi (Standards): Expanded the section on
5883         Objective-C and Objective-C++.
5884
5885 2010-09-28  DJ Delorie  <dj@redhat.com>
5886
5887         PR target/45800
5888         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
5889         volatile MEMs.
5890
5891 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
5892
5893         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
5894         attributes on methods.
5895          (c_parser_objc_method_definition): Handle attributes.
5896         (c_parser_objc_methodproto): Likewise.
5897         (c_parser_objc_maybe_method_attributes): New.
5898         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
5899         missing definition, similar to that in ObjC++.
5900
5901 2010-09-28  Richard Henderson  <rth@redhat.com>
5902
5903         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
5904         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5905         (CONFIG_SJLJ_EXCEPTIONS): Remove.
5906         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
5907         (STACK_CHECK_PROTECT): Likewise.
5908         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
5909         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
5910         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
5911         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
5912         (dwarf2out_assembly_start): Likewise.
5913         * except.c (init_eh): Use targetm.except_unwind_info.
5914         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
5915         (output_one_function_exception_table): Likewise.
5916         * final.c: Unconditionally include dwarf2out.h.
5917         (final_start_function): Unconditionally call dwarf2out routines.
5918         (final_end_function, final_scan_insn): Likewise.
5919         * function.c (expand_function_end): Use targetm.except_unwind_info.
5920         * opts.c (decode_options): Use targetm.except_unwind_info.
5921         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
5922         * target.def (debug_unwind_info, except_unwind_info): New.
5923         * target.h (enum unwind_info_type): New.
5924         * targhooks.c (default_debug_unwind_info): New.
5925         (default_except_unwind_info): New.
5926         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
5927         * targhooks.h: Declare them.
5928         * tree-tailcall.c: Include "target.h"
5929         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
5930         * Makefile.in (tree-tailcall.o): Update.
5931         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
5932         (lhd_gcc_personality): Likewise.
5933
5934         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
5935         (TARGET_EXCEPT_UNWIND_INFO): New.
5936         (DWARF2_UNWIND_INFO): Update.
5937         (TARGET_DEBUG_UNWIND_INFO): New.
5938         * doc/tm.texi: Rebuild.
5939
5940         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
5941         targetm.except_unwind_info.
5942
5943         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
5944         (arm_except_unwind_info): New.
5945         (arm_compute_func_type): Use it.
5946         (arm_expand_prologue, thumb_pushpop): Likewise.
5947         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
5948         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
5949         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
5950         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
5951         (DWARF2_UNWIND_INFO): Remove.
5952         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5953         (ARM_EABI_UNWIND_TABLES): Remove.
5954
5955         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
5956         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
5957         (ia64_except_unwind_info): New.
5958         (ia64_output_function_prologue): Use it.
5959         (ia64_add_bundle_selector_before): Likewise.
5960         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
5961         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
5962         (TARGET_UNWIND_INFO): Remove.
5963
5964         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
5965
5966 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
5967
5968         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
5969         (c_parser_objc_protocol_definition): Likewise.
5970         (c_parser_external_declaration): Provide dummy attribute arguments.
5971         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
5972         (c_parser_objc_class_definition): Handle attributes.
5973         (c_parser_objc_protocol_definition): Likewise.
5974
5975 2010-09-28  Tobias Burnus  <burnus@net-b.de>
5976
5977         PR fortran/40569
5978         PR fortran/40568
5979         * toplev.h (save_decoded_options, save_decoded_options_count):
5980         New global variables.
5981         * toplev.c (save_decoded_options, save_decoded_options_count):
5982         Export variables.
5983
5984 2010-09-28  Ian Lance Taylor  <iant@google.com>
5985
5986         * config/i386/i386.c (ix86_supports_split_stack): Test
5987         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
5988
5989 2010-09-28  Ian Lance Taylor  <iant@google.com>
5990
5991         PR target/45815
5992         * opts.c (decode_options): Don't test whether the target supports
5993         split stack if flag_split_stack == 0.
5994
5995 2010-09-28  Jan Hubicka  <jh@suse.cz>
5996
5997         * builtin-attrs.def (ATTR_LEAF): New attribute.
5998         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
5999         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
6000         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
6001         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
6002         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
6003         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
6004         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
6005         * sync-builtins.def: Annotate all builtins by leaf.
6006         * omp-builtins.def: Annotate all builtins by leaf.
6007         * builtins.def: Annotate relevant builtins with leaf attribute.
6008         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6009         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
6010         leaf.
6011
6012 2010-09-28  Jan Hubicka  <jh@suse.cz>
6013
6014         * tree-ssa-ccp.c (fold_ctor_reference): New function.
6015         (fold_const_aggregate_ref): Use it.
6016         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
6017         into external static.
6018
6019 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6020
6021         PR target/44452
6022         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
6023         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
6024         (ix86_solaris_return_in_memory): Remove.
6025         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
6026         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6027         (TARGET_SUBTARGET_DEFAULT): Redefine.
6028         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
6029         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6030         (TARGET_SUBTARGET_DEFAULT): Redefine.
6031         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
6032         -mvect8-ret-in-mem.
6033         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
6034
6035 2010-09-29  Alan Modra  <amodra@gmail.com>
6036
6037         PR target/45807
6038         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
6039         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
6040         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
6041         Delete.
6042         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
6043         (rs6000_emit_prologue): Don't just create frame save info for r2,
6044         actually save r2.
6045
6046 2010-09-28  Richard Henderson  <rth@redhat.com>
6047
6048         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
6049         when 8 bytes are requested.
6050
6051 2010-09-28  Tristan Gingold  <gingold@adacore.com>
6052
6053         * config/avr/avr.c (expand_prologue): Set
6054         current_function_static_stack_size.
6055
6056 2010-09-28  Tristan Gingold  <gingold@adacore.com>
6057
6058         * config/alpha/alpha.md: Change the initial condition of the
6059         probing loop.
6060
6061 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
6062
6063         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
6064         Split from *avx_<maxmin:code><mode>3.
6065         (*avx_<smaxmin:code><mode>3): Ditto.
6066         * config/i386/i386.md (maxmin): Remove code iterator.
6067
6068 2010-09-27  Ian Lance Taylor  <iant@google.com>
6069
6070         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
6071         requires assembler support for CFI directives.
6072
6073 2010-09-27  Richard Henderson  <rth@redhat.com>
6074
6075         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
6076
6077 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
6078
6079         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
6080         that AFTER is not in the range FROM..TO, inclusive.
6081
6082 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
6083             Bernd Schmidt  <bernds@codesourcery.com>
6084
6085         PR rtl-optimization/45792
6086         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
6087         If not all insns are to be merged, for each edge, stash the
6088         next candidate after the to-be-merged insns before doing the
6089         merge, and use them for the retry at the new insertion point.
6090         Handle CC0 targets when retrying.
6091
6092 2010-09-27  Ian Lance Taylor  <iant@google.com>
6093
6094         * common.opt (fsplit-stack): New option.
6095         * opts.c (decode_options): Set flag_split_stack to final value.
6096         * target.def (supports_split_stack): New hook.
6097         * gcc.c (STACK_SPLIT_SPEC): Define.
6098         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
6099         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
6100         (Code Gen Options): Document -fsplit-stack.
6101         * doc/extend.texi (Function Attributes): Mention no_split_stack.
6102         (Function Attributes): Document no_split_stack.
6103         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
6104         TARGET_SUPPORTS_SPLIT_STACK.
6105         * doc/tm.texi: Rebuild.
6106         * function.c (thread_prologue_and_epilogue_insns): If
6107         flag_split_stack, add split stack prologue.
6108         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
6109         * varasm.c (saw_no_split_stack): New static variable.
6110         (assemble_start_function): Set saw_no_split_stack if the function
6111         has the no_split_stack attribute.
6112         (file_end_indicate_split_stack): New function.
6113         * output.h (file_end_indicate_split_stack): Declare.
6114         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
6115         and function.
6116         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
6117         routines.
6118         * config/i386/i386.c (ix86_option_override_internal): Don't set
6119         expand_builtin_va_start to NULL if -fsplit-stack.
6120         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
6121         -fsplit-stack.
6122         (ix86_va_start): If -fsplit-stack, get overflow pointer from
6123         scratch register set by prologue.
6124         (ix86_code_end): If -fsplit-stack, call
6125         file_end_indicate_split_stack.
6126         (ix86_supports_split_stack): New static function.
6127         (SPLIT_STACK_AVAILABLE): Define.
6128         (split_stack_prologue_scratch_regno): New static function.
6129         (split_stack_fn): New static variable.
6130         (ix86_expand_split_stack_prologue): New function.
6131         (ix86_live_on_entry): New static function.
6132         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
6133         (output_pic_addr_const): Likewise.
6134         (i386_asm_output_addr_const_extra): Likewise.
6135         (ix86_expand_call): Change return type to rtx.  Return the new
6136         call instruction.
6137         (TARGET_SUPPORTS_SPLIT_STACK): Define.
6138         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6139         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
6140         (split_stack_prologue, split_stack_return): New insns.
6141         (split_stack_space_check): New insn.
6142         * config/i386/i386.h (struct machine_function): Add
6143         split_stack_varargs_pointer field.
6144         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
6145         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6146         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6147         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6148         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
6149         Declare.
6150         (ix86_expand_call): Update declaration.
6151
6152 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6153
6154         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
6155         code.  Added byref, which was missing in the list of codes.
6156         Explain that enumeration values are encoded as the integer type
6157         that the compiler uses to store them.  Explain and make examples
6158         of how 'const' interacts with pointers, and the complication of
6159         the encoding of 'const char *'.
6160         (Legacy type encoding): New subsection, explaining that GCC emits
6161         incorrect type encodings for the NeXT runtime for compatibility
6162         reasons.
6163         (@@encode): New subsection, explaining @encode and particularly
6164         that protocol qualifiers are not recognized inside an @encode()
6165         expression.
6166         (Method signatures): New subsection, explaining how method
6167         signatures are encoded.
6168
6169 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6170
6171         Merge from 'apple/trunk' branch on FSF servers.  Removed small
6172         change in build_conditional_expr that had been added when fixing
6173         PR objc/27377 and which did the same check in a less complete way.
6174
6175         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
6176
6177         Radar 4229905
6178         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
6179         looking for objective-c common pointer types.
6180
6181         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
6182
6183         Radar 4154928
6184         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
6185         use their ObjC common type.
6186
6187 2010-09-27  Richard Guenther  <rguenther@suse.de>
6188
6189         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
6190
6191 2010-09-27  Jie Zhang  <jie@codesourcery.com>
6192
6193         * print-tree.c (print_node): Print in-constant-pool.
6194
6195 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
6196
6197         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
6198         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
6199         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
6200         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
6201
6202 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
6203
6204         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
6205         from pro_epilogue_adjust_stack_<mode>_{1,2}.
6206         (pro_epilogue_adjust_stack_<mode>_add): Rename from
6207         pro_epilogue_adjust_stack_<mode>_3.
6208         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
6209         renamed pro_epilogue_adjust_stack_{si,di}_add.
6210         (ix86_expand_prologue): Use indirect functions.  Update for renamed
6211         pro_epilogue_adjust_stack_{si,di}_sub.
6212
6213 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
6214
6215         * config/i386/i386.md (movmsk_df): New insn.
6216         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
6217         sequence for TARGET_SSE_MATH.
6218
6219 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
6220
6221         * config/mips/mips.c (mips_builtin_decls): Declare.
6222         (mips_init_builtins): Store function declarations in
6223         mips_builtin_decls.
6224         (mips_builtin_decl): New function.
6225         (TARGET_BUILTIN_DECL): Define.
6226
6227 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
6228             Richard Henderson  <rth@redhat.com>
6229
6230         * config/i386/cygwin.asm: Include auto-host.h.
6231         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
6232         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
6233         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
6234         alignment code from the 64-bit path.  Use gas local labels.
6235         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
6236         from _di_2.  Remove the useless constant integer argument.
6237         (pro_epilogue_adjust_stack_<mode>_3): New.
6238         (allocate_stack_worker_probe_<mode>): Macroize from
6239         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
6240         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
6241         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
6242         (__chkstk_ms): New function.
6243         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
6244         * config/i386/t-interix: Likewise.
6245         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
6246         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6247         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
6248         * configure, config.in: Rebuild.
6249
6250 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
6251
6252         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
6253         statements because of the return slot optimization.
6254
6255 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
6256
6257         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
6258         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
6259         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6260         (class_likely_spilled_p): Rename to...
6261         (avr_class_likely_spilled_p): ...this. Make static. Change argument
6262         type to reg_class_t.
6263
6264 2010-09-24  Jan Hubicka  <jh@suse.cz>
6265
6266         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
6267         (lto_symtab_resolve_symbols): Set it.
6268         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
6269         store resolution field in cgraph/varpool.
6270         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
6271         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
6272         (cgraph_dump_node): Drop used_from_object_file.
6273         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
6274         (cgraph_function_body_availability): Use decl_replaceable_p.
6275         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
6276         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
6277         cgraph_used_from_object_file_p.
6278         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
6279         cgraph_used_from_object_file_p.
6280         (resolution_used_from_other_file_p): New functoin.
6281         (cgraph_used_from_object_file_p): New predicate.
6282         * cgraph.h: Include plugin-api.h
6283         (struct cgraph_local_info): Remove used_from_object_file.
6284         (struct cgraph_node): Add resolution field.
6285         (struct varpool_node): Likewise; remove used_from_object_file;
6286         reove const_value_known.
6287         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
6288         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
6289         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6290         varpool_used_from_object_file_p): Declare.
6291         (varpool_get_node, varpool_extra_name_alias): Update prototype.
6292         * tree.h (DECL_REPLACEABLE_P): Remove.
6293         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
6294         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
6295         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6296         input_overwrite_node, input_node, input_varpool_node): Stream
6297         resolution.
6298         * expr.c (expand_expr_real_1): Use const_value_known_p
6299         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
6300         const_value_known.
6301         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
6302         (function_and_variable_visibility): Set resolution for local vars
6303         and functions; use varpool_used_from_object_file_p.
6304         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
6305         static functions.
6306         (default_binds_local_p_1): Use resolutoin info.
6307         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
6308         * varpool.c (varpool_get_node): Constify.
6309         (const_value_known_p): Do not use vnode->const_value_known;
6310         use decl_replaceable_p.
6311         (varpool_finalize_decl): Do not set const_value_known.
6312         (cgraph_variable_initializer_availability): Use decl_replaceable_p
6313         (varpool_extra_name_alias): Return new node.
6314         (varpool_used_from_object_file_p): New function.
6315
6316 2010-09-24  Richard Henderson  <rth@redhat.com>
6317
6318         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
6319         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
6320         (do_spill): Use REG_CFA_OFFSET.
6321         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
6322         as appropriate.
6323         (ia64_expand_epilogue): Likewise.
6324         (process_set): Split into ...
6325         (process_cfa_adjust_cfa): this,
6326         (process_cfa_register): this,
6327         (process_cfa_offset): and this new function.
6328         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
6329         instead of REG_FRAME_RELATED_EXPR.
6330
6331 2010-09-24  Olivier Hainque  <hainque@adacore.com>
6332
6333         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
6334
6335 2010-09-24  Jan Hubicka  <jh@suse.cz>
6336
6337         * doc/extend.texi: (attribute leaf): Document.
6338         * tree.c (local_define_builtin): Handle ECF_LEAF.
6339         (build_common_builtin_nodes): Set ECF_LEAF where needed.
6340         * tree.h (ECF_LEAF): New.
6341         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
6342         overwrittable and unavailable functions.
6343         (ipa_init): Put all_module_statics into optimization_summary_obstack.
6344         (copy_global_bitmap): Do not copy all_module_statics.
6345         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
6346         (propagate): Handle overwritable and unavailable leaf functions;
6347         initialize global info for overwritable and unavailable leaf functions;
6348         do not free all module statics.
6349         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
6350         local statics.
6351         * calls.c (flags_from_decl_or_type): Handle leaf.
6352         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
6353         abnormal gotos.
6354
6355 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
6356
6357         * gengtype.c: Reindented.
6358         * gengtype.h: Reindented.
6359         * gengtype-parse.c: Reindented.
6360
6361 2010-09-24  Jan Hubicka  <jh@suse.cz>
6362
6363         PR tree-optimization/45738
6364         PR tree-optimization/45741
6365         * expr.c (string_constant): Allow CONST_DECL too;
6366         check that DECL_INITIAL is set.
6367         * varpool.c (const_value_known_p): Only look into VAR_DECL
6368         and CONST_DECL.
6369
6370 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
6371
6372         * common.opt (undef): New.
6373
6374 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
6375
6376         PR middle-end/45234
6377         * rtl.h (enum global_rtl_index): Add
6378         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
6379         (LAST_VIRTUAL_POINTER_REGISTER): Define.
6380         (virtual_preferred_stack_boundary_rtx,
6381         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
6382         (LAST_VIRTUAL_REGISTER): Increase by one.
6383         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
6384         instead of LAST_VIRTUAL_REGISTER.
6385         * function.c (instantiate_new_reg): Handle
6386         virtual_preferred_stack_boundary_rtx.
6387         * emit-rtl.c (init_virtual_regs): Handle
6388         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6389         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
6390         * explow.c (round_push): If crtl->preferred_stack_boundary
6391         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
6392         virtual_preferred_stack_boundary_rtx alignment instead of
6393         crtl->preferred_stack_boundary alignment.
6394         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
6395         macros.  Never decrease crtl->preferred_stack_boundary,
6396         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
6397         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
6398         stack_pointer_delta in dynamic allocation, even when size
6399         is constant.
6400         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
6401         macro.
6402         * print-rtl.c (print_rtx): Handle
6403         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6404         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
6405         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
6406         * config/frv/frv.c (frv_emit_movsi): Likewise.
6407         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
6408         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
6409         Likewise.
6410
6411         Revert:
6412         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
6413
6414         PR middle-end/45234
6415         * calls.c (expand_call): Make sure that all variable sized
6416         adjustments are multiple of preferred stack boundary after
6417         stack alignment.
6418
6419 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
6420             Dominique Dhumieres  <dominiq@lps.ens.fr>
6421
6422         PR bootstrap/45751
6423         * config/darwin-driver.c (darwin_default_min_version):
6424         Adjust size passed to memcpy in two places.
6425
6426 2010-09-24  Richard Guenther  <rguenther@suse.de>
6427
6428         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
6429         Make sure to not call set_type_context with error_mark_node.
6430         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
6431
6432 2010-09-24  Richard Guenther  <rguenther@suse.de>
6433
6434         * Makefile.in (OBJS-onestep): Remove.
6435         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
6436         (libbackend.a): Remove onestep support.
6437         (libbackend.o): Remove.
6438         * configure.ac (--enable-intermodule): Remove.
6439         * configure: Regenerate.
6440
6441 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
6442
6443         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
6444         reaching the end of a block if it occurs at a DEBUG_INSN.
6445
6446 2010-09-09  Tristan Gingold  <gingold@adacore.com>
6447
6448         PR target/44242
6449         * config/vms/vms-crt0-64.c: Removed.
6450         * config/vms/vms-crt0.c: Removed.
6451         * config/vms/vms-psxcrt0-64.c: Removed.
6452         * config/vms/vms-psxcrt0.c: Removed.
6453         * config/vms/vms-ucrt0.c: New file.
6454         * config/vms/t-vms64: Removed.
6455         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
6456         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
6457         * config.gcc (alpha-dec-vms): Use t-vms.
6458
6459 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
6460
6461         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
6462         underfull hbox in DVI output.
6463         (-fobjc-class-cxx-cdtors): Same change.
6464         (-fobjc-exceptions): Tidied up documentation.  Explain what the
6465         option does, but moved the (lenghty) description of the exception
6466         syntax into objc.texi.
6467         (-fobjc-gc): Explain that the option is not useful with the GNU
6468         runtime.
6469         (-fzero-link): Explain that the GNU runtime always works in
6470         "zero-link" mode.
6471         * doc/objc.texi: All sections: simplified @node declarations
6472         removing specification of next, previous, up node.
6473         (Objective-C): Updated introduction.
6474         (Garbage Collection): Updated.  The bohem-gc library is now
6475         included in gcc itself.  Mention that this section only applies to
6476         the GNU Objective-C runtime.
6477         (compatibility_alias): Small tidy up.
6478         (Exceptions): New section mostly containing text previously in the
6479         description of the -fobjc-exception command-line option.
6480         (Synchronization): Same.
6481
6482 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
6483
6484         * config/i386/i386.md (ix86_code_end): Move the initialization of
6485         xops array near the consumer.  Use AX_REG and SP_REG instead of
6486         numerical constants.
6487
6488 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
6489
6490         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
6491         method [methodname]' for an Objective-C method instead of the less
6492         satisfactory 'too many arguments to function' (with no method name).
6493
6494 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
6495
6496         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
6497         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
6498         (execute_update_addresses_taken): Remove parameter.  Execute the
6499         optimization unconditionally.
6500         * passes.c (execute_function_todo): Call execute_update_addresses_taken
6501         unconditionally if TODO_rebuild_alias is set, else only when optimizing
6502         if TODO_update_address_taken is set.
6503
6504 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
6505
6506         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6507         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
6508         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6509         (arm_output_addr_const_extra): Make static.
6510
6511 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
6512
6513         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
6514         define as unspec_volatile.
6515         ("nops"): Define as unspec_volatile. Use fputs to write to
6516         asm_out_file directly.  Output NOPs on separate lines using while loop.
6517         * config/i386/i386.c (ix86_code_end): Use fputs to write to
6518         asm_out_file directly.  Output NOPs on separate lines using while loop.
6519
6520 2010-09-23  Richard Guenther  <rguenther@suse.de>
6521
6522         PR tree-optimization/45565
6523         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6524         Make sure to adjust the fndecl before replacing the stmt.
6525
6526 2010-09-23  Richard Guenther  <rguenther@suse.de>
6527
6528         PR middle-end/45750
6529         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
6530         gimplifying MEM_REF.
6531
6532 2010-09-23  Alan Modra  <amodra@gmail.com>
6533
6534         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
6535         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
6536
6537 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
6538
6539         PR rtl-optimization/44374
6540         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
6541         * df-core.c (df_set_bb_dirty): Set it.
6542         * ifcvt.c (find_memory): Remove function.
6543         (dead_or_predicable): Use can_move_insns_across.
6544         * df.h (can_move_insns_across): Declare function.
6545         * cfgcleanup.c (block_was_dirty): New static variable.
6546         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
6547         than df_get_bb_dirty.
6548         (try_head_merge_bb): New static function.
6549         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
6550         is set.
6551         * df-problems.c: Include "target.h"
6552         (df_simulate_find_uses): New static function.
6553         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
6554         (find_memory, find_memory_store): New static functions.
6555         (can_move_insns_across): New function.
6556         * Makefile.in (df-problems.o): Update dependencies.
6557
6558 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
6559
6560         PR java/44095
6561         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
6562         is specified and the suffix of the file isn't ".c".
6563         * config/sparc/linux64.h (ASM_SPEC): Likewise.
6564
6565 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6566
6567         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
6568         * doc/cppopts.texi: Fix markup of index entry.
6569         * doc/extend.texi (Constructing Calls): Fix markup of
6570         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
6571         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
6572         (Vague Linkage, C++ Attributes): Fix markup of index entries and
6573         keywords.
6574         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
6575         avoid long lines.
6576         (C Dialect Options, C++ Dialect Options, Warning Options)
6577         (Debugging Options, Spec Files, Darwin Options)
6578         (i386 and x86-64 Options, MIPS Options)
6579         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
6580         index entries, avoid abbreviations, allow URLs to wrap, avoid
6581         long lines, avoid overlong pages from long @itemx lists.
6582         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
6583         * doc/standards.texi (Standards): Likewise.
6584         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
6585
6586 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
6587
6588         * opts-common.c (prune_options): Make static.  Work with decoded
6589         options.
6590         (decode_cmdline_options_to_array): Call prune_options.  Don't
6591         resize option array here.
6592         * opts.h (prune_options): Remove prototype.
6593         * gcc.c (process_command): Take decoded options; don't call
6594         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
6595         (main): Call decode_cmdline_options_to_array here instead of
6596         prune_options.  Update call to process_command.
6597         * config/darwin-driver.c: Include opts.h.
6598         (darwin_default_min_version): Work with decoded options.  Don't
6599         handle -b or -V here.
6600         * config/darwin.h (darwin_default_min_version): Update prototype.
6601         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
6602         darwin_default_min_version.
6603         * config/i386/cygwin.h (mingw_scan): Update prototype.
6604         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
6605         * config/i386/cygwin1.c: Include opts.h.
6606         (mingw_scan): Work with decoded options.
6607         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
6608         * config/t-darwin (darwin-driver.o): Update dependencies.
6609
6610 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
6611
6612         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
6613         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
6614         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
6615         -force-link, -force-link=, -language, -language=,
6616         -library-directory, -library-directory=, -no-canonical-prefixes,
6617         -no-standard-libraries, -no-warnings, -optimize, -output,
6618         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
6619         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
6620         -print-file-name=, -print-libgcc-file-name,
6621         -print-multi-directory, -print-multi-lib,
6622         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
6623         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
6624         -profile, -save-temps, -shared, -specs, -specs=, -static,
6625         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
6626         symbolic): New.
6627         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
6628         * gcc.c (A Short Introduction to Adding a Command-Line Option):
6629         Remove comment.
6630         (cc1_options): Correct specs for passing down --help,
6631         --target-help and --help=*.  Add spec for passing down --version.
6632         (struct option_map, option_map, target_option_translations,
6633         translate_options): Remove.
6634         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
6635         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
6636         OPT_fhelp_ and OPT_ftarget_help.
6637         (process_command): Don't call translate_options.  Call
6638         decode_cmdline_options_to_array before checking for
6639         -no-canonical-prefixes using decoded options.
6640         * opts-common.c (tm.h): Update comment on #include.
6641         (find_opt): Allow abbreviations of long options.
6642         (struct option_map, option_map): New.
6643         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
6644         and -mno handling.
6645         (target_option_translations): New.
6646         (decode_cmdline_options_to_array): Handle
6647         TARGET_OPTION_TRANSLATE_TABLE in driver.
6648         * opts.c (common_handle_option): Don't handle OPT_fhelp,
6649         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
6650
6651 2010-09-22  Richard Guenther  <rguenther@suse.de>
6652
6653         * tree-inline.c (optimize_inline_calls): Schedule cleanups
6654         only if we inlined something.  Block compaction and conditional
6655         folding are done by cfg cleanup.  Schedule update-address-taken.
6656         (tree_function_versioning): Remove redundant call to number_blocks.
6657         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
6658         folding is done by cfg cleanup.
6659         * passes.c (init_optimization_passes): Remove update-address-taken
6660         pass after IPA inlining.
6661
6662 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
6663
6664         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
6665         to update conditions. Fix reg_mode[] check.
6666
6667 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
6668
6669         * config/picochip/picochip.md (movhicc): Use expand to check whether
6670         movhicc is available and split it after reload.
6671
6672 2010-09-22  Richard Guenther  <rguenther@suse.de>
6673
6674         * tree-ssanames.c (release_dead_ssa_names): Do not remove
6675         callee edges here.
6676         * passes.c (init_optimization_passes): Remove early CFG cleanup.
6677         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
6678         (pass_cleanup_cfg): Likewise.
6679         (execute_fixup_cfg): Cleanup.
6680         * tree-pass.h (pass_cleanup_cfg): Remove.
6681
6682 2010-09-22  Martin Jambor  <mjambor@suse.cz>
6683
6684         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
6685         builtins if it is true.
6686         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
6687         parameter.
6688
6689 2010-09-22  Martin Jambor  <mjambor@suse.cz>
6690
6691         * tree-sra.c (struct access): New field grp_no_warning.
6692         (create_access_replacement): Set TREE_NO_WARNING according to
6693          grp_no_warning.
6694         (create_artificial_child_access): Use build_ref_for_model and set
6695         grp_no_warning if build_user_friendly_ref_for_offset fails.
6696         (propagate_subaccesses_across_link): Likewise.
6697
6698 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
6699
6700         PR target/35664
6701         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
6702         ('f'): Likewise.
6703
6704 2010-09-22  Tristan Gingold  <gingold@adacore.com>
6705
6706         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
6707
6708 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
6709
6710         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
6711         * config/i386/i386.c (decide_alg): Update for rename.
6712
6713 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
6714
6715         PR rtl-optimization/45739
6716         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
6717         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
6718
6719 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
6720
6721         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
6722         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
6723         Remove.
6724         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
6725         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6726
6727 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6728
6729         PR objc/23710
6730         * c-parser.c (c_parser_objc_method_definition): Check the return
6731         value of objc_start_method_definition and if false is returned,
6732         parse the method definition but emit no code.
6733
6734 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6735
6736         PR objc/25965
6737         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
6738         call objc_get_interface_ivars ().
6739
6740 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
6741
6742         PR target/45694
6743         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
6744         static chain-register is used for 64-bit.
6745
6746 2010-09-21  Richard Guenther  <rguenther@suse.de>
6747
6748         * dwarf2out.c (is_cu_die): New function.
6749         (add_pubtype): Use it.
6750         (gen_subprogram_die): Likewise.
6751         (gen_struct_or_union_type_die): Likewise.
6752         (dwarf2out_finish): Likewise.
6753         (comp_unit_die): Rename to ...
6754         (single_comp_unit_die): ... this.
6755         (comp_unit_die): New function lazily constructing and
6756         returning single_comp_unit_die.
6757         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
6758         base_type_die, subrange_type_die, modified_type_die,
6759         lower_bound_default, add_bound_info, add_prototyped_attribute,
6760         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
6761         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
6762         force_decl_die, gen_namespace_die, dwarf2out_decl,
6763         dwarf2out_start_source_file, dwarf2out_end_source_file,
6764         prune_unused_types, dwarf2out_finish): Use it.
6765         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
6766         the global list of translation-unit decls.
6767         (dwarf2out_init): Do not create single_comp_unit_die here.
6768         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
6769
6770 2010-09-21  Richard Guenther  <rguenther@suse.de>
6771
6772         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
6773         for bool for C++.
6774
6775 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
6776
6777         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
6778         (qhs_extenddi_cstr): Likewise.
6779         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
6780         them for the source operand.
6781
6782 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
6783
6784         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
6785         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
6786         (ix86_split_ashr): Ditto.
6787         (ix86_split_lshr): Ditto.
6788
6789 2010-09-21  Richard Guenther  <rguenther@suse.de>
6790
6791         PR tree-optimization/45580
6792         * tree-ssa-propagate.c (substitute_and_fold): Always replace
6793         regular uses.
6794         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
6795         virtuals fold the call into a regular indirect one.
6796
6797 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
6798
6799         PR rtl-optimization/42775
6800         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
6801         scheduling is enabled.
6802
6803 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
6804
6805         PR rtl-optimization/45728
6806         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
6807         gen_lowpart_common first and if that fails, force_reg first
6808         before calling gen_lowpart.
6809
6810         PR middle-end/45678
6811         * cfgexpand.c (expand_one_stack_var_at): Use
6812         crtl->max_used_stack_slot_alignment as max_align, instead
6813         of maximum of that and PREFERRED_STACK_BOUNDARY.
6814         Don't call update_stack_alignment.
6815
6816 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
6817
6818         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
6819         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
6820         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
6821         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
6822         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
6823         (build_nonstandard_integer_type): Likewise.
6824         (build_range_type_1): New function, built from...
6825         (build_range_type): ...this.  Call build_range_type_1.
6826         (build_nonshared_range_type): New function.
6827         (build_array_type_1): New function, built from...
6828         (build_array_type: ...this.  Call build_array_type_1.
6829         (build_nonshared_array_type): New function.
6830         * tree.h (build_nonshared_range_type): Declare.
6831         (build_nonshared_array_type): Likewise.
6832
6833 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
6834
6835         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
6836         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6837         (arm_class_likely_spilled_p): New function.
6838
6839 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
6840
6841         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
6842         indirect functions.
6843         (ix86_split_ashl): Ditto.
6844         (ix86_split_ashr): Ditto.
6845         (ix86_split_lshr): Ditto.
6846         (ix86_adjust_counter): Ditto.
6847
6848 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
6849
6850         * c-family/c-common.h (constant_string_class): Documented with
6851         comment identical to the one already in c-common.c.
6852
6853 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
6854
6855         * dwarf2out.c (any_cfis_emitted): New static variable.
6856         (add_fde_cfi): Set it.
6857         (dwarf2out_frame_debug): Clear it before processing,
6858         if it is set afterwards, flush any queued reg saves.
6859
6860         PR debug/45124
6861         * dwarf2out.c (add_accessibility_attribute): Assume
6862         DW_ACCESS_private as the default for dwarf_version > 2
6863         and DW_TAG_class_type parent.
6864         (gen_inheritance_die): Assume DW_ACCESS_public as the default
6865         for dwarf_version > 2 and parent other than DW_TAG_class_type.
6866
6867 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
6868
6869         PR target/45726
6870         * arm.md (arm_movt): Only enable on machines with MOVT.
6871
6872 2010-09-20  Jie Zhang  <jie@codesourcery.com>
6873
6874         * config/arm/arm.c (arm_address_offset_is_imm): New.
6875         (arm_early_store_addr_dep): New.
6876         (arm_early_load_addr_dep): New.
6877         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
6878         (arm_early_load_addr_dep): Declare.
6879         (arm_address_offset_is_imm): Declare.
6880         * config/arm/cortex-m4.md: New file.
6881         * config/arm/cortex-m4-fpu.md: New file.
6882         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
6883         (attr generic_sched): Exclude cortexm4.
6884         (attr generic_vfp): Exclude cortexm4.
6885
6886 2010-09-20  Richard Guenther  <rguenther@suse.de>
6887
6888         PR middle-end/45704
6889         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
6890
6891 2010-09-20  Jan Hubicka  <jh@suse.cz>
6892
6893         PR tree-optimize/45605
6894         * cgraph.h (const_value_known_p): Declare.
6895         (varpool_decide_const_value_known): Remove.
6896         * tree-ssa-ccp.c (get_base_constructor): Use it.
6897         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
6898         * expr.c (string_constant): Likewise.
6899         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
6900         * ipa.c (ipa_discover_readonly_nonaddressable_var,
6901         function_and_variable_visibility): Likewise.
6902         * gimplify.c (gimplify_call_expr): Likewise.
6903         * gimple-fold.c (get_symbol_constant_value): Likewise.
6904         * varpool.c (varpool_decide_const_value_known): Replace by...
6905         (const_value_known_p): ... this one; handle other kinds of DECLs
6906         too and work for automatic vars.
6907         (varpool_finalize_decl): Use const_value_known_p.
6908
6909 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
6910
6911         PR target/45726
6912         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
6913
6914 2010-09-20  Richard Guenther  <rguenther@suse.de>
6915
6916         PR tree-optimization/45705
6917         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
6918
6919 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
6920
6921         PR rtl-optimization/45695
6922         * combine.c (try_combine): When splitting a two set pattern,
6923         make sure the pattern which will be put into i2 doesn't use REGs
6924         or MEMs set by insns in between i2 and i3.
6925
6926 2010-09-19  Jan Hubicka  <jh@suse.cz>
6927
6928         PR lto/44246
6929         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
6930         processing same node twice.
6931
6932 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
6933
6934         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
6935         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6936         (bfin_class_likely_spilled_p): New function
6937
6938 2010-09-19  Ira Rosen  <irar@il.ibm.com>
6939
6940         PR tree-optimization/45714
6941         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
6942         created in vectorizable_call instead of the original statement in
6943         def stmt updates.
6944
6945 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
6946
6947         * config/i386/i386-protos.h (split_double_mode): New prototype.
6948         (split_di, split_ti): Remove prototypes.
6949         * config/i386/i386.c (split_double_mode): New function.
6950         (split_di, split_ti): Remove.
6951         (ix86_expand_branch): Use split_double_mode.
6952         (ix86_split_to_parts): Ditto.
6953         (ix86_split_ashl): Ditto.
6954         (ix86_split_ashr): Ditto.
6955         (ix86_split_lshr): Ditto.
6956         (ix86_force_to_memory): Ditto.
6957         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
6958
6959 2010-09-18  Jan Hubicka  <jh@suse.cz>
6960
6961         PR tree-optimization/45453
6962         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
6963         virtual functions are reachable.
6964         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
6965         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
6966         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
6967         when modifying function.
6968
6969 2010-09-18  Jan Hubicka  <jh@suse.cz>
6970
6971         PR tree-optimization/45605
6972         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
6973         * gimple-fold.c (static_object_in_other_unit_p): New function.
6974         (canonicalize_constructor_val): Use it.
6975         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
6976         returning NULL.
6977         (gimple_fold_obj_type_ref_known_binfo): Use
6978         static_object_in_other_unit_p.
6979
6980 2010-09-18  Richard Guenther  <rguenther@suse.de>
6981
6982         PR tree-optimization/45709
6983         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
6984         insertions until after all PHI nodes of the block are processed.
6985
6986 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
6987
6988         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
6989
6990 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
6991
6992         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
6993
6994 2010-09-18  Richard Guenther  <rguenther@suse.de>
6995
6996         PR tree-optimization/45709
6997         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
6998
6999 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
7000
7001         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
7002         (dot_deps_stmt): Same.
7003         * graphite-poly.c (dot_lst): Same.
7004         * graphite-scop-detection.c (dot_all_scops): Same.
7005         (dot_scop): Same.
7006
7007 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
7008
7009         Revert:
7010         2009-12-16  Ben Elliston  <bje@au.ibm.com>
7011
7012         * tree-data-ref.c (dot_rdg_1): Added back.
7013         (dot_rdg): Same.  Added "#if 0" around system call.
7014
7015 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7016             Richard Henderson  <rth@redhat.com>
7017
7018         * config/i386/i386.c (initial_ix86_tune_features): Add
7019         X86_TUNE_PAD_SHORT_FUNCTION.
7020         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
7021         (ix86_count_insn): New.
7022         (ix86_pad_short_function): Likewise.
7023         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
7024
7025         * config/i386/i386.h (ix86_tune_indices): Add
7026         X86_TUNE_PAD_SHORT_FUNCTION.
7027         (TARGET_PAD_SHORT_FUNCTION): New.
7028
7029         * config/i386/i386.md (UNSPEC_NOPS): New.
7030         (nops): Likewise.
7031
7032 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7033
7034         PR middle-end/45234
7035         * calls.c (expand_call): Make sure that all variable sized
7036         adjustments are multiple of preferred stack boundary after
7037         stack alignment.
7038
7039 2010-09-17  DJ Delorie  <dj@redhat.com>
7040
7041         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
7042         passed an invalid value, print an error instead of ICEing.
7043         (valid_psw_flag): New.
7044         (rx_expand_builtin): Call it for setpsw/clrpsw.
7045         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
7046
7047         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
7048         (bitclr_in_memory): Likewise.
7049         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
7050
7051 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7052
7053         PR middle-end/45678
7054         * cfgexpand.c (update_stack_alignment): New.
7055         (get_decl_align_unit): Use it.
7056         (expand_one_stack_var_at): Call update_stack_alignment.
7057
7058 2010-09-17  Richard Guenther  <rguenther@suse.de>
7059
7060         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
7061         Properly copy the read string.
7062
7063 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
7064
7065         * doc/options.texi (Variable): Document.
7066         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
7067         generate target_flags declarations explicitly.  Don't define
7068         VarExists variables for the driver.
7069         * common.opt (target_flags): New Variable record.
7070         (flag_dump_unnumbered, flag_dump_unnumbered_links,
7071         flag_var_tracking, flag_var_tracking_assignments,
7072         flag_var_tracking_assignments_toggle): Don't mark variables with
7073         VarExists.
7074         * config/i386/i386.c (ix86_isa_flags): Don't define here.
7075         * config/i386/i386.opt (ix86_isa_flags): Define here.
7076         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
7077         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
7078         VarExists.
7079         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
7080         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
7081         Only define for generator programs.
7082         * rtlanal.c (target_flags): Remove.
7083         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
7084         flag_var_tracking_assignments_toggle): Remove.
7085
7086 2010-09-17  Michael Matz  <matz@suse.de>
7087
7088         PR tree-optimization/43432
7089         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7090         Accept backwards consecutive accesses.
7091         (vect_create_data_ref_ptr): If step is negative generate
7092         decreasing IVs.
7093         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
7094         (perm_mask_for_reverse, reverse_vec_elements): New functions.
7095         (vectorizable_load): Handle loads with negative steps when easily
7096         possible.
7097
7098 2010-09-03  Jan Hubicka  <jh@suse.cz>
7099
7100         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
7101
7102 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
7103
7104         * config/v850/v850.c (v850_function_value_regno_p): Make static.
7105         Adjust comments. Declare.
7106         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7107         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
7108
7109 2010-09-17  Richard Guenther  <rguenther@suse.de>
7110
7111         * common.opt (combine): Remove.
7112         * gcc.c (default_compilers): Remove specs testing combine.
7113         The C compilers no longer can combine.
7114         (option_map): Remove -combine.
7115         (display_help): Remove -combine.
7116         (driver_handle_option): Remove OPT_combine handling.
7117         (compile_input_file_p): Remove.
7118         (do_spec): Remove code concerning combine.
7119         (main): Likewise.
7120         * doc/invoke.texi: Remove traces of -combine.
7121         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
7122
7123 2010-09-17  Richard Guenther  <rguenther@suse.de>
7124
7125         PR middle-end/45678
7126         * builtins.c (fold_builtin_memory_op): Always properly adjust
7127         alignment of memory accesses.
7128
7129 2010-09-16  Jan Hubicka  <jh@suse.cz>
7130
7131         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
7132         processing clone.
7133
7134 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
7135
7136         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
7137
7138         * config/i386/i386.c (predict_jump): Add prototype.
7139         (flag_opts): Add -m8bit-idiv.
7140         (ix86_split_idivmod): New.
7141
7142         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
7143         Add 2 splitters for SI/DI mode divide.
7144         (divmod<mode>4_1): New pattern.
7145         (udivmod<mode>4_1): Likewise.
7146         (testdi_ccno_1): Likewise.
7147
7148         * config/i386/i386.opt (m8bit-idiv): New.
7149
7150         * doc/invoke.texi: Document -m8bit-idiv.
7151
7152 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
7153
7154         PR bootstrap/45680
7155         * config/i386/i386.c (min_insn_size): Moved out of the
7156         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
7157
7158 2010-09-16  Jan Hubicka  <jh@suse.cz>
7159
7160         * lto-cgraph.c (lto_output_node): Fix handling of clones.
7161         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
7162         unreachable clones with reachable clones.
7163         * tree-inline.c (copy_bb): Fix sanity checking when producing
7164         unreachable clone.
7165
7166 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
7167
7168         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
7169         (TARGET_MEMORY_MOVE_COST): Define.
7170         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
7171
7172 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
7173
7174         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
7175         maybe_tidy_empty_bb.
7176
7177         Revert:
7178         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
7179         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7180
7181 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
7182
7183         * target.def (target_option.optimization): New hook.
7184         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
7185         TARGET_OPTION_OPTIMIZATION hook.
7186         * doc/tm.texi: Regenerate.
7187         * hooks.c (hook_void_int_int): New.
7188         * hooks.h (hook_void_int_int): Declare.
7189         * opts.c: Don't include tm_p.h.
7190         (decode_options): Use targetm.target_option.optimization instead
7191         of OPTIMIZATION_OPTIONS.
7192         * system.h (OPTIMIZATION_OPTIONS): Poison.
7193         * config/arm/arm-protos.h (arm_optimization_options): Remove.
7194         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
7195         (arm_optimization_options): Rename to arm_option_optimization.
7196         Make static.
7197         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
7198         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
7199         (cris_option_optimization): New.
7200         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
7201         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
7202         (crx_option_optimization): New.
7203         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
7204         * config/frv/frv-protos.h (frv_optimization_options): Remove.
7205         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
7206         (frv_optimization_options): Rename to frv_option_optimization.
7207         Make static.
7208         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
7209         * config/h8300/h8300.c (h8300_option_optimization): New.
7210         (TARGET_OPTION_OPTIMIZATION): Define.
7211         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
7212         * config/i386/i386-protos.h (optimization_options): Remove.
7213         * config/i386/i386.c (optimization_options): Rename to
7214         ix86_option_optimization.  Make static.
7215         (TARGET_OPTION_OPTIMIZATION): Define.
7216         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
7217         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
7218         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
7219         (ia64_optimization_options): Rename to ia64_option_optimization.
7220         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
7221         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
7222         commented-out definition.
7223         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7224         instead of OPTIMIZATION_OPTIONS.
7225         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
7226         (m32r_option_optimization): New.
7227         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
7228         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7229         Remove.
7230         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
7231         (mcore_option_optimization): New.
7232         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
7233         * config/mep/mep-protos.h (mep_optimization_options): Remove.
7234         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
7235         (mep_optimization_options): Rename to mep_option_optimization.
7236         Make static.  Take unused level and size parameters.
7237         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
7238         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
7239         (mmix_option_optimization): New.
7240         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
7241         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
7242         (pdp11_option_optimization): New.
7243         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
7244         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
7245         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
7246         (optimization_options): Rename to rs6000_option_optimization.
7247         Make static.
7248         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
7249         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
7250         * config/rx/rx.c (rx_set_optimization_options): Rename to
7251         rx_option_optimization.  Make static.  Take unused level and size
7252         parameters.
7253         (TARGET_OPTION_OPTIMIZATION): Define.
7254         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
7255         * config/s390/s390-protos.h (optimization_options): Remove.
7256         * config/s390/s390.c (optimization_options): Rename to
7257         s390_option_optimization.  Make static.  Don't mark size parameter
7258         unused.
7259         (TARGET_OPTION_OPTIMIZATION): Define.
7260         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
7261         * config/sh/sh-protos.h (sh_optimization_options): Remove.
7262         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
7263         (sh_optimization_options): Rename to sh_option_optimization.  Make
7264         static.  Don't mark parameters unused.
7265         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
7266         * config/spu/spu-protos.h (spu_optimization_options): Remove.
7267         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
7268         (spu_optimization_options): Rename to spu_option_optimization.
7269         Make static.
7270         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
7271         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
7272         (v850_option_optimization): New.
7273         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
7274         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
7275         (xtensa_option_optimization): New.
7276         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
7277
7278 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
7279
7280         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
7281         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
7282         * doc/tm.texi: Regenerate.
7283         * system.h (OVERRIDE_OPTIONS): Poison.
7284         * target.def (override): Default to hook_void_void.
7285         * targhooks.c (default_target_option_override): Remove.
7286         * genmodes.c, machmode.def: Update comments mentioning
7287         OVERRIDE_OPTIONS.
7288         * config/alpha/alpha-modes.def: Update comment mentioning
7289         alpha_override_options.
7290         * config/alpha/alpha-protos.h (override_options): Remove.
7291         * config/alpha/alpha.c (override_options): Rename to
7292         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
7293         (TARGET_OPTION_OVERRIDE): Define.
7294         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
7295         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
7296         of OVERRIDE_OPTIONS.
7297         * config/arc/arc-protos.h (arc_init): Remove.
7298         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
7299         (arc_init): Rename to arc_option_override.  Make static.
7300         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
7301         (OVERRIDE_OPTIONS): Remove.
7302         * config/arm/arm-protos.h (arm_override_options): Remove.
7303         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
7304         (arm_override_options): Rename to arm_option_override.  Make
7305         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
7306         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
7307         * config/arm/arm.md: Update comment referring to arm_override_options.
7308         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7309         instead of OVERRIDE_OPTIONS.
7310         * config/avr/avr-protos.h (avr_override_options): Remove.
7311         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
7312         (avr_override_options): Rename to avr_option_override.  Make static.
7313         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
7314         * config/bfin/bfin-protos.h (override_options): Remove (twice).
7315         * config/bfin/bfin.c (override_options): Rename to
7316         bfin_option_override.  Make static.
7317         (TARGET_OPTION_OVERRIDE): Define.
7318         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
7319         * config/cris/cris-protos.h (cris_override_options): Remove.
7320         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
7321         (cris_override_options): Rename to cris_option_override.  Make static.
7322         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
7323         * config/frv/frv-protos.h (frv_override_options): Remove.
7324         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
7325         (frv_override_options): Rename to frv_option_override.  Make static.
7326         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
7327         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
7328         * config/h8300/h8300.c (h8300_init_once): Rename to
7329         h8300_option_override.  Make static.
7330         (TARGET_OPTION_OVERRIDE): Define.
7331         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
7332         * config/i386/i386-protos.h (override_options): Remove.
7333         * config/i386/i386.c (override_options): Rename to
7334         ix86_option_override_internal.  Make static.  Comments referring
7335         to this function and callers changed.
7336         (ix86_option_override): New.
7337         (TARGET_OPTION_OVERRIDE): Define.
7338         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
7339         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
7340         * config/ia64/ia64.c (ia64_file_start): Update comment referring
7341         to ia64_override_options.
7342         * config/iq2000/iq2000-protos.h (override_options): Remove.
7343         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
7344         (override_options): Rename to iq2000_option_override.  Make static.
7345         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
7346         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
7347         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
7348         (lm32_override_options): Rename to lm32_option_override.  Make static.
7349         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
7350         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
7351         (m32r_option_override): New.
7352         (m32r_init): Update comment.
7353         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
7354         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
7355         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
7356         (m68hc11_override_options): Rename to m68hc11_option_override.
7357         Make static.  Return void.
7358         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
7359         * config/m68k/m68k-protos.h (override_options): Remove.
7360         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
7361         (override_options): Rename to m68k_option_override.  Make static.
7362         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
7363         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
7364         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
7365         (mcore_override_options): Rename to mcore_option_override.  Make
7366         static.
7367         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
7368         * config/mep/mep-protos.h (mep_override_options): Remove.
7369         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
7370         (mep_override_options): Rename to mep_option_override.  Make static.
7371         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
7372         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
7373         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
7374         (mmix_override_options): Rename to mmix_option_override.  Make static.
7375         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
7376         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
7377         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
7378         (mn10300_override_options): Rename to mn10300_option_override.
7379         Make static.
7380         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
7381         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
7382         * config/moxie/moxie.c (moxie_override_options): Rename to
7383         moxie_option_override.  Make static.
7384         (TARGET_OPTION_OVERRIDE): Define.
7385         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
7386         * config/picochip/picochip-protos.h (picochip_override_options):
7387         Remove.  Update comment referring to picochip_override_options.
7388         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
7389         (picochip_override_options): Rename to picochip_option_override.
7390         Make static.  Update comment and definition of
7391         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
7392         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
7393         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7394         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7395         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7396         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7397         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7398         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
7399         instead of OVERRIDE_OPTIONS.
7400         * config/rs6000/rs6000-modes.def: Update comment referring to
7401         rs6000_override_options.
7402         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
7403         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
7404         (rs6000_override_options): Rename to
7405         rs6000_option_override_internal.  Make static.  Commented
7406         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
7407         (rs6000_option_override): New.
7408         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
7409         instead of OVERRIDE_OPTIONS.
7410         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7411         * config/s390/s390-protos.h (override_options): Remove.
7412         * config/s390/s390.c (override_options): Rename to
7413         s390_option_override.  Make static.
7414         (TARGET_OPTION_OVERRIDE): Define.
7415         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
7416         * config/score/score-protos.h (score_override_options): Remove.
7417         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
7418         (score_override_options): Rename to score_option_override.  Make
7419         static.
7420         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
7421         Update comment referring to override_options.
7422         * config/score/score3.c (score3_override_options): Rename to
7423         score3_option_override.
7424         * config/score/score3.h (score3_override_options): Rename to
7425         score3_option_override.
7426         * config/score/score7.c (score7_override_options): Rename to
7427         score7_option_override.
7428         * config/score/score7.h (score7_override_options): Rename to
7429         score7_option_override.
7430         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
7431         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
7432         (sparc_override_options): Rename to sparc_option_override.  Make
7433         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
7434         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
7435         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7436         instead of OVERRIDE_OPTIONS.
7437         * config/spu/spu-protos.h (spu_override_options): Remove.
7438         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
7439         (spu_override_options): Rename to spu_option_override.  Make
7440         static.
7441         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
7442         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
7443         OVERRIDE_OPTIONS.
7444         * config/vax/vax-protos.h (override_options): Remove.
7445         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
7446         (override_options): Rename to vax_option_override.  Make static.
7447         Call SUBTARGET_OVERRIDE_OPTIONS.
7448         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
7449         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
7450         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
7451         * config/xtensa/xtensa-protos.h (override_options): Remove.
7452         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
7453         (override_options): Rename to xtensa_option_override.  Make static.
7454         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
7455
7456 2010-09-16  Richard Guenther  <rguenther@suse.de>
7457
7458         PR tree-optimization/45623
7459         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
7460         (get_constraint_for_component_ref): If computing a constraint
7461         for the rhs handle type punning through unions.
7462         (get_constraint_for_address_of): Adjust.
7463         (get_constraint_for_1): Likewise.
7464         (get_constraint_for): Likewise.
7465         (get_constraint_for_rhs): New function.
7466         (do_structure_copy): Adjust.
7467         (make_constraint_to): Likewise.
7468         (handle_const_call): Likewise.
7469         (find_func_aliases): Likewise.
7470         (process_ipa_clobber): Likewise.
7471         (create_variable_info_for): Likewise.
7472
7473 2010-09-16  Ira Rosen  <irar@il.ibm.com>
7474
7475         * tree-vectorizer.c: Fix documentation.
7476         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
7477         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
7478         is_pattern_stmt_p, is_loop_header_bb_p,
7479         stmt_vinfo_set_inside_of_loop_cost,
7480         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
7481         known_alignment_for_access_p): Likewise.
7482         * tree-vect-loop.c: Fix documentation.
7483         (vect_get_cost): Start function name from new line.
7484         * tree-vect-data-refs.c: Fix documentation.
7485         * tree-vect_stmts.c: Likewise.
7486         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
7487         (vectorizable_store): Free vec_oprnds if allocated.
7488         (vectorizable_condition): Initialize several variables to avoid
7489         warnings.
7490         * tree-vect-slp.c: Fix documentation.
7491
7492 2010-09-16  Richard Guenther  <rguenther@suse.de>
7493
7494         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
7495         is TS_TRANSLATION_UNIT_DECL.
7496         (initialize_tree_contains_struct): Adjust.
7497         (all_translation_units): New global vector.
7498         (build_translation_unit_decl): New function.
7499         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
7500         (struct tree_translation_unit_decl): New.
7501         (all_translation_units): Declare.
7502         (union tree_node): Add translation_unit_decl member.
7503         (build_translation_unit_decl): Declare.
7504         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
7505         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7506         New function.
7507         (pack_value_fields): Call it.
7508         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
7509         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
7510         (lto_output_tree_pointers): Call it.
7511         * lto-streamer-in.c (lto_input_tree_ref): Handle references
7512         to TRANSLATION_UNIT_DECL.
7513         (unpack_ts_translation_unit_decl_value_fields): New function.
7514         (unpack_value_fields): Call it.
7515         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
7516         (lto_input_tree_pointers): Call it.
7517         * lto-streamer.c (check_handled_ts_structures): Adjust.
7518         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
7519         * c-decl.c (all_translation_units): Remove.
7520         (pop_scope): Use build_translation_unit_decl.
7521         (collect_all_refs): Adjust.
7522         (for_each_global_decl): Likewise.
7523         (c_write_global_declarations): Likewise.
7524
7525 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
7526
7527         PR bootstrap/45686
7528         * fold-const.c (fold_checksum_tree): Change slot from const void **
7529         to void **, use CONST_CAST_TREE to store into *slot.
7530
7531 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
7532
7533         * config/i386/i386.md: Remove unneeded empty conditions and
7534         preparation statements from expanders.
7535         * config/i386/mmx.md: Ditto.
7536         * config/i386/sse.md: Ditto.
7537
7538 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
7539
7540         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
7541
7542 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7543
7544         PR rtl-optimization/45593
7545         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
7546         insns that were in delay slots as stand-alone insns.
7547
7548 2010-09-15  Ian Lance Taylor  <iant@google.com>
7549
7550         * incpath.c (remove_duplicates): If name is not a directory, issue
7551         a warning rather than an error.
7552
7553 2010-09-15  Martin Jambor  <mjambor@suse.cz>
7554
7555         PR middle-end/45644
7556         * tree-sra.c (create_access): Check for bit-fields directly.
7557
7558 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
7559
7560         PR tree-optimization/45633
7561         * tree-cfg.c (verify_gimple_assign_binary): Allow
7562         MINUS_EXPR with lhs and rhs1 pointer vector and
7563         rhs2 sizetype vector.
7564         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
7565         or vector pointer use TER to optimize pointer subtraction.
7566
7567 2010-09-15  Jie Zhang  <jie@codesourcery.com>
7568
7569         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
7570         fcmpd to fcmps.
7571
7572 2010-09-15  Ian Lance Taylor  <iant@google.com>
7573
7574         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
7575
7576 2010-09-15  Ian Lance Taylor  <iant@google.com>
7577
7578         * function.c (get_arg_pointer_save_area): Set
7579         arg_pointer_save_area_init to true.
7580
7581 2010-09-15  Martin Jambor  <mjambor@suse.cz>
7582
7583         * tree-sra.c (generate_subtree_copies): Updated comment.
7584         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
7585         obtained from the statement iterator instead.
7586         (load_assign_lhs_subreplacements): Removed parameters lhs and
7587         right_offset, which is obtained from top_racc instead.  Parameter lacc
7588         is now expected to be the root of the processed tree rather than root's
7589         first child.  Updated all callers.
7590
7591 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
7592
7593         * config/pdp11/pdp11.c (register_move_cost): Rename to
7594         pdp11_register_move_cost.
7595         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
7596         pdp11_register_move_cost.
7597         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
7598         pdp11_register_move_cost instead of register_move_cost.
7599
7600 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
7601
7602         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
7603         pattern for vmovn. Expansion in case of non
7604         -mvectorize-with-neon-quad.
7605         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
7606         non- -mvectorize-with-neon-quad case.
7607         (move_lo_quad_<mode>): New expansion to vmov into low part.
7608         (move_hi_quad_<mode>): New expansion to vmov into high part.
7609         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
7610         (move_lo_quad_v4sf): Likewise.
7611         (move_lo_quad_v8hi): Likewise.
7612         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
7613         low part.
7614         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
7615         high part.
7616         * config/arm/iterators.md (ANY128): New mode iterator.
7617         (V_narrow_pack): New mode attribute.
7618         (V_HALF): Add attribute.
7619         (V_DOUBLE): Add attribute.
7620         (V_mode_nunits): Add attribute.
7621
7622 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7623
7624         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
7625         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
7626
7627 2010-09-15  Olivier Hainque  <hainque@adacore.com>
7628             Jose Ruiz  <ruiz@adacore.com>
7629
7630         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
7631         * config/alpha/osf5-unwind.h: New file.
7632
7633 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7634
7635         PR bootstrap/45672
7636         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
7637         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7638         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7639
7640 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7641
7642         * c-lang.h (struct lang_type): Add variable_size GTY option.
7643
7644 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7645
7646         PR bootstrap/45672
7647         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7648
7649 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7650
7651         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
7652         result isn't used in memory address.
7653
7654 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7655
7656         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
7657         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
7658         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7659         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7660         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7661         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7662
7663         * target.def: Add units_per_simd_word to vectorize.
7664
7665         * targhooks.c (default_units_per_simd_word): New.
7666         * targhooks.h (default_units_per_simd_word): Likewise.
7667         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
7668         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7669         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
7670         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7671         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7672         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7673         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7674         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7675
7676         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
7677         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
7678
7679         * tree-vect-stmts.c: Don't include "tm_p.h".
7680         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
7681         with targetm.vectorize.units_per_simd_word.
7682
7683         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
7684
7685         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
7686
7687         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
7688         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7689
7690         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
7691         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
7692
7693         * doc/tm.texi: Regenerated.
7694
7695 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7696
7697         * tree-vect-stmts.c: Include "tm_p.h".
7698
7699         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
7700         out of RTX_CODE.
7701
7702 2010-09-14  Martin Jambor  <mjambor@suse.cz>
7703
7704         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
7705         location of generated statement.  Changed all callers.
7706         (build_ref_for_model): New parameter loc which used to set location of
7707         all generated expressions.  Changed all callers.
7708         (generate_subtree_copies): Likewise.
7709         (init_subtree_with_zero): Likewise.
7710         (sra_modify_expr): Set locations of all generated statements and
7711         expressions to the location the original statement.
7712         (handle_unscalarized_data_in_subtree): Likewise.
7713         (load_assign_lhs_subreplacements): Likewise.
7714         (sra_modify_constructor_assign): Likewise.
7715         (sra_modify_assign): Likewise.
7716
7717 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
7718
7719         PR target/45277
7720         PR target/45363
7721         PR target/45407
7722         * doc/install.texi (sparc*-*-*): New section.
7723         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
7724
7725 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
7726
7727         PR middle-end/45567
7728         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
7729         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
7730         (expand_builtin): Adjust caller.
7731         (expand_builtin_unop): Only use subtarget if it has the right mode.
7732
7733 2010-09-14  Tristan Gingold  <gingold@adacore.com>
7734
7735         * configure.ac (plugins): Fix typos.
7736         * configure: Regenerate.
7737
7738 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
7739
7740         PR debug/45660
7741         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
7742         gen_type_die for function/method return type.
7743
7744 2010-09-14  Ira Rosen  <irar@il.ibm.com>
7745
7746         PR tree-optimization/45470
7747         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7748         can throw an exception.
7749         * tree-vect-stmts.c (vectorizable_call): Likewise.
7750
7751 2010-09-14  DJ Delorie  <dj@redhat.com>
7752
7753         PR target/44749
7754         * config/mep/mep-protos.h (mep_save_register_info,
7755         mep_reinit_regs, mep_init_regs): Declare.
7756
7757         * config/mep/mep.c: Move all target definitions to the end of the
7758         file to avoid the need for duplicate declarations.
7759         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
7760         (mep_reorg_erepeat): Remove unused variables.
7761         (mep_expand_builtin): Likewise.
7762
7763         * config/mep/mep-pragma.c: Don't include rtl.h.
7764         (INVALID_REGNUM): New.
7765         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
7766         functions.
7767         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
7768         Avoid enum/integer math.
7769
7770 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
7771
7772         PR target/44749
7773         * config/mep/t-mep (GTM_H): Add insn-constants.h.
7774         * config/mep/mep.c (mep_conditional_register_usage): Take no
7775         parameters.
7776         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
7777         prototype.
7778         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
7779         call to mep_conditional_register_usage.
7780
7781 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
7782
7783         PR debug/43937
7784         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
7785         the DECL as well.
7786
7787 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
7788
7789         PR rtl-optimization/45617
7790         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
7791         even if low N bits of X aren't known to be zero.
7792
7793 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7794
7795         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
7796
7797         * config/i386/i386.c (initial_ix86_tune_features): Add
7798         X86_TUNE_VECTORIZE_DOUBLE.
7799         (ix86_units_per_simd_word): New.
7800
7801         * config/i386/i386.h (ix86_tune_indices): Add
7802         X86_TUNE_VECTORIZE_DOUBLE.
7803         (TARGET_VECTORIZE_DOUBLE): New.
7804         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
7805
7806 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
7807
7808         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
7809         (new_temp_expr_table): Allocate call_cnt vector.
7810         (free_temp_expr_table): Free it.
7811         (process_replaceable): Add call_cnt parm and set in vector.
7812         (find_replaceable_in_bb): Skip replacement if def/use span a call.
7813         (debug_ter): Dump call_cnt value, remove stderr uses.
7814
7815 2010-09-13  Jan Hubicka  <jh@suse.cz>
7816
7817         * tree.c (build_zero_cst): New.
7818         * tree.h (build_zero_cst): Declare.
7819         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
7820         (get_base_constructor): Break out from ...
7821         (fold_const_aggregate_ref): Here; handle empty constructors.
7822
7823 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7824
7825         * config/arm/arm.md: (define_attr "conds"): Update comment.
7826         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
7827         conds attribute to clob.
7828         (arm_sync_compare_and_swapsi): Likewise.
7829         (arm_sync_compare_and_swap<mode>): Likewise.
7830         (arm_sync_lock_test_and_setsi): Likewise.
7831         (arm_sync_lock_test_and_set<mode>): Likewise.
7832         (arm_sync_new_<sync_optab>si): Likewise.
7833         (arm_sync_new_nandsi): Likewise.
7834         (arm_sync_new_<sync_optab><mode>): Likewise.
7835         (arm_sync_new_nand<mode>): Likewise.
7836         (arm_sync_old_<sync_optab>si): Likewise.
7837         (arm_sync_old_nandsi): Likewise.
7838         (arm_sync_old_<sync_optab><mode>): Likewise.
7839         (arm_sync_old_nand<mode>): Likewise.
7840
7841 2010-09-13  Olivier Hainque  <hainque@adacore.com>
7842
7843         * fwprop.c (forward_propagate_and_simplify): Only attach a
7844         REG_EQUAL note to an insn if the destination is a register.
7845         * gcse.c (try_replace_reg): Likewise.
7846
7847 2010-09-13  Richard Guenther  <rguenther@suse.de>
7848
7849         PR tree-optimization/45611
7850         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
7851         (copy_ref_info): Likewise.
7852
7853 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
7854
7855         PR debug/45604
7856         PR debug/45419
7857         PR debug/45408
7858         * tree-pretty-print.c (dump_generic_node): Disregard top-level
7859         types of MEM_REF pointer types to the same type.
7860
7861 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
7862
7863         PR rtl-optimization/41087
7864         * ifcvt.c (noce_get_condition): Don't allow conditions with
7865         side-effects.
7866
7867 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
7868
7869         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7870         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
7871         * config/frv/frv.c (frv_register_move_cost): Make static. Change
7872         arguments type to reg_class_t. Add mode argument.
7873         (frv_memory_move_cost): New.
7874         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
7875
7876 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
7877
7878         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
7879         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
7880
7881 2010-09-10  Jan Hubicka  <jh@suse.cz>
7882
7883         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
7884
7885 2010-09-10  Richard Guenther  <rguenther@suse.de>
7886
7887         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
7888         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
7889         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
7890         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
7891         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
7892
7893 2010-09-10  Richard Guenther  <rguenther@suse.de>
7894
7895         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
7896         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
7897         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
7898         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
7899
7900 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
7901
7902         PR middle-end/45634
7903         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
7904         of string folding is of integral type.
7905
7906 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
7907
7908         * doc/invoke.texi (-x): Fix typo.
7909
7910 2010-09-10  Richard Guenther  <rguenther@suse.de>
7911
7912         PR debug/44115
7913         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
7914         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7915         Output DECL_DEBUG_EXPR.
7916         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7917         Input DECL_DEBUG_EXPR.
7918
7919 2010-09-10  Richard Guenther  <rguenther@suse.de>
7920
7921         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
7922         (build_index_type): Implement in terms of build_range_type.
7923         (build_range_type): Do not allow NULL_TREE type, improve
7924         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
7925         if we didn't hash.
7926         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
7927         create a distinct copy of the type.
7928
7929 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
7930
7931         * configure: Regenerated.
7932         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
7933
7934 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7935
7936         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
7937         * config/arm/cortex-a9-neon.md: New and partially generated.
7938         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
7939
7940 2010-09-10  Richard Guenther  <rguenther@suse.de>
7941
7942         * tree.h (build_index_2_type): Remove.
7943         * tree.c (build_index_2_type): Remove.
7944
7945 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
7946
7947         PR bootstrap/45630
7948         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
7949         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
7950         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
7951
7952 2010-09-10  Martin Jambor  <mjambor@suse.cz>
7953
7954         PR tree-optimization/44972
7955         * tree-sra.c: Include toplev.h.
7956         (build_ref_for_offset): Entirely reimplemented.
7957         (build_ref_for_model): New function.
7958         (build_user_friendly_ref_for_offset): New function.
7959         (analyze_access_subtree): Removed build_ref_for_offset check.
7960         (propagate_subaccesses_across_link): Likewise.
7961         (create_artificial_child_access): Use
7962         build_user_friendly_ref_for_offset.
7963         (propagate_subaccesses_across_link): Likewise.
7964         (ref_expr_for_all_replacements_p): Removed.
7965         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
7966         (sra_modify_expr): Use build_ref_for_model.
7967         (load_assign_lhs_subreplacements): Likewise.
7968         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
7969         checks for return values of build_ref_for_offset.
7970         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
7971         build_ref_for_offset.
7972         * ipa-prop.h: Include gimple.h
7973         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
7974         (ipa_analyze_indirect_call_uses): Update comment.
7975         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
7976         (IPA_PROP_H): Likewise.
7977
7978 2010-09-10  Martin Jambor  <mjambor@suse.cz>
7979
7980         PR tree-optimization/44972
7981         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
7982         calling build_ref_for_offset.
7983
7984 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7985
7986         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
7987         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
7988         * config/arm/arm-tune.md: Regenerate.
7989         * doc/invoke.texi (ARM Options): Document it.
7990
7991 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
7992
7993         * config/i386/i386.c: Include sched-int.h.
7994         (TARGET_SCHED_DISPATCH): Defined.
7995         (TARGET_SCHED_DISPATCH_DO): Defined.
7996         (DISPATCH_WINDOW_SIZE): Defined.
7997         (MAX_DISPATCH_WINDOWS): Defined.
7998         (MAX_INSN): Defined.
7999         (MAX_IMM): Defined.
8000         (MAX_IMM_SIZE): Defined.
8001         (MAX_IMM_32): Defined.
8002         (MAX_IMM_64): Defined.
8003         (MAX_LOAD): Defined.
8004         (MAX_STORE): Defined.
8005         (BIG): Defined.
8006         (dispatch_group): New.
8007         (num_allowable_groups): New.
8008         (group_name): New.
8009         (sched_insn_info_s): New.
8010         (dispatch_windows_s): New.
8011         (imm_info_s): New.
8012         (dispatch_window_list): New.
8013         (dispatch_window_list1): New.
8014         (get_mem_group): New.
8015         (is_cmp): New.
8016         (dispatch_violation): New.
8017         (is_branch): New.
8018         (is_prefetch): New.
8019         (init_window): New.
8020         (allocate_window): New.
8021         (init_dispatch_sched): New.
8022         (is_end_basic_block): New.
8023         (process_end_window): New.
8024         (allocate_next_window): New.
8025         (find_constant_1): New.
8026         (find_constant): New.
8027         (get_num_immediates): New.
8028         (has_immediate): New.
8029         (get_insn_path): New.
8030         (get_insn_group): New.
8031         (count_num_restricted): New.
8032         (fits_dispatch_window): New.
8033         (add_insn_window): New.
8034         (add_to_dispatch_window): New.
8035         (debug_dispatch_window_file): New.
8036         (debug_dispatch_window): New.
8037         (debug_insn_dispatch_info_file): New.
8038         (debug_ready_dispatch): New.
8039         (do_dispatch): New.
8040         (has_dispatch): New.
8041         * config/i386/i386.h (debug_ready_dispatch): Declared.
8042         (debug_dispatch_window): Declared.
8043         * config/i386/i386.opt (mdispatch-scheduler): New flag.
8044         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
8045         (TARGET_SCHED_DISPATCH_DO): New.
8046         * doc/tm.texi: Regererated.
8047         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
8048         ready_remove_first_dispatch
8049         (schedule_block): Call targetm.sched.dispatch and
8050         targetm.sched.dispatch_do.
8051         (sched_init): Call targetm.sched.dispatch and
8052         targetm.sched.dispatch_do.
8053         (ready_remove_first_dispatch): New.
8054         (number_in_ready): New.
8055         (get_ready_element): New.
8056         * hooks.c (hook_bool_rtx_int_false): New.
8057         (hook_void_rtx_int): New.
8058         * hooks.h (hook_bool_rtx_int_false): Declared.
8059         (hook_void_rtx_int): Declared.
8060         * sched-int.h (IS_DISPATCH_ON): Defined.
8061         (IS_CMP): Defined.
8062         (DISPATCH_VIOLATION): Defined.
8063         (FITS_DISPATCH_WINDOW): Defined.
8064         (DISPATCH_INIT): Defined.
8065         (ADD_TO_DISPATCH_WINDOW): Defined.
8066         (get_ready_element): Declared.
8067         (number_in_ready): Declared.
8068         * target.def (dispatch): Defined.
8069         (dispatch_do): Defined.
8070
8071 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8072
8073         PR middle-end/45312
8074         * reload1.c (merge_assigned_reloads): Remove.
8075         (reload_as_needed): Don't call it.
8076
8077 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
8078
8079         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
8080         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8081         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8082
8083 2010-09-09  Matthias Klose  <doko@ubuntu.com>
8084
8085         PR bootstrap/43847
8086         * configure.ac (--enable-plugin): Enhance for cross builds.
8087         * configure: Regenerate.
8088
8089 2010-09-09  Jan Hubicka  <jh@suse.cz>
8090
8091         PR tree-optimization/45598
8092         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
8093         string folding is of integral type.
8094
8095 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8096
8097         * configure.ac (gnu_indirect_function): New test.
8098         * configure: Rebuilt.
8099         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
8100         * defaults.h (IFUNC_ASM_TYPE): Provide default.
8101
8102         * doc/extend.texi (Function Attributes): Document ifunc.
8103         * varasm.c (do_assemble_alias): Deal with ifuncs too.
8104
8105 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
8106
8107         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
8108         epilogue instruction move.
8109
8110 2010-09-09  Jan Hubicka  <jh@suse.cz>
8111
8112         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
8113         command line to allow more partitions than input files.
8114
8115 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8116
8117         PR middle-end/44554
8118         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
8119
8120 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8121
8122         PR middle-end/40386
8123         * ira.c (pseudo_for_reload_consideration_p): Don't use
8124         flag_ira_share_spill_slots.
8125
8126 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8127
8128         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
8129         point zero operands that fit into a single GPR.
8130         (s390_preferred_reload_class): Ensure we only return general-purpose
8131         register classes.
8132         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
8133         floating-point zero operands into GPRs.
8134         ("*mov<mode>_64"): Likewise.
8135         ("mov<mode>"): Likewise using lhi.
8136
8137 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8138
8139         * config/s390/s390.c (s390_symref_operand_p): Return false for
8140         literal pool references.
8141         (s390_check_qrst_address): Update caller.
8142
8143 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
8144
8145         * config/i386/predicates.md (ext_register_operand): Check that
8146         SUBREG_REG is really a register before looking for REGNO.
8147         (reg_not_xmm0_operand): Handle SUBREGs correctly.
8148         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
8149
8150 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
8151
8152         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
8153         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
8154         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
8155         * print-rtl.c (print_rtx): Likewise.
8156         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8157         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
8158         for ADDR_EXPR with non-addressable object.
8159         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
8160         (struct dw_val_struct): Add v.val_decl_ref.
8161         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
8162         Handle DW_OP_GNU_implicit_pointer.
8163         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
8164         (get_ref_die_offset_label): New function.
8165         (implicit_ptr_descriptor): New function.
8166         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
8167         (loc_descriptor): Likewise.
8168         (gen_variable_die): Put even definitions into decl_die_table.
8169         (resolve_addr_in_expr): Resolve still unresolved
8170         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
8171         return false.
8172         (dwarf2out_finish): Call output_location_lists after outputting
8173         .debug_info and .debug_abbrev instead of before.
8174
8175 2010-09-09  Roland McGrath  <roland@redhat.com>
8176
8177         * dwarf2out.c (DWARF_REF_SIZE): Define.
8178         (size_of_loc_descr): Use it for DW_OP_call_ref.
8179
8180 2010-09-09  Alan Modra  <amodra@gmail.com>
8181
8182         * doc/invoke.text: Reinstate mcmodel=medium.
8183         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8184         CMODEL_MEDIUM as default.
8185         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
8186         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
8187         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
8188         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
8189
8190 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8191
8192         PR target/45250
8193         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
8194         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
8195         (builtin_longjmp): Likewise.
8196         (allocate_stack): Use hard_frame_pointer_rtx instead of
8197         frame_pointer_rtx.
8198         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
8199         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
8200         (pa_can_eliminate): Likewise.
8201         (TARGET_INTERNAL_ARG_POINTER): Define.
8202         (TARGET_CAN_ELIMINATE): Define.
8203         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
8204         pointer.
8205         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
8206         (pa_internal_arg_pointer, pa_can_eliminate,
8207         pa_initial_elimination_offset): New.
8208         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
8209         (HARD_FRAME_POINTER_REGNUM): Set to register three.
8210         (INITIAL_FRAME_POINTER_OFFSET): Delete.
8211         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
8212         Define.
8213         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
8214         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
8215         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
8216         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
8217         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
8218         new soft frame pointer.
8219         * config/pa/pa64-regs.h: Likewise.
8220
8221 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
8222
8223         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
8224         numerical constant.
8225         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
8226
8227 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
8228
8229         PR debug/45531
8230         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
8231
8232 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
8233
8234         PR debug/45419
8235         PR debug/45408
8236         * tree-pretty-print.c (dump_generic_node): Disregard top-level
8237         qualifiers in otherwise equal MEM_REF pointer types.
8238         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
8239         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
8240
8241 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8242
8243         PR target/44392
8244         * config/arm/arm.md (bswapsi2): Handle condition correctly
8245         for armv6 and optimize_size.
8246
8247 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8248
8249         PR other/18555
8250         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
8251
8252 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
8253
8254         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
8255         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
8256         ix86_expand_strlen, legitimate_pic_address_disp_p,
8257         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
8258         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
8259         ix86_check_movabs, ix86_secondary_memory_needed): Change function
8260         prototype to bool.
8261         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
8262         return_in_memory_ms_64, ix86_check_movabs,
8263         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
8264         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
8265         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
8266         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
8267         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
8268         ix86_secondary_memory_needed): Change to bool.  Return
8269         "true" and "false" values.
8270         * config/i386/i386.md: Return "true" and "false" values.
8271
8272 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8273
8274         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8275         run_expensive_tests.
8276
8277 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8278
8279         * toplev.c (output_stack_usage): Use lbasename instead of basename.
8280
8281 2010-09-08  Martin Jambor  <mjambor@suse.cz>
8282
8283         PR other/45443
8284         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
8285         at -O3.
8286
8287 2010-09-08  Richard Guenther  <rguenther@suse.de>
8288
8289         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
8290         (visit): Adjust.
8291         (iterative_hash_gimple_type): Likewise.
8292         (gimple_type_hash): Likewise.
8293         (gimple_register_type): Likewise.
8294         (print_gimple_types_stats): Likewise.
8295         (free_gimple_type_tables): Likewise.
8296
8297 2010-09-08  Michael Matz  <matz@suse.de>
8298
8299         PR tree-optimization/43430
8300         * tree-vect-stmts.c (vectorizable_condition): Support multiple
8301         copies for conditional statements if it's not part of a reduction.
8302
8303 2010-09-08  Michael Matz  <matz@suse.de>
8304
8305         PR tree-optimization/33244
8306         * tree-ssa-sink.c (statement_sink_location): Don't sink into
8307         empty loop latches.
8308
8309 2010-09-08  Richard Guenther  <rguenther@suse.de>
8310
8311         PR tree-optimization/45578
8312         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
8313         Be more careful when transfering alignment information to
8314         the new induction variable.
8315         (copy_ref_info): Likewise.
8316
8317 2010-09-08  Richard Guenther  <rguenther@suse.de>
8318
8319         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
8320         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
8321
8322 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
8323
8324         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
8325         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
8326
8327 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
8328
8329         PR doc/45587
8330         * doc/md.texi: Fixed modes on several standard pattern names.
8331
8332 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
8333
8334         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
8335         (ashl<mode>3): ...this.
8336         (loongson_psra<V_suffix>): Rename to...
8337         (ashr<mode>3): ...this.
8338         (loongson_psrl<V_suffix>): Rename to...
8339         (lshr<mode>3): ...this.
8340         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
8341         (CODE_FOR_loongson_psllw): Define.
8342         (CODE_FOR_loongson_psrlh): Define.
8343         (CODE_FOR_loongson_psrlw): Define.
8344         (CODE_FOR_loongson_psrah): Define.
8345         (CODE_FOR_loongson_psraw): Define.
8346
8347 2010-09-07  Richard Henderson  <rth@redhat.com>
8348
8349         * tree-vect-data-refs.c: Include tm_p.h.
8350         * Makefile.in (tree-vect-data-refs.o): Update deps.
8351         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
8352         Move delarations outside #ifdef RTX_CODE.
8353
8354 2010-09-07  Richard Henderson  <rth@redhat.com>
8355
8356         * final.c (rest_of_handle_final): Unconditionally do
8357         output_function_exception_table before assemble_end_function.
8358
8359 2010-09-07  Jan Hubicka  <jh@suse.cz>
8360
8361         * tree-inline.c (tree_inlinable_function_p): Do not test
8362         DECL_REPLACEABLE_P.
8363         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
8364         update_callee_keys, cgraph_decide_inlining): Test function availability.
8365         * cif-code.def (OVERWRITABLE): New code.
8366
8367 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
8368             Jack Howarth  <howarth@bromo.med.uc.edu>
8369
8370         PR target/36502
8371         PR target/42313
8372         PR target/44651
8373         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
8374         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
8375         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
8376         MAX macro.
8377
8378 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8379
8380         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
8381         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
8382
8383 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8384
8385         * config.gcc: Don't append t-android for Android targets.
8386
8387         * config/t-android: Removed.
8388
8389 2010-09-07  Richard Henderson  <rth@redhat.com>
8390
8391         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
8392         * doc/tm.texi.in: Add doc marker.
8393         * doc/tm.texi: Rebuild.
8394         * except.c (switch_to_exception_section): Always build.
8395         (output_one_function_exception_table): Move section switch,
8396         personality output, and label output ...
8397         (output_function_exception_table): ... here.  Use the new
8398         personality hook.
8399
8400         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
8401         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
8402         TARGET_ASM_INIT_SECTIONS): New.
8403         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
8404         make static.
8405         (TARGET_ASM_UNWIND_EMIT): Update to match.
8406         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
8407
8408         * config/arm/arm.c (arm_asm_emit_except_personality): New.
8409         (arm_asm_init_sections): New.
8410         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
8411
8412 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8413
8414         * config/arm/arm.md: Remove unused variable.
8415
8416 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
8417
8418         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8419         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
8420         (m32r_memory_move_cost): New function.
8421
8422 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8423
8424         * config.gcc: Append t-android for Android targets.
8425
8426         * config/t-android: New.
8427
8428 2010-09-07  Richard Henderson  <rth@redhat.com>
8429
8430         * target.def (unwind_emit_before_insn): New hook.
8431         * doc/tm.texi.in: Add @hook marker for it.
8432         * doc/tm.texi: Rebuild.
8433         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
8434
8435 2010-09-07  Martin Jambor  <mjambor@suse.cz>
8436
8437         PR fortran/43665
8438         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
8439         are any type attributes.
8440
8441 2010-09-07  Jan Hubicka  <jh@suse.cz>
8442
8443         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
8444         array_ref_low_bound in string access folding.
8445
8446 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
8447
8448         PR target/45206
8449         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
8450         eh_return fixup sequence.
8451
8452 2010-09-07  Jan Hubicka  <jh@suse.cz>
8453
8454         * gimple-fold.c (maybe_fold_reference): Verify that operand is
8455         gimple_min_invariant.
8456
8457 2010-09-07  Richard Guenther  <rguenther@suse.de>
8458
8459         PR middle-end/45569
8460         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
8461         nor CONSTRUCTOR can trap.
8462         * tree-complex.c (update_complex_assignment): Update EH info.
8463
8464 2010-09-07  Richard Guenther  <rguenther@suse.de>
8465
8466         PR middle-end/45569
8467         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
8468         * passes.c (execute_function_todo): Do not verify anything if
8469         we saw errors.
8470
8471 2010-09-07  Richard Guenther  <rguenther@suse.de>
8472
8473         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
8474
8475 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
8476
8477         PR target/43137
8478         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
8479         New define_mode_attrs.
8480         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
8481         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
8482         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
8483         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
8484         Remove pool_range attribute.
8485         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
8486         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
8487         pool_range and neg_pool_range attributes.
8488         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
8489         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
8490         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
8491
8492 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8493
8494         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
8495         check glibc.
8496
8497 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
8498
8499         PR target/22152
8500         * config/i386/mmx.md (*mov<mode>_internal_rex64,
8501         *mov<mode>_internal_avx, *mov<mode>_internal,
8502         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
8503         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
8504
8505 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
8506
8507         * c-typeck.c (do_warn_double_promotion): Remove.
8508         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
8509         Objective-C++ too.
8510
8511 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
8512
8513         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
8514         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
8515         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
8516         argument type to reg_class_t. Change result type to bool.
8517         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8518
8519 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
8520
8521         PR libobjc/19850
8522         * gthr-posix.h (__gthread_objc_thread_detach): Use
8523         _objc_thread_attribs when detaching a thread.
8524         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
8525
8526 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8527
8528         PR target/45524
8529         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
8530         * configure: Regenerated.
8531
8532 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8533
8534         * combine.c (try_combine): Set subst_low_luid to i0.
8535
8536 2010-09-06  Richard Guenther  <rguenther@suse.de>
8537
8538         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
8539         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
8540         (build_aligned_type): Declare.
8541         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
8542         (check_aligned_type): New function.
8543         (build_aligned_type): Likewise.
8544         * expr.c (expand_assignment): Handle misaligned stores via
8545         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
8546         (expand_expr_real_1): Likewise.
8547         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
8548         * tree-vect-stmts.c (vectorizable_store): Do not build
8549         MISALIGNED_INDIRECT_REF but initialize alignment information.
8550         (vectorizable_load): Likewise.
8551         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
8552         handling.
8553         * cfgexpand.c (expand_debug_expr): Likewise.
8554         * dwarf2out.c (loc_list_from_tree): Likewise.
8555         * fold-const.c (maybe_lvalue_p): Likewise.
8556         (operand_equal_p): Likewise.
8557         (build_fold_addr_expr_with_type_loc): Likewise.
8558         * gimplify.c (gimplify_addr_expr): Likewise.
8559         (gimplify_expr): Likewise.
8560         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8561         (verify_gimple_assign_single): Likewise.
8562         * tree-dump.c (dequeue_and_dump): Likewise.
8563         (tree_could_trap_p): Likewise.
8564         * tree-predcom.c (ref_at_iteration): Likewise.
8565         * tree-pretty-print.c (dump_generic_node): Likewise.
8566         (op_code_prio): Likewise.
8567         (op_symbol_code): Likewise.
8568         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8569         * tree-ssa-loop-im.c (for_each_index): Likewise.
8570         (gen_lsm_tmp_name): Likewise.
8571         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8572         (find_interesting_uses_address): Likewise.
8573         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8574         * tree-ssa-operands.c (get_expr_operands): Likewise.
8575         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8576         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8577         (ao_ref_init_from_vn_reference): Likewise.
8578         * tree.c (staticp): Likewise.
8579         (build1_stat): Likewise.
8580         (reference_alias_ptr_type): Likewise.
8581         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8582         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
8583         MISALIGNED_INDIRECT_REF handling.
8584
8585 2010-09-06  Richard Guenther  <rguenther@suse.de>
8586
8587         PR tree-optimization/45534
8588         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
8589         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
8590         on the target.
8591         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
8592         valid on the target.
8593
8594 2010-09-06  Andreas Schwab  <schwab@redhat.com>
8595
8596         * configure.ac: Quote argument of AC_MSG_WARN.
8597         * configure: Regenerate.
8598
8599 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
8600
8601         * sel-sched.c (move_cond_jump): Correct arguments to
8602         maybe_tidy_empty_bb.
8603         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8604
8605 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
8606
8607         PR rtl-optimization/44919
8608         * sel-sched.c (move_cond_jump): Remove assert, check that
8609         the several blocks case can only happen with mutually exclusive
8610         insns instead.  Rewrite the movement code to support moving through
8611         several basic blocks.
8612
8613 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
8614
8615         * config/i386/i386.md (iptrsize): New mode attribute.
8616         (tp_seg): Ditto.
8617         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
8618         mode iterator.
8619         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
8620         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
8621         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
8622         (stack_tls_protect_set_<mode>): Ditto from
8623         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
8624         of thread base pointer load.
8625         (stack_tls_protect_test_<mode>): Ditto from
8626         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
8627         of thread base pointer load.
8628         (stack_protect_set): Rewrite using indirect functions.
8629         (stack_protect_test): Ditto.
8630         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
8631         (ix86_print_operand): Handle '@'.
8632
8633 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
8634
8635         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
8636         MINUS_EXPR.
8637
8638 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
8639
8640         * doc/invoke.texi: Document -Wdouble-promotion.
8641         * c-typeck.c (convert_arguments): Check for implicit conversions
8642         from float to double.
8643         (do_warn_double_promotion): New function.
8644         (build_conditional_expr): Use it.
8645         (build_binary_op): Likewise.
8646
8647 2010-09-05  Richard Guenther  <rguenther@suse.de>
8648
8649         PR tree-optimization/45535
8650         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
8651         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
8652         dereferencing it.
8653         (indirect_refs_may_alias_p): Likewise.
8654
8655 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
8656
8657         * config/sh/sh.c (sh_option_override): Make static.
8658         Adjust comments.  Declare.
8659         (sh_function_value_regno_p): Likewise.
8660         (sh_register_move_cost): Modify the arguments, make static.
8661         Adjust comments.  Declare.
8662         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
8663         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8664         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
8665         REGISTER_MOVE_COST): Delete.
8666         * config/sh/sh-protos.h (sh_override_options): Delete.
8667         (sh_register_move_cost): Delete.
8668         (sh_function_value_regno_p): Delete.
8669
8670 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
8671
8672         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
8673         m32r_function_value_regno_p): New functions.
8674         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8675         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
8676         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
8677         FUNCTION_VALUE_REGNO_P): Remove.
8678
8679 2010-09-04  Jan Hubicka  <jh@suse.cz>
8680
8681         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
8682         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
8683         fold_read_from_constant_string.
8684
8685         * gimple.h (canonicalize_constructor_val): Declare.
8686         * gimple-fold.c (canonicalize_constructor_val): New function.
8687         (get_symbol_constant_value):Use it.
8688         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8689
8690 2010-09-04  Jan Hubicka  <jh@suse.cz>
8691
8692         * tree-switch-conversion.c (build_one_array): Set constructor to be
8693         static.
8694         * varpool.c (varpool_finalize_decl): Compute const_value_known.
8695
8696 2010-09-04  Richard Guenther  <rguenther@suse.de>
8697
8698         PR bootstrap/45519
8699         * tree-flow.h (force_gimple_operand_1): Declare.
8700         (force_gimple_operand_gsi_1): Likewise.
8701         * gimplify.c (force_gimple_operand_1): New worker taking a
8702         gimple predicate for ...
8703         (force_gimple_operand): ... which now wraps it.
8704         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
8705         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
8706         last change.
8707         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
8708         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
8709         (create_mem_ref): Likewise.
8710
8711 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
8712
8713         * config/i386/predicates.md (sse_reg_operand): New predicate.
8714         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
8715         predicate for operand 1.
8716         (XFmode push splitter): Use fp_register_operand predicate
8717         for operand 1.
8718         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
8719         (SF-DF float_extend push splitter): Add reload_completed insn
8720         predicate.
8721         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
8722         MODEF mode macro.  Add reload_completed insn predicate.
8723
8724 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
8725
8726         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
8727         (struct df_extract_ref): Remove.
8728         (union df_ref_d): Remove extract_ref member.
8729         (df_ref_create): Remove last three arguments.
8730         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
8731         * df-scan.c (df_ref_record): Remove last three arguments, do not
8732         pass them to df_ref_create_structure.
8733         (df_uses_record): Remove first and last three arguments.  Replace
8734         first argument with DF_REF_REGULAR, adjust calls to remove the
8735         width, offset and mode.  Always call recursively on the second
8736         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
8737         (df_ref_create_structure): Remove first argument.
8738         (struct df_scan_problem_data): Remove ref_extract_pool.
8739         (df_scan_free_internal): Do not free it.
8740         (df_scan_alloc): Do not allocate it.
8741         (df_ref_create): Remove last three arguments, do not pass them to
8742         df_ref_create_structure.
8743         (df_free_ref): Remove DF_REF_EXTRACT case.
8744         (df_notes_rescan): Adjust call to df_uses_record.
8745         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
8746         Remove DF_REF_EXTRACT case.
8747         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
8748         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
8749         and SUBREG definitions.
8750         (df_get_conditional_uses): Remove references to width/offset/mode,
8751         adjust call to df_ref_create_structure.
8752         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8753         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
8754         calls to df_uses_record and df_ref_record.
8755         * fwprop.c (update_df): Remove references to width/offset/mode,
8756         adjust call to df_ref_create.
8757
8758 2010-09-03  Jan Hubicka  <jh@suse.cz>
8759
8760         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
8761         (build_cdtor_fns): Update use of build_cdtor.
8762
8763 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
8764
8765         * doc/options.texi (SeparateAlias): Document.
8766         * opt-functions.awk (switch_flags): Handle SeparateAlias.
8767         * opth-gen.awk: Generate enumeration names for options marked
8768         SeparateAlias, but not for those marked Ignore.
8769         * opts-common.c (generate_canonical_option): Don't output separate
8770         argument for options marked CL_SEPARATE_ALIAS.
8771         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
8772         * opts.h (CL_SEPARATE_ALIAS): New.
8773         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8774         CL_COMMON): Adjust definitions.
8775         * config/i386/darwin.opt, config/mips/sde.opt: New.
8776         * common.opt (fdump-final-insns): New.
8777         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8778         i386/darwin.opt.
8779         (mips*-sde-elf*): Add mips/sde.opt.
8780         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
8781         -mno-data-in-code and -mcode-xonly here.
8782         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
8783         * gcc.c (option_map): Add "j" to --dump entry.
8784         (translate_options): Don't translate -d to -foutput-class-dir= here.
8785
8786 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
8787
8788         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
8789         DR_IS_WRITE.
8790         (compute_all_dependences): Same.
8791         (create_rdg_edge_for_ddr): Same.
8792         * tree-data-ref.h (DR_IS_WRITE): New.
8793         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
8794         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
8795         (write_memrefs_written_at_least_once): Same.
8796         * tree-predcom.c (suitable_component_p): Same.
8797         (determine_roots_comp): Same.
8798         (execute_load_motion): Same.
8799         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
8800         (vect_enhance_data_refs_alignment): Same.
8801         (vect_analyze_group_access): Same.
8802
8803 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
8804
8805         PR testsuite/42843
8806         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
8807         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
8808
8809 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
8810
8811         * dwarf2out.c (file scope): Remove #if0'd code.
8812         (gen_subprogram_die): Same.
8813
8814 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
8815
8816         PR middle-end/45484
8817         * dwarf2out.c (flush_queued_reg_saves): Rename to...
8818         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
8819         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
8820         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
8821         * config/i386/i386.c (output_set_got): Call it.
8822
8823 2010-09-03  Michael Matz  <matz@suse.de>
8824
8825         PR middle-end/45415
8826         * tree-sra.c (sra_modify_assign): If we modify the statement,
8827         say so.
8828
8829         * tree-ssa.c (verify_ssa): Check number of operands and links
8830         per statement to agree.
8831
8832 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
8833             Iain Sandoe  <iains@gcc.gnu.org>
8834
8835         PR target/45476
8836         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
8837         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
8838         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8839
8840 2010-09-03  Richard Guenther  <rguenther@suse.de>
8841
8842         * lto-streamer-out.c (output_function): Output function
8843         start and end loci.
8844         * lto-streamer-in.c (input_function): Input function start
8845         and end loci.
8846
8847 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8848
8849         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
8850         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
8851         * configure: Regenerate.
8852         * aclocal.m4: Regenerate.
8853
8854 2010-09-03  Jan Hubicka  <jh@suse.cz>
8855
8856         PR lto/44812
8857         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
8858         on functions/variables in other partition.
8859
8860 2010-09-03  Jan Hubicka  <jh@suse.cz>
8861
8862         * cgraph.h (struct varpool_node): Add const_value_known.
8863         (varpool_decide_const_value_known): Declare.
8864         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
8865         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
8866         (input_varpool_node): Restore const_value_known.
8867         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
8868         initializer folding.
8869         * ipa.c (ipa_discover_readonly_nonaddressable_var,
8870         function_and_variable_visibility): Compute const_value_known.
8871         * gimple-fold.c (get_symbol_constant_value): Use varpool for
8872         initializer folding.
8873         * varpool.c (varpool_decide_const_value_known): New function.
8874
8875 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
8876
8877         * config/i386/i386.md: Remove empty preparation statements
8878         from splitters.
8879
8880 2010-09-03  Jan Hubicka  <jh@suse.cz>
8881
8882         * passes.c (rest_of_decl_compilation): Do not add local vars into
8883         varpool.
8884         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
8885         static or extern vars are in varpool.
8886         (varpool_finalize_decl): Sanity check that only static vars are
8887         finalized.
8888
8889 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
8890
8891         PR debug/45500
8892         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
8893         not just generic vectors with BLKmode.
8894
8895 2010-09-03  Richard Guenther  <rguenther@suse.de>
8896
8897         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
8898         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
8899         * tree.h (TMR_SYMBOL): Remove.
8900         (TMR_BASE, TMR_OFFSET): Adjust.
8901         (TMR_INDEX2): New.
8902         * alias.c (ao_ref_from_mem): Use TMR_BASE.
8903         * builtins.c (get_object_alignment): Merge TMR_BASE and
8904         TMR_SYMBOL handling.
8905         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
8906         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
8907         handling.  Also allow TARGET_MEM_REF as base address.
8908         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
8909         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
8910         base.  Gimplify TMR_INDEX2.
8911         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
8912         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8913         (get_addr_base_and_unit_offset): Likewise.
8914         * tree-eh.c (tree_could_trap_p): Likewise.
8915         * tree-pretty-print.c (dump_generic_node): Likewise.
8916         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
8917         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
8918         base to index2.
8919         (get_address_description): Reconstruct addres description
8920         from merged TMR_BASE and TMR_INDEX2.
8921         (maybe_fold_tmr): Fold propagated addresses.
8922         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
8923         MEM_REF and TARGET_MEM_REF paths.
8924         (indirect_refs_may_alias_p): Likewise.
8925         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
8926         instead of TMR_SYMBOL.
8927         * tree-ssa-operands.c (get_tmr_operands): Simplify.
8928         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
8929         according to changes ...
8930         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
8931         Split TARGET_MEM_REF into two fields plus the base.
8932         * tree.c (mem_ref_offset): Simplify.
8933         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
8934         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
8935         Strip NOPs when folding MEM_REF addresses.
8936         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
8937         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
8938         (fold_gimple_assign): ... not here.
8939
8940 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
8941
8942         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
8943         * config/mips/mips.c (mips_shift_truncation_mask): New function.
8944         (TARGET_SHIFT_TRUNCATION_MASK): Define.
8945
8946 2010-09-02  Richard Henderson  <rth@redhat.com>
8947
8948         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
8949         instead of readelf in the test.
8950         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
8951         in the .debug_frame section for coff targets.
8952         * configure: Rebuild.
8953
8954 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
8955
8956         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
8957         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
8958         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8959         (m32c_class_likely_spilled_p): Make static. Change argument type to
8960         reg_class_t. Change result type to bool.
8961
8962 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8963
8964         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
8965         to convert (double)(long) into a single FRIZ instruction or not
8966         when -ffast-math is used.
8967
8968         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
8969         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
8970         or FRIZ instruction if -ffast-math.
8971         * config/rs6000/rs6000.md (friz): Ditto.
8972
8973         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
8974
8975 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
8976
8977         * opth-gen.awk (quote, comma): Remove unused variables.
8978
8979 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
8980
8981         * arm.c (arm_override_options): Correct fall-back code to use
8982         SUBTARGET_CPU_DEFAULT.
8983
8984 2010-09-02  Julian Brown  <julian@codesourcery.com>
8985
8986         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
8987         unspecs.
8988         (vcond<mode>, vcondu<mode>): New expanders.
8989         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
8990         comparisons with zero.
8991         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
8992         * config/arm/constraints.md (Dz): New constraint.
8993
8994 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
8995
8996         * target.def (class_likely_spilled_p): New hook.
8997         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
8998         * doc/tm.texi: Regenerate.
8999         * targhooks.c (default_class_likely_spilled_p): New function.
9000         * targhooks.h (default_class_likely_spilled_p): Declare.
9001         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
9002         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
9003         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
9004         Use fixed_reg_set instead of fixed_regs.
9005         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9006         * calls.c (avoid_likely_spilled_reg): Ditto.
9007         * ira-conflicts.c (ira_build_conflicts): Ditto.
9008         * ira.c (update_equiv_regs): Ditto.
9009         * mode-switching.c (create_pre_exit): Ditto.
9010         * regmove.c (find_matches): Ditto.
9011         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9012         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
9013         (small_register_class_p): New inline function.
9014         (push_secondary_reload, find_reusable_reload, find_reloads): Use
9015         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
9016
9017         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
9018         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
9019         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9020
9021 2010-09-02  Richard Guenther  <rguenther@suse.de>
9022
9023         PR tree-optimization/44937
9024         PR tree-optimization/45412
9025         * ipa-split.c (split_function): Properly remove PHI nodes.
9026
9027 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9028
9029         * opts.h (struct cl_option): Add warn_message field.
9030         (struct cl_decoded_option): Add warn_message field.
9031         * doc/options.texi (Ignore, Warn): Document.
9032         * opt-functions.awk (needs_state_p): Don't consider aliases or
9033         ignored options to need state saved.
9034         * optc-gen.awk: Handle Warn and Ignore.
9035         * opth-gen.awk: Output OPT_SPECIAL_ignore.
9036         * opts-common.c (decode_cmdline_option): Set warn_message field.
9037         Handle ignored options.
9038         (decode_cmdline_options_to_array, generate_option,
9039         generate_option_input_file): Set warn_message field.
9040         (read_cmdline_option): Generate warnings from warn_message field.
9041         Handle ignored options.
9042         * common.opt (Wunreachable-code, fargument-alias,
9043         fargument-noalias, fargument-noalias-global,
9044         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
9045         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
9046         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
9047         ftree-salias): Mark Ignore.
9048         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
9049         -mintel-syntax and -mno-intel-syntax here.
9050         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
9051         using Warn.
9052         * opts.c (common_handle_option): Don't handle options marked as
9053         ignored.
9054         (enable_warning_as_error): Handle ignored options.
9055
9056 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9057
9058         PR driver/44076
9059         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
9060         alias_target fields.
9061         * opt-functions.awk (opt_sanitized_name): Don't handle
9062         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
9063         * optc-gen.awk: Generate alias fields.
9064         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
9065         Don't generate such constants for aliases.
9066         * opts-common.c (generate_canonical_option): New.
9067         (decode_cmdline_option): Handle aliases.  Use
9068         generate_canonical_option for known options instead of copying the
9069         input option text.
9070         * doc/options.texi (Alias): Document.
9071         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
9072         fstack-check, specs): Mark as aliases.
9073         * gcc.c (driver_handle_option): Canonicalize -L options to joined
9074         arguments.
9075         (driver_handle_option): Don't handle OPT_specs.
9076         * opts.c (common_handle_option): Don't handle options marked as
9077         aliases.
9078         (enable_warning_as_error): Handle aliases.
9079         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
9080         OPT_Wlarger_than_eq.
9081         * tree-optimize.c (tree_rest_of_compilation): Use
9082         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
9083
9084 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
9085
9086         * config/i386/i386.md (nonmemory_operand): New mode attribute.
9087         (push memory peephole2): Macroize peepholes using SWI mode iterator.
9088         (move immediate to memory peephole2): Macroize peepholes using
9089         SWI124 mode iterator.
9090         (non-pairable NOT peephole2): Macroize peepholes using SWI124
9091         mode iterator.
9092         (simple lea add peephole2): Macroize peepholes using SWI48
9093         mode iterator.
9094         (simple lea mult peephole2): Ditto.
9095         (imul by 3,5,9 to lea peephole2): Ditto.
9096         (mov $-1, reg peephole2): Macroize peepholes using SWI248
9097         mode iterator.
9098         (imul $32bit_imm,mem,reg peephole2): Ditto.
9099         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
9100
9101 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
9102
9103         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
9104
9105 2010-09-02  Olivier Hainque  <hainque@adacore.com>
9106
9107         PR middle-end/44763
9108         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
9109         (allocno_priority_compare_func): Use it instead of a straight
9110         difference computation over priorities.
9111
9112 2010-09-02  Andi Kleen  <ak@linux.intel.com>
9113
9114         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
9115
9116 2010-09-02  Ira Rosen  <irar@il.ibm.com>
9117
9118         * tree-vectorizer.h (get_later_stmt): New function.
9119         (vect_analyze_data_ref_dependences): Add argument.
9120         * tree-vect-loop.c (vect_analyze_loop): Update call to
9121         vect_analyze_data_ref_dependences.
9122         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
9123         New function.
9124         (vect_analyze_data_ref_dependence): Add argument for basic block
9125         dependencies. Check dependencies in basic block vectorization.
9126         (vect_analyze_data_ref_dependences): Add argument and update call to
9127         vect_analyze_data_ref_dependences.
9128         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
9129         (vect_bb_vectorizable_with_dependencies): New.
9130         (vect_slp_analyze_bb): Check dependencies in basic block.
9131         (vect_schedule_slp_instance): Insert stores before the last store in
9132         SLP instance.
9133
9134 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
9135
9136         PR target/45476
9137         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
9138         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9139
9140 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
9141
9142         PR middle-end/45458
9143         * bb-reorder.c (add_labels_and_missing_jumps): Treat
9144         bbs ending with throwing insns like blocks ending with a call.
9145         (fix_up_fall_thru_edges): Likewise.
9146
9147 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
9148
9149         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
9150         (m32c_function_arg_advance): Delete.
9151         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9152         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
9153         comments.  Take a const_tree and a bool.  Declare.
9154         (m32c_function_arg_advance): Likewise.
9155         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9156
9157 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9158
9159         PR target/45476
9160         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
9161         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
9162         * config/i386/mingw32.h: ... here.
9163
9164 2010-09-01  Andi Kleen  <ak@linux.intel.com>
9165
9166         PR lto/45475
9167         * lto-streamer-in.c (lto_input_ts_target_option): Add.
9168         (lto_input_tree_pointers): Call lto_input_ts_target_option.
9169         * lto-streamer-out (lto_output_ts_target_option): Add.
9170         (lto_output_tree_pointers): Call lto_output_ts_target_option.
9171
9172 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
9173
9174         PR/target 45452
9175         * config/i386/cygwin.h: Change order of specified import libraries.
9176         * config/i386/mingw32.h: Likewise.
9177         * config/i386/t-cygwin: Likewise.
9178         * config/i386/t-mingw32: Likewise.
9179         * config/i386/t-mingw-w32: Likewise.
9180         * config/i386/t-mingw-w64: Likewise.
9181
9182 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9183
9184         * config/arm/neon-schedgen.ml (core): New type.
9185         (allCores): List of supported cores.
9186         (availability_table): Add supported cores.
9187         (collate_bypasses): Accept core as a parameter.
9188         (worst_case_latencies_and_bypasses): Accept core as a parameter.
9189         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
9190         and coreStr to get tune attribute and prefix for functional units.
9191         (emit_bypasses): Accept core name and use it.
9192         (calculate_per_core_availability_table): New.
9193         (filter_core): New.
9194         (calculate_core_availability_table): New.
9195         (main): Use calculate_core_availablity_table.
9196         * config/arm/cortex-a8-neon.md: Update copyright year.
9197         Regenerated from ml file and merged in.
9198         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
9199         cortex_a8_neon_mrc.
9200
9201 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
9202
9203         * Makefile.in (tree-switch-conversion.o): Update dependencies.
9204
9205 2010-09-01  Richard Guenther  <rguenther@suse.de>
9206
9207         * alias.c (ao_ref_from_mem): Adjust.
9208         * builtins.c (get_object_alignment): Likewise.
9209         * cfgexpand.c (expand_debug_expr): Likewise.
9210         * gimple.c (get_base_address): Likewise.
9211         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9212         (get_addr_base_and_unit_offset): Likewise.  Fix for
9213         both TMR_SYMBOL and TMR_BASE being set.
9214         * tree-eh.c (tree_could_trap_p): Likewise.
9215         * gimplify.c (gimplify_expr): Do not attempt to gimplify
9216         TMR_SYMBOL.  Always gimplify TMR_BASE.
9217         * tree-cfg.c (verify_types_in_gimple_reference): Verify
9218         TMR_BASE if there is a TMR_SYMBOL.
9219         * tree-pretty-print.c (dump_generic_node): Adjust.
9220         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
9221         (tree_mem_ref_addr): Likewise.
9222         (create_mem_ref_raw): Likewise.
9223         (move_fixed_address_to_symbol): Likewise.
9224         (create_mem_ref): Likewise.
9225         (dump_mem_address): Likewise.
9226         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
9227         Fix for both TMR_SYMBOL and TMR_BASE being set.
9228         (indirect_refs_may_alias_p): Likewise.
9229         * tree-ssa-operands.c (get_tmr_operands): Adjust.
9230         * tree.def (TARGET_MEM_REF): Adjust documentation.
9231
9232 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9233
9234         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
9235         Rename from X86_TUNE_ADD_ESP_4.
9236         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
9237         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
9238         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
9239         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
9240         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
9241         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
9242         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
9243         * config/i386/i386.c (initial_ix86_tune_features)
9244         <X86_TUNE_SINGLE_POP>: Invert members.
9245         <X86_TUNE_DOUBLE_POP>: Ditto.
9246         <X86_TUNE_SINGLE_PUSH>: Ditto.
9247         <X86_TUNE_DOUBLE_PUSH>: Ditto.
9248         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
9249         No longer exported.
9250         (push peephole2 patterns): Macroize peepholes using P mode iterator.
9251         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
9252         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
9253         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
9254
9255 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
9256
9257         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
9258         a volatile LHS if the constructor has only one element.
9259
9260 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
9261
9262         PR bootstrap/45321
9263         * tree.c (stdarg_p): Make fntype parameter const.
9264         * tree.h (stdarg_p): Likewise.
9265         (function_args_iterator): Remove unused fntype field.
9266         (function_args_iter_init): Do not initialize fntype
9267         field.  Make fntype parameter const.
9268
9269 2010-09-01  Richard Guenther  <rguenther@suse.de>
9270
9271         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
9272         estimate.
9273         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
9274         (execute_vrp): Compute number of iteration estimates.
9275         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
9276         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9277         * tree-data-ref.c (estimated_loop_iterations): Adjust.
9278         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9279         Infer loop bounds from undefined behavior based on a new parameter.
9280         (estimate_numbers_of_iterations): Likewise.
9281         (scev_probably_wraps_p): Adjust.
9282         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9283
9284 2010-09-01  Nick Clifton  <nickc@redhat.com>
9285
9286         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
9287         where appropriate.
9288         (xstormy16_legitimate_address_p): Use true and false instead of 1
9289         and 0.
9290         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
9291         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
9292         magic constant 2.
9293         (xstormy16_expand_call): Fix comment at start of function.
9294
9295 2010-09-01  Nick Clifton  <nickc@redhat.com>
9296
9297         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
9298         when pushing accumulator register.
9299         (rx_get_stack_layout): Always save call clobbered registers inside
9300         interrupt handlers.
9301         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
9302
9303 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9304
9305         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
9306         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
9307
9308         * libgcc-std.ver (GCC_4.6.0): Define version.
9309
9310 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
9311
9312         * tree-nested.c (convert_all_function_calls): Iterate until after the
9313         sum of static chains in the nest doesn't change.
9314
9315 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
9316
9317         * config/m32c/m32c.c (classes_intersect): Remove.
9318         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
9319         reg_classes_intersect_p instead of classes_intersect.
9320         (class_can_hold_mode): Change arguments type from enum reg_class to
9321         reg_class_t.  Use reg_class_contents instead of class_contents.
9322         (m32c_register_move_cost): Make static. Change arguments type from
9323         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
9324         classes_intersect. Use reg_class_contents instead of class_contents.
9325         (m32c_memory_move_cost): Make static. Change arguments type from
9326         enum reg_class to reg_class_t.
9327         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9328         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9329         * config/m32c/m32c-protos.h (m32c_register_move_cost,
9330         m32c_memory_move_cost): Remove.
9331
9332 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9333
9334         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
9335         (arm_function_arg): Delete.
9336         (arm_needs_doubleword_align): Take a const_tree.
9337         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9338         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
9339         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
9340         (arm_function_arg): Make static.  Take a const_tree and a bool.
9341         (arm_function_arg_advance): Likewise.
9342         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9343
9344 2010-08-31  Andi Kleen  <ak@linux.intel.com>
9345
9346         * common.opt (fwhopr=): Update for -fwhopr=jobserver
9347         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
9348         * lto-wrapper.c (run_gcc): Add jobserver mode.
9349         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
9350         argument.
9351
9352 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
9353
9354         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
9355         (popsi1): Ditto.
9356         (*popdi1_epilogue): Ditto.
9357         (*popsi1_epilogue): Ditto.
9358         (popsi, popdi peephole2 patterns): Update peepholes for changed
9359         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
9360
9361         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
9362         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
9363
9364         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
9365         (override_options): Do not initialize removed ix86_gen_pop1.
9366         (gen_pop): New static function.
9367         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
9368         (release_scratch_register_on_entry): Ditto.
9369         (ix86_restore_reg_using_pop): Ditto.
9370         (ix86_expand_epilogue): Ditto.
9371
9372 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
9373
9374         PR middle-end/45461
9375         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
9376
9377 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9378
9379         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
9380         semicolons.
9381
9382 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9383
9384         * doc/extend.texi: Fix documentation of the return value of
9385         __builtin_choose_expr.
9386
9387 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9388
9389         * config/v850/v850-protos.h (function_arg): Delete.
9390         * config/v850/v850.h (FUNCTION_ARG): Delete.
9391         (FUNCTION_ARG_ADVANCE): Move code to...
9392         * config/v850/v850.c (v850_function_arg_advance): ...here.
9393         (v850_function_arg): Make static.  Take a const_tree and a bool.
9394         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9395
9396 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9397
9398         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
9399         these...
9400         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9401         ...and these...
9402         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
9403         ..to here..
9404         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9405         ...and here.
9406         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9407
9408 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9409
9410         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
9411         Delete.
9412         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9413         * config/rx/rx.c (rx_function_arg_size): Make static.
9414         (rx_function_arg): Likewise.
9415         (rx_function_arg_advance): New function.
9416         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9417
9418 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
9419
9420         * config/arm/arm.c (arm_override_options): Remove superfluous test.
9421         Fix indentation.
9422
9423 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
9424
9425         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
9426         (dwarf2out_decl) <CONST_DECL>: Likewise.
9427
9428 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
9429
9430         Stack usage support
9431         * common.opt (-fstack-usage): New option.
9432         * doc/invoke.texi (Debugging options): Document it.
9433         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
9434         allocate_dynamic_stack_space.
9435         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
9436         and propagate it to allocate_dynamic_stack_space.
9437         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
9438         * calls.c (initialize_argument_information): Pass TRUE as 4th
9439         argument to allocate_dynamic_stack_space.
9440         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
9441         to 1 when pushing a variable-sized argument onto the stack.  Pass
9442         TRUE as 4th argument to allocate_dynamic_stack_space.
9443         Update current_function_pushed_stack_size.
9444         (emit_library_call_value_1): Likewise.
9445         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
9446         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
9447         attempt to find an upper bound.  Remove redundant code for the
9448         SETJMP_VIA_SAVE_AREA case.
9449         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
9450         * function.h (struct stack_usage): New structure.
9451         (current_function_static_stack_size): New macro.
9452         (current_function_dynamic_stack_size): Likewise.
9453         (current_function_pushed_stack_size): Likewise.
9454         (current_function_dynamic_alloc_count): Likewise.
9455         (current_function_has_unbounded_dynamic_stack_size): Likewise.
9456         (current_function_allocates_dynamic_stack_space): Likewise.
9457         (struct function): Add new field 'su'.
9458         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
9459         add the value of the dynamic offset to the dynamic stack usage.
9460         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
9461         for variable-sized objects.
9462         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
9463         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
9464         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
9465         BUILT_IN_ALLOCA for variable-sized objects.
9466         * output.h (output_stack_usage): Declare.
9467         * toplev.c (stack_usage_file): New file pointer.
9468         (output_stack_usage): New function.
9469         (open_auxiliary_file): Likewise.
9470         (lang_dependent_init): Open file if flag_stack_usage is set.
9471         (finalize): Close file if stack_usage_file is not null.
9472         * tree.h (ALLOCA_FOR_VAR_P): New macro.
9473         * config/alpha/alpha.c (compute_frame_size): New function.
9474         (alpha_expand_prologue): Use it.
9475         (alpha_start_function): Likewise.
9476         (alpha_expand_epilogue): Likewise.  Set stack usage info.
9477         * config/i386/i386.c (ix86_expand_prologue): Likewise.
9478         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9479         * config/mips/mips.c (mips_expand_prologue): Likewise.
9480         * config/pa/pa.c (hppa_expand_prologue): Likewise.
9481         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9482         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9483
9484 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
9485
9486         PR tree-optimization/45427
9487         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
9488         Handle the case that the exit is never taken correctly.
9489         (number_of_iterations_ne): Pass exit_must_be_taken to
9490         number_of_iterations_ne_max.
9491
9492 2010-08-30  Catherine Moore  <clm@codesourcery.com>
9493
9494         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
9495         Infer -mdspr2 for the the 74K.
9496
9497 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
9498
9499         PR debug/45419
9500         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
9501
9502         PR middle-end/45423
9503         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
9504         and TRUTH_{AND,OR,XOR}_EXPR.
9505         * c-parser.c (c_parser_omp_atomic): Handle boolean
9506         {PRE,POST}_{INC,DEC}REMENT.
9507
9508 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
9509
9510         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
9511         (function_arg): Delete.
9512         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9513         (FUNCTION_INCOMING_ARG): Delete.
9514         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
9515         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
9516         and a bool.
9517         (function_arg): Rename to...
9518         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
9519         a bool.
9520         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
9521         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9522         (TARGET_FUNCTION_INCOMING_ARG): Define.
9523
9524 2010-08-30  Richard Guenther  <rguenther@suse.de>
9525
9526         PR tree-optimization/21602
9527         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
9528         using points-to information.
9529
9530 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
9531
9532         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
9533
9534 2010-08-30  Richard Guenther  <rguenther@suse.de>
9535
9536         PR tree-optimization/45449
9537         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
9538         variables.
9539
9540 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
9541
9542         * opts.h (CL_ERR_NEGATIVE): Define.
9543         * opts.c (unknown_option_callback): Don't postpone warnings for
9544         options marked with CL_ERR_NEGATIVE.
9545         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
9546         for negative versions of CL_REJECT_NEGATIVE options.
9547
9548 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
9549
9550         * config/i386/i386.md (zero_extendsidi2_1): Rename from
9551         zero_extendsidi2_32.
9552         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
9553         using SWI12 mode iterator.
9554         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
9555         to define_insn_and_split pattern.
9556         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
9557         using SWI24 mode iterator.
9558         (*zero_extendqi<mode>2_and): Macroize insn from
9559         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
9560         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
9561         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
9562         SWI24 mode iterator.
9563         (*zero_extendqi<mode>2_movzbl): Ditto from
9564         *zero_extendqi{hi,si}2_movzbl.
9565         (extendsidi2_1): Rename from extendsidi2_32.
9566         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
9567         SWI12 mode iterator.
9568
9569 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
9570
9571         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
9572         general purpose registers.
9573         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
9574         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
9575         with general purpose registers and memory operands.  Add associated
9576         CCImode post-reload splitter.
9577         * config/ia64/div.md: Change BImode to CCImode throughout.
9578
9579 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
9580
9581         * config/ia64/ia64.md (cstorebi4): Fix thinko.
9582
9583 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
9584
9585         * config/picochip/picochip.c (reorder_var_tracking_notes): This
9586         function was dropping debug insns which caused PR45299.
9587
9588 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
9589
9590         * config/i386/sse.md (extsuffix): New code attribute.
9591         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
9592         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
9593         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
9594         and sse4_1_zero_extendv4qiv4si2.
9595         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
9596         and sse4_1_zero_extendv2qiv2di2.
9597         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
9598         and sse4_1_zero_extendv4hiv4si2.
9599         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
9600         and sse4_1_zero_extendv2hiv2di2.
9601         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
9602         and sse4_1_zero_extendv2siv2di2
9603
9604         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
9605         using any_extend code iterator.
9606         (*avx_<s>mulv8hi3_highpart): Macroize insn from
9607         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
9608         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
9609
9610         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
9611         gen_sse4_1_sign_extend* functions.
9612         (struct builtin_description bdesc_args): Ditto.
9613
9614 2010-08-27  Xinliang David Li  <davidxl@google.com>
9615
9616         PR/45422
9617         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
9618         (iv_ca_set_no_cp): Update used inv expr count.
9619         (iv_ca_set_cp): Ditto.
9620         (iv_ca_new): Initialize new member.
9621         (iv_ca_free): Free memory.
9622
9623 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
9624
9625         * config/sh/sh-protos.h (sh_function_arg): Delete.
9626         (sh_function_arg_advance): Delete.
9627         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9628         (PASS_IN_REG_P): Eliminate cast.
9629         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
9630         const_tree and a bool.
9631         (sh_function_arg): Likewise.
9632         (sh_output_mi_thunk): Call sh_function_arg_advance) and
9633         sh_function_arg.
9634         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9635
9636 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
9637             Kaz Kojima  <kkojima@gcc.gnu.org>
9638
9639         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
9640         when possible.
9641         (sh_expand_epilogue): Likewise.
9642         * config/sh/sh.md (movml_push_banked): New insn.
9643         (movml_pop_banked): Likewise.
9644
9645 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
9646
9647         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
9648         gen_regexp_oneof, gen_regexp_sequence): Use the string found
9649         in vector element 0 rather than the original string when there's
9650         only one element.
9651         (gen_regexp): Remove extra semicolon.
9652
9653         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
9654         thumb2_movsf_vfp): Set attribute "insn".
9655         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
9656         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
9657         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
9658         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
9659         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
9660         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
9661         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
9662         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
9663         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
9664         if_not_arith, if_arith_not, cond_move_not): Likewise.
9665
9666 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9667
9668         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
9669         New declaration.
9670         (rs6000_allocate_stack_temp): Ditto.
9671         (rs6000_expand_convert_si_to_sfdf): Ditto.
9672
9673         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
9674         line.  Update the options set if power6 or power7 server/embedded
9675         type options are used.  If we give a warning for no vsx under
9676         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
9677         (rs6000_allocate_stack_temp): New function to allocate a stack
9678         tempoary and adjust the address so it meets either REG+OFFSET or
9679         REG+REG addressing requirements.
9680         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
9681         that they can be used with the LFIWAX/LFIWZX instrucitons.
9682         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
9683         converting signed/unsigned SImode to either SFmode/DFmode.
9684
9685         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
9686         whether certain instructions can be generated.
9687         (TARGET_FCTIDZ): Ditto.
9688         (TARGET_STFIWX): Ditto.
9689         (TARGET_LFIWAX): Ditto.
9690         (TARGET_LFIWZX): Ditto.
9691         (TARGET_FCFIDS): Ditto.
9692         (TARGET_FCFIDU): Ditto.
9693         (TARGET_FCFIDUS): Ditto.
9694         (TARGET_FCTIDUZ): Ditto.
9695         (TARGET_FCTIWUZ): Ditto.
9696
9697         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
9698         (UNSPEC_FCTID): Ditto.
9699         (UNSPEC_LFIWAX): Ditto.
9700         (UNSPEC_LFIWZX): Ditto.
9701         (UNSPEC_FCTIWUZ): Ditto.
9702         (rreg): Use correct constraints.
9703         (SI_CONVERT_FP): New mode attribute for floating point conversion
9704         tests.
9705         (E500_CONVERT): Ditto.
9706         (lfiwax): New insns for converting from integer to floating point
9707         utilizing newer instructions.  Attempt to optimize conversions
9708         that come from memory so that we don't load the value into a GPR,
9709         spill it to the stack and reload it into a FPR.
9710         (floatsi<mode>2_lfiwax): Ditto.
9711         (floatsi<mode>2_lfiwax_mem): Ditto.
9712         (floatsi<mode>2_lfiwax_mem2): Ditto.
9713         (lfiwzx): Ditto.
9714         (floatunssi<mode>2_lfiwzx): Ditto.
9715         (floatunssi<mode>2_lfiwzx_mem): Ditto.
9716         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
9717         (floatdidf2_mem): Ditto.
9718         (floatunsdidf2_fcfidu): Ditto.
9719         (floatunsdidf2_mem): Ditto.
9720         (floatunsdisf2): Ditto.
9721         (floatunsdisf2_fcfidus): Ditto.
9722         (floatunsdisf2_mem): Ditto.
9723         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
9724         Use FCFID on 32-bit hosts that support it.
9725         (floatsidf2_internal): Ditto.
9726         (floatunssisf2): Ditto.
9727         (floatunssidf2): Ditto.
9728         (floatunssidf2_internal): Ditto.
9729         (floatsisf2): Ditto.
9730         (floatdidf2): Ditto.
9731         (floatdidf2_fpr): Ditto.
9732         (floatunsdidf2): Ditto.
9733         (floatdisf2): Ditto.
9734         (floatdisf2_fcfids): Ditto.
9735         (floatdisf2_internal1): Ditto.
9736         (fixuns_truncsfsi2): Delete, merge into common pattern for both
9737         SF/DF.  Add power7 support.
9738         (fix_truncsfsi2): Ditto.
9739         (fixuns_truncdfsi2): Ditto.
9740         (fixuns_truncdfdi2): Ditto.
9741         (fix_truncdfsi2): Ditto.
9742         (fix_truncdfsi2_internal): Ditto.
9743         (fix_truncdfsi2_internal_gfxopt): Ditto.
9744         (fix_truncdfsi2_mfpgpr): Ditto.
9745         (fctiwz): Ditto.
9746         (btruncdf2): Ditto.
9747         (btruncdf2_fpr): Ditto.
9748         (btructsf2): Ditto.
9749         (ceildf2): Ditto.
9750         (ceildf2_fpr): Ditto.
9751         (ceilsf2): Ditto.
9752         (floordf2): Ditto.
9753         (floordf2_fpr): Ditto.
9754         (floorsf2): Ditto.
9755         (rounddf2): Ditto.
9756         (rounddf2_fpr): Ditto.
9757         (roundsf2): Ditto.
9758         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
9759         (fix_trunc<mode>di2): Ditto.
9760         (fixuns_trunc<mode>si2): Ditto.
9761         (fixuns_trunc<mode>di2): Ditto.
9762         (fctiwz_<mode>): Ditto.
9763         (btrunc<mode>2): Ditto.
9764         (btrunc<mode>2_fpr): Ditto.
9765         (ceil<mode>2): Ditto.
9766         (ceil<mode>2_fpr): Ditto.
9767         (floor<mode>2): Ditto.
9768         (float<mode>2_fpr): Ditto.
9769         (round<mode>2): Ditto.
9770         (round<mode>2_fpr): Ditto.
9771         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
9772         (fixuns_trunc<mode>si2_stfiwx): Ditto.
9773         (fix_truncdfsi2_internal): Ditto.
9774         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
9775         converted value on stack, loaded into GPR, and then stored into
9776         the final destination.
9777         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
9778         FCTIDZ.
9779         (lrint<mode>di2): New insn, provide the lrint builtin functions.
9780         (ftruncdf2): Delete, unused.
9781         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
9782
9783         * config/rs6000/vsx.md (toplevel): Update copyright year.
9784         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
9785         (VSr3): Ditto.
9786
9787 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
9788             Jeremie Salvucci  <jeremie.salvucci@free.fr>
9789
9790         * gengtype.c (output_type_enum): Test the right union member.
9791
9792 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
9793
9794         PR target/41484
9795         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
9796         operands for operand 1.
9797         (sse4_1_extendv4qiv4si2): Ditto.
9798         (sse4_1_extendv2qiv2di2): Ditto.
9799         (sse4_1_extendv4hiv4si2): Ditto.
9800         (sse4_1_extendv2hiv2di2): Ditto.
9801         (sse4_1_extendv2siv2di2): Ditto.
9802         (sse4_1_zero_extendv8qiv8hi2): Ditto.
9803         (sse4_1_zero_extendv4qiv4si2): Ditto.
9804         (sse4_1_zero_extendv2qiv2di2): Ditto.
9805         (sse4_1_zero_extendv4hiv4si2): Ditto.
9806         (sse4_1_zero_extendv2hiv2di2): Ditto.
9807         (sse4_1_zero_extendv2siv2di2): Ditto.
9808         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
9809         (*sse4_1_extendv4qiv4si2): Ditto.
9810         (*sse4_1_extendv2qiv2di2): Ditto.
9811         (*sse4_1_extendv4hiv4si2): Ditto.
9812         (*sse4_1_extendv2hiv2di2): Ditto.
9813         (*sse4_1_extendv2siv2di2): Ditto.
9814         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
9815         (*sse4_1_zero_extendv4qiv4si2): Ditto.
9816         (*sse4_1_zero_extendv2qiv2di2): Ditto.
9817         (*sse4_1_zero_extendv4hiv4si2): Ditto.
9818         (*sse4_1_zero_extendv2hiv2di2): Ditto.
9819         (*sse4_1_zero_extendv2siv2di2): Ditto.
9820
9821 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
9822
9823         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
9824         (mips_function_arg): Delete.
9825         (mips_function_arg_boundary): Take a const_tree.
9826         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
9827         (mips_arg_info): Likewise.
9828         (mips_setup_incoming_varargs): Call mips_function_arg_advance
9829         instead of FUNCTION_ARG_ADVANCE.
9830         (mips_function_arg_advance): Adjust prototype.  Make static.
9831         (mips_function_arg): Likewise.
9832         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9833         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9834
9835 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
9836
9837         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9838         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
9839         (function_arg): Delete.
9840         (function_arg_boundary): Take a const_tree.
9841         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
9842         (rs6000_spe_function_arg): Likewise.
9843         (rs6000_parm_start): Likewise.
9844         (rs6000_arg_size): Likewise.
9845         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
9846         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
9847         (rs6000_mixed_function_arg): Likewise.
9848         (function_arg): Rename to...
9849         (rs6000_function_arg): ...this.
9850         (function_arg_advance): Rename to...
9851         (rs6000_function_arg_advance_1): ...this
9852         (rs6000_function_arg_advance): New function.  Call it.
9853         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
9854         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
9855         (rs6000_function_value): Likewise.
9856         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9857
9858 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9859
9860         * config/arm/arm.md (enabled): Test the value of arch_enabled
9861         rather than just using it.
9862
9863 2010-08-27  Olivier Hainque  <hainque@adacore.com>
9864             Eric Botcazou  <ebotcazou@adacore.com>
9865
9866         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
9867         cover all the possible offsets from this base.
9868         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
9869
9870 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
9871
9872         PR tree-optimization/44485
9873         * calls.c (flags_from_decl_or_type): For const or pure
9874         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
9875         together with ECF_CONST resp. ECF_PURE.
9876         * builtins.c (expand_builtin): Use flags_from_decl_or_type
9877         instead of querying flags directly.
9878         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
9879         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
9880
9881 2010-08-26  Richard Guenther  <rguenther@suse.de>
9882
9883         PR tree-optimization/45255
9884         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
9885         and externals are also invariant.
9886
9887 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
9888
9889         PR rtl-optimization/44858
9890         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
9891         newi2pat, make sure they don't affect newpat.
9892
9893         PR rtl-optimization/45400
9894         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
9895         SUBREG_REG if both modes are of MODE_INT class.
9896
9897 2010-08-25  Julian Brown  <julian@codesourcery.com>
9898
9899         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
9900         * config/arm/arm.md (generic_sched): No for Cortex-A5.
9901         (generic_vfp): Likewise.
9902         (cortex-a5.md): Include.
9903         * config/arm/cortex-a5.md: New.
9904
9905 2010-08-25  Richard Guenther  <rguenther@suse.de>
9906
9907         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
9908         * gimple.c (gimple_get_alias_set): Remove special handling
9909         for pointers.
9910
9911 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
9912
9913         PR middle-end/45355
9914         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
9915         dead_or_set_p when computing i0_feeds_i2_n.
9916
9917         * combine.c (find_split_point): Undo canonicalization of multiply-add
9918         to (minus x (mult)) when it seems likely that this will increase the
9919         chances of a split.
9920
9921 2010-08-25  Richard Guenther  <rguenther@suse.de>
9922
9923         PR lto/44562
9924         * lto-streamer.c (lto_record_common_node): Do not mess with
9925         TYPE_CANONICAL when not in lto.
9926         * gimple.c (gimple_register_type): Likewise.
9927
9928 2010-08-25  Richard Guenther  <rguenther@suse.de>
9929
9930         PR tree-optimization/45316
9931         * tree-ssa-pre.c (eliminate): Properly clean EH info.
9932
9933 2010-08-25  Richard Guenther  <rguenther@suse.de>
9934
9935         PR tree-optimization/45393
9936         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
9937         and clean EH info.  Avoid SSA update.
9938         (execute_cse_sincos): Cleanup the CFG if it has changed.
9939
9940 2010-08-25  Richard Guenther  <rguenther@suse.de>
9941
9942         PR middle-end/45379
9943         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
9944         TARGET_MEM_REF in alignment computation.
9945
9946 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
9947
9948         PR tree-optimization/45059
9949         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
9950         type conversions from newop{1,2}.  Assert t is a comparison and
9951         newop{1,2} after the stripping are gimple vals.
9952
9953 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
9954
9955         * config/arm/iterators.md (VU, SE, V_widen_l): New.
9956         (V_unpack, US): New.
9957         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
9958         (vec_unpack<US>_lo_<mode>): Likewise.
9959         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
9960         (neon_vec_unpack<US>_lo_<mode>): Likewise.
9961         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
9962         (vec_widen_<US>mult_hi_<mode>): Likewise.
9963         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
9964         (neon_vec_<US>mult_hi_<mode>"): Likewise.
9965         (neon_unpack<US>_<mode>): Widening move intermediate step for
9966         vectorizing without -mvectorize-with-neon-quad.
9967         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
9968         for vectorizing without -mvectorize-with-neon-quad.
9969         * config/arm/predicates.md (vect_par_constant_high): Check for
9970         high-half lanes of a vector.
9971         (vect_par_constant_low): Check for low-half lanes of a vector.
9972
9973 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
9974
9975         * tree-if-conv.c (struct ifc_dr): New.
9976         (IFC_DR): New.
9977         (DR_WRITTEN_AT_LEAST_ONCE): New.
9978         (DR_RW_UNCONDITIONALLY): New.
9979         (memref_read_or_written_unconditionally): Use the cached values
9980         when possible.
9981         (write_memref_written_at_least_once): Same.
9982         (if_convertible_loop_p): Initialize and free DR->aux fields.
9983
9984 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
9985
9986         * gimple.c (gimple_could_trap_p_1): Not static anymore.
9987         Pass an extra bool parameter include_mem.
9988         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
9989         (gimple_assign_rhs_could_trap_p): Same.
9990         * gimple.h (gimple_could_trap_p_1): Declared.
9991         * tree-data-ref.h (same_data_refs_base_objects): New.
9992         (same_data_refs): New.
9993         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
9994         (write_memrefs_written_at_least_once): New.
9995         (ifcvt_memrefs_wont_trap): New.
9996         (operations_could_trap): New.
9997         (ifcvt_could_trap_p): New.
9998         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
9999         Gets a vector of data refs.
10000         (if_convertible_stmt_p): Same.
10001         (if_convertible_loop_p_1): New.
10002         (if_convertible_loop_p): Call if_convertible_loop_p_1.
10003
10004 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10005
10006         * common.opt (ftree-loop-if-convert-stores): New flag.
10007         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
10008         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
10009         the created statement before GSI.
10010         (if_convertible_phi_p): Allow virtual phi nodes when
10011         flag_loop_if_convert_stores is set.
10012         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
10013         Do not handle types that do not match is_gimple_reg_type.
10014         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
10015         when flag_loop_if_convert_stores is set, as LHS can contain
10016         memory refs.
10017         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
10018         to if_convertible_gimple_assign_stmt_p.
10019         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
10020         (replace_phi_with_cond_gimple_assign_stmt): Renamed
10021         predicate_scalar_phi.  Do not handle virtual phi nodes.
10022         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
10023         Call predicate_scalar_phi.
10024         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
10025         just after the labels for flag_loop_if_convert_stores, otherwise
10026         insert the predicate in the end of the BB.
10027         (predicate_mem_writes): New.
10028         (combine_blocks): Call predicate_all_scalar_phis.  When
10029         flag_loop_if_convert_stores is set, call predicate_mem_writes.
10030         (tree_if_conversion): Call mark_sym_for_renaming when
10031         flag_loop_if_convert_stores is set.
10032         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
10033         flag_loop_if_convert_stores is set.
10034
10035 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
10036
10037         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
10038         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
10039         (pa_function_value): Make static.
10040         (override_options): Rename to...
10041         (pa_option_override): ...this. Make static.
10042         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
10043         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
10044         TARGET_OPTION_OVERRIDE): Define.
10045         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
10046         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
10047         Remove.
10048         * config/pa/pa-protos.h (override_options): Remove.
10049
10050 2010-08-24  Richard Guenther  <rguenther@suse.de>
10051
10052         PR middle-end/45379
10053         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
10054         if addr->index is NULL or zero.
10055         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
10056         TARGET_MEM_REF more properly.
10057         (indirect_ref_may_alias_decl_p): Likewise.
10058         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
10059         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
10060
10061 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
10062
10063         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
10064         (m32c_override_options): Rename to...
10065         (m32c_option_override): ...this. Make static.
10066         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
10067         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
10068         Remove.
10069         * config/m32c/m32c-protos.h (m32c_override_options,
10070         m32c_function_value_regno_p): Remove.
10071
10072 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
10073
10074         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
10075         Fix a typo in a previous commit.
10076
10077 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
10078
10079         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
10080         Pre-initialize innerloop_iters to one.
10081
10082 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
10083
10084         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
10085         existing static function global.
10086
10087         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
10088         is changed to global.
10089
10090         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
10091         may_be_nonaddressable_p on base, and don't collect this reference
10092         if the address of the base could not be taken.
10093
10094 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10095
10096         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
10097         enable the compiler to autovectorize mathmetical functions for
10098         power7 using the Mathematical Acceleration Subsystem library.
10099
10100         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
10101         handle which vector math library we have.
10102         (rs6000_override_options): Add -mveclibabi=mass support.
10103         (rs6000_builtin_vectorized_libmass): New function to handle auto
10104         vectorizing math functions that are in the MASS library.
10105         (rs6000_builtin_vectorized_function): Call it.
10106
10107         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10108         -mveclibabi=mass.
10109
10110 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10111
10112         PR boehm-gc/34544
10113         * gthr-posix.h (__gthread_active_init): Delete.
10114         (__gthread_active_p): Do activity check here.
10115         Don't include errno.h on hppa-hpux.  Update comment.
10116         * gthr-posix95.h (__gthread_active_init): Delete.
10117         (__gthread_active_p): Do activity check here.
10118         Don't include errno.h on hppa-hpux.  Update comment.
10119         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
10120         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
10121         add -lpthread when -mt or -pthread is specified.
10122         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
10123         (LINK_GCC_C_SEQUENCE_SPEC): Define.
10124         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
10125         (stublib.c, pthread_default_stacksize_np-stub.o,
10126         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
10127         $(T)libgcc_stub.a): Add methods.
10128         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
10129         (stublib.c, pthread_default_stacksize_np-stub.o,
10130         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
10131         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10132         pthread_mutex_unlock): New stubs.
10133
10134 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
10135
10136         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
10137         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
10138         options.
10139         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
10140         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
10141         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
10142         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
10143         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
10144         "-l".
10145         * cppspec.c: Include opts.h.
10146         (lang_specific_driver): Use cl_decoded_option structures.
10147         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
10148         * doc/tm.texi: Regenerate.
10149         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
10150         (driver_handle_option): Allow driver options needing no special
10151         processing.
10152         (process_command): Decode options before call to
10153         lang_specific_driver.  Pass decoded options to
10154         lang_specific_driver.
10155         * gcc.h (lang_specific_driver): Update prototype.
10156         * gccspec.c: Include opts.h.
10157         (lang_specific_driver): Use cl_decoded_option structures.
10158         * opts-common.c (option_ok_for_language, generate_option,
10159         generate_option_input_file): New.
10160         (decode_cmdline_option): Use option_ok_for_language.
10161         (decode_cmdline_options_to_array): Use generate_option_input_file.
10162         (handle_generated_option): Use generate_option.
10163         * opts.h (generate_option, generate_option_input_file): Declare.
10164
10165 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
10166
10167         * config/mips/mips.c (mips_override_options): Rename to...
10168         (mips_option_override): ...this. Make static.
10169         (TARGET_OPTION_OVERRIDE): Define.
10170         (mips_in_small_data_p): Update comment.
10171         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
10172         (FIXED_REGISTERS): Update comment.
10173         * config/mips/mips-protos.h (mips_override_options): Remove.
10174
10175 2010-08-21  Olivier Hainque  <hainque@adacore.com>
10176
10177         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
10178
10179 2010-08-21  Olivier Hainque  <hainque@adacore.com>
10180
10181         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
10182         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
10183
10184 2010-08-20  Jan Hubicka  <jh@suse.cz>
10185
10186         * tree-pass.h (pass_ipa_cdtor_merge): New function.
10187         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
10188         heap allocated.
10189         (record_cdtor_fn): Move to ipa.c; do not test for
10190         have_ctors_dtors.
10191         (build_cdtor): Move to ipa.c; add code avoiding construction
10192         when target have ctors/dtors and there is only one ctor/dtor at given
10193         priority.
10194         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
10195         sort; reverse order of constructors.
10196         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
10197         (cgraph_finalize_function): Do not call record_cdtor_fn.
10198         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
10199         (cgraph_build_static_cdtor): Move to ipa.c.
10200         * ipa.c: Include target.h and tree-iterator.h.
10201         (cgraph_build_static_cdtor, static_ctors, static_dtors,
10202         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
10203         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
10204         pass_ipa_cdtor_merge): New.
10205         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
10206         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
10207         bounds access.
10208
10209 2010-08-20  Jan Hubicka  <jh@suse.cz>
10210
10211         PR c++/45307
10212         PR c++/17736
10213         * cgraph.h (cgraph_only_called_directly_p,
10214         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
10215         static cdtors.
10216         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
10217         are not needed.
10218         (cgraph_finalize_function): Static cdtors are reachable.
10219         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
10220
10221 2010-08-20  Jan Hubicka  <jh@suse.cz>
10222
10223         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
10224         flag_wpa.
10225         * lto-streamer-out.c (lto_output): Likewise.
10226         * passes.c (ipa_write_optimization_summaries): Initialize statement
10227         uids.
10228
10229 2010-08-20  Olivier Hainque  <hainque@adacore.com>
10230
10231         * tree.h (alias_diag_flags): New enum.
10232         (alias_pair): Add an 'emitted_diags' field.
10233         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
10234         (assemble_alias): Initialize emitted_diags of new pairs.
10235
10236 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
10237
10238         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10239         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10240         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10241         (STACK_CHECK_PROTECT): Define.
10242         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
10243         (output_probe_stack_range): Likewise.
10244         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
10245         builtin stack checking is enabled.
10246         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
10247         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10248         (probe_stack_range): New insn.
10249
10250 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
10251
10252         PR target/45336
10253         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
10254         short first.
10255
10256         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
10257         char first.
10258
10259 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10260
10261         PR target/45336
10262         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
10263         to cover zero extension into 64-bit register.
10264         (*sse2_pextrw): Likewise.
10265         (*sse4_1_pextrd_zext): New insn.
10266
10267 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
10268
10269         revert r163410, partially revert r163267.
10270         * config/rs6000/darwin.h (LIB_SPEC): Remove.
10271         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
10272         Darwin versions.
10273
10274 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10275
10276         PR middle-end/44974
10277         * builtins.c (expand_builtin): Don't optimize away
10278         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
10279
10280 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
10281
10282         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
10283         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
10284         alternative 1 of operand 2.
10285
10286 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10287             Paolo Bonzini  <bonzini@gnu.org>
10288
10289         * simplify-rtx.c (simplify_unary_operation_1): Optimize
10290         (sign_extend (zero_extend (...)) and
10291         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
10292
10293 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10294
10295         PR rtl-optimization/45353
10296         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
10297         after bb_note is a BARRIER.
10298
10299 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
10300
10301         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
10302         linking libgcc.a.
10303
10304 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10305             Michael Matz  <matz@suse.de>
10306
10307         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
10308
10309 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
10310
10311         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
10312         (ggc_mark_roots): ...here.
10313
10314 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
10315
10316         * vec.h (FOR_EACH_VEC_ELT): Define.
10317         * c-decl.c: Use it.
10318         * cfgloop.c: Likewise.
10319         * cfgloopmanip.c: Likewise.
10320         * cgraph.c: Likewise.
10321         * cgraphunit.c: Likewise.
10322         * combine.c: Likewise.
10323         * config/bfin/bfin.c: Likewise.
10324         * config/mips/mips.c: Likewise.
10325         * config/rs6000/rs6000.c: Likewise.
10326         * dbxout.c: Likewise.
10327         * df-scan.c: Likewise.
10328         * dominance.c: Likewise.
10329         * dse.c: Likewise.
10330         * dwarf2out.c: Likewise.
10331         * except.c: Likewise.
10332         * expr.c: Likewise.
10333         * function.c: Likewise.
10334         * gcse.c: Likewise.
10335         * genattr.c: Likewise.
10336         * ggc-common.c: Likewise.
10337         * gimplify.c: Likewise.
10338         * graphite-blocking.c: Likewise.
10339         * graphite-clast-to-gimple.c: Likewise.
10340         * graphite-dependences.c: Likewise.
10341         * graphite-interchange.c: Likewise.
10342         * graphite-poly.c: Likewise.
10343         * graphite-scop-detection.c: Likewise.
10344         * graphite-sese-to-poly.c: Likewise.
10345         * graphite.c: Likewise.
10346         * haifa-sched.c: Likewise.
10347         * ifcvt.c: Likewise.
10348         * implicit-zee.c: Likewise.
10349         * ipa-prop.c: Likewise.
10350         * ipa-struct-reorg.c: Likewise.
10351         * ipa.c: Likewise.
10352         * ira-build.c: Likewise.
10353         * ira-color.c: Likewise.
10354         * ira-emit.c: Likewise.
10355         * lambda-code.c: Likewise.
10356         * loop-invariant.c: Likewise.
10357         * loop-unroll.c: Likewise.
10358         * lower-subreg.c: Likewise.
10359         * lto-cgraph.c: Likewise.
10360         * lto-opts.c: Likewise.
10361         * lto-streamer-in.c: Likewise.
10362         * lto-streamer-out.c: Likewise.
10363         * lto-streamer.c: Likewise.
10364         * lto-symtab.c: Likewise.
10365         * matrix-reorg.c: Likewise.
10366         * opts.c: Likewise.
10367         * predict.c: Likewise.
10368         * print-tree.c: Likewise.
10369         * sdbout.c: Likewise.
10370         * sel-sched-dump.c: Likewise.
10371         * sel-sched-ir.c: Likewise.
10372         * sel-sched.c: Likewise.
10373         * sese.c: Likewise.
10374         * stor-layout.c: Likewise.
10375         * tree-cfg.c: Likewise.
10376         * tree-cfgcleanup.c: Likewise.
10377         * tree-chrec.c: Likewise.
10378         * tree-data-ref.c: Likewise.
10379         * tree-emutls.c: Likewise.
10380         * tree-inline.c: Likewise.
10381         * tree-into-ssa.c: Likewise.
10382         * tree-loop-distribution.c: Likewise.
10383         * tree-loop-linear.c: Likewise.
10384         * tree-mudflap.c: Likewise.
10385         * tree-outof-ssa.c: Likewise.
10386         * tree-parloops.c: Likewise.
10387         * tree-predcom.c: Likewise.
10388         * tree-pretty-print.c: Likewise.
10389         * tree-scalar-evolution.c: Likewise.
10390         * tree-ssa-live.c: Likewise.
10391         * tree-ssa-loop-im.c: Likewise.
10392         * tree-ssa-loop-ivcanon.c: Likewise.
10393         * tree-ssa-loop-ivopts.c: Likewise.
10394         * tree-ssa-loop-manip.c: Likewise.
10395         * tree-ssa-loop-niter.c: Likewise.
10396         * tree-ssa-loop-prefetch.c: Likewise.
10397         * tree-ssa-phiprop.c: Likewise.
10398         * tree-ssa-pre.c: Likewise.
10399         * tree-ssa-reassoc.c: Likewise.
10400         * tree-ssa-sccvn.c: Likewise.
10401         * tree-ssa-structalias.c: Likewise.
10402         * tree-ssa.c: Likewise.
10403         * tree-vect-data-refs.c: Likewise.
10404         * tree-vect-loop-manip.c: Likewise.
10405         * tree-vect-loop.c: Likewise.
10406         * tree-vect-patterns.c: Likewise.
10407         * tree-vect-slp.c: Likewise.
10408         * tree-vect-stmts.c: Likewise.
10409         * tree-vrp.c: Likewise.
10410         * tree.c: Likewise.
10411         * value-prof.c: Likewise.
10412         * var-tracking.c: Likewise.
10413         * varasm.c: Likewise.
10414         * vmsdbgout.c: Likewise.
10415
10416 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
10417             Richard Guenther  <richard.guenther@gmail.com>
10418
10419         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
10420         copy the src value and return a copy.
10421         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
10422         (C++ Volatiles): Adjust to describe C++ semantics only.
10423
10424 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
10425
10426         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
10427         be zero or nonzero.
10428         * doc/tm.texi: Regenerate.
10429         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
10430         * df-scan.c (df_get_exit_block_use_set), reginfo.c
10431         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
10432         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
10433         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
10434         to 1.
10435
10436 2010-08-20  Olivier Hainque  <hainque@adacore.com>
10437
10438         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
10439         an extra nop past a sibling call at the very end.
10440
10441 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
10442
10443         PR bootstrap/45350
10444         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
10445         a comment.
10446
10447 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
10448
10449         * target.def (function_arg, function_incoming_arg): Remove const
10450         qualifier on CUMULATIVE_ARGS parameter.
10451         * targhooks.h (default_function_arg, default_function_incoming_arg):
10452         Likewise.
10453         * targhooks.c (default_function_arg, default_function_incoming_arg):
10454         Likewise.
10455         * config/i386/i386.c (ix86_function_arg): Likewise.
10456
10457 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
10458
10459         PR target/45336
10460         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
10461         SIGN_EXTENDs or ZERO_EXTENDs.
10462
10463 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
10464
10465         PR target/42172
10466         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
10467         Take its cost into account if nonnull.
10468         (insn_a_feeds_b): New static function.
10469         (combine_instructions): Look for four-insn combinations.
10470         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
10471         them into account when computing all_adjacent and looking for other
10472         uses.
10473         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
10474         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
10475         (try_combine): New arg I0.  Handle four-insn combinations.
10476         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
10477         like ELIM_I1.
10478
10479 2010-08-19  Jason Merrill  <jason@redhat.com>
10480
10481         PR c++/45307
10482         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
10483         if ctor is empty.
10484         (gimplify_modify_expr_rhs): Adjust.
10485
10486 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
10487
10488         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
10489         bitmap_bit_p.
10490         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
10491         * dominance.c (iterate_fix_dominators): Likewise.
10492         * dse.c (set_usage_bits): Likewise.
10493         (set_position_unneeded, record_store): Likewise.
10494         * gimple-fold.c (get_maxval_strlen): Likewise.
10495         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
10496         * ipa-inline.c (update_caller_keys): Likewise.
10497         * ipa-split.c (verify_non_ssa_vars): Likewise.
10498         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
10499         (close_type_exposed_parameter, close_type_full_escape): Likewise.
10500         (close_addressof_down): Likewise.
10501         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
10502         (setup_allocno_left_conflicts_size): Likewise.
10503         (ira_reassign_conflict_allocnos): Likewise.
10504         (ira_reassign_pseudos): Likewise.
10505         * ira-emit.c (change_loop): Likewise.
10506         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
10507         * lto-streamer-out.c (write_symbol): Likewise.
10508         * predict.c (expr_expected_value_1): Likewise.
10509         * regstat.c (regstat_bb_compute_ri): Likewise.
10510         * sel-sched.c (create_block_for_bookkeeping): Likewise.
10511         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
10512         * stmt.c (expand_case): Likewise.
10513         * tree-eh.c (emit_eh_dispatch): Likewise.
10514         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
10515         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
10516         Likewise.
10517         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
10518         (rdg_build_components): Likewise.
10519         * tree-object-size.c (collect_object_sizes_for): Likewise.
10520         * tree-sra.c (convert_callers): Likewise.
10521         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
10522         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
10523         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
10524
10525 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
10526
10527         * config/i386/i386.md (*lea_1): Use P mode iterator.
10528         (lea add splitter): Also handle DImode operands.
10529         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
10530         predicate.  Do not use ix86_lea_for_add_ok.
10531         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
10532         (lea ashift splitter): Also handle DImode operands.
10533         (DImode lea ashift splitter): Remove splitter.
10534
10535 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
10536
10537         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
10538         ix86_binary_operator_ok.
10539
10540 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
10541
10542         PR rtl-optimization/44691
10543         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
10544         is not a register.
10545
10546 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
10547
10548         PR target/45070
10549         * config/arm/arm.c (arm_output_epilogue): Ensure that return
10550          value of size 1-3 is handled correctly.
10551
10552 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
10553
10554         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
10555         type for the conditional has wide enough range.
10556
10557 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
10558
10559         PR target/45327
10560         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
10561         ix86_binary_operator_ok.
10562
10563 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
10564
10565         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
10566         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
10567         code to output insn mnemonic.  Fix comment.
10568         (*addsi_1_zext): Add r-r-0 alternative 1.
10569         <TYPE_LEA>: Split insn to lea.
10570         <default>: Handle alternative 1.
10571         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
10572         multi-level if_then_else RTX to set "type" attribute.
10573         <default>: Handle alternative 2.
10574         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
10575         Use cond RTX instead of multi-level if_then_else RTX to set
10576         "type" attribute.
10577         <default>: Handle alternatives 2 and 4.
10578         (lea splitters): Update calls to ix86_lea_for_add_ok.
10579
10580         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
10581         argument.
10582         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
10583
10584 2010-08-18  Richard Guenther  <rguenther@suse.de>
10585
10586         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
10587         use operand helpers.
10588
10589 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
10590
10591         PR middle-end/45292
10592         * optabs.c (expand_bool_compare_and_swap): Expand pending
10593         pops before trying the optab.
10594
10595 2010-08-18  Yao Qi  <yao@codesourcery.com>
10596
10597         PR target/45094
10598         * config/arm/arm.c (output_move_double): Fix typo generating
10599         instructions ('ldr'->'str').
10600
10601 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10602
10603         PR rtl-optimization/42575
10604         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
10605         live ranges.
10606
10607 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10608
10609         * config/arm/arm-protos.h (arm_expand_sync): New.
10610         (arm_output_memory_barrier, arm_output_sync_insn): New.
10611         (arm_sync_loop_insns): New.
10612         * config/arm/arm.c (FL_ARCH7): New.
10613         (FL_FOR_ARCH7): Include FL_ARCH7.
10614         (arm_arch7): New.
10615         (arm_print_operand): Support %C markup.
10616         (arm_legitimize_sync_memory): New.
10617         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
10618         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
10619         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
10620         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
10621         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
10622         (arm_process_output_sync_insn, arm_output_sync_insn): New.
10623         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
10624         * config/arm/arm.h (struct arm_sync_generator): New.
10625         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
10626         (TARGET_HAVE_MEMORY_BARRIER): New.
10627         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
10628         * config/arm/arm.md: Include sync.md.
10629         (UNSPEC_MEMORY_BARRIER): New.
10630         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
10631         (VUNSPEC_SYNC_OP):New.
10632         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
10633         (sync_result, sync_memory, sync_required_value): New attributes.
10634         (sync_new_value, sync_t1, sync_t2): Likewise.
10635         (sync_release_barrier, sync_op): Likewise.
10636         (length): Add logic to length attribute defintion to call
10637         arm_sync_loop_insns when appropriate.
10638         * config/arm/sync.md: New file.
10639
10640 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
10641
10642         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
10643         ENABLE_TREE_CHECKING.
10644         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
10645         and GCC >= 4.3.
10646
10647 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
10648
10649         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
10650         or optimizing for size, always avoid lea if possible.
10651
10652         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
10653
10654 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
10655
10656         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
10657         Dunmmy function with NULL return unless the target is
10658         OSX >= 10.6 (Darwin10).
10659
10660 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
10661
10662         * gcc.c (spec_function): Add remove-outfile.
10663         (remove_outfile_spec_function): New function.
10664         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
10665         * invoke.texi (replace-outfile): Document.
10666
10667 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
10668
10669         PR target/45296
10670         * reginfo.c (globalize_reg): Reject stack registers.
10671
10672 2010-08-17  Richard Guenther  <rguenther@suse.de>
10673
10674         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
10675         list of conditional equivalences.
10676         (free_all_edge_infos): Adjust.
10677         (record_equivalences_from_incoming_edge): Likewise.
10678         (record_cond): Likewise.
10679         (build_and_record_new_cond): Likewise.
10680         (record_conditions): Likewise.
10681         (dom_opt_leave_block): Likewise.
10682
10683 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
10684
10685         * doc/invoke.texi (ms-extension): Add documentation.
10686
10687 2010-08-17  Richard Guenther  <rguenther@suse.de>
10688
10689         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
10690
10691 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
10692
10693         PR c/40563
10694         * c-decl.c (diagnose_uninitialized_cst_member): New function.
10695         (finish_decl): Use it to issue a -Wc++-compat warning about
10696         uninitialized const field in struct or union.
10697
10698         (finish_struct): Use strip_array_types.
10699
10700 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
10701
10702         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
10703         functions.
10704         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
10705         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
10706         call block_nreverse here.
10707         (blocks_nreverse): Rename decl temporary to block.
10708
10709 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
10710
10711         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
10712         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
10713         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
10714         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
10715         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
10716         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
10717         thumb2_iorsi3): Delete.
10718         (orsi_notsi_si): No longer a named pattern.
10719         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
10720         * config/arm/predicates.md (shift_amount_operand): New.
10721         (mult_operator): New.
10722         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
10723         attr enabled): New.
10724         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
10725         arch matches t2.
10726         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
10727         (not_shiftsi_compare0): Likewise, renamed from
10728         arm_notsi_shiftsi_compare0.
10729         (not_shiftsi_compare0_scratch): Likweise, renamed from
10730         arm_notsi_shiftsi_compare0_scratch.
10731         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
10732         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
10733         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
10734         so that the register alternative is disabled when the shift_operator
10735         is MULT.  Use "M" as the constraint for constants.
10736         (arith_shiftsi splitter): Enable for TARGET_32BIT.
10737         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
10738         constraint for constants.
10739         (arith_shiftsi_compare0_scratch): Likewise.
10740         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
10741         Handle Thumb2 alternative.
10742
10743 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
10744
10745         * doc/options.texi (NoDriverArg): Document.
10746         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
10747         -MDX and -MMDX.
10748         * opt-functions.awk (switch_flags): Handle NoDriverArg.
10749         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
10750         marking for CL_NO_DRIVER_ARG options when in the driver.
10751         * opts.h (CL_NO_DRIVER_ARG): Define.
10752         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10753         CL_COMMON): Update values.
10754
10755 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
10756
10757         * common.opt: Add driver options.
10758         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
10759         * doc/options.texi (Driver, RejectDriver): Document.
10760         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
10761         print_prog_name, print_multi_directory, print_sysroot,
10762         print_multi_os_directory, print_multi_lib,
10763         print_sysroot_headers_suffix, report_times, combine_flag,
10764         use_pipes, wrapper_string): Remove.
10765         (save_switch, driver_unknown_option_callback,
10766         driver_wrong_lang_callback, driver_post_handling_callback,
10767         driver_handle_option): New.
10768         (spec_lang, last_language_n_infiles): Make file-scope static
10769         instead of local to process_command.
10770         (process_command): Use decode_cmdline_options_to_array and
10771         read_cmdline_option for option processing.  Compute have_c in
10772         prescan of decoded options.
10773         * opt-functions.awk (switch_flags): Handle Driver and
10774         RejectDriver.
10775         (var_type, var_type_struct): Handle Separate options as generating
10776         const char * variables.
10777         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
10778         CL_TARGET to be passed by caller if required.
10779         (decode_cmdline_options_to_array): Update comment.
10780         * opts.c (complain_wrong_lang): Handle options only valid for the
10781         driver.
10782         (decode_options): Update call to decode_cmdline_options_to_array.
10783         (print_filtered_help): Ignore driver-only options.
10784         (print_specific_help): Ignore CL_DRIVER.
10785         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
10786         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
10787         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
10788         Update values.
10789
10790 2010-08-16  Richard Guenther  <rguenther@suse.de>
10791
10792         * tree-cfg.c (verify_types_in_gimple_reference): Verify
10793         TARGET_MEM_REF a bit.
10794         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
10795         (create_mem_ref_raw): Always create TMR_OFFSET, store the
10796         alias pointer type via it.
10797         (copy_mem_ref_info): Adjust.
10798         (maybe_fold_tmr): Likewise.
10799         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
10800         (reference_alias_ptr_type): Likewise.
10801         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
10802         adjust documentation of TMR_OFFSET operand.
10803         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
10804         use the alias pointer type.
10805         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
10806         initialize mem attrs but the TMR itself.
10807         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
10808         similar to MEM_REF.
10809         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
10810         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
10811         (unshare_and_remove_ssa_names): Likewise.
10812         (copy_ref_info): Adjust.
10813         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
10814         TARGET_MEM_REF case.
10815         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
10816         at TMR_ORIGINAL.
10817         * tree.h (TMR_ORIGINAL): Remove.
10818         * gimple.c (get_base_address): For TARGET_MEM_REF with a
10819         symbol return that.
10820         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
10821         with a symbol.
10822         (get_addr_base_and_unit_offset): Likewise.
10823         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
10824         TARGET_MEM_REFs.
10825         (indirect_ref_may_alias_decl_p): Likewise.
10826         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
10827
10828 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
10829
10830         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
10831         with GCC version 4.6, the default setting (when not optimizing
10832         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
10833         been changed to -fomit-frame-pointer.
10834
10835 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
10836
10837         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
10838         Darwin10.  Do not link libgcc.a for Darwin >= 9.
10839
10840 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
10841
10842         * doc/invoke.texi (Warning Options): Fix terminology and markup
10843         in the description of how unknown warning options are handled.
10844
10845 2010-08-15  Ira Rosen  <irar@il.ibm.com>
10846
10847         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
10848         in basic blocks.
10849         (vect_supportable_dr_alignment): Check alignment for basic blocks.
10850         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
10851         data references.
10852         (vect_bb_vectorization_profitable_p): New function.
10853         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
10854         check if it's worthwhile to vectorize the basic block.
10855
10856 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
10857
10858         * reload.h (register_move_cost, memory_move_secondary_cost,
10859         secondary_reload_class): Adjust prototype.
10860         * rtl.h (reg_class_subset_p): Adjust prototype.
10861         * reload.c (secondary_reload_class): Change arguments type from
10862         enum reg_class to reg_class_t. Change result type to reg_class_t.
10863         * reginfo.c (register_move_cost, reg_class_subset_p): Change
10864         arguments type from enum reg_class to reg_class_t.
10865         (memory_move_secondary_cost): Change arguments type from
10866         enum reg_class to reg_class_t. Change type of saved_flags to
10867         reg_class_t.
10868
10869         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10870         Remove macros.
10871         (mips_cost): Remove.
10872         (struct mips_rtx_cost_data): Moved to mips.c.
10873         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
10874         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
10875         (mips_cost): Make static.
10876         (mips_canonicalize_move_class): Change argument type to reg_class_t.
10877         Change result type to reg_class_t.
10878         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
10879         type from enum reg_class to reg_class_t.
10880         (mips_register_move_cost): Make static. Change arguments
10881         type from enum reg_class to reg_class_t.
10882         (mips_memory_move_cost): New function.
10883         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10884
10885 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
10886
10887         PR rtl-optimization/43358
10888         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
10889         of a single hard register, using simplify_subreg_regno to decide
10890         what that register should be.
10891
10892 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
10893
10894         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
10895         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
10896         (loongson_pmull<V_suffix>): Rename to...
10897         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
10898
10899 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
10900
10901         * configure.ac: Enable -fomit-frame-pointer on darwin
10902         which support dwarf2.
10903         * config/i386/i386.c (override_options): Same.
10904
10905 2010-08-13  Jie Zhang  <jie@codesourcery.com>
10906
10907         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
10908
10909 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
10910
10911         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
10912         -MMD.
10913
10914 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
10915
10916         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
10917         up dot_prod pattern searching if a stmt is outside the loop.
10918
10919 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
10920             Uros Bizjak  <ubizjak@gmail.com>
10921
10922         * config.gcc: Handle --enable-frame-pointer.
10923
10924         * configure.ac: Add --enable-frame-pointer.
10925         * configure: Regenerated.
10926
10927         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
10928         (override_options): If not configured with --enable-frame-pointer,
10929         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
10930         optimizing for size), -fasynchronous-unwind-tables and
10931         -maccumulate-outgoing-args by default.
10932
10933 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
10934
10935         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
10936
10937         PR middle-end/45262
10938         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
10939         -a overflows.  Normalize the range.
10940
10941 2010-08-12  Richard Guenther  <rguenther@suse.de>
10942
10943         PR tree-optimization/45232
10944         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
10945         for types with undefined overflow.
10946         (reassociate_bb): Allow re-associating of bit and min/max
10947         operations for types with undefined overflow.
10948         * tree-ssa-forwprop.c (associate_plusminus): New function.
10949         (tree_ssa_forward_propagate_single_use_vars): Call it.
10950
10951 2010-08-12  Richard Guenther  <rguenther@suse.de>
10952
10953         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
10954         * tree-ssa-alias.c (get_ptr_info): Move ...
10955         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
10956         align and misalign fields conservatively.
10957         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
10958         derive alignment information.
10959         (evaluate_stmt): Derive alignment information from memory
10960         allocation functions.
10961         * tree.h (get_pointer_alignment): Make unsigned.
10962         * builtins.c (get_object_alignment): Use alignment information we
10963         have computed for pointers.
10964         (get_pointer_alignment): Likewise.  Make conservative, return
10965         and unsigned value.
10966         (expand_builtin_strlen): Adjust.
10967         (expand_builtin_memcmp): Likewise.
10968         (expand_builtin_strcmp): Likewise.
10969         (expand_builtin_strncmp): Likewise.
10970         (get_builtin_sync_mem): Use at least mode alignment.
10971         (fold_builtin_memset): Adjust.
10972         (fold_builtin_memory_op): Likewise.
10973         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
10974         information also dump pointer alignment knowledge.
10975         (dump_gimple_stmt): Likewise.
10976
10977 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
10978
10979         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
10980         (EMPTY_FIELD_BOUNDARY): Remove.
10981         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
10982
10983 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
10984
10985         PR debug/45259
10986         * caller-save.c (save_call_clobbered_regs): Only swap notes with
10987         DEBUG_INSNs if n_regs_saved.
10988
10989 2010-08-12  Wei Guozhi  <carrot@google.com>
10990
10991         PR target/44999
10992         * config/arm/arm.md (andsi3): Change to zero extension if possible.
10993         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
10994
10995 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
10996
10997         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
10998
10999         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
11000
11001 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11002
11003         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
11004         the case removed in the previous patch, when the only phi argument
11005         is defined in the same loop as the phi node itself.  Handle it
11006         separately from the invariant case by both propagating it outside
11007         the region and replacing the phi node with an assign.
11008
11009 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11010
11011         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
11012         constant phi nodes with one argument are is_gimple_min_invariant
11013         and SSA_NAME_IS_DEFAULT_DEF.
11014
11015 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11016
11017         * graphite-cloog-util.c (oppose_constraint):
11018         Extend loop counter's value range (CLOOG_ORG).
11019         (cloog_matrix_to_ppl_constraint): Same.
11020         (new_Constraint_System_from_Cloog_matrix): Same.
11021         * graphite-cloog-compat.h (matrix_num_type): New.
11022
11023 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11024
11025         * graphite.c (graphite_initialize): Do not initialize
11026         CLooG and initialize the Parma Polyhedra Library
11027         manually when using CLOOG_ORG.
11028         (graphite_finalize): Do not finalize CLooG and finalize
11029         the Parma Polyhedra Library manually when using CLOOG_ORG.
11030         * graphite-cloog-compat.h (cloog_initialize): Hide function
11031         when using CLOOG_ORG.
11032         (cloog_finalize): Same.
11033
11034 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11035
11036         * graphite-clast-to-gimple.c (free_scattering): Change
11037         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
11038         (CLOOG_ORG).
11039         (build_cloog_prog): Same.
11040         * graphite-cloog-compat.h (cloog_domain): Removed.
11041         (cloog_scattering): New.
11042         (cloog_set_domain): Removed.
11043         (cloog_set_scattering): New.
11044         (cloog_next_domain): Removed.
11045         (cloog_next_scattering): New.
11046         (cloog_set_next_domain): Removed.
11047         (cloog_set_next_scattering): New.
11048         (CloogScatteringList): New.
11049         (CloogScattering): New.
11050         (cloog_scattering_free): New.
11051         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
11052         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
11053         New.
11054
11055 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11056
11057         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
11058         CloogState.
11059         (set_cloog_options): Same.
11060         (print_clast_stmt): Same.
11061         (scop_to_clast): Same.
11062         (print_generated_program): Same.
11063         (gloog): Same.
11064         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
11065         (scop_to_clast): Extend with CloogState.
11066         * graphite-cloog-util.c: Include graphite-cloog-compat.h
11067         (new_Cloog_Domain_from_ppl_Polyhedron):
11068         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
11069         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
11070         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11071         * graphite-cloog-util.h (build_cloog_prog): Same.
11072         * graphite-cloog-copat.h (build_cloog_prog): New.
11073         (CloogState): New.
11074         (cloog_state_malloc): New.
11075         (cloog_state_free): New.
11076         (cloog_loop_malloc): New.
11077         (cloog_options_malloc): New.
11078         (cloog_statement_alloc): New.
11079         (cloog_domain_from_cloog_matrix): New.
11080         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
11081         (new_Cloog_Domain_from_ppl_Polyhedron): New.
11082
11083 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11084
11085         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
11086         type of NAME now depends on used CLooG version.
11087         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
11088         (gcc_type_for_clast_expr): Same.
11089         (print_clast_stmt): Replace pprint with clast_pprint.
11090         * graphite-cloog-compat.h: Provide compatibility macros for
11091         CLooG Legacy.
11092         (clast_name_p): New.
11093         (clast_expr_term): New.
11094         (clast_expr_red): New.
11095         (clast_expr_bin): New.
11096         (clast_pprint): New.
11097
11098 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11099
11100         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
11101         compatible to newer CLooG releases (CLOOG_ORG).
11102         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
11103         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
11104         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
11105         (build_cloog_prog) : New.
11106         (cloog_program_extract_scalars): New.
11107         (cloog_program_scatter): New.
11108
11109 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11110
11111         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
11112         conditionally (CLOOG_ORG).
11113         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
11114         (cloog_statement_usr): New.
11115         (cloog_domain): Same.
11116         (cloog_set_domain): Same.
11117         (cloog_next_domain): Same.
11118         (cloog_set_next_domain): Same.
11119         (cloog_program_nb_scattdims): Same.
11120         (cloog_program_set_nb_scattdims): Same.
11121         (cloog_program_names): Same.
11122         (cloog_program_set_names): Same.
11123         (cloog_program_set_context): Same.
11124         (cloog_program_set_loop): Same.
11125         (cloog_program_blocklist): Same.
11126         (cloog_program_set_blocklist): Same.
11127         (cloog_program_scaldims): Same.
11128         (cloog_program_set_scaldims): Same.
11129         (cloog_names_nb_parameters): Same.
11130         (cloog_names_set_nb_parameters): Same.
11131         (cloog_names_parameters): Same.
11132         (cloog_names_set_parameters): Same.
11133         (cloog_names_set_nb_iterators): Same.
11134         (cloog_names_set_iterators): Same.
11135         (cloog_names_set_nb_scattering): Same.
11136         (cloog_names_set_scattering): Same.
11137         (cloog_statement_set_usr): Same.
11138         (cloog_loop_set_next): Same.
11139         (cloog_loop_set_domain): Same.
11140         (cloog_loop_set_block): Same.
11141         (cloog_block_list_next): Same.
11142         (cloog_block_list_set_next):
11143         (cloog_block_list_set_block): Same.
11144
11145 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11146
11147         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
11148         a bool.
11149         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
11150         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
11151         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
11152         when something has been changed.
11153         (rewrite_commutative_reductions_out_of_ssa): Same.
11154
11155 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11156
11157         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
11158         handle the case when def is in the sese region.
11159         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
11160         for invariant expressions.
11161         (rewrite_cross_bb_phi_deps): Removed.
11162         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
11163         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
11164         rewrite_cross_bb_phi_deps.
11165
11166 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11167
11168         * graphite-sese-to-poly.c
11169         (rewrite_commutative_reductions_out_of_ssa_loop): Call
11170         scev_analyzable_p only on is_gimple_reg
11171
11172 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11173
11174         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
11175         (rewrite_close_phi_out_of_ssa): Propagate constant values or
11176         parametric expressions outside the scop region.
11177         (rewrite_cross_bb_scalar_deps): Same.
11178         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
11179
11180 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11181
11182         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
11183         SSA_NAME_DEF_STMT only on SSA_NAMEs.
11184
11185 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11186
11187         * tree-scalar-evolution.c (instantiate_scev_name): Do not
11188         instantiate default definitions.
11189
11190 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
11191             Sebastian Pop  <sebastian.pop@amd.com>
11192
11193         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
11194         (loop_exits_from_bb_p): New.
11195         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
11196         (loop_exits_from_bb_p): Declared.
11197         * graphite-scop-detection.c (scopdet_basic_block_info): Call
11198         loop_exits_to_bb_p.
11199
11200 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11201
11202         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
11203         extra parameter for the region.  Call scev_analyzable_p.
11204         (rewrite_reductions_out_of_ssa): Update call to
11205         rewrite_close_phi_out_of_ssa.
11206         (rewrite_cross_bb_phi_deps): Same.
11207         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
11208         parameter for the region.  Call scev_analyzable_p.
11209         (rewrite_commutative_reductions_out_of_ssa): Update call to
11210         rewrite_commutative_reductions_out_of_ssa_loop.
11211
11212 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11213
11214         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
11215
11216 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11217
11218         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
11219         SSA scalar phi nodes that can be scev_analyzable_p.
11220
11221 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11222
11223         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
11224         handle SSA_NAME_IS_DEFAULT_DEF.
11225
11226 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11227
11228         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
11229
11230 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11231
11232         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
11233         case non close-phi nodes with one argument.
11234
11235 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11236
11237         * sese.h (scev_analyzable_p): Scevs could be expressions without
11238         chrecs and still be scev_analyzable_p.
11239
11240 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11241
11242         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11243
11244 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11245
11246         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
11247         * cfgloop.h (struct loop): Remove single_iv field.
11248         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
11249         (scop_canonicalize_loops): Removed.
11250         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
11251         over all the loop phi nodes in loop->header.
11252         (build_poly_scop): Remove use of scop_canonicalize_loops.
11253
11254 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11255
11256         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
11257         handle GIMPLE_CALL.
11258
11259 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11260
11261         * tree-chrec.c (chrec_apply): Should only apply to the specified
11262         variable.  Also handle multivariate chains of recurrences that
11263         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
11264
11265 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11266
11267         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
11268         (debug_clast_name_indexes_1): Removed.
11269         (debug_clast_name_indexes): Removed.
11270         (pbb_to_depth_to_oldiv): Removed.
11271         (build_iv_mapping): Replace the use of rename_map with iv_map.
11272         (translate_clast_user): Remove uses of rename_map.  Allocate and
11273         free iv_map.
11274         (translate_clast_for_loop): Remove uses of rename_map.
11275         (translate_clast_for): Same.
11276         (translate_clast_guard): Same.
11277         (translate_clast): Same.
11278         (gloog): Same.
11279         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
11280         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
11281         * sese.c (set_rename): Now static.
11282         (rename_variables_in_stmt): Removed.
11283         (rename_uses): New.
11284         (is_parameter): Removed.
11285         (is_iv): Removed.
11286         (expand_scalar_variables_call): Removed.
11287         (expand_scalar_variables_ssa_name): Removed.
11288         (expand_scalar_variables_expr): Removed.
11289         (expand_scalar_variables_stmt): Removed.
11290         (expand_scalar_variables): Removed.
11291         (rename_variables): Removed.
11292         (remove_condition): Removed.
11293         (get_true_edge_from_guard_bb): Removed.
11294         (get_false_edge_from_guard_bb): Removed.
11295         (struct igp): Removed.
11296         (default_before_guard): Removed.
11297         (convert_for_phi_arg): Removed.
11298         (add_guard_exit_phis): Removed.
11299         (insert_guard_phis): Removed.
11300         (graphite_copy_stmts_from_block): Now also uses iv_map and a
11301         region.  Do not copy conditions.  Do not copy induction variables.
11302         Call rename_uses.
11303         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
11304         the translated statement.  Use the iv_map for the induction
11305         variable renaming.
11306         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11307         (set_rename): Removed declaration.
11308         (scev_analyzable_p): ...here.
11309         * tree-chrec.c (chrec_apply_map): New.
11310         * tree-chrec.h (chrec_apply_map): Declared.
11311
11312 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11313
11314         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
11315         insert_loop_close_phis.
11316         * sese.c (name_defined_in_loop_p): Removed.
11317         (expr_defined_in_loop_p): Removed.
11318         (alive_after_loop): Removed.
11319         (close_phi_not_yet_inserted_p): Removed.
11320         (struct alep): Removed.
11321         (add_loop_exit_phis): Removed.
11322         (insert_loop_close_phis): Removed.
11323
11324 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11325
11326         * graphite-cloog-util.c
11327         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
11328         * graphite-poly.c
11329         (psct_scattering_dim_for_loop_depth): Same.
11330
11331 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11332
11333         * graphite-cloog-util.h: Added cloog.h.
11334         * graphite-blocking.c: Removed cloog.h.
11335         * graphite-dependences.c: Same.
11336         * graphite-interchange.c: Same.
11337         * graphite-poly.c: Same.
11338         * graphite-ppl.c: Same.
11339         * graphite-scop-detection.c: Same.
11340         * graphite-sese-to-poly.c:
11341         Removed cloog.h.
11342         Removed graphite-clast-to-gimple.h.
11343         (check_poly_representation): Removed (unused).
11344         * graphite-sese-to-poly.h
11345         (check_poly_representation): Removed (unused).
11346
11347 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11348
11349         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
11350         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
11351         (graphite-cloog-util.o): New.
11352         (graphite-ppl.o): Added graphite-cloog-util.h.
11353         * graphite-clast-to-gimple.c:
11354         Added graphite-cloog-util.h to include statements.
11355         * graphite-cloog-util.c: New.
11356         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
11357         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11358         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11359         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11360         (insert_constraint_into_matrix): Same.
11361         (ppl_Constrain_System_number_of_constraints): Same.
11362         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11363         (oppose_constraint): Same.
11364         (cloog_matrix_to_ppl_constraint): Same.
11365         (new_Constraint_System_from_Cloog_Matrix): Same.
11366         * graphite-cloog-util.h: New.
11367         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
11368         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11369         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11370         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11371         (insert_constraint_into_matrix): Same.
11372         * graphite-ppl.c:
11373         Added graphite-cloog-util.h to include statements.
11374         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
11375         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11376         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11377         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11378         (insert_constraint_into_matrix): Same.
11379         (ppl_Constrain_System_number_of_constraints): Same.
11380         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11381         (oppose_constraint): Same.
11382         (cloog_matrix_to_ppl_constraint): Same.
11383         (new_Constraint_System_from_Cloog_Matrix): Same.
11384         * graphite-ppl.h:
11385         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
11386         graphite-cloog-util.h.
11387         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11388         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11389         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11390         (insert_constraint_into_matrix): Same.
11391
11392 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11393
11394         * graphite-clast-to-gimple.c
11395         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
11396         (precision_for_interval): Same.
11397         (gcc_type_for_interval): Same.
11398         (compute_type_for_level): Same.
11399         * graphite-interchange.c
11400         (lst_interchange_profitable_p): Same.
11401         * graphite-poly.c
11402         (psct_scattering_dim_for_loop_depth): Same.
11403         * graphite-ppl.c
11404         (ppl_max_for_le_pointset): Same.
11405         (ppl_min_for_le_pointset): Same.
11406
11407 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11408
11409         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
11410         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
11411
11412 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11413
11414         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
11415         rewrite_close_phi_out_of_ssa.
11416
11417 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11418
11419         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
11420
11421 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11422
11423         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
11424         rename_map.
11425         * sese.c (debug_rename_map): Same.
11426         (get_rename): Same.
11427         (set_rename): Same.
11428         (rename_variables_in_stmt): Same.
11429         (expand_scalar_variables_call): Same.
11430         (expand_scalar_variables_ssa_name): Same.
11431         (expand_scalar_variables_expr): Same.
11432         (expand_scalar_variables_stmt): Same.
11433         (expand_scalar_variables): Same.
11434         (rename_variables): Same.
11435         (graphite_copy_stmts_from_block): Same.
11436         (copy_bb_and_scalar_dependences): Same.
11437
11438 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11439
11440         * graphite-clast-to-gimple.c (copy_renames): Removed.
11441         (translate_clast_for): Do not call copy_renames.
11442         (translate_clast_guard): Same.
11443
11444 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11445
11446         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
11447         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
11448         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
11449         before rewrite_cross_bb_scalar_deps.
11450
11451 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11452
11453         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
11454         Early return in when flag_associative_math is not set.
11455
11456 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11457
11458         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
11459         of SSA copies on edges except for loop->latch.
11460
11461 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11462
11463         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
11464         Split out of rewrite_reductions_out_of_ssa.
11465         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
11466         Declared.
11467         * graphite.c (graphite_transform_loops): Call it.
11468
11469 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11470
11471         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
11472
11473 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
11474
11475         * dbgcnt.def (graphite_scop): New counter.
11476         * graphite.c: Include dbgcnt.h.
11477         (graphite_transform_loops): Use new counter to limit transformations.
11478         * Makefile.in (graphite.o): Depend on DBGCNT_H.
11479
11480 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11481
11482         * passes.c (init_optimization_passes): Add pass_graphite.
11483         Schedule a pass_copy_prop before pass_graphite_transforms.
11484         * timevar.def (TV_GRAPHITE): Declared.
11485         * tree-pass.h (pass_graphite): Declared.
11486         * tree-ssa-loop.c (pass_graphite): New.
11487
11488 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11489
11490         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
11491         Remove calls to rename_nb_iterations and rename_sese_parameters.
11492         * graphite-clast-to-gimple.h (gloog): Update declaration.
11493         * graphite.c (graphite_transform_loops): Update call to gloog.
11494         * sese.c (rename_variables_in_expr): Removed.
11495         (rename_nb_iterations): Removed.
11496         (rename_sese_parameters): Removed.
11497         * sese.h (rename_nb_iterations): Removed.
11498         (rename_sese_parameters): Removed.
11499
11500 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11501
11502         * graphite-clast-to-gimple.c (gloog): Remove call to
11503         sese_adjust_liveout_phis.
11504         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
11505         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
11506         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
11507         rewrite_phi_out_of_ssa.
11508         * sese.c (get_vdef_before_sese): Removed.
11509         (sese_adjust_vphi): Removed.
11510         (sese_adjust_liveout_phis): Removed.
11511         * sese.h (sese_adjust_liveout_phis): Removed.
11512
11513 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11514
11515         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
11516         argument for the place after which to insert the out of SSA copy.
11517         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
11518         (rewrite_phi_out_of_ssa): Same.
11519         (rewrite_cross_bb_scalar_deps): Same.
11520         (insert_copyout): Removed.
11521         (insert_copyin): Removed.
11522         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
11523         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
11524         insert_copyin.
11525
11526 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11527
11528         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
11529         (rewrite_reductions_out_of_ssa): Same.
11530         (rewrite_commutative_reductions_out_of_ssa): Same.
11531         (build_poly_scop): Do not call these functions.
11532         * graphite-sese-to-poly.h (build_poly_scop): Declared.
11533         (rewrite_reductions_out_of_ssa): Declared.
11534         (rewrite_commutative_reductions_out_of_ssa): Declared.
11535         * graphite.c (graphite_transform_loops): Call on every scop
11536         rewrite_commutative_reductions_out_of_ssa before calling
11537         rewrite_reductions_out_of_ssa and build_scop_bbs.
11538
11539 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11540
11541         * graphite-dependences.c (dot_deps): Make system call to dotty run
11542         in background.
11543         (dot_deps_stmt): Same.
11544         * graphite-poly.c (dot_lst): Same.
11545
11546 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11547
11548         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
11549         phi_arg_in_outermost_loop.
11550         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
11551         (remove_invariant_phi): Same.
11552
11553 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
11554
11555         * target.def (output_addr_const_extra): New hook.
11556         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
11557         * doc/tm.texi: Regenerate.
11558         * targhooks.c (default_asm_output_addr_const_extra): New function.
11559         * targhooks.h (default_asm_output_addr_const_extra): Declare.
11560         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
11561         target hook.
11562
11563         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11564         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
11565         * config/i386/i386.h (output_addr_const_extra): Rename to...
11566         (i386_asm_output_addr_const_extra): ...this. Make static.
11567         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11568
11569 2010-08-11  Richard Henderson  <rth@redhat.com>
11570
11571         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
11572
11573 2010-08-11  Nick Clifton  <nickc@redhat.com>
11574
11575         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
11576         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
11577         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11578         stormy16-lib2-cmpsi.c.
11579
11580         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
11581         -O2.
11582
11583 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
11584
11585         * opts.h (struct cl_option_handler_func): Make handler take
11586         cl_decoded_option structure as parameter, not individual elements.
11587         (struct cl_option_handlers): Make callbacks take cl_decoded_option
11588         structure as parameter, not individual elements.
11589         (handle_option): Take cl_decoded_option structure as parameter,
11590         not individual elements.
11591         (handle_generated_option): Declare.
11592         * opts-common.c (handle_option): Take cl_decoded_option structure
11593         as parameter, not individual elements.  Update calls to callback
11594         and handler functions.
11595         (handle_generated_option): New.
11596         (read_cmdline_option): Update calls to callback functions and
11597         handle_option.
11598         * opts.c (common_handle_option, complain_wrong_lang,
11599         unknown_option_callback, post_handling_callback,
11600         lang_handle_option, target_handle_option): Take cl_decoded_option
11601         structure as parameter, not individual elements.
11602         (lang_handle_option, target_handle_option, common_handle_option):
11603         Assert option has at most one argument.
11604         (enable_warning_as_error): Call handle_generated_option instead of
11605         handle_option.  Do not pass -Werror argument as argument of
11606         generated option.
11607
11608 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11609
11610         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11611         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11612         (SUBWORD_BOOL_CAS): Likewise.
11613         (SUBWORD_SYNC_OP): Likewise.
11614         (SUBWORD_TEST_AND_SET): Likewise.
11615         (FETCH_AND_OP_WORD): Parenthesise INF_OP
11616         (SUBWORD_SYNC_OP): Likewise.
11617         (OP_AND_FETCH_WORD): Likewise.
11618
11619 2010-08-10  Xinliang David Li  <davidxl@google.com>
11620
11621         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
11622         compute max/min offset in address.
11623
11624 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
11625
11626         * ira-live.c: Include sbitmap.h.
11627         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
11628         Compress live ranges even more.
11629
11630 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
11631
11632         * coverage.c (ctr_labels): Delete.
11633
11634 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
11635
11636         PR bootstrap/45177
11637         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
11638         test here from arm_gen_load_multiple_1.
11639         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
11640         multiple_operation_profitable_p.
11641
11642 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
11643
11644         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
11645         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
11646
11647 2010-08-10  Richard Henderson  <rth@redhat.com>
11648
11649         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
11650         after saving registers.  Assert that SSE registers are only saved
11651         with a sufficiently aligned frame.
11652         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
11653         remove stack_realign_fp handling.
11654         (ix86_expand_prologue): Save int registers before stack_realign_fp,
11655         and do not mark the stack alignment as frame related.
11656         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
11657
11658         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
11659         saves when re-aligning the stack.
11660
11661 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
11662
11663         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
11664         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
11665         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
11666
11667 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
11668
11669         * dwarf2out.c (struct die_struct): Move die_tag to the end.
11670
11671 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
11672
11673         * config/arm/iterators.md: New file.
11674         * config/arm/arm.md: Include iterators.md.
11675         (QHSI): Move to new file.
11676         (LTUGEU, cnb, optab, ior_xor): Likewise.
11677         * config/arm/iwmmxt.md (VMMX): Move to new file.
11678         (VSHFT, MMX_char): Likewise.
11679         * config/arm/neon.md (VD): Move to new file.
11680         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
11681         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
11682         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
11683         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
11684         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
11685         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
11686         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
11687         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
11688         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
11689         (Is_d_reg, V_mode_nunits): Likewise.
11690         * config/arm/vec-common.md (VALL): Move to new file.
11691         (VALLW, VINT, VINTW): Likewise.
11692
11693 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
11694
11695         PR middle-end/45182
11696         * combine.c (make_compound_operation): Don't try to convert
11697         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
11698
11699 2010-08-10  Richard Guenther  <rguenther@suse.de>
11700
11701         * tree.h (get_object_alignment): Adjust prototype.
11702         * builtins.c (get_object_alignment): Return unsigned int,
11703         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
11704         and TARGET_MEM_REF properly.
11705         (get_pointer_alignment): Adjust.
11706         * emit-rtl.c (get_mem_align_offset): Adjust comment.
11707         (set_mem_attributes_minus_bitpos): Adjust.
11708         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
11709
11710 2010-08-10  Richard Guenther  <rguenther@suse.de>
11711
11712         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
11713         (copy_prop_visit_assignment): Simplify.
11714         (copy_prop_visit_stmt): Also visit assignments from
11715         constants.
11716         (copy_prop_visit_phi_node): Use operand_equal_p.
11717
11718 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
11719
11720         * ipa-split.c (find_split_points): Free stack.
11721
11722 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
11723
11724         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
11725         * tree.c (tree_node_kind): Delete corresponding entries.
11726
11727 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
11728
11729         * alias.c (may_alias_p): Remove unused ret.
11730
11731 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
11732
11733         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
11734         alias_sets_conflict_p.
11735         (walk_mems_1): Moved from alias.c.
11736         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
11737         in alias.c.
11738         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
11739         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
11740         * alias.c (walk_mems_2): Moved to ddg.c.
11741         (walk_mems_1): Ditto.
11742         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
11743         to ddg.c.
11744         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
11745         disambiguation.
11746         *(may_alias_p): New function to check whether two memory expression
11747         may alias or not. Currently used in buidling inter-iteration memory
11748         dependence.
11749         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
11750         (insn_alias_sets_conflict_p): Removed
11751         *rtl.h (may_alias_p): New function prototype.
11752
11753 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
11754
11755         * tree.c (nreverse): Assert that we don't have a BLOCK.
11756
11757 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
11758
11759         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
11760         * config/arm/arm.c (arm_get_pcs_model): Likewise.
11761         * config/avr/avr.c (init_cumulative_args): Likewise.
11762         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11763         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11764         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
11765         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11766         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11767         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11768         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11769         * dwarf2out.c (gen_subprogram_die): Likewise.
11770         * function.c (allocate_struct_function): Likewise.
11771         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
11772         (deserves_ellipsis): Delete.
11773
11774 2010-08-09  Richard Guenther  <rguenther@suse.de>
11775
11776         * tree-ssa-copy.c (cached_last_copy_of): Remove.
11777         (valueize_val): New function.
11778         (get_last_copy_of): Remove.
11779         (set_copy_of_val): Simplify.
11780         (dump_copy_of): Likewise.
11781         (copy_prop_visit_cond_stmt): Use valueize_val.
11782         (copy_prop_visit_phi_node): Properly handle unvisited names.
11783         Drop code managing copy-of chains.
11784         (init_copy_prop): Adjust.
11785         (fini_copy_prop): Likewise.
11786         (execute_copy_prop): Remove obsolete comment.
11787
11788 2010-08-09  Richard Guenther  <rguenther@suse.de>
11789
11790         PR middle-end/44632
11791         * function.c (gimplify_parameters): Do not clear addressable
11792         bit of the original parameter.
11793
11794 2010-08-09  Richard Guenther  <rguenther@suse.de>
11795
11796         PR middle-end/45212
11797         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
11798         alignment from MEM_REF offset only if we took it from the
11799         base object.
11800
11801 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
11802
11803         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
11804
11805 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
11806
11807         * c-tree.h (build_arg_info): Declare.
11808         * c-decl.c (build_arg_info): Define.
11809         (get_parm_info): Call it.  Delete initialization code.
11810         * c-parser.c (c_parser_parms_declarator): Likewise.
11811         (c_parser_parms_list_declaractor): Likewise.
11812
11813 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
11814
11815         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
11816         (struct c_arg_info): Change type of tags field.
11817         * c-decl.c (grokdeclarator): Update for changed type of tags field.
11818         (get_parm_info): Likewise.
11819         (store_parm_decls_newstyle): Likewise.
11820
11821 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
11822
11823         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
11824         (branch_island_list): Delete.
11825         (branch_islands): Declare.
11826         (add_compiler_branch_island): Adjust for branch_islands instead of
11827         branch_island_list.
11828         (macho_branch_islands): Likewise.
11829         (no_previous_def): Likewise.
11830         (get_prev_label): Likewise.
11831
11832 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11833
11834         PR boehm-gc/34544
11835         * gthr-posix.h (__gthread_start): Delete.
11836         (__gthread_active_init): Use pthread_default_stacksize_np instead of
11837         pthread_create to determine if hpux pthreads are active.
11838         * gthr-posix95.h (__gthread_start): Delete.
11839         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
11840
11841 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
11842
11843         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
11844         _WIN64 not expanded.
11845
11846 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
11847             H.J. Lu  <hongjiu.lu@intel.com>
11848
11849         PR target/45213
11850         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
11851         to output 32bit SFmode immediate as 8 byte sign extended value.
11852
11853 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11854
11855         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11856         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11857         (SUBWORD_BOOL_CAS): Likewise.
11858         (SUBWORD_SYNC_OP): Likewise.
11859         (SUBWORD_TEST_AND_SET): Likewise.
11860         (FETCH_AND_OP_WORD): Parenthesise INF_OP
11861         (SUBWORD_SYNC_OP): Likewise.
11862         (OP_AND_FETCH_WORD): Likewise.
11863
11864 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11865
11866         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
11867         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
11868         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
11869         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
11870         generic part.
11871         (cortex_a9_sched_adjust_cost): New function.
11872         (xscale_sched_adjust_cost): New function.
11873         * config/arm/arm-protos.h (struct tune_params): New field
11874         sched_adjust_cost.
11875         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
11876
11877 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
11878
11879         PR target/44942
11880         * config/sparc/sparc.c (function_arg_advance): Always take into account
11881         the padding, if any.
11882
11883 2010-08-06  Richard Guenther  <rguenther@suse.de>
11884
11885         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
11886         (dump_lattice_value): Dump it.
11887         (get_default_value): Adjust.
11888         (get_constant_value): Likewise.
11889         (set_value_varying): Likewise.
11890         (set_lattice_value): Make sure to not go up the lattice
11891         with bitwise constant values.
11892         (get_value_for_expr): Handle ADDR_EXPRs.
11893         (value_to_double_int): New function.
11894         (get_value_from_alignment): Likewise.
11895         (do_dbg_cnt): Adjust.
11896         (ccp_lattice_meet): Handle partially constant values.
11897         (bit_value_unop_1): New function.
11898         (bit_value_binop_1): Likewise.
11899         (bit_value_unop): Likewise.
11900         (bit_value_binop): Likewise.
11901         (evaluate_stmt): Track partially constant values if
11902         flag_tree_bit_ccp is set.
11903         (ccp_fold_stmt): Dump if we folded a predicate.
11904         (ccp_visit_stmt): Adjust.
11905         * common.opt (ftree-bit-ccp): New flag.
11906         * doc/invoke.texi (ftree-bit-ccp): Document.
11907         * opts.c (decode_options): Enable bit-CCP at -O1.
11908
11909 2010-08-06  Alan Modra  <amodra@gmail.com>
11910
11911         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
11912         and -mrelocatable-lib description.
11913
11914 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
11915
11916         From Martin Thuresson  <martint@google.com>
11917         * postreload.c (reload_cse_simplify_operands): Use
11918         SET_REGNO_RAW instead of SET_REGNO.
11919         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
11920         SET_REGNO.
11921         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
11922         instead of SET_REGNO.
11923         * rtl.h (SET_REGNO_RAW): New macro.
11924
11925 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
11926
11927         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
11928         computations.  Fix formatting issues.
11929         (num_sign_bit_copies1): Likewise.
11930         (canonicalize_condition): Likewise.
11931
11932 2010-08-05  Richard Henderson  <rth@redhat.com>
11933
11934         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
11935         (floor_log2): Use clz_hwi.
11936         (exact_log2): Use ctz_hwi.
11937         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
11938         * builtins.c (fold_builtin_bitop): Use them.
11939         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11940         * combine.c (get_pos_from_mask): Use ctz_hwi.
11941         * double-int.c (double_int_ctz): Likewise.
11942         * explow.c (force_reg): Likewise.
11943         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
11944
11945 2010-08-05  Richard Henderson  <rth@redhat.com>
11946
11947         PR target/45189
11948         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
11949         the alignment constant is properly sign-extended.
11950
11951 2010-08-05  Richard Guenther  <rguenther@suse.de>
11952
11953         * expr.c (store_expr): Use emit_block_move only if both
11954         source and target are MEMs.  Use store_bit_field if only
11955         the target is a MEM.
11956
11957 2010-08-05  Richard Henderson  <rth@redhat.com>
11958
11959         PR debug/45188
11960         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
11961         (INCOMING_RETURN_ADDR_RTX): Likewise.
11962         (dwarf2out_do_frame): Remove conditional compilation.
11963         (dwarf2out_frame_init): Likewise.
11964
11965 2010-08-05  Nicolas Setton  <setton@adacore.com>
11966
11967         * gcov.c (flag_display_progress): New static variable.
11968         (main): Display progress info on standard output if requested.
11969         (options): Add -d/--display-progress.
11970         (print_usage): Print them.
11971         (process_args): Handle them.
11972         * doc/gcov.texi: Document them.
11973
11974 2010-08-05  Martin Jambor  <mjambor@suse.cz>
11975
11976         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
11977         (ipcp_insert_stage): Redirect only edges not flagged with
11978         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
11979         discovered constants.
11980
11981 2010-08-05  Martin Jambor  <mjambor@suse.cz>
11982
11983         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
11984         (struct ipa_param_descriptor): New fields types and
11985         cannot_devirtualize.
11986         (ipa_param_cannot_devirtualize_p): New function.
11987         (ipa_param_types_vec_empty): Likewise.
11988         (ipa_make_edge_direct_to_target): Declare.
11989         * ipa-cp.c: Fixed first stage driver name in initial comment,
11990         described devirtualization there too.
11991         (ipcp_analyze_node): Call ipa_analyze_params_uses.
11992         (ipcp_print_all_lattices): Print devirtualization info.
11993         (ipa_set_param_cannot_devirtualize): New function.
11994         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
11995         lattice to BOTTOM.
11996         (ipcp_init_stage): Merged into...
11997         (ipcp_generate_summary): ...its caller.
11998         (ipcp_change_tops_to_bottom): Also process type lists.
11999         (ipcp_add_param_type): New function.
12000         (ipcp_copy_types): Likewise.
12001         (ipcp_propagate_types): Likewise.
12002         (ipcp_propagate_stage): Also propagate types.
12003         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
12004         Also return true if propagated types require it.
12005         (ipcp_update_callgraph): Dump redirection info.
12006         (ipcp_process_devirtualization_opportunities): New function.
12007         (ipcp_const_param_count): Include known type information.
12008         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
12009         on new node.  Fixed formatting.
12010         * ipa-prop.c (make_edge_direct_to_target): Renamed to
12011         ipa_make_edge_direct_to_target and changed all callers.  Made
12012         externally visible.
12013         (ipa_node_duplication_hook): Duplicate types vector.
12014         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
12015         redirect outgoing calls for which we can't get a decl from the
12016         statement.  Check that we can get a decl from the call statement.
12017         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12018         ipa_analyze_params_uses only when ipa-cp is disabled.
12019         * tree-inline.c (get_indirect_callee_fndecl): Removed.
12020         (expand_call_inline): Do not call get_indirect_callee_fndecl.
12021         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
12022         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
12023
12024 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
12025
12026         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
12027         temporary. Emit move from temporary to accum, so REG_EQUAL note will
12028         be attached to this insn in correct mode.
12029
12030 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
12031
12032         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
12033         using REGNO of base_reg directly.
12034
12035 2010-08-05  Jie Zhang  <jie@codesourcery.com>
12036
12037         PR tree-optimization/45144
12038         * tree-sra.c (type_consists_of_records_p): Return false
12039         if the record contains bit-field.
12040
12041 2010-08-04  Richard Henderson  <rth@redhat.com>
12042
12043         * config/i386/i386.c (struct ix86_frame): Remove padding and
12044         to_allocate members.
12045         (ix86_compute_frame_layout): Don't store them.
12046         (ix86_can_use_return_insn_p): Use a more direct and more obviously
12047         correct condition for the position of the stack pointer.
12048         (ix86_expand_prologue): Compute remaining stack allocation based
12049         on the ultimate stack pointer offset.
12050         (ix86_expand_epilogue): Use more obvious expressions testing for
12051         the stack pointer already pointing to the saved registers.
12052
12053         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
12054         duplication deconstructing the frame pointer.  Simplify
12055         deallocation of the local stack frame.
12056
12057         * reg-notes.def (CFA_EXPRESSION): New.
12058         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12059         (dwarf2out_frame_debug_cfa_expression): New.
12060         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
12061
12062         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
12063         * config/i386/i386.c (ix86_expand_prologue): Set it.
12064         (ix86_expand_epilogue): Clear it.
12065         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
12066         context, add REG_CFA_EXPRESSION notes.
12067
12068         * config/i386/i386.h (struct machine_frame_state): Rename from
12069         machine_cfa_state.  Add members tracking SP and FP regardless
12070         of the current CFA register.
12071         (ix86_cfa_state): Remove.
12072         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
12073         and sse_reg_save_offset members.
12074         (ix86_compute_frame_layout): Set them.
12075         (gen_push): Increment sp_offset too.
12076         (choose_baseaddr_len, choose_baseaddr): New.
12077         (ix86_emit_save_reg_using_mov): New.
12078         (ix86_emit_save_regs_using_mov): Use it.
12079         (ix86_emit_save_sse_regs_using_mov): Likewise.
12080         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
12081         compare vs the saved red_zone_offset.
12082         (pro_epilogue_adjust_stack): Adjust sp_offset.
12083         (ix86_adjust_stack_and_probe): Likewise.
12084         (ix86_expand_prologue): Set up, use, and validate the new
12085         frame_state_info members.  Use gen_frame_mem.
12086         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
12087         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
12088         new frame_state_info members.
12089         (ix86_emit_leave): Likewise.
12090         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
12091         out-of-range stack pointer offsets here.
12092         (ix86_emit_restore_sse_regs_using_mov): Likewise.
12093         (ix86_expand_epilogue): Use and validate the new frame_state_info
12094         members.  Break up and simplify the logic selecting the
12095         restore_regs_via_mov code path.  Ensure that there will be no
12096         out-of-range stack pointer offsets.
12097
12098         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
12099
12100         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
12101         argument name to reflect the expected tree; fix indentation.
12102         (ix86_asm_output_function_label): Output the entire 32-bit
12103         ms_hook here as bytes ...
12104         (ix86_expand_prologue): ... not here as insns.  Attach the
12105         unwind info for the ms_hook to a blockage insn.
12106         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
12107         (ix86_ms_bitfield_layout_p): Fix indentation.
12108         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
12109
12110         * config/i386/i386.c (ix86_using_red_zone): New.
12111         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
12112         ix86_expand_prologue, ix86_force_to_memory): Use it.
12113
12114         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
12115         saving the int registers.
12116
12117         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
12118         and DWARF2_UNWIND_INFO conditional compilation.
12119
12120 2010-08-04  Richard Henderson  <rth@redhat.com>
12121
12122         PR debug/45171
12123         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
12124         an is_naming_typedef_decl.
12125
12126 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
12127
12128         PR rtl-optimization/45162
12129         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
12130         * dce.c (word_dce_process_block): Likewise.
12131
12132 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
12133
12134         PR target/44583
12135         * config/ia64/constraints.md (Z): New.
12136         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
12137         (xfreg_or_signed_fp01_operand): New.
12138         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
12139         with fr_reg_or_signed_fp01_operand and constraint G with Z.
12140         (subsf3): Ditto.
12141         (*maddsf4): Ditto.
12142         (*msubsf4): Ditto.
12143         (adddf3): Ditto.
12144         (adddf3_trunc): Ditto.
12145         (subdf3): Ditto.
12146         (*subdf3_trunc): Ditto.
12147         (*madddf4): Ditto.
12148         (*madddf4_trunc): Ditto.
12149         (*msubdf4): Ditto.
12150         (*msubdf4_trunc): Ditto.
12151         (addxf3): Replace xfreg_or_fp01_operand with
12152         xfreg_or_signed_fp01_operand and constraint G with Z.
12153         (*addxf3_truncsf): Ditto.
12154         (*addxf3_truncdf): Ditto.
12155         (subxf3): Ditto.
12156         (*subxf3_truncsf): Ditto.
12157         (*subxf3_truncdf): Ditto.
12158         (*maddxf4): Ditto.
12159         (*maddxf4_truncsf): Ditto.
12160         (*maddxf4_truncdf): Ditto.
12161         (*msubxf4): Ditto.
12162         (*msubxf4_truncsf): Ditto.
12163         (*msubxf4_truncdf): Ditto.
12164
12165 2010-08-04  Richard Guenther  <rguenther@suse.de>
12166
12167         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
12168         if either alias-set is zero.
12169
12170 2010-08-04  Richard Guenther  <rguenther@suse.de>
12171
12172         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
12173         * tree-ssa-ccp.c: ... here.
12174         * tree-ssa-copy.c: ... and here.
12175         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
12176         value_range_t): Move ...
12177         * tree-vrp.c: ... here.
12178         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
12179         (substitute_and_fold): Adjust prototype.
12180         * tree-ssa-propagate.c (replace_uses_in): Adjust.
12181         (replace_phi_args_in): Likewise.
12182         (substitute_and_fold): Take callback to query lattice instead
12183         of pointer to lattice.  Replace SSA name defs with lattice
12184         values first.
12185         * tree-ssa-ccp.c (ccp_finalize): Adjust.
12186         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
12187         (get_value): New function.
12188         (fini_copy_prop): Adjust.
12189         * tree-vrp.c (vrp_finalize): Adjust.
12190
12191 2010-08-04  Richard Guenther  <rguenther@suse.de>
12192
12193         PR middle-end/45176
12194         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
12195         points-to set for original MEM_REF.
12196
12197 2010-08-04  Richard Guenther  <rguenther@suse.de>
12198
12199         * tree-ssa-ccp.c (get_constant_value): New function.
12200         (get_rhs_assign_op_for_ccp): Remove.
12201         (valueize_op): New function.
12202         (ccp_fold): Use get_constant_value and valueize_op.
12203         (fold_const_aggregate_ref): Likewise.
12204         (ccp_fold_stmt): Likewise.
12205         (visit_assignment): Simplify.
12206
12207 2010-08-04  Richard Guenther  <rguenther@suse.de>
12208
12209         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
12210         * double-int.h (double_int_ctz): Declare.
12211         * double-int.c (double_int_ctz): New function.
12212
12213 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
12214
12215         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
12216         Define.
12217         picochip_expand_movmemhi : Expand movmem pattern.
12218         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
12219         Declare.
12220         * config/picochip/picochip.md (movmemhi) : New pattern.
12221
12222 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
12223
12224         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
12225
12226 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
12227
12228         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
12229         NEG as operand of a MULT by merging it with the other operand.
12230         * combine.c (make_compound_operation): Use trunc_int_for_mode when
12231         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
12232         MULT.
12233         * config/arm/constraints.md (M): Examine only 32 bits of a
12234         HOST_WIDE_INT.
12235         * config/arm/predicates.md (power_of_two_operand): Likewise.
12236
12237 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12238
12239         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
12240         non-NOTE insns.
12241
12242 2010-08-03  Jan Hubicka  <jh@suse.cz>
12243
12244         * ipa-split.c (struct split_point): Add split_part_set_retval.
12245         (find_retval): Forward declare.
12246         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
12247         (consider_split): Compute current->split_part_set_retval.
12248         (visit_bb): Do not look into return value.
12249         (split_function): Handle !split_part_set_retval
12250
12251 2010-08-03  Martin Jambor  <mjambor@suse.cz>
12252
12253         * tree-sra.c (completely_scalarize_record): New parameter REF, create
12254         its own access->expr intead of using build_ref_for_offset.
12255
12256 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
12257
12258         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
12259         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
12260         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
12261         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
12262         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
12263         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
12264         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
12265         DEFAULT_SWITCH_TAKES_ARG.
12266         * config/rx/rx.opt (-patch=): Remove option.
12267         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
12268         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
12269         * doc/invoke.texi (RX Options): Remove -patch=.
12270         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
12271         (option_map): Remove --profile-blocks, --quiet and --silent.
12272
12273 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
12274
12275         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
12276         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
12277         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
12278         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12279         Update calls to ix86_expand_compare and ix86_expand_branch.
12280         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
12281         ix86_expand_compare.
12282         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
12283         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12284         Make static.
12285         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
12286         and ix86_compare_op1.  Update calls to ix86_expand_compare.
12287         (ix86_expand_int_movcc): Ditto.
12288         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
12289         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
12290         (ix86_expand_setcc): Ditto.
12291         (ix86_expand_compare): Remove prototype.
12292         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
12293         ix86_compare_op0 and ix86_compare_op1.  Update calls
12294         to ix86_expand_branch to directly pass operands[1] and operands[2].
12295         (cbranchxf4): Ditto.
12296         (cbranch<MODEF:mode>4): Ditto.
12297         (cbranchcc4): Ditto.
12298         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
12299         Update calls to ix86_expand_setcc to directly pass operands[2] and
12300         operands[3].
12301         (cstorexf4): Ditto.
12302         (cstore<MODEF:mode>4): Ditto.
12303         (cstorecc4): Ditto.
12304
12305 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
12306
12307         PR target/45063
12308         * caller-save.c (save_call_clobbered_regs): Remove regs from
12309         hard_regs_saved when they are set.
12310
12311 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
12312
12313         PR target/41089
12314         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
12315         as volatile.
12316
12317 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
12318
12319         * common.opt (ftree-loop-distribute-patterns): New.
12320         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
12321         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
12322         at -O3.
12323         * tree-data-ref.c (stores_zero_from_loop): New.
12324         * tree-data-ref.h (stores_zero_from_loop): Declared.
12325         * tree-loop-distribution.c (tree_loop_distribution): Call
12326         stores_zero_from_loop.
12327         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
12328
12329 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
12330
12331         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
12332         into account.
12333
12334         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
12335         * config/arm/arm.c (thumb1_code): New variable.
12336         (arm_override_options): Set it.
12337         (thumb1_final_prescan_insn): Keep track of condition code status.
12338         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
12339         jumps that depend on them.
12340         * config/arm/arm.h (thumb1_code): Declare variable.
12341         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
12342         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
12343         thumb1_cc_mode.
12344         (CC_STATUS_INIT): New macro.
12345         * config/arm/constraints.md (Pd): New constraint.
12346         * config/arm/predicates.md (noov_comparison_operator): New predicate.
12347         * config/arm/arm.md (is_thumb1): New define_attr.
12348         (conds): Set default to "clob" when generating Thumb1 code.
12349         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
12350         code are set.  Use two-operand assembly syntax.
12351         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
12352         pattern.
12353         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
12354         codes are set.  Use two-operand assembly syntax.
12355         (zero_extendhisi splitter): Remove constraints.
12356         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
12357         thumb1_movsf_insn): Set conds attribute as appropriate.
12358         (cbranchsi4_insn): Use condition code status from struct
12359         machine_function to determine whether the comparison can be eliminated.
12360         Discourage the alternative using high registers.
12361         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
12362         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
12363         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
12364         subsi3_cbranch): Delete.
12365         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
12366         one subtract and one cbranch insn.
12367
12368         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
12369         thumb2_movdf_soft_insn): Delete patterns.
12370         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
12371         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
12372         (pool_range, neg_pool_range): Use them to define defaults.
12373         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
12374         and allow for TARGET_32BIT.
12375
12376         PR target/40457
12377         * config/arm/arm.h (arm_regs_in_sequence): Declare.
12378         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
12379         load_multiple_sequence, store_multiple_sequence): Delete
12380         declarations.
12381         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
12382         declarations.
12383         * config/arm/ldmstm.md: New file.
12384         * config/arm/arm.c (arm_regs_in_sequence): New array.
12385         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
12386         CHECK_REGS.  All callers changed.
12387         If SAVED_ORDER is nonnull, copy the computed order into it.
12388         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
12389         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
12390         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
12391         If SAVED_ORDER is nonnull, copy the computed order into it.
12392         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
12393         like REGS.  Handle Thumb mode.
12394         (arm_gen_load_multiple_1): New function, broken out of
12395         arm_gen_load_multiple.
12396         (arm_gen_store_multiple_1): New function, broken out of
12397         arm_gen_store_multiple.
12398         (arm_gen_multiple_op): New function, with code from
12399         arm_gen_load_multiple and arm_gen_store_multiple moved here.
12400         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
12401         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
12402         changed.
12403         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
12404         * config/arm/predicates.md (commutative_binary_operator): New.
12405         (load_multiple_operation, store_multiple_operation): Handle more
12406         variants of these patterns with different starting offsets.  Handle
12407         Thumb-1.
12408         * config/arm/arm.md: Include "ldmstm.md".
12409         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
12410         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
12411         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
12412         peepholes): Delete.
12413         * config/arm/ldmstm.md: New file.
12414         * config/arm/arm-ldmstm.ml: New file.
12415
12416         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
12417         if statement which adds extra costs to frame-related expressions.
12418
12419 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12420
12421         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
12422
12423 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
12424
12425         PR target/45142
12426         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
12427         alternative 2.
12428         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
12429         split V4SI operands.
12430
12431 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
12432
12433         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12434         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
12435         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
12436         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12437
12438 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
12439
12440         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
12441         LOCAL_INCLUDE_DIR.
12442
12443 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
12444
12445         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
12446         used in the call to optab_for_tree_code.  Fix the second
12447         is_widening_mult_p call.  Check that both unwidened operands
12448         have the same sign.
12449
12450 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
12451
12452         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
12453
12454 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
12455
12456         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12457
12458 2010-07-30  DJ Delorie  <dj@redhat.com>
12459
12460         * config/rx/predicates.md (rx_constshift_operand): New.
12461         * config/rx/rx.md (zs_cond): New.
12462         (cbranchsi4): Remove mode.
12463         (*cbranchsi4_<code>): Likewise.
12464         (*tstbranchsi4_<code>): New.
12465         (*tstbranchsi4r_<code>): New.
12466         (*tstbranchsi4m_eq): New.
12467         (*tstbranchsi4m_ne): New.
12468         (cbranchsf4): Remove mode.
12469         (*cbranchsf4_<code>): Likewise.
12470
12471 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
12472
12473         * rtlanal.c (simplify_subreg_regno): Don't treat
12474         HARD_FRAME_POINTER_REGNUM specially.
12475
12476 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
12477
12478         * common.opt (-G): Don't define option here.
12479         * config/g.opt: New.
12480         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
12481         rs6000/powerpc and score targets.
12482         * opts.c (common_handle_option): Don't handle -G here.
12483         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
12484         * config/frv/frv.c (frv_handle_option): Handle -G.
12485         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
12486         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
12487         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
12488         * config/mips/mips.c (mips_handle_option): Handle -G.
12489         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
12490         * config/score/score.c (score_handle_option): Handle -G.
12491
12492 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
12493
12494         * config/mmix/mmix.c: Include basic-block.h.
12495
12496 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
12497
12498         PR debug/45055
12499         PR rtl-optimization/45137
12500         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
12501         prototypes.
12502         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
12503         New functions.
12504         * combine.c (next_nonnote_nondebug_insn): Removed.
12505         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
12506         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
12507         * sched-deps.c (sched_analyze_insn): Likewise.
12508         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
12509         * rtlanal.c (canonicalize_condition): Likewise.
12510         * postreload.c (reload_combine_recognize_pattern): Likewise.
12511         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
12512
12513 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
12514
12515         * config/i386/i386.md (int_cond): Remove code iterator.
12516         (fp_cond): Ditto.
12517         (cbranch<mode>4): Use ordered_comparison_operator predicate
12518         for operator0.
12519         (cstore<mode>4): Ditto for operator1.
12520         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
12521         (add<mode>cc): ditto.
12522
12523 2010-07-30  Richard Guenther  <rguenther@suse.de>
12524
12525         PR middle-end/45141
12526         * expr.c (expand_expr_real_1): Check for not handled base address.
12527
12528 2010-07-30  Richard Guenther  <rguenther@suse.de>
12529
12530         * ipa-prop.c (ipa_modify_formal_parameters): Use
12531         build_distinct_type_copy.
12532
12533 2010-07-30  Anthony Green  <green@moxielogic.com>
12534
12535         * config/moxie/rtems.h: New file.
12536         * config.gcc: Add moxie-rtems support.
12537
12538 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
12539
12540         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
12541         df flags as in run_fast_df_dce.
12542
12543 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
12544
12545         Revert:
12546         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
12547
12548         * rtl.def (NOTE): Swap operands 4 and 5.
12549         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
12550         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
12551         Adjust accordingly.
12552         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
12553
12554 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
12555
12556         PR debug/45110
12557         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
12558         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
12559         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
12560         formal parameters.
12561         (gen_decl_die): Change return type to dw_die_ref, return what
12562         gen_formal_parameter_die returned.
12563
12564 2010-07-29  Martin Jambor  <mjambor@suse.cz>
12565
12566         * dbgcnt.def (eipa_sra): New counter.
12567         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
12568
12569 2010-07-29  Xinliang David Li  <davidxl@google.com>
12570
12571         PR bootstrap/45119
12572         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
12573         in revision 162652.
12574
12575 2010-07-29  Richard Guenther  <rguenther@suse.de>
12576
12577         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
12578         (TV_TREE_STORE_CCP): Likewise.
12579         (TV_TREE_REDPHI): Likewise.
12580
12581 2010-07-29  Richard Guenther  <rguenther@suse.de>
12582
12583         * double-int.h (double_int_and_not): New function.
12584         * combine.c (try_combine): Use it.
12585         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
12586
12587 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
12588
12589         PR rtl-optimization/42575
12590         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
12591         Argument AU removed.  All callers changed.  Ignore artificial refs.
12592         Use return value of df_word_lr_simulate_defs to decide whether an insn
12593         is necessary.
12594         (fast_dce): Rename arg to WORD_LEVEL.
12595         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
12596         static.
12597         (pass_fast_rtl_byte_dce): Delete.
12598         * dce.h (run_word_dce): Declare.
12599         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
12600         All callers changed.  Simplify code to only deal with two-word regs.
12601         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
12602         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
12603         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
12604         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
12605         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
12606         (df_word_lr_mark_ref): Declare.
12607         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
12608         df_word_lr_simulate_uses): Declare or rename from byte variants.
12609         (df_byte_lr_simulate_artificial_refs_at_top,
12610         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12611         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
12612         declarations.
12613         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
12614         (enum df_mm): Delete.
12615         * df-byte-scan.c: Delete file.
12616         * df-problems.c (df_word_lr_problem_data): Renamed from
12617         df_byte_lr_problem_data, all members deleted except for
12618         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
12619         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
12620         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12621         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
12622         df_byte_lr_confluence_0): Delete functions.
12623         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
12624         callers changed.
12625         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
12626         Don't initialize members that were deleted, don't try to discover data
12627         about registers.  Ignore hard regs.
12628         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
12629         (df_word_lr_mark_ref): New function.
12630         (df_word_lr_bb_local_compute): Renamed from
12631         df_byte_bb_lr_local_compute; all callers changed.  Use
12632         df_word_lr_mark_ref.  Assert that artificial refs don't include
12633         pseudos.  Ignore hard registers.
12634         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
12635         Assert that exit block uses don't contain pseudos.
12636         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
12637         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
12638         callers changed.  Ignore hard regs.
12639         (df_word_lr_transfer_function): Renamed from
12640         df_byte_lr_transfer_function; all callers changed.
12641         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
12642         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
12643         changed.
12644         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
12645         callers changed.
12646         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
12647         confluence operator 0 set to NULL.
12648         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
12649         callers changed.
12650         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
12651         Return bool, true if bitmap changed or insn otherwise necessary.
12652         All callers changed.  Simplify using df_word_lr_mark_ref.
12653         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
12654         all callers changed.  Simplify using df_word_lr_mark_ref.
12655         * lower-subreg.c: Include "dce.h"
12656         (decompose_multiword_subregs): Call run_word_dce if df available.
12657         * Makefile.in (lower-subreg.o): Adjust dependencies.
12658         (df-byte-scan.o): Delete.
12659         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
12660
12661 2010-07-29  Richard Guenther  <rguenther@suse.de>
12662
12663         * tree.c (build_vector): Assert that the vector constant
12664         has enough elements.
12665         (build_vector_from_ctor): Pad with trailing zeros.
12666
12667 2010-07-29  Richard Guenther  <rguenther@suse.de>
12668
12669         PR tree-optimization/45120
12670         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12671         Handle offset in DEREFs properly.
12672         (get_constraint_for_1): Handle MEM_REF offset properly.
12673
12674 2010-07-29  Richard Guenther  <rguenther@suse.de>
12675
12676         PR middle-end/45034
12677         * convert.c (convert_to_integer): Always use an unsigned
12678         type for narrowed negate and bitwise not.
12679
12680 2010-07-29  Ira Rosen  <irar@il.ibm.com>
12681
12682         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
12683         to outer loop when creating reduction epilogue for double reduction,
12684         and switch back to the inner loop when updating the phi nodes.
12685         Update uses of outer loop exit phi nodes in double reduction (instead
12686         of uses of reduction).
12687
12688 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
12689
12690         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
12691         popcount on power7 and parity on power6 systems.
12692         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
12693         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
12694         instructions.
12695
12696         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
12697         (UNSPEC_PARITY): Ditto.
12698         (SFDF): New iterator for SF/DF.
12699         (rreg2): New mode attribute for floating register constraint.
12700         (TARGET_FLOAT): New mode attribute for whether single/double float
12701         is supported.
12702         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
12703         pattern.
12704         (parity<mode>2_cmpb): New insn for parity on power6 and newer
12705         machines.
12706         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
12707         pattern.  Add support for fcpsgn instruction added in power6.
12708         (copysignsf3): Delete.
12709         (copysigndf3): Delete.
12710         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
12711         instead of if_then_else in RTL to avoid problems with -0.
12712
12713         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
12714         of if_then_else to mirror scalar code.
12715         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
12716         rs6000.md.
12717
12718         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
12719         instead of if_then_else.
12720
12721 2010-07-28  Xinliang David Li  <davidxl@google.com>
12722
12723         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
12724         (dump_cand): Dump var_before/after.
12725         (htab_inv_expr_eq): New function.
12726         (htab_inv_expr_hash): New function.
12727         (tree_ssa_iv_optimize_init): Support pseudo invariants.
12728         (add_candidate_1): consider base type precision.
12729         (set_use_iv_cost): New parameter.
12730         (adjust_setup_cost): Use profile information.
12731         (get_address_cost): Do not hard code width in computing address
12732         offset limits.
12733         (compare_aff_trees): New function.
12734         (get_loop_invariant_expr_id): New function.
12735         (get_computation_cost_at): New parameter and use profile information.
12736         (get_computation_cost): New parameter.
12737         (determine_use_iv_cost_generic): Pass new parameter.
12738         (determine_use_iv_cost_address): Ditto.
12739         (determine_use_iv_cost_condition): Ditto.
12740         (autoinc_possible_for_pair): Ditto.
12741         (determine_use_iv_costs): More dumps.
12742         (iv_ca_get_num_inv_exprs): New function.
12743         (iv_ca_recount_cost): Consider loop invariants in register pressure
12744         cost.
12745         (iv_ca_add_use): New parameter.
12746         (iv_ca_dump): Better dumping.
12747         (iv_ca_extend): New parameter.
12748         (try_add_cand_for): Attempt to get better partial solution.
12749         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
12750         (create_new-ivs): More dumps.
12751         (rewrite_use_compare): Ditto.
12752         (free_loop_data): More cleanup.
12753         (treee_ssa_iv_optimize_finalize): Ditto.
12754
12755 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
12756
12757         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
12758         * config/i386/i386.c (ix86_profile_before_prologue): New.
12759         (override_options): Add special handling for -mfentry.
12760         (ix86_function_regparm): Likewise.
12761         (ix86_function_sseregparm): Likewise.
12762         (ix86_frame_pointer_required): Likewise.
12763         (ix86_expand_prologue): Check for ms_hook_prologue.
12764         (x86_function_profiler): Adjust mcount output.
12765         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
12766         * config/i386/i386.opt (mfentry): New.
12767         * doc/invoke.texi (mfentry): Add documentation.
12768         * doc/tm.texi: Regenerated..
12769         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
12770         * final.c (final_start_function): Replace macro
12771         PROFILE_BEFORE_PROLOGUE by target hook.
12772         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12773         * target.def (profile_before_prologue): New hook.
12774         * targhooks.c (default_profile_before_prologue): New.
12775         * targhooks.h (default_profile_before_prologue): New.
12776
12777 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
12778
12779         PR debug/45105
12780         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
12781
12782         PR debug/45103
12783         * dwarf2out.c (dwarf2out_var_location): Always consider
12784         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
12785
12786 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12787
12788         PR rtl-optimization/45107
12789         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
12790
12791 2010-07-28  Richard Guenther  <rguenther@suse.de>
12792
12793         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
12794         (set_lattice_value): Do not query an old default value.
12795         (get_value_for_expr): New function.  Properly canonicalize
12796         float values.
12797         (ccp_visit_phi_node): Use it.
12798
12799 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
12800
12801         * config/arm/arm.c (arm_pcs_default): Remove static.
12802         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
12803         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
12804         (arm_pcs_default): Declare.
12805
12806 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
12807
12808         * config/rs6000/rs6000.c (rs6000_override_options):
12809         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
12810         ... to darwin_rs6000_override_options.
12811         (rs6000_return_in_memory): Update preceding comment for darwin
12812         64 bit ABI.  Use TARGET_MACHO inline.
12813         (rs6000_darwin64_struct_check_p): New.
12814         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
12815         (function_arg): Likewise.
12816         (rs6000_arg_partial_bytes): Likewise.
12817         (rs6000_function_value): Likewise.
12818
12819 2010-07-28  Andi Kleen  <ak@linux.intel.com>
12820
12821         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
12822
12823 2010-07-28  Richard Guenther  <rguenther@suse.de>
12824
12825         PR middle-end/44903
12826         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
12827         targets try harder to not generate unaligned accesses.
12828
12829 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12830
12831         PR rtl-optimization/45101
12832         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
12833         for gcse-las.
12834
12835 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
12836
12837         PR tree-optimization/44885
12838         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
12839         with non-aliased component.
12840
12841 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
12842
12843         * config/darwin-driver.c (SWITCH_TAKES_ARG,
12844         WORD_SWITCH_TAKES_ARG): Remove.
12845         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
12846         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
12847         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
12848         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
12849         definitions from gcc.c.
12850         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
12851         defaults.h.
12852         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
12853         Move to defaults.h.
12854         * opts-common.c: Include tm.h.
12855         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
12856         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
12857         Handle more than one argument.  Set canonical_option_num_elements.
12858         (decode_cmdline_options_to_array): Set
12859         canonical_option_num_elements and trailing elements of
12860         canonical_option.
12861         * opts.h (struct cl_decoded_option): Allow four elements in
12862         canonical_option.  Add field canonical_option_num_elements.
12863         * Makefile.in (opts-common.o): Update dependencies.
12864
12865 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
12866
12867         PR middle-end/44790
12868         PR middle-end/44993
12869         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
12870         sure the base has address_mode before adding the offset.
12871
12872 2010-07-27  Xinliang David Li  <davidxl@google.com>
12873
12874         * tree-flow.h (create_mem_ref): Add one new parameter.
12875         * tree-ssa-address.c (create_mem_ref): New parameter.
12876         (addr_to_parts): Ditto.
12877         (move_variant_to_index): New function.
12878         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
12879
12880 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
12881
12882         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
12883         4 and 5.
12884         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
12885         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
12886         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
12887         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
12888         CODE_LABELs and NOTEs.
12889         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
12890         * combine.c (try_combine): Likewise.
12891         * ira.c (setup_prohibited_mode_move_regs): Likewise.
12892         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
12893
12894 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
12895
12896         * coretypes.h (struct cl_option_handlers): Declare.
12897         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
12898         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
12899         * langhooks-def.h (lhd_handle_option): Declare.
12900         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
12901         * langhooks.c (lhd_handle_option): New.
12902         * langhooks.h (struct lang_hooks): Update prototype and return
12903         value type of handle_option hook.
12904         * optc-gen.awk: Generate target_flags_explicit definition for the
12905         driver.
12906         * opts-common.c: Include diagnostic.h.
12907         (handle_option): Move from opts.c.  Update prototype and return
12908         value type.  Use handlers structure.
12909         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
12910         handlers structure.
12911         (set_option): Move from opts.c.
12912         * opts.c (common_handle_option): Update prototype and return value
12913         type.  Update calls to handle_option and enable_warning_as_error.
12914         (unknown_option_callback, post_handling_callback,
12915         lang_handle_option, target_handle_option): New.
12916         (handle_option, read_cmdline_option): Move to opts-common.c.
12917         (read_cmdline_options): Update prototype.  Update call to
12918         read_cmdline_option.
12919         (decode_options): Initialize and use handlers structure.
12920         (set_option): Move to opts-common.c.
12921         (enable_warning_as_error): Update prototype.  Update call to
12922         handle_option.
12923         * opts.h (struct cl_option_handler_func, struct
12924         cl_option_handlers): New.
12925         (handle_option, enable_warning_as_error): Update prototypes.
12926         (read_cmdline_option): Declare.
12927         * Makefile.in (opts-common.o): Update dependencies.
12928
12929 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12930
12931         * config/arm/arm.c (params.h): Include.
12932         (arm_override_options): Tune gcse-unrestricted-cost.
12933         * config/arm/t-arm (arm.o): Define dependencies.
12934
12935 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12936
12937         PR target/42495
12938         PR middle-end/42574
12939         * basic-block.h (get_dominated_to_depth): Declare.
12940         * dominance.c (get_dominated_to_depth): New function, use
12941         get_all_dominated_blocks as a base.
12942         (get_all_dominated_blocks): Use get_dominated_to_depth.
12943
12944         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
12945         (hoist_exprs): Remove.
12946         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
12947         (compute_code_hoist_vbeinout): Add debug print outs.
12948         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
12949
12950         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
12951         quadratic behavior.
12952         * params.h (MAX_HOIST_DEPTH): New macro.
12953         * doc/invoke.texi (max-hoist-depth): Document.
12954
12955 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12956
12957         PR rtl-optimization/40956
12958         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
12959         constants.
12960
12961 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12962
12963         PR target/42495
12964         PR middle-end/42574
12965         * config/arm/arm.c (legitimize_pic_address): Use
12966         gen_calculate_pic_address pattern to emit calculation of PIC address.
12967         (will_be_in_index_register): New function.
12968         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
12969         (thumb1_legitimate_address_p): Use it provided !strict_p.
12970         * config/arm/arm.md (calculate_pic_address): New expand and split.
12971
12972 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12973
12974         PR target/42495
12975         PR middle-end/42574
12976         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
12977         * config/arm/arm.md (define_split "J", define_split "K"): Make
12978         IRA/reload friendly.
12979
12980 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12981
12982         * gcse.c (insert_insn_end_basic_block): Update signature, remove
12983         unused checks.
12984         (pre_edge_insert, hoist_code): Update.
12985
12986 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12987
12988         PR target/42495
12989         PR middle-end/42574
12990         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
12991
12992 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12993
12994         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
12995
12996 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
12997
12998         PR rtl-optimization/40956
12999         PR target/42495
13000         PR middle-end/42574
13001         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
13002         for hoisting.
13003         (hoist_code): Count occurences in current block too.
13004
13005 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13006
13007         * gcse.c (struct expr:max_distance): New field.
13008         (doing_code_hoisting_p): New static variable.
13009         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
13010         simple expressions, don't change behavior for PRE.  Set max_distance.
13011         (insert_expr_in_table): Set new max_distance field.
13012         (hash_scan_set): Update.
13013         (hoist_expr_reaches_here_p): Stop search after max_distance
13014         instructions.
13015         (find_occr_in_bb): New static function.  Use it in ...
13016         (hoist_code): Calculate sizes of basic block before any changes are
13017         done.  Pass max_distance to hoist_expr_reaches_here_p.
13018         (one_code_hoisting_pass): Set doing_code_hoisting_p.
13019
13020         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
13021         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
13022         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
13023         macros.
13024         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
13025         Document.
13026
13027 2010-07-27  Jeff Law  <law@redhat.com>
13028             Maxim Kuvyrkov  <maxim@codesourcery.com>
13029
13030         * gcse.c (compute_transpout, transpout): Remove, move logic
13031         to prune_expressions.
13032         (compute_pre_data): Move pruning of trapping expressions ...
13033         (prune_expressions): ... here.  New static function.
13034         (compute_code_hoist_data): Use it.
13035         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
13036
13037 2010-07-27  Xinliang David Li  <davidxl@google.com>
13038
13039         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
13040         (rewrite_use_address): Adjust iv update position when needed.
13041
13042 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13043
13044         * dbgcnt.def (hoist_insn): New debug counter.
13045         * gcse.c (hoist_code): Use it.
13046
13047 2010-07-27  Xinliang David Li  <davidxl@google.com>
13048
13049         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
13050         (niter_for_single_dom_exit): Passes additional parameter.
13051         (iv_period): Fix comments.
13052         (may_eliminate_iv): Handles multiple exit loops properly.
13053         (free_tree_niter_desc): New function.
13054         (free_loop_data): Frees up loop iteration descriptors.
13055
13056 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13057
13058         PR target/44542
13059         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
13060         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
13061         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
13062         (expand_one_var): Don't consider DECL_ALIGN for variables for
13063         which expand_one_stack_var_at has been already called.
13064
13065         PR testsuite/44701
13066         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
13067         constraints on IA-64.
13068
13069 2010-07-27  Jie Zhang  <jie@codesourcery.com>
13070
13071         PR target/44290
13072         Revert:
13073         2010-07-23  Jie Zhang  <jie@codesourcery.com>
13074
13075         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13076         false if ! tree_versionable_function_p.
13077
13078 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13079
13080         * dwarf2out.c (add_data_member_location_attribute): Use
13081         add_AT_unsigned instead of add_AT_int if offset is non-negative.
13082
13083 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13084
13085         * postreload.c (try_replace_in_use): New static function.
13086         (reload_combine_recognize_const_pattern): Use it here.  Allow
13087         substituting into a final add insn, and substituting into a memory
13088         reference in an insn that sets the reg.
13089
13090 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13091
13092         * common.opt (o): Add MissingArgError.
13093         * doc/options.texi (MissingArgError): Document.
13094         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
13095         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
13096         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
13097         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
13098         * langhooks.h (struct lang_hooks): Remove missing_argument.
13099         * optc-gen.awk: Handle MissingArgError and output new structure
13100         field initializers.
13101         * opts.c (read_cmdline_option): Use missing_argument_error field
13102         instead of missing_argument langhook.
13103         * opts.h (struct cl_option): Add missing_argument_error field.
13104         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
13105
13106 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
13107
13108         PR target/29090
13109         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
13110         Darwin64 ABI, for zero-sized objects.
13111
13112 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
13113
13114         PR target/35491
13115         PR target/29090
13116
13117         Merge from Apple local 4.2.1.
13118         2005-05-11  Stan Shebs  <shebs@apple.com>
13119         Fix 64-bit varargs for Darwin (Radar 4028089).
13120         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
13121         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
13122         Add argument, add case for 8-byte register half-filled with a float.
13123         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
13124         single-precision floats specially.
13125
13126 2010-07-27  Ira Rosen  <irar@il.ibm.com>
13127
13128         PR tree-optimization/44152
13129         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
13130         complex numbers for further check.
13131         (vect_supported_load_permutation_p): Check nodes with
13132         complex numbers.
13133
13134 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13135
13136         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
13137         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
13138         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
13139         (LANG_HOOKS_INITIALIZER): Add new hooks.
13140         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
13141         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
13142         and complain_wrong_lang_p.  Update init_options prototype.
13143         * c-objc-common.c (c_initialize_diagnostics): First call
13144         c_common_initialize_diagnostics.
13145         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
13146         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
13147         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
13148         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
13149         (hook_uint_void_0): New.
13150         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
13151         (hook_uint_void_0): New.
13152         * opts-common.c (decode_cmdline_option,
13153         decode_cmdline_options_to_array): Also fill in canonical_option field.
13154         * opts.c (complain_wrong_lang): Use langhook to determine whether
13155         to complain instead of special-casing LTO.
13156         (decode_options): Separate lang_mask determination with
13157         option_lang_mask hook from call of init_options hook.
13158         * opts.h (struct cl_decoded_option): Add canonical_option.
13159
13160 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13161
13162         PR tree-optimization/45083
13163         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
13164
13165 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13166
13167         * postreload.c (reload_combine_recognize_const_pattern): Move test
13168         for limiting the insn movement to the right scope.
13169
13170         PR rtl-optimization/45051
13171         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
13172         than reg_mentioned_p.
13173
13174 2010-07-26  Richard Henderson  <rth@redhat.com>
13175
13176         PR target/44132
13177         * tree-emutls.c: New file.
13178         * Makefile.in (OBJS-common): Add it.
13179         * tree-pass.h (pass_ipa_lower_emutls): Declare.
13180         * passes.c (init_optimization_passes): Add it.
13181
13182         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
13183         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
13184         * expr.c (emutls_var_address): Delete.
13185         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
13186         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
13187         (emutls_finish): Delete.
13188         * toplev.c (compile_file): Don't call it.
13189         * tree.h (emutls_decl): Delete.
13190         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
13191         (emutls_finish, emutls_finalize_control_var): Delete.
13192         (emutls_object_type): Move to tree-emutls.c.
13193         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
13194         default_emutls_var_fields, get_emutls_object_type,
13195         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
13196         default_emutls_var_init): Likewise.
13197         (get_variable_section): Don't special case emutls.
13198         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
13199         default_elf_select_section, default_unique_section,
13200         default_encode_section_info): Likewise.
13201         * varpool.c (decide_is_variable_needed): Likewise.
13202         * gimple-iterator.c (update_call_edge_frequencies): New
13203         (gsi_insert_on_edge_immediate): Use it.
13204         (gsi_insert_seq_on_edge_immediate): Likewise.
13205         (gsi_commit_one_edge_insert): Likewise.
13206
13207         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
13208         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
13209         (x86_64_elf_unique_section): Likewise.
13210
13211 2010-07-26  Jan Hubicka  <jh@suse.cz>
13212
13213         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
13214         GTY((skip)).
13215
13216 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
13217
13218         * target.def (output_source_filename): New hook.
13219         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
13220         * doc/tm.texi: Regenerate.
13221         * toplev.c (output_file_directive) Remove function.
13222         * toplev.h (output_file_directive) Remove.
13223         * output.h (default_asm_output_source_filename,
13224         output_file_directive): Declare.
13225         * varasm.h (default_asm_output_source_filename,
13226         output_file_directive): New functions.
13227
13228         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13229         * config/mips/mips-protos.h (mips_output_filename): Remove.
13230         * config/mips/mips.c (mips_output_filename): Make Static.
13231         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
13232
13233 2010-07-26  Richard Guenther  <rguenther@suse.de>
13234
13235         PR tree-optimization/43784
13236         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
13237         if the destination is used by the call.
13238
13239 2010-07-26  Richard Guenther  <rguenther@suse.de>
13240
13241         PR middle-end/45073
13242         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
13243         SSA updating on being in SSA form.
13244
13245 2010-07-26  Richard Guenther  <rguenther@suse.de>
13246
13247         PR middle-end/45056
13248         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
13249
13250 2010-07-26  Richard Guenther  <rguenther@suse.de>
13251
13252         PR tree-optimization/45071
13253         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
13254         adjust op->opcode.
13255
13256 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
13257
13258         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
13259         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
13260         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
13261         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
13262         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
13263         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
13264         save_r31, return_r31, save_interrupt, return_interrupt,
13265         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
13266         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
13267         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
13268         new ABI requirements.
13269         (save_r6_r9, L_callt_save_r6_r9): Remove.
13270         * config/v850/predicates.md (even_reg_operand, disp23_operand,
13271         const_float_1_operand const_float_0_operand): New Predicates.
13272         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
13273         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
13274         * config/v850/t-v850: Update multilibs for new target variants.
13275         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
13276         * config/v850/t-v850e: Likewise.
13277         * config/v850/v850.c (v850_issue_rate): New.
13278         (v850_strict_argument_naming): New.
13279         (function_arg): Modify to generate a different ABI.
13280         (print_operand): Update case 'z' to support float modes.
13281         (output_move_single): Modify to generate appropriate and better
13282         assembly.
13283         (v850_float_z_comparison_operator, v850_select_cc_mode,
13284         v850_float_nz_comparison_operator,  v850_gen_float_compare,
13285         v850_gen_compare): New functions to support comparison of float values.
13286         (ep_memory_offset): Add support for V850E2 targets.
13287         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
13288         (INTERRUPT_REGPARM_NUM): Remove.
13289         (compute_register_save_size): Add extra case to save/restore long call.
13290         (use_prolog_function): New function to support prologue.
13291         (expand_prologue): Add support for V850E2 targets and modified
13292         as per the current ABI requirements.
13293         (expand_epilogue): Likewise.
13294         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
13295         (construct_save_jarl): Likewise.
13296         (construct_dispose_instruction): Update as per the current ABI
13297         requirements.
13298         (construct_prepare_instruction): Likewise.
13299         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
13300         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
13301         (CPP_SPEC): Updated to support v850e2 targets.
13302         (STRICT_ALIGNMENT): Modified.
13303         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
13304         (FIXED_REGISTERS): Likewise.
13305         (CALL_USED_REGISTERS): Likewise.
13306         (CONDITIONAL_REGISTER_USAGE): Updated.
13307         (HARD_REGNO_MODE_OK): Updated.
13308         (reg_class): Updated to add even registers.
13309         (REG_CLASS_NAMES): Likewise.
13310         (REG_CLASS_CONTENTS): Likewise.
13311         (REGNO_REG_CLASS): Updated for CC registers.
13312         (REG_CLASS_FROM_LETTER): Added support for even registers.
13313         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
13314         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
13315         ARG_POINTER_REGNUM): Updated.
13316         (FUNCTION_ARG_ADVANCE): Define.
13317         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
13318         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
13319         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
13320         (GO_IF_LEGITIMATE_ADDRESS): Updated.
13321         (SELECT_CC_MODE): Define.
13322         (REGISTER_NAMES): Updated to add psw and fcc registers.
13323         (ADDITIONAL_REGISTER_NAMES): Updated.
13324         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
13325         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
13326         * config/v850/v850.md (define_constants): Define new constants.
13327         (type): Update store,bit1,macc,div,fpu and single attributes.
13328         (cpu): New attribute.
13329         (cc): Add set_z attribute.
13330         (unsign23byte_load, sign23byte_load, unsign23hword_load,
13331         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
13332         23word_store): New instructions for 23-bit displacement load and store.
13333         (movqi_internal, movhi_internal): Update the attributes.
13334         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
13335         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
13336         the attributes.
13337         (v850_tst1): Modified using CC_REGNUM.
13338         (tstsi): Remove.
13339         (cmpsi): Modified as define_expand from define_insn.
13340         (cmpsi_insn, cmpsf, cmpdf): New instructions.
13341         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
13342         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
13343         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
13344         one_cmplsi2): Clobber the CC_REGNUM register.
13345         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
13346         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
13347         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
13348         (setf_insn, set_z_insn, set_nz_insn): New instructions for
13349         v850e2v3 target.
13350         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
13351         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
13352         targets.
13353         (sasf_1, sasf_2): Remove.
13354         (sasf): New instruction.
13355         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
13356         targets. CC_REGNUM register is clobbered and attributes are
13357         updated.
13358         (branch_z_normal, branch_z_invert, branch_nz_normal,
13359         branch_nz_invert): New branch related instructions.
13360         (jump): Updated the attributes.
13361         (switch): Update to support new targets. CC_REGNUM register is
13362         clobbered and attributes are updated.
13363         (call_internal_short, call_internal_long, call_value_internal_short,
13364         call_value_internal_long): Updated the attributes.
13365         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
13366         clobbered and attributes are updated.
13367         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
13368         Update to support new targets. CC_REGNUM register is clobbered.
13369         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
13370         instructions.
13371         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
13372         are updated.
13373         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
13374         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
13375         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
13376         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
13377         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
13378         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
13379         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
13380         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
13381         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
13382         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
13383         point instructions defined for V850e2v3 target.
13384         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
13385         Add support for V850E2 targets and CC_REGNUM register is clobbered.
13386         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
13387         support for new targets.
13388         * config/v850/v850-modes.def: New file.
13389         * config/v850/v850.opt(mstrict-align): Remove.
13390         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
13391         mv850e2v3): New command line options for V850.
13392         * config.gcc: Update the newly added files.
13393         * doc/invoke.texi: Update the newly added command line options for
13394         V850 target.
13395
13396 2010-07-26  Richard Guenther  <rguenther@suse.de>
13397
13398         PR tree-optimization/45052
13399         * ipa-pure-const.c (check_stmt): Check volatileness.
13400
13401 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
13402
13403         PR target/44707
13404         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
13405         * config/sparc/sparc.c: Include reload.h.
13406         (legitimize_tls_address): Rename into...
13407         (sparc_legitimize_tls_address): ...this.
13408         (legitimize_pic_address): Rename into...
13409         (sparc_legitimize_pic_address): ...this.
13410         (sparc_expand_move): Adjust to above renaming.
13411         (sparc_tls_referenced_p): Likewise.
13412         (sparc_legitimize_tls_address): Likewise.
13413         (sparc_legitimize_pic_address): Likewise.
13414         (sparc_legitimize_address): Likewise.
13415         (sparc_output_mi_thunk): Likewise.
13416         (sparc_legitimize_reload_address): New global function.  Recognize
13417         (lo_sum (high ...) ...) patterns generated by earlier passes.
13418         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
13419
13420 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
13421
13422         PR target/44484
13423         * config/sparc/predicates.md (memory_reg_operand): Delete.
13424         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
13425         (*sync_compare_and_swap): Encode the address form in the pattern.
13426         (*sync_compare_and_swapdi_v8plus): Likewise.
13427
13428 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
13429
13430         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
13431         Streamline paragraph on compatibility with the system compiler.
13432
13433 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
13434
13435         PR middle-end/45035
13436         * alias.c (true_dependence_1): Fix thinko in merge of old
13437         true_dependence and canon_true_dependence.
13438
13439 2010-07-23  Jan Hubicka  <jh@suse.cz>
13440
13441         * lto-streamer-out.c (write_symbol): Fix visibilities of external
13442         references.
13443
13444 2010-07-23  Le-Chun Wu  <lcwu@google.com>
13445
13446         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
13447         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
13448         and an unnecessary assignment.
13449         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
13450         self-assign warning.
13451         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
13452         unnecessary self-init.
13453
13454 2010-07-23  Richard Guenther  <rguenther@suse.de>
13455
13456         PR lto/43071
13457         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
13458         for -flto and -fwhopr.
13459
13460 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
13461
13462         PR target/41943
13463         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
13464         (stmp-int-hdrs): Prefix/postfix headers by include_next.
13465         * config.gcc (user_headers_inc_next_pre): New.
13466         (user_headers_inc_next_post): Likewise.
13467         (*-w64-mingw*): Use for float.h post-fixing, and for
13468         stddef.h/stdarg.h pre-fixing by include_next.
13469         * configure.ac (user_headers_inc_next_post): New.
13470         (user_headers_inc_next_pre): New.
13471         * configure: Regenerated.
13472
13473 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13474
13475         * configure.ac: Don't disable TLS on Solaris 8/9 by default
13476         Set tga_func for Solaris 2/x86 resp. SPARC.
13477         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
13478         (LIB_THREAD_LDFLAGS_SPEC): Define.
13479         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
13480         * configure: Regenerate.
13481         * config.in: Regenerate.
13482         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
13483         -pthread, -threads, LIB_TLS_SPEC with -pthread.
13484         * doc/install.texi (Specific, *-*-solaris2*): Document use of
13485         alternate thread libraries on Solaris 8.
13486         Document TLS patch requirements.
13487         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
13488         Document tls.
13489
13490         PR target/18788
13491         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
13492         -shared.
13493
13494 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
13495
13496         * tree.h (struct tree_base): Add nameless_flag bitfield.
13497         (TYPE_NAMELESS, DECL_NAMELESS): Define.
13498         * omp-low.c (create_omp_child_function, scan_omp_parallel,
13499         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
13500         DECL_ARTIFICIAL where needed.
13501         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
13502         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
13503         has DECL_NAMELESS set.
13504
13505 2010-07-23  Martin Jambor  <mjambor@suse.cz>
13506
13507         PR tree-optimization/44915
13508         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
13509         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
13510         (analyze_function): Likewise.
13511
13512 2010-07-23  Martin Jambor  <mjambor@suse.cz>
13513
13514         PR tree-optimization/44914
13515         * tree-sra.c (sra_modify_function_body): Return true if CFG was
13516         changed, add purging dead eh edges.
13517         (ipa_sra_modify_function_body): Return true if CFG was changed,
13518         simplify purging dead eh edges.
13519         (modify_function): Return true if CFG was changed.
13520         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
13521         was changed.
13522         (ipa_early_sra): Likewise.
13523
13524 2010-07-23  Jie Zhang  <jie@codesourcery.com>
13525
13526         PR target/44290
13527         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
13528         if "naked".
13529         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13530         false if ! tree_versionable_function_p.
13531
13532 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
13533
13534         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
13535         * ipa-pure-const.c (special_builtlin_state): Remove
13536         BUILT_IN_ARGS_INFO case.
13537         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13538         * builtins.c (expand_builtin): Likewise.
13539         (expand_builtin_args_info): Remove.
13540         * doc/tm.texi (__builtin_args_info): Remove.
13541         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
13542         * doc/tm.text.in: Likewise.
13543
13544 2010-07-23  Richard Guenther  <rguenther@suse.de>
13545
13546         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
13547         (lto_symtab_merge_decls_2): Likewise.
13548         * tree-ssa.c (useless_type_conversion_p): Likewise.
13549         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13550         * gimple.c (gtc_visited2, gtc_ob2): Remove.
13551         (struct type_pair_d): Make same_p an array indexed by mode.
13552         Update comment.
13553         (lookup_type_pair): Update initialization.
13554         (struct sccs): Adjust same_p type.
13555         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
13556         Adjust.
13557         (print_gimple_types_stats): Likewise.
13558         * gimple.h (enum gtc_mode): New.
13559         (gimple_types_compatible_p): Adjust prototype.
13560
13561 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
13562
13563         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
13564         again after processing insn.
13565
13566 2010-07-23  Jie Zhang  <jie@codesourcery.com>
13567
13568         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
13569         proper words when !tree_versionable_function_p.
13570
13571 2010-07-23  Richard Guenther  <rguenther@suse.de>
13572
13573         PR tree-optimization/45037
13574         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
13575
13576 2010-07-23  Jie Zhang  <jie@codesourcery.com>
13577
13578         * doc/extend.texi: Remove IP2K from the description of naked attribute.
13579         Add MCORE instead.
13580
13581 2010-07-10  Andi Kleen  <ak@linux.intel.com>
13582
13583         PR lto/44992
13584         * lto-opts.c (lto_write_options): Add NULL file_data argument to
13585         lto_get_section_name.
13586         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13587         * lto-streamer-out.c (produce_asm): Likewise.
13588         (copy_function): Likewise.
13589         (produce_symtab): Likewise.
13590         (produce_asm_for_decls): Likewise.
13591         * lto-streamer.c (lto_get_section_name): Add file_data argument.
13592         Rewrite to add random postfix to LTO sections.
13593         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
13594         (lto_get_section_name): Add file_data argument to prototype.
13595
13596 2010-07-10  Andi Kleen  <ak@linux.intel.com>
13597
13598         * lto-section-in.c (lto_section_name): Synchronize names
13599         with lto_get_section_name.
13600
13601 2010-07-10  Andi Kleen  <ak@linux.intel.com>
13602
13603         * lto-opts.c (lto_read_file_options): Check for missing section.
13604
13605 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
13606
13607         * ira.c (check_allocation): Correctly handle the case where an allocno
13608         with two objects was allocated to a single reg.
13609
13610 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
13611
13612         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
13613         (is_widening_mult_p): Likewise.
13614         (convert_to_widen): Use them.
13615         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
13616         well as integer ones.
13617
13618 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
13619
13620         * alias.c (true_dependence_1): New function, merged version of
13621         true_dependence and canon_true_dependence.
13622         (true_dependence): Simplify.
13623         (canon_true_dependence): Simplify.
13624
13625 2010-07-22  Richard Henderson  <rth@redhat.com>
13626
13627         PR target/45027
13628         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
13629         of V4SFmode for the SSE saves; increase stack alignment if needed.
13630         (ix86_gimplify_va_arg): Don't increase stack alignment here.
13631
13632 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
13633
13634         PR bootstrap/45028
13635         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
13636         call cprop_find_used_regs again via note_uses.
13637
13638 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
13639
13640         * alias.c (get_alias_set): Fix formatting issues.
13641
13642 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
13643
13644         PR middle-end/44878
13645         * stmt.c (expand_value_return):  Call promote_function_mode with
13646         a for_return argument of 2 when returning by reference.
13647
13648 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
13649
13650         PR debug/45024
13651         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
13652         unit DIE if we can find the scope DIE.
13653
13654 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
13655
13656         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
13657         changed.  Initialize OBJECT_SUBWORD.
13658         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
13659         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
13660         all callers changed.
13661         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
13662         (finish_allocno): Likewise.
13663         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
13664         (remove_low_level_allocnos): Likewise.
13665         (update_bad_spill_attribute): Likewise.
13666         (setup_min_max_allocno_live_range_point): Likewise.
13667         (sort_conflict_id_map): Likewise.
13668         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
13669         (ior_hard_reg_conflicts): New function.
13670         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
13671         (compress_conflict_vecs): Iterate over objects, not allocnos.
13672         (ira_add_live_range_to_object): New function.
13673         (object_range_compare_func): Renamed from allocno_range_compare_func.
13674         All callers changed.
13675         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
13676         subobjects, widen the min/max range of the lowest-order object to
13677         potentially include all other such low-order objects.
13678         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
13679         (check_allocation): Likewise.  Use more fine-grained tests for register
13680         conflicts.
13681         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
13682         allocno subobjects.
13683         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
13684         choices about which bits to set in each set.  Don't use
13685         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
13686         using the multiple sets we computed.
13687         (push_allocno_to_stack): Iterate over allocno subobjects.
13688         (all_conflicting_hard_regs_coalesced): New static function.
13689         (setup_allocno_available_regs_num): Use it.
13690         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
13691         subobjects.
13692         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
13693         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13694         by ALLOCNO_NUM_OBJECTS.
13695         (calculate_spill_cost): Likewise.
13696         (color_pass): Express if statement in a more normal way.
13697         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
13698         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
13699         (setup_slot_coalesced_allocno_live_ranges): Likewise.
13700         (allocno_reload_assign): Likewise.
13701         (ira_reassign_pseudos): Likewise.
13702         (fast_allocation): Likewise.
13703         * ira-conflicts.c (build_conflict_bit_table): Likewise.
13704         (print_allocno_conflicts): Likewise.
13705         (ira_build_conflicts): Likewise.
13706         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
13707         callers changed.  Test subword 0 of each allocno for conflicts.
13708         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
13709         callers changed.  Iterate over allocno subobjects.
13710         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
13711         * ira-int.h (struct ira_allocno): New member: num_objects.
13712         Rename object to objects and change it into an array.
13713         (ALLOCNO_OBJECT): Add new argument N.
13714         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
13715         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
13716         (ior_hard_reg_conflicts): Declare.
13717         (ira_add_live_range_to_object): Declare.
13718         (ira_allocno_object_iterator): New.
13719         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
13720         (FOR_EACH_ALLOCNO_OBJECT): New macro.
13721         * ira-lives.c (objects_live): Renamed from allocnos_live; all
13722         uses changed.
13723         (allocnos_processed): New sparseset.
13724         (make_object_born): Renamed from make_allocno_born; take an
13725         ira_object_t argument.  All callers changed.
13726         (make_object_dead): Renamed from make_allocno_dead; take an
13727         ira_object_t argument.  All callers changed.
13728         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
13729         All callers changed.
13730         (mark_pseudo_regno_live): Iterate over allocno subobjects.
13731         (mark_pseudo_regno_dead): Likewise.
13732         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
13733         functions.
13734         (mark_ref_live): Detect subword accesses and call
13735         mark_pseudo_regno_subword_live as appropriate.
13736         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
13737         (process_bb_nodes_live): Deal with object-related updates first; set
13738         and test bits in allocnos_processed to avoid computing allocno
13739         statistics more than once.
13740         (create_start_finish_chains): Iterate over objects, not allocnos.
13741         (print_object_live_ranges): New function.
13742         (print_allocno_live_ranges): Use it.
13743         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
13744         and objects_live.
13745
13746 2010-07-22  Richard Guenther  <rguenther@suse.de>
13747
13748         PR lto/42451
13749         * gimple.c (gtc_next_dfs_num): New global.
13750         (struct sccs): Make value a union, add integer same_p member.
13751         (gtc_visit): New function.
13752         (gimple_types_compatible_p_1): New function, split out from ...
13753         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
13754         (iterative_hash_gimple_type): Adjust for sccs change.
13755
13756 2010-07-22  Martin Jambor  <mjambor@suse.cz>
13757
13758         PR tree-optimization/44891
13759         * tree-sra.c: Include gimple-pretty-print.h.
13760         (replace_uses_with_default_def_ssa_name): Renamed to
13761         get_repl_default_def_ssa_name, return the new SSA name instead of
13762         replacing the old one.
13763         (sra_modify_assign): Dump a message when removing a load, if the LHS
13764         is an SSA_NAME, do not do any propagation, just set the RHS to a
13765         default definition SSA NAME, type convert if necessary.
13766         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
13767
13768 2010-07-22  Richard Guenther  <rguenther@suse.de>
13769
13770         PR tree-optimization/45017
13771         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
13772         TYPE_PRECISION of integral types in addition to size.
13773
13774 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
13775
13776         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
13777         when no C library is specified.
13778
13779 2010-07-22  Martin Jambor  <mjambor@suse.cz>
13780
13781         * ipa-prop.h (struct ipa_node_params): Updated comment.
13782         (struct ipa_edge_args): Likewise.
13783         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
13784
13785 2010-07-22  Martin Jambor  <mjambor@suse.cz>
13786
13787         * cgraphunit.c (verify_edge_count_and_frequency): New function.
13788         (verify_cgraph_node): Verify frequencies of indirect edges.
13789         * tree-inline.c (tree_function_versioning): Update frequencies of
13790         indirect edges.
13791
13792 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13793
13794         PR target/43698
13795         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
13796         Set *arm_rev to be predicable.
13797
13798 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
13799
13800         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
13801         (LINK_COMMAND_SPEC_A): New.
13802         (DSYMUTIL): New.
13803         (DSYMUTIL_SPEC): New.
13804         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
13805         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
13806
13807 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
13808
13809         * calls.c (load_register_parameters): Move check for zero
13810         sized items so that only the call to
13811         mem_overlaps_already_clobbered_arg_p () is protected.
13812
13813 2010-07-22  Jan Hubicka  <jh@suse.cz>
13814
13815         * ipa-pure-const.c (varying_state): Break out from ...
13816         (get_function_state): ... here; always return varying_state
13817         when state would be NULL otherwise.
13818         (remove_node_data): Do not free varying state.
13819
13820 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
13821
13822         PR bootstrap/44970
13823         PR middle-end/45009
13824         * postreload.c: Include "target.h".
13825         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
13826         into account.
13827         (fixup_debug_insns): Don't copy the rtx.
13828         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
13829         Don't copy when replacing.  Call fixup_debug_insns in the case where
13830         we merged one add with another.
13831         (reload_combine_recognize_pattern): Fail if there aren't any uses.
13832         Try harder to determine whether we're picking a valid index register.
13833         Don't set store_ruid for an insn we're going to scan in the
13834         next iteration.
13835         (reload_combine): Remove unused code.
13836         (reload_combine_note_use): When updating use information for
13837         an old insn, ignore a use that occurs after store_ruid.
13838         * Makefile.in (postreload.o): Update dependencies.
13839
13840         * function.c (record_hard_reg_sets): Restrict the previous change
13841         to cases where the incoming nominal mode is the same as the
13842         incoming promoted mode and everything happens in MODE_INT.
13843
13844 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
13845
13846         PR debug/45015
13847         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
13848         ASM_OPERANDS_OUTPUT_IDX.
13849         (adjust_insn): For inline asm with multiple sets ensure first
13850         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
13851         the insn.
13852
13853 2010-07-21  Richard Henderson  <rth@redhat.com>
13854
13855         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
13856         comparison for avoiding xmm register saves.  Emit the xmm register
13857         saves explicitly.
13858         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
13859         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
13860         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
13861         Remove patterns and the associated splitters.
13862
13863 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
13864
13865         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
13866         and imagine parts of a complex, so that they can have the same
13867         base and fall into the same group.
13868
13869 2010-07-21  Richard Guenther  <rguenther@suse.de>
13870
13871         PR lto/45018
13872         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
13873         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
13874         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
13875
13876 2010-07-21  Martin Jambor  <mjambor@suse.cz>
13877
13878         PR tree-optimization/44900
13879         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
13880         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
13881
13882 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
13883
13884         PR middle-end/44738
13885         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
13886
13887 2010-07-21  Richard Guenther  <rguenther@suse.de>
13888
13889         PR middle-end/45013
13890         * tree-ssa.c (useless_type_conversion_p): Dispatch to
13891         gimple_types_compatible_p only when in lto.
13892         * gimple.c (gimple_types_compatible_p): Use canonical types
13893         to speed up comparison.
13894
13895 2010-07-21  Richard Guenther  <rguenther@suse.de>
13896
13897         * tree-flow.h (referenced_var): Move define ...
13898         * tree-flow-inline.h (referenced_var): ... here as an inline
13899         function.  Assert here ...
13900         * tree-dfa.c (referenced_var_lookup): ... instead of here.
13901         * tree-ssa.c (maybe_optimize_var): Check if the variable
13902         is in referenced vars.
13903         (execute_update_addresses_taken): Remove old broken check.
13904         * gimple-pretty-print.c (pp_points_to_solution): Use
13905         referenced_var_lookup.
13906         * tree-into-ssa.c (dump_decl_set): Likewise.
13907
13908 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
13909
13910         PR debug/45003
13911         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
13912         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
13913         ZERO_EXTEND here.
13914
13915 2010-07-20  Richard Henderson  <rth@redhat.com>
13916
13917         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
13918
13919 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
13920
13921         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
13922         computing the sum of the stack pointer and a large constant.
13923         * config/arm/constraints.md (M): Remove superfluous parentheses.
13924         (Pc): New constraint.
13925
13926 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
13927
13928         PR debug/45006
13929         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
13930         operand's type if exp is tcc_unary class tree.
13931
13932 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
13933
13934         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
13935         Reverse sense of if_then_else condition.
13936
13937 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
13938
13939         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
13940         * config/rs6000/rs6000.c (rs6000_override_options): Set
13941         rs6000_block_move_inline_limit appropriately.
13942         (expand_block_move): Use rs6000_block_move_inline_limit.
13943         * doc/invoke.texi (mblock-move-inline-limit): Document.
13944
13945 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
13946
13947         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
13948         FROM and TO.  All callers changed.  Don't look for tracked uses,
13949         just scan the RTL for DEBUG_INSNs and substitute.
13950         (reload_combine_recognize_pattern): Call fixup_debug_insns.
13951         (reload_combine): Ignore DEBUG_INSNs.
13952
13953 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
13954
13955         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
13956         depth to 8 from 5.
13957
13958         PR debug/45003
13959         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
13960         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
13961         instead of the result's type.
13962
13963 2010-07-20  Richard Guenther  <rguenther@suse.de>
13964
13965         PR tree-optimization/44977
13966         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
13967         SSA form.
13968
13969 2010-07-20  Richard Guenther  <rguenther@suse.de>
13970
13971         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
13972         (lto_symtab_merge_decls_2): Likewise.
13973         * gimple.h (gimple_types_compatible_p): Declare.
13974         * gimple.c (gimple_queue_type_fixup): Remove.
13975         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
13976         (gimple_compatible_complete_and_incomplete_type_p): New function.
13977         (gimple_types_compatible_p): Adjust.
13978         (gimple_register_type): Remove type fixup code.
13979         (print_gimple_types_stats): Adjust.
13980         (free_gimple_type_tables): Likewise.
13981         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
13982         * tree-ssa.c (useless_type_conversion_p): Likewise.
13983
13984 2010-07-20  Richard Guenther  <rguenther@suse.de>
13985
13986         PR middle-end/44971
13987         PR middle-end/44988
13988         * tree-ssa.c (maybe_optimize_var): New function split out from ...
13989         (execute_update_addresses_taken): ... here.
13990         (non_rewritable_mem_ref_base): Likewise.
13991         (execute_update_addresses_taken): Do not iterate over all referenced
13992         vars but just all local decls and parms.
13993         Properly check call and asm arguments and rewrite call arguments.
13994
13995 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
13996
13997         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
13998         to top level.
13999         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
14000         definitions ...
14001         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
14002         New macro.
14003         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
14004
14005 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14006
14007         * gengtype.c (start_root_entry): New function, split out from
14008         write_root.  Check whether V is null and raise an error if so.
14009         (write_field_root): Check for V being null.  Don't raise an error here;
14010         set V to null instead.
14011         (write_root): Update comment above function.  Use start_root_entry.
14012
14013 2010-07-19  Xinliang David Li  <davidxl@google.com>
14014
14015         PR testsuite/44932
14016         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
14017         def edges.
14018         (find_uninit_use): Add dump.
14019         (is_use_properly_guarded): Ditto.
14020         (warn_uninitialized_phi): Ditto.
14021         (execute_late_warn_uninitialized): Ditto.
14022
14023 2010-07-19  Richard Guenther  <rguenther@suse.de>
14024
14025         PR middle-end/44941
14026         * expr.c (emit_block_move_hints): Move zero size check first.
14027         Move asserts to more useful places.
14028         * calls.c (load_register_parameters): Check for zero size.
14029
14030 2010-07-19  Richard Henderson  <rth@redhat.com>
14031
14032         * tree-optimize.c (execute_all_early_local_passes): New.  Change
14033         cgraph_state here ...
14034         (execute_early_local_optimizations): ... not here.  Remove.
14035         (pass_early_local_passes, pass_all_early_optimizations): Update.
14036
14037 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
14038
14039         * postreload.c (reload_combine_closest_single_use): Ignore the
14040         number of uses for DEBUG_INSNs.
14041         (fixup_debug_insns): New static function.
14042         (reload_combine_recognize_const_pattern): Use it.  Don't let the
14043         main loop be affected by DEBUG_INSNs.
14044         Really disallow moving adds past a jump insn.
14045         (reload_combine_recognize_pattern): Don't update use_ruid here.
14046         (reload_combine_note_use): Do it here.
14047         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
14048
14049 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
14050
14051         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
14052         of a loop.
14053         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
14054
14055 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
14056
14057         * config/i386/darwin.h: Define darwin_emit_branch_islands.
14058         (TARGET_MACHO_BRANCH_ISLANDS): New.
14059         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
14060         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
14061         default value.
14062         * config/i386/i386.c (output_pic_addr_const): Do not emit
14063         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
14064         (x86_output_mi_thunk): Adjust symbol creation.
14065         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
14066         Remove out of date comment.
14067         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
14068         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14069         (DARWIN_GENERATE_ISLANDS): Ditto.
14070         (output_call):  Do not emit branch islands unless
14071         darwin_emit_branch_islands is set.
14072         * config/darwin.c: Declare darwin_emit_branch_islands.
14073         (machopic_indirect_data_reference): Do not emit unless
14074         darwin_emit_branch_islands is set.
14075         (darwin_override_options): Set darwin_emit_branch_islands
14076         where it is needed.
14077         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14078
14079 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14080
14081         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14082         sse_runtime, sse2_runtime.
14083
14084 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
14085
14086         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
14087         low half of a single-register SCmode return value before ORing
14088         it with the high half.
14089         * config/mips/mips16.S (MERGE_GPRf): Likewise.
14090
14091 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14092
14093         PR target/44805
14094         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
14095         on all targets.
14096
14097 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
14098
14099         PR target/42235
14100         * postreload.c (reload_cse_move2add): Return bool, true if anything.
14101         changed.  All callers changed.
14102         (move2add_use_add2_insn): Likewise.
14103         (move2add_use_add3_insn): Likewise.
14104         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
14105         reload_combine.
14106         (RELOAD_COMBINE_MAX_USES): Bump to 16.
14107         (last_jump_ruid): New static variable.
14108         (struct reg_use): New members CONTAINING_MEM and RUID.
14109         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
14110         (reload_combine_split_one_ruid, reload_combine_split_ruids,
14111         reload_combine_purge_insn_uses, reload_combine_closest_single_use
14112         reload_combine_purge_reg_uses_after_ruid,
14113         reload_combine_recognize_const_pattern): New static functions.
14114         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
14115         is true for our reg and that we have available index regs.
14116         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
14117         callers changed.  Use them to initialize fields in struct reg_use.
14118         (reload_combine): Initialize last_jump_ruid.  Be careful when to
14119         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
14120         Call reload_combine_recognize_const_pattern.
14121         (reload_combine_note_store): Update REAL_STORE_RUID field.
14122
14123 2010-07-16  Jason Merrill  <jason@redhat.com>
14124
14125         * Makefile.in (opts-common.o): Depend on options.h.
14126
14127 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
14128
14129         * tree.c (build_common_builtin_nodes): Use build_function_type_list
14130         instead of build_function_type.
14131         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
14132         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14133
14134 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
14135
14136         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
14137         do all the work.
14138         (rs6000_emit_int_cmove): Use function pointers for insn generation.
14139         Don't force values into registers unnecessarily.
14140         (output_isel): Assert that we're not given conditions we can't handle.
14141         Delete corresponding code.
14142         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
14143         scc_comparison_operator constraint.  Permit 0 for the consequent
14144         operand.  Permit any GPR for the alternative operand.
14145         (isel_unsigned_<mode>): Likewise.
14146
14147 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
14148
14149         PR target/44942
14150         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
14151         argument to const_tree.
14152         * config/i386/i386.c (function_arg_advance): If padding needs to be
14153         inserted before argument, increment cum->words by number of padding
14154         words as well.
14155         (contains_aligned_value_p): Change argument to const_tree.
14156         (ix86_function_arg_boundary): Change second argument to const_tree.
14157
14158 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
14159
14160         PR target/42235
14161         * function.c (record_hard_reg_sets): New static function.
14162         (assign_parm_setup_reg): If an optab for extending exists and the
14163         generated code clobbbers no hard regs, emit the insn directly and
14164         create a REG_EQUIV note.
14165
14166 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14167
14168         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
14169         TREE_CHAIN.
14170         * c-typeck.c (push_init_level): Likewise.
14171         (process_init_element): Likewise.
14172
14173 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
14174
14175         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
14176         (integer_three_node): Add.
14177         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
14178         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
14179         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
14180         of call build_int_cst.
14181         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
14182         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
14183         (find_interesting_uses_address): Ditto.
14184         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
14185         * tree-eh.c (lower_eh_constructs_2): Ditto.
14186         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
14187         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
14188         * expmed.c (expand_divmod): Ditto.
14189         * tree-mudflap.c (mx_register_decls): Ditto.
14190         * varasm.c (array_size_for_constructor): Ditto.
14191         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
14192         * c-parser.c (c_parser_postfix_expression): Ditto.
14193
14194 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
14195
14196         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
14197         New static variables.
14198         (reload_combine_recognize_pattern): New static function, broken out
14199         of reload_combine.
14200         (reload_combine): Use it.  Only initialize first_index_reg and
14201         last_index_reg once.
14202
14203 2010-07-15  Richard Henderson  <rth@redhat.com>
14204
14205         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
14206         when done.
14207
14208 2010-07-15  Jan Hubicka  <jh@suse.cz>
14209
14210         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
14211         comdats for broken gold.
14212         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
14213
14214 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14215
14216         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
14217
14218 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14219
14220         * tree.h (DECL_CHAIN): Define.
14221         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14222         * c-decl.c: Likewise.
14223         * c-parser.c: Likewise.
14224         * c-typeck.c: Likewise.
14225         * cfgexpand.c: Likewise.
14226         * cgraph.c: Likewise.
14227         * cgraphunit.c: Likewise.
14228         * combine.c: Likewise.
14229         * config/alpha/alpha.c: Likewise.
14230         * config/arm/arm.c: Likewise.
14231         * config/frv/frv.c: Likewise.
14232         * config/i386/i386.c: Likewise.
14233         * config/i386/winnt-cxx.c: Likewise.
14234         * config/ia64/ia64.c: Likewise.
14235         * config/iq2000/iq2000.c: Likewise.
14236         * config/mep/mep.c: Likewise.
14237         * config/mips/mips.c: Likewise.
14238         * config/pa/som.h: Likewise.
14239         * config/rs6000/rs6000.c: Likewise.
14240         * config/s390/s390.c: Likewise.
14241         * config/sh/sh.c: Likewise.
14242         * config/sh/symbian-cxx.c: Likewise.
14243         * config/sparc/sparc.c: Likewise.
14244         * config/spu/spu.c: Likewise.
14245         * config/stormy16/stormy16.c: Likewise.
14246         * config/vxworks.c: Likewise.
14247         * config/xtensa/xtensa.c: Likewise.
14248         * coverage.c: Likewise.
14249         * dbxout.c: Likewise.
14250         * dwarf2out.c: Likewise.
14251         * emit-rtl.c: Likewise.
14252         * expr.c: Likewise.
14253         * function.c: Likewise.
14254         * gimple-low.c: Likewise.
14255         * gimple-pretty-print.c: Likewise.
14256         * gimplify.c: Likewise.
14257         * integrate.c: Likewise.
14258         * ipa-inline.c: Likewise.
14259         * ipa-prop.c: Likewise.
14260         * ipa-split.c: Likewise.
14261         * ipa-struct-reorg.c: Likewise.
14262         * ipa-type-escape.c: Likewise.
14263         * langhooks.c: Likewise.
14264         * lto-cgraph.c: Likewise.
14265         * omp-low.c: Likewise.
14266         * stor-layout.c: Likewise.
14267         * tree-cfg.c: Likewise.
14268         * tree-complex.c: Likewise.
14269         * tree-dfa.c: Likewise.
14270         * tree-dump.c: Likewise.
14271         * tree-inline.c: Likewise.
14272         * tree-mudflap.c: Likewise.
14273         * tree-nested.c: Likewise.
14274         * tree-object-size.c: Likewise.
14275         * tree-pretty-print.c: Likewise.
14276         * tree-sra.c: Likewise.
14277         * tree-ssa-live.c: Likewise.
14278         * tree-ssa-loop-niter.c: Likewise.
14279         * tree-ssa-math-opts.c: Likewise.
14280         * tree-ssa-reassoc.c: Likewise.
14281         * tree-ssa-sccvn.c: Likewise.
14282         * tree-ssa-structalias.c: Likewise.
14283         * tree-tailcall.c: Likewise.
14284         * tree-vrp.c: Likewise.
14285         * tree.c: Likewise.
14286         * var-tracking.c: Likewise.
14287         * varasm.c: Likewise.
14288
14289 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14290
14291         PR target/44877
14292         * config/spu/spu.c (spu_expand_builtin_1): Allow references
14293         (as well as pointers) as argument to mask_for_load builtins.
14294
14295 2010-07-15  Richard Guenther  <rguenther@suse.de>
14296
14297         PR tree-optimization/44946
14298         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
14299         with accessing only padding properly.
14300
14301 2010-07-15  Jan Hubicka  <jh@suse.cz>
14302
14303         * ipa.c (function_and_variable_visibility): Variables marked as used
14304         should not be localized.
14305
14306 2010-07-15  Jan Hubicka  <jh@suse.cz>
14307
14308         * cgraph.c: Include lto-streamer.h
14309         (change_decl_assembler_name): Work when assembler name hash is at place.
14310         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
14311         be sure to rename it to avoid name clash.
14312         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
14313         Localize hidden symbols only when locally defined.
14314
14315 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
14316
14317         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
14318
14319 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
14320             Kevin F. Quinn  <kevquinn@gentoo.org>
14321
14322         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
14323         * common.opt: Add -Wtrampolines.
14324         * doc/invoke.texi: Add -Wtrampolines.
14325
14326 2010-07-15  Jie Zhang  <jie@codesourcery.com>
14327
14328         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
14329         cortex_a8_issue_ls.
14330
14331 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
14332
14333         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
14334         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
14335
14336 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14337
14338         * config/spu/spu.c (reg_names): Remove prototype.
14339         (call_used_regs): Likewise.
14340
14341 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
14342
14343         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
14344         "unused" with attribute "used".
14345         (__JCR_END__): Likewise.
14346         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
14347         "used" attribute.
14348         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
14349
14350 2010-07-14  Richard Guenther  <rguenther@suse.de>
14351
14352         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
14353         (maybe_fixup_decls): Likewise.
14354         (input_gimple_stmt): Do not fixup anything.
14355         * lto-streamer-out.c (output_gimple_stmt): Make sure all
14356         non-automatic variable uses are wrapped inside a MEM_REF.
14357
14358 2010-07-14  Richard Henderson  <rth@redhat.com>
14359
14360         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
14361         for functions.
14362         * varasm.c (assemble_variable): Remove early exit for functions;
14363         assert that we're given a variable.
14364
14365 2010-07-14  Jie Zhang  <jie@codesourcery.com>
14366
14367         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
14368         cortex_a8_default when neon_type is not none.
14369
14370 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14371
14372         * lower-subreg.c (subreg_context): New static bitmap.
14373         (decompose_multiword_subregs): Allocate and free it.
14374         (find_decomposable_subregs): Set a bit in it for a register that
14375         occurs in a subreg that changes mode but not size.
14376         (can_decompose_p): Test it instead of non_decomposable_context.
14377
14378 2010-07-14  Richard Guenther  <rguenther@suse.de>
14379
14380         PR tree-optimization/44824
14381         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
14382         is_gimple_mem_ref_addr.
14383         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
14384         non-decl_address_invariant_p addresses.
14385
14386 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14387
14388         * reload.c (find_reloads): Revert code to penalize small register
14389         classes that was brought in with the IRA merge.
14390
14391 2010-07-14  Richard Guenther  <rguenther@suse.de>
14392
14393         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
14394         as base of ARRAY_REFs.
14395
14396 2010-07-14  Richard Guenther  <rguenther@suse.de>
14397
14398         PR middle-end/44930
14399         * tree-pretty-print.c (do_niy): Do not print a newline.
14400
14401 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14402
14403         * ira-int.h (struct ira_object): New.
14404         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
14405         (struct ira_allocno): Remove members min, max,
14406         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
14407         conflict_allocnos_num and conflict_vec_p.  Add new member object.
14408         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
14409         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
14410         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
14411         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
14412         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
14413         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
14414         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
14415         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
14416         an ira_object_t rather than ira_allocno_t.  All uses changed.
14417         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14418         contains a vector of ira_object_t; all uses changed.
14419         (ira_objects_num): Declare variable.
14420         (ira_create_allocno_object): Declare function.
14421         (ira_conflict_vector_profitable_p): Adjust prototype.
14422         (ira_allocate_conflict_vec): Renamed from
14423         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
14424         (ira_allocate_object_conflicts): Renamed from
14425         ira_allocate_allocno_conflicts; first arg now ira_object_t.
14426         (struct ira_object_iterator): New.
14427         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
14428         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
14429         to conflict_vec_p.  All uses changed.
14430         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
14431         Changed to take into account that conflicts are now tracked for
14432         objects.
14433         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
14434         Args changed to accept ira_object_t.  All uses changed.
14435         (allocnos_conflict_p): New static function.
14436         (collected_conflict_objects): Renamed from collected_allocno_objects;
14437         now a vector of ira_object_t.  All uses changed.
14438         (build_conflict_bit_table): Changed to take into account that
14439         conflicts are now tracked for objects.
14440         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
14441         (print_allocno_conflicts, ira_build_conflicts): Likewise.
14442         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
14443         setup_allocno_left_conflicts_size, allocno_reload_assign,
14444         fast_allocation): Likewise.
14445         * ira-lives.c (make_hard_regno_born, make_allocno_born)
14446         process_single_reg_class_operands, process_bb_node_lives): Likewise.
14447         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
14448         Likewise.
14449         * ira-build.c (ira_objects_num): New variable.
14450         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14451         contains a vector of ira_object_t; all uses changed.
14452         (ira_object_id_map_vec): Corresponding change.
14453         (object_pool): New static variable.
14454         (initiate_allocnos): Initialize it.
14455         (finish_allocnos): Free it.
14456         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
14457         New functions.
14458         (ira_create_allocno): Don't set members that were removed.
14459         (ira_set_allocno_cover_class): Don't change conflict hard regs.
14460         (merge_hard_reg_conflicts): Changed to take into account that
14461         conflicts are now tracked for objects.
14462         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
14463         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
14464         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
14465         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
14466         setup_min_max_conflict_allocno_ids, ):  Likewise.
14467         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
14468         to ira_object_t; all callers changed.
14469         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
14470         to ira_object_t, all callers changed.
14471         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
14472         to ira_object_t, all callers changed.
14473         (conflict_check, curr_conflict_check_tick): Renamed from
14474         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
14475         changed.
14476         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
14477         arg changed to ira_object_t, all callers changed.
14478         (create_cap_allocno): Call ira_create_allocno_object.
14479         (finish_allocno): Free the corresponding object.
14480         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
14481         callers changed.  Adjusted for dealing with objects.
14482         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
14483         dealing with objects.
14484         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
14485
14486         * ira-int.h (struct live_range): Rename allocno member to object
14487         and change type to ira_object_t.
14488         (struct ira_object): New member live_ranges.
14489         (struct ira_allocno): Remove member live_ranges.
14490         (ALLOCNO_LIVE_RANGES): Remove.
14491         (OBJECT_LIVE_RANGES): New macro.
14492         (ira_create_live_range, ira_copy_live_range_list,
14493         ira_merge_live_range_list, ira_live_ranges_intersect_p,
14494         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
14495         * ira-build.c (ira_create_object): Initialize live ranges here.
14496         (ira_create_allocno): Not here.
14497         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
14498         changed to ira_object_t, all callers changed.
14499         (copy_live_range): Rename from copy_allocno_live_range, all callers
14500         changed.
14501         (ira_copy_live_range_list): Rename from
14502         ira_copy_allocno_live_range_list, all callers changed.
14503         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
14504         all callers changed.
14505         (ira_live_ranges_intersect_p): Rename from
14506         ira_allocno_live_ranges_intersect_p, all callers changed.
14507         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
14508         callers changed.
14509         (ira_finish_live_range_list): Rename from
14510         ira_finish_allocno_live_range_list, all callers changed.
14511         (change_object_in_range_list): Rename from change_allocno_in_range_list,
14512         last arg changed to ira_object_t, all callers changed.
14513         (finish_allocno): Changed to expect live ranges in the allocno's object.
14514         (move_allocno_live_ranges, copy_allocno_live_ranges,
14515         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
14516         ira_flattening, ira_build): Likewise.
14517         * ira-color.c (allocnos_have_intersected_live_ranges_p,
14518         slot_coalesced_allocno_live_ranges_intersect,
14519         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
14520         * ira-conflicts.c (build_conflict_bit_table): Likewise.
14521         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14522         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
14523         make_allocno_dead, create_start_finish_chains,
14524         remove_some_program_points_and_update_live_ranges,
14525         ira_debug_live_range_list): Likewise.
14526
14527         * ira-int.h (ira_object_conflict_iterator): Rename from
14528         ira_allocno_conflict_iterator.
14529         (ira_object_conflict_iter_init): Rename from
14530         ira_allocno_conflict_iter_init, second arg changed to
14531         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
14532         FOR_EACH_ALLOCNO_CONFLICT.
14533         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
14534         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
14535         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
14536         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14537
14538 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
14539
14540         PR other/44874
14541         * tree-dump.c (dump_options): Add enumerate_locals entry.
14542         Add TDF_NOID exclusion to all entry.
14543         * tree-dump.h (dump_enumerated_decls): Declare.
14544         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
14545         Don't display type uid.
14546         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
14547         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
14548         * tree-ssa-live.c: Include gimple.h.
14549         (numbered_tree_d): New struct.
14550         (numbered_tree): New typedef.
14551         (DEF_VEC_O (numbered_tree): New.
14552         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
14553         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
14554         (dump_enumerated_decls): Likewise.
14555         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
14556         debug info and flag_dump_final_insns, call dump_enumerated_decls.
14557         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
14558         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
14559
14560 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
14561
14562         * expmed.h (MAX_BITS_PER_WORD): Move to...
14563         * defaults.h (MAX_BITS_PER_WORD): ...here.
14564
14565 2010-07-13  DJ Delorie  <dj@redhat.com>
14566
14567         * config/h8300/h8300.c (h8300_init_once): Default to
14568         -fstrict_volatile_bitfields.
14569
14570         * config/sh/sh.c (sh_override_options): Default to
14571         -fstrict_volatile_bitfields.
14572
14573         * config/rx/rx.c (rx_option_override): New.
14574
14575         * config/m32c/m32c.c (m32c_override_options): Default to
14576         -fstrict_volatile_bitfields.
14577
14578 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
14579
14580         * tree.h (build_function_call_expr): Delete.
14581         (build_call_expr_loc_array): New function.
14582         (build_call_expr_loc_vec): New function.
14583         * tree-flow.h (struct omp_region): Change type of ws_args field
14584         to a VEC.
14585         * builtins.c (build_function_call_expr): Delete.
14586         (build_call_expr_loc_array): New function.
14587         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
14588         (build_call_expr): Likewise.
14589         (build_call_expr_loc_vec): New function.
14590         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
14591         build_function_call_expr.
14592         * expr.c (emutls_var_address): Likewise.
14593         * varasm.c (emutls_common_1): Likewise.
14594         * omp-low.c (expand_omp_atomic_mutex): Likewise.
14595         (expand_omp_taskreg): Adjust for new type of region->ws_args.
14596         (get_ws_args_for): Return a VEC instead of a tree.
14597         (expand_parallel_call): Call build_call_expr_loc_vec instead of
14598         build_function_call_expr.
14599         * stor-layout.c (self_referential_size): Likewise.
14600
14601 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
14602
14603         PR testsuite/44701
14604         * recog.c (constrain_operands): Allow side-effects in memory
14605         operands if either < or > constraint is used, rather than if
14606         both < and > is used.
14607
14608 2010-07-13  Richard Guenther  <rguenther@suse.de>
14609
14610         PR middle-end/44911
14611         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
14612         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
14613         without name.
14614
14615 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
14616
14617         PR target/44761
14618         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
14619         to variable emited.
14620         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
14621         * config/sh/sh.md (symGOT_load): Likewise.
14622         (symDTPOFF2reg): Likewise.
14623         (symTPOFF2reg): Likewise.
14624
14625 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14626
14627         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
14628         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
14629
14630 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14631
14632         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
14633         explanation.
14634         Find ucontext_t * on Solaris 11.
14635         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
14636         Handle new Solaris 11 __sighndlr patterns.
14637
14638 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
14639
14640         PR debug/44901
14641         * vec.h (VEC_block_remove): Fix comment.
14642         * tree-ssa-live.c (remove_unused_locals): Don't use
14643         VEC_unordered_remove on local_decls, instead replace a single
14644         vector element in each iteration if at least one element had
14645         to be removed and VEC_truncate at the end.
14646         * omp-low.c (expand_omp_taskreg): Likewise.
14647
14648 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14649
14650         * c-decl.c (finish_function): Fix typo in comment.
14651
14652 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
14653
14654         PR bootstrap/44921
14655         * postreload.c (move2add_use_add3_insn): Silence gcc warning
14656         on min_regno.
14657
14658 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
14659
14660         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14661         (simplify_stmt_using_ranges): Use it.
14662
14663 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14664
14665         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
14666         member.  Do not mark as GTY(()).
14667         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
14668         (spu_builtin_decls): New static variable.
14669         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
14670         (spu_init_builtins): Likewise.
14671         (spu_builtin_mul_widen_even): Likewise.
14672         (spu_builtin_mul_widen_odd): Likewise.
14673         (spu_builtin_mask_for_load): Likewise.
14674         (spu_builtin_vec_perm): Likewise.
14675         * config/spu/spu-c.c: Include "target.h".
14676         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
14677         of using spu_builtins[].fndecl.
14678
14679 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14680
14681         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
14682         imply -minterlink-mips16.
14683
14684 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14685
14686         * config/mips/mips.h (mips16_globals): Declare.
14687         (SWITCHABLE_TARGET): Define.
14688         * config/mips/mips.c: Include target-globals.h.
14689         (mips16_globals): New variable.
14690         (mips_set_mips16_mode): Use save_target_globals and
14691         restore_target_globals instead of target_reinit.
14692
14693 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14694
14695         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
14696         to say that the function can be called more than once.
14697         * target-globals.c (save_target_globals): Call init_reg_sets.
14698
14699 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14700
14701         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
14702         * bb-reorder.h: New file.
14703         * bb-reorder.c (default_target_bb_reorder): New variable.
14704         (this_target_bb_reorder): New conditional variable.
14705         (uncond_jump_length): Redefine as a macro.
14706         * target-globals.h (this_target_bb_reorder): Declare.
14707         (target_globals): Add a bb_reorder field.
14708         (restore_target_globals): Copy the bb_reorder field to
14709         this_target_bb-reorder.
14710         * target-globals.c: Include bb-reorder.h.
14711         (default_target_globals): Initialize the bb_reorder field.
14712         (save_target_globals): Likewise.
14713
14714 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14715
14716         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
14717         * gcse.h: New file.
14718         * gcse.c: Include gcse.h.
14719         (default_target_gcse): New variable.
14720         (this_target_gcse): New conditional variable.
14721         (can_copy): Redefine as a macro.
14722         (can_copy_init_p): New macro.
14723         (can_copy_p): Remove can_copy_init_p.
14724         * target-globals.h (this_target_gcse): Declare.
14725         (target_globals): Add a gcse field.
14726         (restore_target_globals): Copy the gcse field to this_target_gcse.
14727         * target-globals.c: Include gcse.h.
14728         (default_target_globals): Initialize the gcse field.
14729         (save_target_globals): Likewise.
14730
14731 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14732
14733         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
14734         and x_ira_prohibited_mode_move_regs_initialized_p.
14735         (ira_prohibited_mode_move_regs): Redefine as a macro.
14736         * ira.c (ira_prohibited_mode_move_regs): Delete.
14737         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
14738
14739 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14740
14741         * reload.h (target_reload): Add x_cached_reg_save_code and
14742         x_cached_reg_restore_code.
14743         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
14744         Redefine as macros.
14745
14746 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14747
14748         * Makefile.in (target-globals.o): Depend on builtins.h.
14749         * builtins.h: New file.
14750         * builtins.c: Include builtins.h.
14751         (default_target_builtins): New variable.
14752         (this_target_builtins): New conditional variable.
14753         (apply_args_mode, apply_result_mode): Redefine as macros.
14754         * target-globals.h (this_target_builtins): Declare.
14755         (target_globals): Add a builtins field.
14756         (restore_target_globals): Copy the builtins field to
14757         this_target_builtins.
14758         * target-globals.c: Include builtins.h.
14759         (default_target_globals): Initialize the builtins field.
14760         (save_target_globals): Likewise.
14761
14762 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14763
14764         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
14765         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
14766         from expmed.c.
14767         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
14768         (alg_hash, alg_hash_used_p): New macros.
14769         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
14770         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
14771         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
14772
14773 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14774
14775         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
14776         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
14777         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
14778         (this_op_costs, costs_classes): Redefine as macros.
14779         (record_reg_classes): Don't take op_costs as a parameter.
14780         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
14781         (scan_one_insn): Update call to record_operand_costs.
14782
14783 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14784
14785         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
14786         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
14787         (target_ira_int): New structure.
14788         (default_target_ira_int): Declare.
14789         (this_target_ira_int): Declare as a variable or define as a macro.
14790         (ira_reg_mode_hard_regset, ira_register_move_cost)
14791         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
14792         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
14793         (prohibited_class_mode_regs, ira_important_classes_num)
14794         (ira_important_classes, ira_reg_class_intersect)
14795         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
14796         (ira_reg_class_union): Redefine as macros.
14797         * ira.h (target_ira): New structure.
14798         (default_target_ira): Declare.
14799         (this_target_ira): Declare as a variable or define as a macro.
14800         (ira_available_class_regs, ira_hard_regno_cover_class)
14801         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
14802         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
14803         (ira_class_hard_regs_num): Redefine as macros.
14804         * ira.c (default_target_ira, default_target_ira_int): New variables.
14805         (this_target_ira, this_target_ira_int): New conditional variables.
14806         (ira_reg_mode_hard_regset, ira_memory_move_cost)
14807         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
14808         (ira_class_subset_p): Delete.
14809         (no_unit_alloc_regs): Redefine as a macro.
14810         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
14811         (ira_class_hard_regs_num, ira_class_hard_reg_index)
14812         (ira_available_class_regs): Delete.
14813         (alloc_reg_class_subclasses): Redefine as a macro.
14814         (ira_reg_class_cover_size, ira_reg_class_cover)
14815         (ira_important_classes_num, ira_important_classes)
14816         (ira_important_class_nums, ira_class_translate): Delete.
14817         (cover_class_order): Document the variable's lifetime.
14818         (reorder_important_classes): Don't set ira_important_class_nums.
14819         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
14820         (ira_reg_class_super_classes, ira_reg_class_union)
14821         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
14822         Delete.
14823         (setup_reg_class_nregs): Don't set ira_max_regs.
14824         (prohibited_class_mode_regs): Delete.
14825         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
14826         (target_globals): Add ira and ira_int fields.
14827         (restore_target_globals): Copy the ira field to this_target_ira
14828         and the ira_int field to this_target_ira_int.
14829         * target-globals.c: Include ira-int.h.
14830         (default_target_globals): Initialize the ira and ira_int fields.
14831         (save_target_globals): Likewise.
14832
14833 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14834
14835         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
14836         * cfgloop.h (target_cfgloop): New structure.
14837         (default_target_cfgloop): Declare.
14838         (this_target_cfgloop): Declare as a variable or define as a macro.
14839         (target_avail_regs, target_clobbered_regs, target_res_regs)
14840         (target_reg_cost, target_spill_cost): Redefine as macros.
14841         * cfgloopanal.c (default_target_cfgloop): New variable.
14842         (this_target_cfgloop): New conditional variable.
14843         (target_avail_regs, target_clobbered_regs, target_res_regs)
14844         (target_reg_cost, target_spill_cost): Delete.
14845         * target-globals.h (this_target_cfgloop): Declare.
14846         (target_globals): Add a cfgloop field.
14847         (restore_target_globals): Copy the cfgloop field to
14848         this_target_cfgloop.
14849         * target-globals.c: Include cfgloop.h.
14850         (default_target_globals): Initialize the cfgloop field.
14851         (save_target_globals): Likewise.
14852
14853 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14854
14855         * regs.h (target_regs): Add x_direct_load, x_direct_store and
14856         x_float_extend_from_mem.
14857         (direct_load, direct_store, float_extend_from_mem): New macros.
14858         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
14859
14860 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14861
14862         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
14863         (target-globals.o): Depend on $(LIBFUNCS_H).
14864         * libfuncs.h: Include hashtab.h.
14865         (libfunc_entry): Moved from optabs.c.
14866         (target_libfuncs): New structure.
14867         (default_target_libfuncs): Declare.
14868         (this_target_libfuncs): Declare as a variable or define as a macro.
14869         (libfunc_table): Redefine as a macro.
14870         * optabs.c (default_target_libfuncs): New variable.
14871         (this_target_libfuncs): New conditional variable.
14872         (libfunc_table): Delete.
14873         (libfunc_entry): Moved to optabs.h.
14874         (libfunc_hash): Redefine as a macro.
14875         (hash_libfunc, eq_libfunc): Fix comments.
14876         (init_optabs): Use libfunc_hash to detect cases where the function
14877         has already been called.  Clear the hash table instead of
14878         recreating it.
14879         * target-globals.h (this_target_libfuncs): Declare.
14880         (target_globals): Add a libfuncs field.
14881         (restore_target_globals): Copy the libfuncs field to
14882         this_target_libfuncs.
14883         * target-globals.c: Include libfuncs.h.
14884         (default_target_globals): Initialize the libfuncs field.
14885         (save_target_globals): Likewise.
14886
14887 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14888
14889         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
14890         in all dependency lists.
14891
14892 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14893
14894         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
14895         * optabs.h (target_optabs): New structure.
14896         (default_target_optabs): Declare.
14897         (this_target_optabs): Declare as a variable or define as a macro.
14898         (optab_table, convert_optab_table, direct_optab_table): Redefine
14899         as macros.
14900         * optabs.c (default_target_optabs): New variable.
14901         (this_target_optabs): New conditional variable.
14902         (optab_table, convert_optab_table, direct_optab_table): Delete.
14903         * target-globals.h (this_target_optabs): Declare.
14904         (target_globals): Add a optabs field.
14905         (restore_target_globals): Copy the optabs field to
14906         this_target_optabs.
14907         * target-globals.c: Include expr.h and optabs.h.
14908         (default_target_globals): Initialize the optabs field.
14909         (save_target_globals): Likewise.
14910
14911 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14912
14913         * flags.h (target_flagstate): Add x_flag_excess_precision.
14914         (flag_excess_precision): Redefine as a macro.
14915         * toplev.c (flag_excess_precision): Delete.
14916
14917 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14918
14919         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
14920         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
14921         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
14922         (no_caller_save_reg_set): Redefine as a macro.
14923         * reload.h (target_reload): Add x_caller_save_initialized_p and
14924         x_regno_save_mode.
14925         (caller_save_initialized_p): Redefine as a macro.
14926         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
14927         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
14928         (regno_save_mode): Redefine as a macro.
14929
14930 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14931
14932         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
14933         * expmed.h: New file.
14934         * expmed.c (default_target_costs): New variable.
14935         (this_target_costs): New conditional variable.
14936         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
14937         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
14938         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
14939         * target-globals.h (this_target_expmed): Declare.
14940         (target_globals): Add a expmed field.
14941         (restore_target_globals): Copy the expmed field to
14942         this_target_expmed.
14943         * target-globals.c: Include expmed.h.
14944         (default_target_globals): Initialize the expmed field.
14945         (save_target_globals): Likewise.
14946
14947 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14948
14949         * Makefile.in (target-globals.o): Depend on reload.h.
14950         * reload.h (target_reload): New structure.
14951         (default_target_reload): Declare.
14952         (this_target_reload): Declare as a variable or define as a macro.
14953         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
14954         * reload1.c (default_target_reload): New variable
14955         (this_target_reload): New conditional variable.
14956         (indirect_symref_ok, double_reg_address_ok): Delete.
14957         (spill_indirect_levels): Redefine as a macro.
14958         * target-globals.h (this_target_reload): Declare.
14959         (target_globals): Add a reload field.
14960         (restore_target_globals): Copy the reload field to
14961         this_target_reload.
14962         * target-globals.c: Include hard-reg-set.h.
14963         (default_target_globals): Initialize the reload field.
14964         (save_target_globals): Likewise.
14965
14966 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14967
14968         * rtl.h (target_rtl): Add x_static_reg_base_value.
14969         * alias.c (static_reg_base_value): Redefine as a macro.
14970
14971 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14972
14973         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
14974         (GTFILES): Remove reginfo.c.
14975         * rtl.h (target_rtl): Add x_top_of_stack.
14976         (top_of_stack): New macro.
14977         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
14978         (top_of_stack): Delete.
14979
14980 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14981
14982         * regs.h (target_regs): Add x_hard_regs_of_mode,
14983         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
14984         x_may_move_out_cost and x_last_mode_for_init_move_cost.
14985         (have_regs_of_mode, contains_reg_of_mode, move_cost)
14986         (may_move_in_cost, may_move_out_cost): Redefine as macros.
14987         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
14988         (may_move_in_cost, may_move_out_cost): Delete.
14989         (last_mode_for_init_move_cost): Redefine as a macro.
14990
14991 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14992
14993         * hard-reg-set.h (target_hard_regs): New structure.
14994         (default_target_hard_regs): Declare.
14995         (this_target_hard_regs): Declare as a variable or define as a macro.
14996         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
14997         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
14998         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
14999         (reg_class_size, reg_class_subclasses, reg_class_subunion)
15000         (reg_class_superunion, reg_names): Redefine as macros.
15001         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
15002         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
15003         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
15004         (reg_class_contents, reg_class_size, reg_class_subclasses)
15005         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
15006         (default_target_hard_regs): New variable
15007         (this_target_hard_regs, initial_call_really_used_regs)
15008         (initial_reg_alloc_order): New conditional variables.
15009         (initial_reg_names): New variable.
15010         (init_reg_sets): Assert that initial_call_really_used_regs,
15011         initial_reg_alloc_order and initial_reg_names
15012         are all the same size as their variable counterparts.  Use them to
15013         initialize those counterparts.
15014         * target-globals.h (this_target_hard_regs): Declare.
15015         (target_globals): Add a hard_regs field.
15016         (restore_target_globals): Copy the hard_regs field to
15017         this_target_hard_regs.
15018         * target-globals.c: Include hard-reg-set.h.
15019         (default_target_globals): Initialize the hard_regs field.
15020         (save_target_globals): Likewise.
15021
15022 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15023
15024         * Makefile.in (target-globals.o): Depend on $(RTL_H).
15025         * rtl.h (target_rtl): New structure.
15026         (default_target_rtl): Declare.
15027         (this_target_rtl): Declare as a variable or define as a macro.
15028         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
15029         Redefine as macros.
15030         * emit-rtl.c (default_target_rtl): New variable.
15031         (this_target_rtl): New conditional variable.
15032         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
15033         (return_address_pointer_rtx): Delete.
15034         (initial_regno_reg_rtx): New macro.
15035         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
15036         (init_emit_regs): Likewise.
15037         * target-globals.h (this_target_rtl): Declare.
15038         (target_globals): Add a rtl field.
15039         (restore_target_globals): Copy the rtl field to this_target_rtl.
15040         * target-globals.c: Include rtl.h.
15041         (default_target_globals): Initialize the rtl field.
15042         (save_target_globals): Likewise.
15043
15044 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15045
15046         * Makefile.in (target-globals.o): Depend on $(REGS_H).
15047         * regs.h (target_reg_modes): New structure.
15048         (default_target_reg_modes): Declare.
15049         (this_target_reg_modes): Declare as a variable or define as a macro.
15050         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
15051         * reginfo.c (default_target_reg_modes): New variable.
15052         (this_target_reg_modes): New conditional variable.
15053         (hard_regno_nregs, reg_raw_mode): Delete.
15054         * target-globals.h (this_target_regs): Declare.
15055         (target_globals): Add a regs field.
15056         (restore_target_globals): Copy the regs field to this_target_regs.
15057         * target-globals.c: Include regs.h.
15058         (default_target_globals): Initialize the regs field.
15059         (save_target_globals): Likewise.
15060
15061 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15062
15063         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
15064         * doc/tm.texi: Regenerate.
15065         * Makefile.in (OBJS-common): Add target-globals.o.
15066         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
15067         and target-globals.h.
15068         (target-globals.o): New rule.
15069         (GTFILES): Include $(srcdir)/target-globals.h.
15070         * defaults.h (SWITCHABLE_TARGET): Define.
15071         * gengtype.c (open_base_files): Add target-globals.h to the
15072         list of includes.
15073         * target-globals.h: New file.
15074         * target-globals.c: Likewise.
15075
15076         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
15077         * flags.h (target_flag_state): New structure.
15078         (default_target_flag_state): Declare.
15079         (this_target_flag_state): Declare as a variable or define as a macro.
15080         (align_loops_log): Redefine as a macro.
15081         (align_loops_max_skip, align_jumps_log): Likewise.
15082         (align_jumps_max_skip, align_labels_log): Likewise.
15083         (align_labels_max_skip, align_functions_log): Likewise.
15084         * toplev.c (default_target_flag_state): New variable.
15085         (this_target_flag_state): New conditional variable.
15086         (align_loops_log): Delete.
15087         (align_loops_max_skip, align_jumps_log): Likewise.
15088         (align_jumps_max_skip, align_labels_log): Likewise.
15089         (align_labels_max_skip, align_functions_log): Likewise.
15090         * target-globals.h (this_target_flag_state): Declare.
15091         (target_globals): Add a flag_state field.
15092         (restore_target_globals): Copy the flag_state field to
15093         this_target_flag_state.
15094         * target-globals.c: Include flags.h.
15095         (default_target_globals): Initialize the flag_state field.
15096         (save_target_globals): Likewise.
15097
15098 2010-07-12  Jie Zhang  <jie@codesourcery.com>
15099
15100         * postreload.c (reg_symbol_ref[]): New.
15101         (move2add_use_add2_insn): New.
15102         (move2add_use_add3_insn): New.
15103         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
15104         (move2add_note_store): Likewise.
15105
15106 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
15107
15108         PR rtl-optimization/44752
15109         * genautomata.c (main): Don't emit an empty file even if there
15110         is no automaton.
15111
15112 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15113
15114         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
15115         ix86_solaris_return_in_memory.
15116         * config/i386-protos.h: Reflect this.
15117         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15118         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15119         Move ...
15120         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
15121
15122 2010-07-12  Jie Zhang  <jie@codesourcery.com>
15123
15124         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
15125         align the stack when it's going to be saved.
15126
15127 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15128
15129         PR pch/14940
15130         * config/host-solaris.c (mmap_fixed): New function.
15131         (sol_gt_pch_get_address): Use it.
15132         (sol_gt_pch_use_address): Likewise.
15133
15134 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15135
15136         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15137         pentiumpro on Solaris 8 and 9/x86.
15138         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
15139         Document SSE/SSE2 support.
15140         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
15141
15142 2010-07-12  Andi Kleen  <ak@linux.intel.com>
15143
15144         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
15145         instead of gcc_assert to print better error message for multiple
15146         prevailing defs.
15147
15148 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
15149
15150         * config/i386/i386.c (ix86_asm_output_function_label): Change format
15151         string placeholder from 0x%x to %#x.
15152         (ix86_code_end): Use putc to output '\n'.
15153         (ix86_print_operand) <case ';'>: Use putc to output ';'.
15154
15155 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
15156
15157         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
15158         in directive -export.
15159
15160 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
15161
15162         * reginfo.h (reg_classes_intersect_p): Change arguments type to
15163         reg_class_t.
15164         * rtl.h (reg_classes_intersect_p): Adjust prototype.
15165
15166         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15167         Remove macros.
15168         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
15169         rs6000_memory_move_cost): Remove
15170         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
15171         TARGET_MEMORY_MOVE_COST): Define.
15172         (rs6000_register_move_cost): Make static. Change arguments type from
15173         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
15174         (rs6000_memory_move_cost): Make static. Change arguments type from
15175         'enum reg_class' to reg_class_t.
15176
15177 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
15178
15179         PR middle-end/42505
15180         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
15181         lookup code into....
15182         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
15183         new functions.
15184         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
15185         * cfgloopanal.c (target_clobbered_regs): Define.
15186         (init_set_costs): Initialize target_clobbered_regs.
15187         (estimate_reg_pressure_cost): Add call_p argument.  When true,
15188         adjust the number of available registers to exclude the
15189         call-clobbered registers.
15190         * cfgloop.h (target_clobbered_regs): Declare.
15191         (estimate_reg_pressure_cost): Adjust declaration.
15192         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
15193         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
15194         (determine_set_costs): Dump target_clobbered_regs.
15195         (loop_body_includes_call): New function.
15196         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
15197         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
15198         call_p flag through.
15199         (best_gain_for_invariant): Likewise.
15200         (find_invariants_to_move): Likewise.
15201         (move_single_loop_invariants): Likewise, using already-computed
15202         has_call field.
15203
15204 2010-07-10  Richard Guenther  <rguenther@suse.de>
15205             Joern Rennecke  <joern.rennecke@embecosm.com>
15206
15207         PR debug/44832
15208         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
15209         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
15210         unless they have DECL_IGNORED_P set.
15211
15212 2010-07-10  Richard Guenther  <rguenther@suse.de>
15213
15214         PR lto/44889
15215         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
15216         helper function.
15217         (gimple_types_compatible_p): Similar to pointed-to
15218         types allow and merge a mix of complete and incomplete aggregate.
15219         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
15220         (iterative_hash_gimple_type): Adjust for that.
15221
15222 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
15223
15224         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
15225
15226 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
15227
15228         PR objc/44140
15229         * config/darwin.c (output_objc_section_asm_op): Save and restore
15230         section when outputting ObjC section list.
15231
15232 2010-07-09  Jan Hubicka  <jh@suse.cz>
15233
15234         * lto-streamer-out.c (produce_symtab): Do not write alias
15235         cgraph/varpool nodes.
15236
15237 2010-07-09  Jan Hubicka  <jh@suse.cz>
15238
15239         * tree-inline.c (declare_return_variable): Fix ICE while
15240         inlining DECL_BY_VALUE function not in SSA form
15241
15242 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
15243
15244         PR tree-optimization/44576
15245         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
15246         New.  Pull out from is_loop_prefetching_profitable to implement
15247         the trip count to ahead ratio heuristic.
15248         (mem_ref_count_reasonable_p): New.  Pull out from
15249         is_loop_prefetching_profitable to implement the instruction to
15250         memory reference ratio heuristic.  Also consider not reasonable if
15251         the memory reference count is above a threshold (to avoid
15252         explosive compilation time.
15253         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
15254         is_loop_prefetching_profitable to implement the instruction to
15255         prefetch ratio heuristic.
15256         (is_loop_prefetching_profitable): Removed.
15257         (loop_prefetch_arrays): Distribute the cost analysis across the
15258         function to allow early exit of the prefetch analysis.
15259         is_loop_prefetching_profitable is splitted into three functions,
15260         with each one called as early as possible.
15261         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
15262         number of memory references in a loop is considered too many.
15263
15264 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
15265
15266         * reload.c (find_reloads): Don't clear badop if we have a winreg
15267         alternative, but not win, and the class only has fixed regs.
15268         * hard-reg-set.h (class_only_fixed_regs): Declare.
15269         * reginfo.c (class_only_fixed_regs): New array.
15270         (init_reg_sets_1): Initialize it.
15271         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
15272         discourage alternatives using the stack pointer.
15273
15274         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
15275
15276         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
15277
15278         * config/arm/arm.md (cbranchqi4): Fix array size.
15279         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
15280         calculating length.
15281
15282 2010-07-09  Richard Guenther  <rguenther@suse.de>
15283
15284         * gimple.c (struct type_fixup_s): New struct and VEC type.
15285         (gimple_register_type_fixups): New static global.
15286         (gimple_queue_type_fixup): New function.
15287         (gimple_types_compatible_p): Queue type fixups instead of
15288         applying them here.
15289         (gimple_register_type): Apply queued fixups for the
15290         canonical type.  Empty the type fixup queue.
15291
15292 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15293
15294         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
15295         * configure: Regenerate.
15296         * config.in: Ditto.
15297
15298 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
15299             Denys Vlasenko  <dvlasenk@redhat.com>
15300             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15301
15302         PR tree-optimization/28632
15303         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
15304         (extract_range_from_binary_expr): Further optimize
15305         BIT_AND_EXPR and BIT_IOR_EXPR.
15306
15307 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
15308
15309         * tree-if-conv.c (fold_or_predicates): New.
15310         (add_to_predicate_list): Call it.
15311
15312 2010-07-09  Richard Guenther  <rguenther@suse.de>
15313
15314         PR middle-end/44890
15315         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
15316         if base is a pointer.
15317         * tree-cfg.c (verify_expr): Update MEM_REF checking.
15318
15319 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15320
15321         PR target/44877
15322         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
15323         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
15324         builtin mask for load/store builtins.
15325
15326 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15327
15328         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
15329         for "lock addl".
15330         * configure: Regenerate.
15331         * config/i386/i386.c (ix86_print_operand) <case ';'>:
15332         Remove TARGET_MACHO.
15333
15334 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
15335
15336         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
15337         default ISA flags.
15338         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
15339
15340 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
15341
15342         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
15343
15344 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
15345
15346         * config/picochip/picochip.md (commsTestPort): Emit more
15347         efficient sequence for tstport instruction.
15348
15349 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15350
15351         * config/i386/i386.c (ix86_veclib_handler): Make static.
15352
15353 2010-07-09  Richard Guenther  <rguenther@suse.de>
15354
15355         PR tree-optimization/44852
15356         * tree-ssa-alias.c: Include toplev.h for exact_log2.
15357         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
15358         in MEM_REF.
15359         (indirect_refs_may_alias_p): Likewise.
15360         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
15361
15362 2010-07-09  Richard Guenther  <rguenther@suse.de>
15363
15364         PR tree-optimization/44882
15365         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
15366         sets do conflict.
15367         (vectorizable_load): Likewise.
15368
15369 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
15370
15371         PR target/40657
15372         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
15373         All callers changed.
15374         Handle the case when we're called for the epilogue.
15375         (thumb_unexpanded_epilogue): Use it.
15376         (thumb1_expand_epilogue): Likewise.
15377
15378 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
15379
15380         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
15381         both ranges are range_int_cst_p with non-negative minimum,
15382         try harder to derive smaller range.
15383
15384 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15385
15386         * genrecog.c: Include diagnostic-core.h before toplev.h.
15387         * genoutput.c: Likewise.
15388         * genextract.c: Likewise.
15389         * genautomata.c: Likewise.
15390         * genemit.c: Likewise.
15391         * genpeep.c: Likewise.
15392         * genattrtab.c: Likewise.
15393         * genconditions.c: Likewise.
15394         * genpreds.c: Likewise.
15395
15396 2010-07-08  Andi Kleen  <ak@linux.intel.com>
15397
15398         * lto-section-in.c (lto_section_name): Add missing comma.
15399
15400 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
15401
15402         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
15403         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
15404         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
15405         (ia64_override_options): Rename to...
15406         (ia64_option_override): ... this one. Make static.
15407
15408 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15409
15410         PR middle-end/44843
15411         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
15412         pointed-to type of the offset in a MEM_REF to compute the alignment.
15413
15414 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
15415
15416         * final.c (final_scan_insn): Replace
15417         TARGET_UNWIND_INFO macro check by unwind_emit
15418         hook NULL check.
15419         * targhooks.c (default_unwind_emit): Removed.
15420         * targhooks.h (default_unwind_emit): Likewise.
15421         * target.def (unwind_emit): Set default value to NULL.
15422
15423         * config/i386/i386-protos.h (ix86_asm_output_function_label):
15424         New prototype.
15425         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
15426         for NULL fntype argument and allow 64-bit targets.
15427         (ix86_asm_output_function_label): New function.
15428         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
15429         (ix86_handle_fndecl_attribute): Likewise.
15430         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
15431         * doc/doc/tm.texi: Regenerated.
15432         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
15433         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
15434         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
15435         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
15436         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15437         * config/elfos.h: Likewise.
15438         * config/i386/cygming.h: Likewise.
15439         * config/netbsd-aout.h: Likewise.
15440         * config/openbsd.h: Likewise.
15441         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
15442         by ix86_asm_output_function_label function call.
15443         * varasm.c (assemble_start_function): Use
15444         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15445
15446 2010-07-08  Jan Hubicka  <jh@suse.cz>
15447
15448         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
15449         New function.
15450         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
15451         Declare.
15452         * ipa-cp.c (ipcp_estimate_growth): Use it.
15453         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
15454         Likewise.
15455
15456 2010-07-08  Jan Hubicka  <jh@suse.cz>
15457
15458         * tree-inline.c (declare_return_variable): Allocate annotation for new
15459         temporary.
15460
15461 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
15462
15463         PR tree-optimization/44710
15464         * tree-if-conv.c (parse_predicate): New.
15465         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
15466         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
15467
15468 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
15469
15470         * common.opt (ftree-loop-if-convert): New flag.
15471         * doc/invoke.texi (ftree-loop-if-convert): Documented.
15472         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
15473         when flag_tree_loop_if_convert is set.
15474
15475 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
15476
15477         * config/i386/i386.c: Use short syntax for function calls
15478         through function pointers.
15479         * config/i386/i386.md: Ditto.
15480
15481 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15482
15483         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
15484
15485 2010-07-08  Richard Guenther  <rguenther@suse.de>
15486
15487         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
15488         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
15489
15490 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
15491
15492         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
15493         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
15494         (loc_list_from_tree): Likewise.
15495         (output_loc_operands): Handle outputting DW_OP_const[48]u
15496         with loc->dtprel set.
15497         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
15498
15499 2010-07-08  Jan Hubicka  <jh@suse.cz>
15500
15501         * ipa.c: Include pointer-set.h
15502         (cgraph_externally_visible_p): New attribute ALIASED;
15503         when in LTO, hidden symbols are local unless they are aliased.
15504         (function_and_variable_visibility): Compute aliased nodes;
15505         handle LTO and hidden symbol on functions and vars.
15506         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
15507         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
15508
15509 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15510
15511         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15512         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15513         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15514         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15515         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15516         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
15517         (ix86_gen_probe_stack_range): Likewise.
15518         (override_options): Set them.
15519         (ix86_target_stack_probe): New function.
15520         (ix86_compute_frame_layout): Force use of push instructions to
15521         save registers if stack checking with probes is enabled.
15522         (get_scratch_register_on_entry): New function.
15523         (release_scratch_register_on_entry): Likewise.
15524         (ix86_adjust_stack_and_probe): Likewise.
15525         (output_adjust_stack_and_probe): Likewise.
15526         (ix86_emit_probe_stack_range): Likewise.
15527         (output_probe_stack_range): Likewise.
15528         (ix86_expand_prologue): Emit stack checking code if static built-in
15529         stack checking is enabled.
15530         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
15531         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
15532         (output_adjust_stack_and_probe): Likewise.
15533         (output_probe_stack_range): Likewise.
15534         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15535         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
15536         TARGET_STACK_PROBE.
15537         (allocate_stack_worker_64): Likewise.
15538         (allocate_stack): Likewise.
15539         (adjust_stack_and_probe): New insn.
15540         (probe_stack_range): Likewise.
15541
15542 2010-07-08  Richard Guenther  <rguenther@suse.de>
15543
15544         PR tree-optimization/44831
15545         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
15546         a MEM_REF preserving TBAA info of the original dereference.
15547         Dereference the original pointer if the address is not invariant.
15548         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
15549         at least one invariant address that we are going to dereference.
15550
15551 2010-07-08  Richard Guenther  <rguenther@suse.de>
15552
15553         PR tree-optimization/44861
15554         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
15555         information when building MEM_REFs.
15556         (vectorizable_load): Likewise.
15557         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15558
15559 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15560
15561         * config/sol2-c.c: Do not include diagnostic-core.h.
15562
15563 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15564
15565         PR bootstrap/44768
15566         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
15567         with respect to current_function_decl. Pass decl of the function.
15568         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
15569         * ipa-inline.c (compute_inline_parameters): Pass decl to
15570         estimated_stack_frame_size.
15571
15572 2010-07-08  Richard Guenther  <rguenther@suse.de>
15573
15574         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15575         New function.
15576         (valueize_refs): Call it.
15577
15578 2010-07-08  Richard Guenther  <rguenther@suse.de>
15579
15580         PR rtl-optimization/44838
15581         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
15582         SSA form do not use pointer equivalence.
15583
15584 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15585
15586         * dwarf2out.c (AT_linkage_name): Delete.
15587         (add_linkage_attr): New function.
15588         (add_linkage_name): Call it to emit the linkage attribute.
15589         (dwarf2out_finish): Likewise.
15590         (move_linkage_attr): Explicitly accept both attribute variants.
15591
15592 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15593
15594         * toplev.h: Do not include diagnostic-core.h.
15595         Include diagnostic-core.h in every file that includes toplev.h.
15596         * c-tree.h: Do not include toplev.h.
15597         * pretty-print.h: Update comment.
15598         * Makefile.in: Update dependencies.
15599         * alias.c: Include diagnostic-core.h in every file that includes
15600         toplev.h.
15601         * attribs.c: Likewise.
15602         * auto-inc-dec.c: Likewise.
15603         * bb-reorder.c: Likewise.
15604         * bt-load.c: Likewise.
15605         * caller-save.c: Likewise.
15606         * calls.c: Likewise.
15607         * cfg.c: Likewise.
15608         * cfganal.c: Likewise.
15609         * cfgbuild.c: Likewise.
15610         * cfgcleanup.c: Likewise.
15611         * cfghooks.c: Likewise.
15612         * cfgloop.c: Likewise.
15613         * combine.c: Likewise.
15614         * config/alpha/alpha.c: Likewise.
15615         * config/arc/arc.c: Likewise.
15616         * config/arm/arm.c: Likewise.
15617         * config/arm/pe.c: Likewise.
15618         * config/avr/avr.c: Likewise.
15619         * config/bfin/bfin.c: Likewise.
15620         * config/cris/cris.c: Likewise.
15621         * config/crx/crx.c: Likewise.
15622         * config/darwin-c.c: Likewise.
15623         * config/darwin.c: Likewise.
15624         * config/fr30/fr30.c: Likewise.
15625         * config/frv/frv.c: Likewise.
15626         * config/h8300/h8300.c: Likewise.
15627         * config/host-darwin.c: Likewise.
15628         * config/i386/i386.c: Likewise.
15629         * config/i386/netware.c: Likewise.
15630         * config/i386/nwld.c: Likewise.
15631         * config/i386/winnt-cxx.c: Likewise.
15632         * config/i386/winnt-stubs.c: Likewise.
15633         * config/i386/winnt.c: Likewise.
15634         * config/ia64/ia64-c.c: Likewise.
15635         * config/ia64/ia64.c: Likewise.
15636         * config/iq2000/iq2000.c: Likewise.
15637         * config/lm32/lm32.c: Likewise.
15638         * config/m32c/m32c-pragma.c: Likewise.
15639         * config/m32c/m32c.c: Likewise.
15640         * config/m32r/m32r.c: Likewise.
15641         * config/m68hc11/m68hc11.c: Likewise.
15642         * config/m68k/m68k.c: Likewise.
15643         * config/mcore/mcore.c: Likewise.
15644         * config/mep/mep-pragma.c: Likewise.
15645         * config/mep/mep.c: Likewise.
15646         * config/mmix/mmix.c: Likewise.
15647         * config/mn10300/mn10300.c: Likewise.
15648         * config/moxie/moxie.c: Likewise.
15649         * config/pa/pa.c: Likewise.
15650         * config/pdp11/pdp11.c: Likewise.
15651         * config/picochip/picochip.c: Likewise.
15652         * config/rs6000/rs6000-c.c: Likewise.
15653         * config/rs6000/rs6000.c: Likewise.
15654         * config/rx/rx.c: Likewise.
15655         * config/s390/s390.c: Likewise.
15656         * config/score/score.c: Likewise.
15657         * config/score/score3.c: Likewise.
15658         * config/score/score7.c: Likewise.
15659         * config/sh/sh.c: Likewise.
15660         * config/sh/symbian-base.c: Likewise.
15661         * config/sh/symbian-c.c: Likewise.
15662         * config/sh/symbian-cxx.c: Likewise.
15663         * config/sol2-c.c: Likewise.
15664         * config/sol2.c: Likewise.
15665         * config/sparc/sparc.c: Likewise.
15666         * config/spu/spu.c: Likewise.
15667         * config/stormy16/stormy16.c: Likewise.
15668         * config/v850/v850-c.c: Likewise.
15669         * config/v850/v850.c: Likewise.
15670         * config/vax/vax.c: Likewise.
15671         * config/vxworks.c: Likewise.
15672         * config/xtensa/xtensa.c: Likewise.
15673         * convert.c: Likewise.
15674         * cse.c: Likewise.
15675         * cselib.c: Likewise.
15676         * dbgcnt.c: Likewise.
15677         * dbxout.c: Likewise.
15678         * ddg.c: Likewise.
15679         * dominance.c: Likewise.
15680         * emit-rtl.c: Likewise.
15681         * explow.c: Likewise.
15682         * expmed.c: Likewise.
15683         * fixed-value.c: Likewise.
15684         * fold-const.c: Likewise.
15685         * fwprop.c: Likewise.
15686         * gcse.c: Likewise.
15687         * ggc-common.c: Likewise.
15688         * ggc-page.c: Likewise.
15689         * ggc-zone.c: Likewise.
15690         * gimple-low.c: Likewise.
15691         * gimplify.c: Likewise.
15692         * graph.c: Likewise.
15693         * haifa-sched.c: Likewise.
15694         * ifcvt.c: Likewise.
15695         * implicit-zee.c: Likewise.
15696         * integrate.c: Likewise.
15697         * ira-build.c: Likewise.
15698         * ira-color.c: Likewise.
15699         * ira-conflicts.c: Likewise.
15700         * ira-costs.c: Likewise.
15701         * ira-lives.c: Likewise.
15702         * ira.c: Likewise.
15703         * lists.c: Likewise.
15704         * loop-doloop.c: Likewise.
15705         * loop-iv.c: Likewise.
15706         * lto-opts.c: Likewise.
15707         * lto-symtab.c: Likewise.
15708         * main.c: Likewise.
15709         * modulo-sched.c: Likewise.
15710         * optabs.c: Likewise.
15711         * params.c: Likewise.
15712         * plugin.c: Likewise.
15713         * postreload-gcse.c: Likewise.
15714         * postreload.c: Likewise.
15715         * predict.c: Likewise.
15716         * profile.c: Likewise.
15717         * real.c: Likewise.
15718         * regcprop.c: Likewise.
15719         * reginfo.c: Likewise.
15720         * regmove.c: Likewise.
15721         * reorg.c: Likewise.
15722         * resource.c: Likewise.
15723         * rtl.c: Likewise.
15724         * rtlanal.c: Likewise.
15725         * sched-deps.c: Likewise.
15726         * sched-ebb.c: Likewise.
15727         * sched-rgn.c: Likewise.
15728         * sdbout.c: Likewise.
15729         * sel-sched-dump.c: Likewise.
15730         * sel-sched-ir.c: Likewise.
15731         * simplify-rtx.c: Likewise.
15732         * stmt.c: Likewise.
15733         * stor-layout.c: Likewise.
15734         * store-motion.c: Likewise.
15735         * targhooks.c: Likewise.
15736         * tree-cfg.c: Likewise.
15737         * tree-cfgcleanup.c: Likewise.
15738         * tree-dump.c: Likewise.
15739         * tree-eh.c: Likewise.
15740         * tree-inline.c: Likewise.
15741         * tree-nomudflap.c: Likewise.
15742         * tree-object-size.c: Likewise.
15743         * tree-optimize.c: Likewise.
15744         * tree-outof-ssa.c: Likewise.
15745         * tree-phinodes.c: Likewise.
15746         * tree-profile.c: Likewise.
15747         * tree-ssa-ccp.c: Likewise.
15748         * tree-ssa-coalesce.c: Likewise.
15749         * tree-ssa-live.c: Likewise.
15750         * tree-ssa-loop-niter.c: Likewise.
15751         * tree-ssa-loop-prefetch.c: Likewise.
15752         * tree-ssa-loop.c: Likewise.
15753         * tree-ssa-structalias.c: Likewise.
15754         * tree-ssa-uninit.c: Likewise.
15755         * tree-ssa.c: Likewise.
15756         * tree-vect-data-refs.c: Likewise.
15757         * tree-vect-loop-manip.c: Likewise.
15758         * tree-vect-loop.c: Likewise.
15759         * tree-vect-patterns.c: Likewise.
15760         * tree-vect-stmts.c: Likewise.
15761         * tree-vrp.c: Likewise.
15762         * varasm.c: Likewise.
15763         * vec.c: Likewise.
15764         * web.c: Likewise.
15765         * xcoffout.c: Likewise.
15766
15767 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
15768
15769         * gengtype.c (write_field_root): New function.
15770         (write_root): Use it.
15771
15772 2010-07-07  Wei Guozhi  <carrot@google.com>
15773
15774         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15775         of lowest bits to lshift/compare): Add a missing line.
15776
15777 2010-07-07  Wei Guozhi  <carrot@google.com>
15778
15779         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15780         of lowest bits to lshift/compare): New.
15781
15782 2010-07-07  Tom Tromey  <tromey@redhat.com>
15783
15784         * doc/tm.texi: Update.
15785         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
15786         Add @hook.
15787         * target.def (want_debug_pub_sections): New hook.
15788         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
15789         * dwarf2out.c (add_pubname_string): Check
15790         targetm.want_debug_pub_sections.
15791         (add_pubname): Likewise.
15792         (add_pubtype): Likewise.
15793
15794 2010-07-07  Jie Zhang  <jie@codesourcery.com>
15795
15796         * genautomata.c (output_automata_list_min_issue_delay_code):
15797         Correctly decompress min_issue_delay.
15798
15799 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
15800
15801         PR rtl-optimization/44404
15802         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
15803         possible, use reg_overlap_mentioned_p instead.
15804
15805 2010-07-07  Duncan Sands  <baldrick@free.fr>
15806
15807         PR middle-end/41355
15808         * tree.c (build_function_type_skip_args): Copy the original type using
15809         build_distinct_type_copy rather than copy_node.
15810
15811 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15812
15813         PR target/44850
15814         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
15815         revision 161876.
15816         (ix86_expand_prologue): Likewise.
15817         (ix86_handle_fndecl_attribute): Likewise.
15818         (ix86_asm_declare_function_name): Likewise.
15819         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15820         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15821         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
15822         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
15823         * doc/extend.texi: Likewise.
15824
15825 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15826
15827         PR target/44844
15828         * config/i386/i386.md (rdrand<mode>): Changed to expand to
15829         retry if the carry flag isn't valid.
15830         (rdrand<mode>_1): New.
15831
15832 2010-07-07  Richard Guenther  <rguenther@suse.de>
15833
15834         PR middle-end/44790
15835         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
15836         for expanding the constant offset for MEM_REFs.
15837
15838 2010-07-07  Richard Guenther  <rguenther@suse.de>
15839
15840         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
15841         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
15842         * gimple.h (is_gimple_operand): Remove.
15843         * gimple.c (is_gimple_operand): Likewise.
15844         (walk_gimple_op): Fix wi->val_only setting for calls.
15845         * tree-cfg.c (verify_gimple_call): Fix argument validation.
15846         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
15847         invalid gimple calls.
15848
15849 2010-07-06  Jan Hubicka  <jh@suse.cz>
15850
15851         * lto-cgraph.c (output_cgraph): Add missing declaration.
15852
15853 2010-07-06  Jan Hubicka  <jh@suse.cz>
15854
15855         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
15856         partition.
15857
15858 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
15859
15860         * doc/gimple.texi (GIMPLE_DEBUG): Document.
15861         * doc/rtl.texi (Debug Information): New node.
15862         (NOTE_INSN_VAR_LOCATION): Document.
15863         (debug_insn): Likewise.
15864         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
15865
15866 2010-07-07  Jan Hubicka  <jh@suse.cz>
15867
15868         With parts by Richard Guenther.
15869
15870         PR middle-end/44813
15871         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
15872         for functions passed by reference.
15873         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
15874         in memory when passed by reference.
15875         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
15876         beggining.
15877         * ipa-split.c (split_function): Cleanup way return value is passed;
15878         handle SSA DECL_BY_REFERENCE retvals.
15879         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
15880         DECL_BY_REFERENCE is set.
15881         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
15882         find_what_p_points_to): Handle RESULT_DECL.
15883         * tree-inline.c (declare_return_variable): Get new entry_block argument;
15884         when passing by reference ensure that RESULT_DECL is gimple_val.
15885         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
15886         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
15887
15888 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
15889
15890         PR rtl-optimization/44787
15891         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
15892         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
15893
15894 2010-07-06  Jan Hubicka  <jh@suse.cz>
15895
15896         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
15897         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
15898         with body can prevail.
15899         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
15900         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
15901         * cgraph.c (cgraph_get_node_or_alias): New function.
15902         * cgraph.h (cgraph_get_node_or_alias): Declare.
15903
15904 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
15905
15906         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
15907         support.
15908         (ix86_expand_prologue): Likewise.
15909         (ix86_handle_fndecl_attribute): Likewise.
15910         (ix86_asm_declare_function_name): New function for
15911         ASM_DECLARE_FUNCTION_NAME.
15912         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
15913         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
15914         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
15915         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
15916         * doc/extend.texi: Adjust documentation about ms_hook_prologue
15917         attribute.
15918
15919 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
15920
15921         * config/i386/i386.md (immediate_operand): New mode attribute.
15922
15923         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
15924         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
15925         using P mode iterator.
15926         (pro_epilogue_adjust_stack_di_2): Rename from
15927         pro_epilogue_adjust_stack_rex64_2.
15928
15929         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
15930
15931 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
15932
15933         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
15934         through gen_mov_insv_1 function pointer.
15935         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
15936         gen_truncxf<mode>2 through gen_truncxf function pointer.
15937         (remainder<mode>3): Ditto.
15938         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
15939         (allocate_stack): Call gen_allocate_stack_worker_64 or
15940         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
15941         function pointer.
15942         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
15943         function pointer.
15944
15945 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
15946
15947         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
15948         operand constraint instead of <r><i>m.
15949
15950 2010-07-06  Richard Guenther  <rguenther@suse.de>
15951
15952         PR middle-end/44828
15953         * convert.c (convert_to_integer): Watch out for overflowing
15954         MULT_EXPR as well.
15955
15956 2010-07-05  Jan Hubicka  <jh@suse.cz>
15957
15958         * lto-streamer.c (write_symbol_vec): Rename to ...
15959         (write_symbol) ... this one; write only symbol given and when
15960         present in cache. Sanity check that what is defined is present
15961         in cgraph/varpool with body/finalized decl.
15962         (write_symbols_of_kind): Remove.
15963         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
15964         pairs to produce symtab.
15965         (produce_asm_for_decls): Update call of produce_symtab; don't do so
15966         when doing WPA streaming.
15967
15968 2010-07-05  Jan Hubicka  <jh@suse.cz>
15969
15970         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
15971         function is still available to fold into.
15972
15973 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
15974
15975         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
15976         * function.h (struct_function): Change type of local_decls field
15977         to a VEC.
15978         (add_local_decl): New function.
15979         (FOR_EACH_LOCAL_DECL): New macro.
15980         * cfgexpand.c (init_vars_expansion): Adjust for new type of
15981         cfun->local_decls.
15982         (estimated_stack_frame_size): Likewise.
15983         (expand_used_vars): Likewise.
15984         * cgraphbuild.c (build_cgraph_edges): Likewise.
15985         * function.c (instantiate_decls_1): Likewise.
15986         * ipa-struct-reorg.c (build_data_structure): Likewise.
15987         * ipa-type-escape.c (analyze_function): Likewise.
15988         * lto-streamer-in.c (input_function): Likewise.
15989         * lto-streamer-out.c (output_function): Likewise.
15990         * tree-ssa-live.c (remove_unused_locals): Likewise.
15991         * tree.c (free_lang_data_in_decl): Likewise.
15992         (find_decls_types_in_node): Likewise.
15993         * omp-low.c (remove_exit_barrier): Likewise.
15994         (expand_omp_taskreg): Likewise.
15995         (list2chain): Rename to...
15996         (vec2chain): ...this.  Adjust.
15997         * cgraphunit.c (assemble_thunk): Call add_local_decl.
15998         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
15999         * gimple-low.c (record_vars_into): Likewise.
16000         * tree-inline.c (remap_decls): Likewise.
16001         (declare_return_variable): Likewise.
16002         (declare_inline_vars): Likewise.
16003         (copy_forbidden): Adjust for new type of cfun->local_decls.
16004         (add_local_variables): New function.
16005         (expand_call_inline): Call it.
16006         (tree_function_versioning): Likewise.
16007
16008 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
16009
16010         AVX Programming Reference (June, 2010)
16011         * config/i386/cpuid.h (bit_F16C): New.
16012         (bit_RDRND): Likewise.
16013         (bit_FSGSBASE): Likewise.
16014
16015         * config/i386/i386-builtin-types.def: Add
16016         "DEF_FUNCTION_TYPE (UINT16)", function types for
16017         float16 <-> float conversions and
16018         "DEF_FUNCTION_TYPE (VOID, UINT64)".
16019
16020         * config/i386/i386-c.c (ix86_target_macros_internal): Support
16021         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
16022         OPTION_MASK_ISA_F16C.
16023
16024         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
16025         (OPTION_MASK_ISA_RDRND_SET): Likewise.
16026         (OPTION_MASK_ISA_F16C_SET): Likewise.
16027         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
16028         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
16029         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
16030         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
16031         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
16032         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
16033         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
16034         (override_options): Handle them.
16035         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
16036         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
16037         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
16038         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
16039         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
16040         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
16041         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
16042         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
16043         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
16044         (bdesc_args): Likewise.
16045         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
16046         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
16047         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
16048         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
16049         Handle non-memory store.
16050
16051         * config/i386/i386.h (TARGET_FSGSBASE): New.
16052         (TARGET_RDRND): Likewise.
16053         (TARGET_F12C): Likewise.
16054
16055         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
16056         (UNSPEC_VCVTPS2PH): Likewise.
16057         (UNSPECV_RDFSBASE): Likewise.
16058         (UNSPECV_RDGSBASE): Likewise.
16059         (UNSPECV_WRFSBASE): Likewise.
16060         (UNSPECV_WRGSBASE): Likewise.
16061         (UNSPECV_RDRAND): Likewise.
16062         (rdfsbase<mode>): Likewise.
16063         (rdgsbase<mode>): Likewise.
16064         (wrfsbase<mode>): Likewise.
16065         (wrgsbase<mode>): Likewise.
16066         (rdrand<mode>): Likewise.
16067
16068         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
16069
16070         * config/i386/immintrin.h (_rdrand_u16): New.
16071         (_rdrand_u32): Likewise.
16072         (_readfsbase_u32): Likewise.
16073         (_readfsbase_u64): Likewise.
16074         (_readgsbase_u32): Likewise.
16075         (_readgsbase_u64): Likewise.
16076         (_writefsbase_u32): Likewise.
16077         (_writefsbase_u64): Likewise.
16078         (_writegsbase_u32): Likewise.
16079         (_writegsbase_u64): Likewise.
16080         (_rdrand_u64): Likewise.
16081         (_cvtsh_ss): Likewise.
16082         (_mm_cvtph_ps): Likewise.
16083         (_mm256_cvtph_ps): Likewise.
16084         (_cvtss_sh): Likewise.
16085         (_mm_cvtps_ph): Likewise.
16086         (_mm256_cvtps_ph): Likewise.
16087
16088         * config/i386/sse.md (vcvtph2ps): New.
16089         (*vcvtph2ps_load): Likewise.
16090         (vcvtph2ps256): Likewise.
16091         (vcvtps2ph): Likewise.
16092         (*vcvtps2ph): Likewise.
16093         (*vcvtps2ph_store): Likewise.
16094         (vcvtps2ph256): Likewise.
16095
16096         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
16097
16098         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
16099
16100 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
16101
16102         PR bootstrap/44512
16103         * genenums.c (main): Output include of insn-constants.h
16104         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
16105
16106 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
16107
16108         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
16109         (override_options): Initialize it.
16110         (ix86_expand_prologue): Use it.
16111
16112 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
16113
16114         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
16115
16116 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
16117
16118         * double-int.h (fit_double_type): Remove declaration.
16119         * double-int.c (fit_double_type): Remove function.
16120         * tree.h (int_fits_type_p): Adjust prototype.
16121         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
16122         instead of fit_double_type.
16123         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
16124         instead of fit_double_type and build_int_cst_wide.
16125         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
16126         instead of fit_double_type and build_int_cst_wide.
16127         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
16128         of fit_double_type.
16129
16130 2010-07-05  Jan Hubicka  <jh@suse.cz>
16131
16132         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
16133         in_other_partition.
16134         * lto-cgraph.c (referenced_from_other_partition_p,
16135         reachable_from_other_partition_p): Use in_other_partition flags.
16136         (output_node, output_varpool_node): COMDAT nodes always have private
16137         copies and thus are never used from other partition.
16138
16139 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
16140
16141         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16142         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
16143         * config/ia64/ia64.c Include reload.h.
16144         (ia64_memory_move_cost): New function.
16145         (TARGET_MEMORY_MOVE_COST): Define.
16146         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
16147         memory_move_cost.
16148
16149 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
16150
16151         PR middle-end/42505
16152         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
16153         comments about cost model.
16154         (try_add_cand_for):  Add second strategy for choosing initial set
16155         based on original IVs, controlled by ORIGINALP argument.
16156         (get_initial_solution): Add ORIGINALP argument.
16157         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
16158         (find_optimal_iv_set): Try two different strategies for choosing
16159         the IV set, and return the one with lower cost.
16160
16161 2010-07-05  Richard Guenther  <rguenther@suse.de>
16162
16163         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
16164
16165 2010-07-05  Richard Guenther  <rguenther@suse.de>
16166
16167         * tree.c (reference_alias_ptr_type): New function.
16168         * tree.h (reference_alias_ptr_type): Declare.
16169         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
16170         allow non-TARGET_MEM_REF new refs.
16171         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
16172         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
16173         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
16174         (create_mem_ref): Get alias pointer type.  Adjust calls to
16175         create_mem_ref_raw.
16176         (maybe_fold_tmr): Likewise.
16177         * tree-flow.h (create_mem_ref): Adjust prototype.
16178
16179 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
16180
16181         PR c++/44808
16182         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
16183         *from_p is VAR_DECL.
16184
16185 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16186
16187         * tree.h (build_call_list): Remove.
16188         * tree.c (build_call_list): Remove.
16189
16190 2010-07-05  Richard Guenther  <rguenther@suse.de>
16191
16192         * double-int.h (double_int_sub): Declare.
16193         * double-int.c (double_int_sub): New function.
16194         * dwarf2out.c (field_byte_offset): Use it.
16195         * fixed-value.c (do_fixed_add): Likewise.
16196         (do_fixed_multiply): Likewise.
16197         (do_fixed_divide): Likewise.
16198         * tree-predcom.c (add_ref_to_chain): Likewise.
16199         (determine_roots_comp): Likewise.
16200         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16201
16202 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16203
16204         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
16205         implementations.
16206
16207 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
16208
16209         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
16210         * arm-modes.def (CC_NOTB): Don't define.
16211         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
16212         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
16213         (LTUGEU): New code_iterator.
16214         (cnb, optab): New corresponding code_attrs.
16215         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
16216         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
16217         using LTUGEU.
16218         (addsi3_carryin_shift_<optab>): Likewise.
16219         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
16220         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
16221         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
16222         (subsi3_compare): Renamed from subsi3_compare0_c.
16223         Change CC_NOTB to CC.
16224         (arm_subsi3_insn): Allow constants for operand 0.
16225         (compare_scc peephole for eq case): New.
16226         (compare_scc splitters): Change CC_NOTB to CC.
16227
16228 2010-07-05  Richard Guenther  <rguenther@suse.de>
16229
16230         * tree-ssa-loop-im.c (for_each_index): Do not handle
16231         ALIGN_INDIRECT_REF.
16232         (gen_lsm_tmp_name): Likewise.
16233         * tree-dump.c (dequeue_and_dump): Likewise.
16234         * tree-pretty-print.c (dump_generic_node): Likewise.
16235         (op_code_prio): Likewise.
16236         (op_symbol_code): Likewise.
16237         * tree.c (staticp): Likewise.
16238         (build1_stat): Likewise.
16239         * tree.h (INDIRECT_REF_P): Likewise.
16240         * fold-const.c (maybe_lvalue_p): Likewise.
16241         (operand_equal_p): Likewise.
16242         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16243         (ao_ref_init_from_vn_reference): Likewise.
16244         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
16245         (find_interesting_uses_address): Likewise.
16246         * dwarf2out.c (loc_list_from_tree): Likewise.
16247         * gimplify.c (gimplify_expr): Likewise.
16248         * tree-eh.c (tree_could_trap_p): Likewise.
16249         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16250         * cfgexpand.c (expand_debug_expr): Likewise.
16251         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16252         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
16253         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
16254         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
16255         * tree-ssa-operands.c (get_expr_operands): Likewise.
16256         * expr.c (safe_from_p): Likewise.
16257         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
16258         * tree-vect-data-refs.c (vect_setup_realignment): Build
16259         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
16260         * tree-vect-stmts.c (vectorizable_load): Likewise.
16261         * tree.def (ALIGN_INDIRECT_REF): Remove.
16262
16263 2010-07-05  Richard Guenther  <rguenther@suse.de>
16264
16265         PR tree-optimization/44784
16266         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
16267         for inserted stmts.
16268         (find_or_generate_expression): Fix SCCVN insertion check.
16269
16270 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
16271
16272         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
16273         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
16274         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
16275         directives.
16276
16277 2010-07-05  Ira Rosen  <irar@il.ibm.com>
16278
16279         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
16280         statements that are not vectorized.
16281         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
16282         in INSIDE_COST.
16283
16284 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
16285
16286         PR bootstrap/44820
16287         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
16288
16289 2010-07-05  Richard Guenther  <rguenther@suse.de>
16290
16291         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
16292         RESULT_DECLs properly.
16293
16294 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16295
16296         PR rtl-optimization/44695
16297         * config/i386/i386.md (extract_code): Removed.
16298         (<u>divmodqi4): Likewise.
16299         (divmodqi4): New.
16300         (udivmodqi4): Likewise.
16301         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
16302         (udivmodhiqi3): Likewise.
16303
16304 2010-07-04  Jan Hubicka  <jh@suse.cz>
16305
16306         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
16307
16308 2010-07-04  Jan Hubicka  <jh@suse.cz>
16309
16310         * cgraphunit.c (init_cgraph): Only initialize dump file if it
16311         is not already initialized.
16312
16313 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16314
16315         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
16316         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
16317         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
16318         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
16319         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
16320         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
16321         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
16322         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
16323         (sync_new_nand_optab): Redefine as macros.
16324         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
16325         Delete.
16326         (direct_optab_index): New enum.
16327         (direct_optab_d): New structure.
16328         (direct_optab): New typedef.
16329         (direct_optab_table): Declare.
16330         (direct_optab_handler, set_direct_optab_handler): New functions.
16331         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
16332         (sync_lock_release_optab): New macros.
16333         * optabs.c (direct_optab_table): New variable.
16334         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
16335         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
16336         cmpstr_optab and cmpstrn_optab.
16337         (emit_conditional_move): Likewise for movcc_optab.
16338         (can_conditionally_move_p): Likewise for movcc_gen_code.
16339         (init_insn_codes): Clear direct_optab_table.
16340         (init_optabs): Don't initialize the new "direct optabs" here.
16341         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
16342         vcond_gen_code.
16343         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
16344         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
16345         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
16346         (expand_sync_operation): Likewise other sync_*_optabs.
16347         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
16348         to sync_compare_and_swap_optab.
16349         (expand_sync_lock_test_and_set): Use direct_optab_handler for
16350         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
16351         to the names of both.
16352         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
16353         cmpstr_optab and cmpstrn_optab.
16354         (expand_builtin_lock_release): Likewise sync_lock_release.
16355         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
16356         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
16357         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
16358         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
16359         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
16360         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
16361         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
16362         (sync_lock_test_and_set, sync_lock_release): Delete.
16363         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
16364         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
16365         * genopinit.c (optabs): Use set_direct_optab_handler for the new
16366         macro optabs.
16367         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
16368         the "optab" local variable.  Use direct_optab_handler for optab and
16369         sync_compare_and_swap_optab.
16370         * reload1.c (reload_in_optab, reload_out_optab): Delete.
16371         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
16372         reload_in_optab and reload_out_optab.
16373         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16374         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
16375         * config/pa/pa.c (pa_secondary_reload): Likewise.
16376         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
16377         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
16378         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
16379         (VMSupportsCS8_builtin): Likewise.
16380
16381 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16382
16383         * optabs.h (optab_handlers): Change type of insn_code to int.
16384         (optab_handler, set_optab_handler, convert_optab_handler)
16385         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
16386         CODE_FOR_nothing".
16387         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
16388         (init_insn_codes): Zero both the above arrays.
16389         (init_optabs): Never call init_insn_codes first time around.
16390
16391 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16392
16393         * optabs.h (optab_handler, convert_optab_handler): Turn into
16394         inline functions that return an insn code.
16395         (set_optab_handler, set_convert_optab_handler): New functions.
16396         * builtins.c: Replace optab_handler(X)->insn_code with
16397         optab_handler or set_optab_handler thoughout.  Likewise
16398         convert_optab_handler(X)->insn_code with convert_optab_handler
16399         and set_convert_optab_handler.
16400         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
16401         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
16402         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
16403         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
16404         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
16405         config/spu/spu.c: Likewise.
16406
16407 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16408
16409         PR target/44531
16410         * config.gcc (sh*-*-*): Use regular expressions instead of
16411         the 'i' modifier for sed substitutions.
16412
16413 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
16414
16415         * gimple.c (gimple_body): Comments added.
16416
16417 2010-07-04  Richard Guenther  <rguenther@suse.de>
16418
16419         PR middle-end/44809
16420         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
16421         of an INDIRECT_REF.
16422
16423 2010-07-04  Richard Guenther  <rguenther@suse.de>
16424
16425         PR tree-optimization/44479
16426         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
16427         extra SSA name copy statements which preserves points-to
16428         information.
16429         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16430         Copy points-to information for all pointers.  Properly handle
16431         MEM_REFs.
16432         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
16433         copy statements.
16434         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
16435         dependency.
16436
16437 2010-07-04  Richard Guenther  <rguenther@suse.de>
16438
16439         PR middle-end/44785
16440         * tree-inline.c (initialize_inlined_parameters): Do not
16441         re-use pointer-map slot over remap_type call.
16442
16443 2010-07-04  Richard Guenther  <rguenther@suse.de>
16444
16445         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
16446
16447 2010-07-04  Richard Guenther  <rguenther@suse.de>
16448
16449         PR tree-optimization/44656
16450         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
16451         again after value-replacing in the defintions lhs.
16452
16453 2010-07-04  Ira Rosen  <irar@il.ibm.com>
16454             Revital Eres  <eres@il.ibm.com>
16455
16456         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
16457         Document new arguments.
16458         * doc/tm.texi: Regenerate.
16459         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
16460         Handle unaligned store.
16461         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
16462         * target.def (builtin_vectorization_cost): Add new arguments.
16463         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
16464         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
16465         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
16466         (vect_vfa_segment_size): Fix indentation.
16467         * tree-vectorizer.h (struct _vect_peel_info): New.
16468         (struct _vect_peel_extended_info): New.
16469         (struct _loop_vec_info): Add new field for peeling hash table and a
16470         macro for its access.
16471         (VECT_MAX_COST): Define.
16472         (vect_get_load_cost): Declare.
16473         (vect_get_store_cost, vect_get_known_peeling_cost,
16474         vect_get_single_scalar_iteraion_cost): Likewise.
16475         (vect_supportable_dr_alignment): Add new argument.
16476         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
16477         field.
16478         (destroy_loop_vec_info): Free peeling hash table.
16479         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
16480         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
16481         vect_analyze_slp. Fix indentation.
16482         (vect_get_single_scalar_iteraion_cost): New function.
16483         (vect_get_known_peeling_cost): Likewise.
16484         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
16485         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
16486         statement. Move outside cost calculation inside unknown peeling case.
16487         Call vect_get_known_peeling_cost for known amount of peeling.
16488         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
16489         reference to the print message of forced alignment.
16490         (vect_verify_datarefs_alignment): Update call to
16491         vect_supportable_dr_alignment.
16492         (vect_get_data_access_cost): New function.
16493         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
16494         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
16495         vect_peeling_hash_choose_best_peeling): Likewise.
16496         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
16497         to store all the accesses in the loop and find best possible access to
16498         align using peeling for known alignment case. For unknown alignment
16499         check if stores are preferred or if peeling is worthy.
16500         (vect_find_same_alignment_drs): Analyze pairs of loads too.
16501         (vect_supportable_dr_alignment): Add new argument and check aligned
16502         accesses according to it.
16503         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
16504         (cost_for_stmt): Call vect_get_stmt_cost.
16505         (vect_model_simple_cost): Likewise.
16506         (vect_model_store_cost): Call vect_get_stmt_cost. Call
16507         vect_get_store_cost to calculate the cost of the statement.
16508         (vect_get_store_cost): New function.
16509         (vect_model_load_cost): Call vect_get_stmt_cost. Call
16510         vect_get_load_cost to calculate the cost of the statement.
16511         (vect_get_load_cost): New function.
16512         (vectorizable_store): Update call to vect_supportable_dr_alignment.
16513         (vectorizable_load): Likewise.
16514         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
16515         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
16516         arguments. Handle unaligned store.
16517         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
16518         (rs6000_builtin_support_vector_misalignment): Return true for word and
16519         double word alignments for VSX.
16520         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
16521         vect_supportable_dr_alignment and builtin_vectorization_cost.
16522
16523 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16524
16525         PR target/44597
16526         * config/pa/predicates.md (prefetch_cc_operand): Remove.
16527         (prefetch_nocc_operand): Likewise.
16528         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
16529         (prefetch_20): New insn.
16530         (prefetch_cc): Remove.
16531         (prefetch_nocc): Likewise.
16532
16533 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16534
16535         * expr.c (vector_mode_valid_p): Move to c-common.c.
16536         * expr.h (vector_mode_valid_p): Do not declare here.
16537         * system.h: Poison GCC_EXPR_H in front-ends.
16538         * Makefile.in: Update dependencies.
16539
16540 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16541
16542         PR target/44705
16543         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
16544
16545 2010-07-03  Jan Hubicka  <jh@suse.cz>
16546
16547         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
16548         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
16549         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
16550         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
16551         Likewise.
16552
16553         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
16554         Update timevars.V
16555         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
16556         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
16557         TV_IPA_LTO_DECL_OUT): New.
16558         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
16559
16560 2010-07-03  Jan Hubicka  <jh@suse.cz>
16561
16562         * ipa-inline.c (update_edge_key): Break out from ...
16563         update_callers_keys): ... here;
16564         (update_callee_keys): Update only the edges from caller to callee.
16565         (update_all_calle_keys): Do what update_calle_keys did.
16566         (decide_inlining_of_small_functions): Avoid recomputing of all
16567         callees when badness increase.
16568
16569 2010-07-03  Jie Zhang  <jie@codesourcery.com>
16570
16571         * config/arm/arm.c (arm_attr_length_move_neon): New.
16572         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
16573         * config/arm/neon.md (define_mode_attr V_slen): Remove.
16574         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
16575         to compute length attribute.
16576
16577 2010-07-03  Jie Zhang  <jie@codesourcery.com>
16578
16579         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
16580         as predicate for operand 1 and remove its constraint.
16581         * config/arm/predicates.md (vfp_register_operand): New.
16582         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
16583         (*push_fp_multi): Likewise.
16584
16585 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
16586
16587         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
16588
16589 2010-07-03  Jan Hubicka  <jh@suse.cz>
16590
16591         * config/i386/i386.c (override_options): Revert accidental commit.
16592
16593 2010-07-02  Le-Chun Wu  <lcwu@google.com>
16594
16595         PR c++/44128
16596         * doc/invoke.texi: Update documentation of -Wshadow.
16597
16598 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
16599             Julian Brown  <julian@codesourcery.com>
16600             Sandra Loosemore  <sandra@codesourcery.com>
16601
16602         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
16603         comparisons.  Adjust to take both operands.
16604         (arm_select_cc_mode): Handle DImode comparisons.
16605         (arm_gen_compare_reg): Generate a scratch register for DImode
16606         comparisons which require one.  Use xor for Thumb equality checks.
16607         (arm_const_double_by_immediates): New.
16608         (arm_print_operand): Allow 'Q' and 'R' for constants.
16609         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
16610         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
16611         arm_canonicalize_comparison.
16612         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
16613         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
16614         prototype.
16615         (arm_const_double_by_immediates): Declare.
16616         * config/arm/constraints.md (Di): New constraint.
16617         * config/arm/predicates.md (arm_immediate_di_operand)
16618         (arm_di_operand, cmpdi_operand): New.
16619         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
16620         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
16621         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
16622         (cstoredi4): Handle non-Cirrus also.
16623
16624 2010-07-02  Julian Brown  <julian@codesourcery.com>
16625             Sandra Loosemore  <sandra@codesourcery.com>
16626
16627         PR target/43703
16628         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
16629         (smax<mode>3): Disable for NEON float modes when
16630         flag_unsafe_math_optimizations is false.
16631         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
16632         (*mul<mode>3_neon)
16633         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
16634         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
16635         for NEON float modes when flag_unsafe_math_optimizations is false.
16636         (quad_halves_<code>v4sf): Only enable if
16637         flag_unsafe_math_optimizations is true.
16638         * doc/invoke.texi (ARM Options): Add note about floating point
16639         vectorization requiring -funsafe-math-optimizations.
16640
16641 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
16642             Julian Brown  <julian@codesourcery.com>
16643
16644         * config/arm/neon.md (UNSPEC_VABA): Delete.
16645         (UNSPEC_VABAL): Delete.
16646         (UNSPEC_VABS): Delete.
16647         (UNSPEC_VMUL_N): Delete.
16648         (adddi3_neon): New.
16649         (subdi3_neon): New.
16650         (mul<mode>3add<mode>_neon): Make the pattern named.
16651         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16652         (neon_vadd<mode>): Replace with define_expand, and move the remaining
16653         unspec parts...
16654         (neon_vadd<mode>_unspec): ...to this.
16655         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
16656         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
16657         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
16658         (neon_vaba<mode>): Rewrite in terms of vabd.
16659         (neon_vabal<mode>): Rewrite in terms of vabdl.
16660         (neon_vabs<mode>): Rewrite without unspec.
16661         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
16662         (*arm_subdi3): Likewise.
16663         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
16664         No_op attribute to disable assembly output checks.
16665         * config/arm/arm_neon.h: Regenerated.
16666         * doc/arm-neon-intrinsics.texi: Regenerated.
16667
16668 2010-07-02  Jan Hubicka  <jh@suse.cz>
16669
16670         * ipa-split.c (split_function): For aggregate values, set the return
16671         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
16672         *<retval> = fncall.part ().
16673         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
16674
16675 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
16676
16677         * config/arm/neon.md (UNSPEC_VAND): Delete.
16678         (UNSPEC_VBIC): Delete.
16679         (UNSPEC_VCLZ): Delete.
16680         (UNSPEC_VCNT): Delete.
16681         (UNSPEC_VEOR): Delete.
16682         (UNSPEC_VORN): Delete.
16683         (UNSPEC_VORR): Delete.
16684         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
16685         core registers too.
16686         (anddi3_neon): Likewise.
16687         (orndi3_neon): Likewise.
16688         (bicdi3_neon): Likewise.
16689         (xordi3_neon): Likewise.
16690         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
16691         rid of unspec and handle unused operand.
16692         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
16693         * config/arm/predicates.md (imm_for_neon_logic_operand):
16694         Require TARGET_NEON.
16695         (imm_for_neon_inv_logic_operand): Likewise.
16696         * config/arm/arm.md (define_split for logical_binary_operator):
16697         Disable for NEON registers.
16698         (anddi3): Add new define_expand, and rename the insn.  Disable
16699         this insn for NEON, where anddi3_neon now applies.
16700         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
16701         (iordi3): As for anddi3.
16702         (xordi3): Likewise.
16703         * config/arm/neon.ml (Vand): Split DImode variants and mark them
16704         as No_op to disable testing for exact instruction match.
16705         (Vorr): Likewise.
16706         (Veor): Likewise.
16707         (Vbic): Likewise.
16708         (Vorn): Likewise.
16709         * config/arm/arm_neon.h: Regenerated.
16710         * doc/arm-neon-intrinsics.texi: Regenerated.
16711
16712 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
16713
16714         * expr.h (emit_stack_probe): Declare.
16715         * explow.c (emit_stack_probe): Make global.
16716         (anti_adjust_stack_and_probe): Fix comments.
16717         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16718         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16719         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16720         * config/sparc/sparc.c: Include except.h.
16721         (sparc_emit_probe_stack_range): New function.
16722         (output_probe_stack_range): Likewise.
16723         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
16724         built-in stack checking is enabled.
16725         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
16726         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16727         (probe_stack_range): New insn.
16728
16729 2010-07-02  Richard Guenther  <rguenther@suse.de>
16730
16731         PR target/43958
16732         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
16733         for argument alignment.
16734
16735 2010-07-02  Jan Hubicka  <jh@suse.cz>
16736
16737         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
16738         walk backwards from entry_bb to check only those basic block of header
16739         that might lead to execution of split part.
16740         (consider_split) ... here.
16741         (find_return_bb): Allow assignment in return BB.
16742         (find_retval): New.
16743         (split_function): Fix name of cloned function; take care of updating
16744         return value in return_bb containing move.
16745
16746 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
16747
16748         PR target/44771
16749         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
16750         used variable insn.
16751
16752 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
16753
16754         * implicit-zee.c (combine_reaching_defs): Fix long lines.
16755         (is_set_with_extension_DI): Delete.
16756         (struct zero_extend_info): New structure.
16757         (add_removable_zero_extend): New function.
16758         (find_removable_zero_extends): Use note_stores to find SETs.
16759         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
16760
16761 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
16762
16763         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
16764         is_miss_rate_acceptable. Pull total_positions computation
16765         out of the loops.  Early return if miss_positions exceeds
16766         the acceptable threshold.
16767         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
16768         is_miss_rate_acceptable after renaming of compute_miss_rate.
16769
16770 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
16771
16772         PR middle-end/44576
16773         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
16774         of 1000) for miss rate if the address diference is greater than or
16775         equal to the cache line size (the two reference will never hit the
16776         same cache line).
16777
16778 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
16779
16780         PR target/42835
16781         * config/arm/arm-modes.def (CC_NOTB): New mode.
16782         * config/arm/arm.c (get_arm_condition_code): Handle it.
16783         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
16784         * config/arm/arm.md (subsi3_compare0_c): New pattern.
16785         (compare_scc): Now a define_and_split.  Add a number of extra
16786         splitters before it.
16787
16788         PR target/42172
16789         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
16790         and ZERO_EXTEND.
16791         (arm_rtx_costs_1): Likewise.
16792         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
16793         * config/arm/arm.md (is_arch6): New attribute.
16794         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
16795         extendqisi2): Tighten the code somewhat, avoiding invalid
16796         RTL to occur in the expander patterns.
16797         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
16798         (thumb1_zero_extendhisi2_v6): Delete.
16799         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
16800         (thumb1_extendhisi2_v6): Delete.
16801         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
16802         (thumb1_extendqisi2_v6): Delete.
16803         (zero_extendhisi2 for register input splitter): New.
16804         (zero_extendqisi2 for register input splitter): New.
16805         (thumb1_extendhisi2 for register input splitter): New.
16806         (extendhisi2 for register input splitter): New.
16807         (extendqisi2 for register input splitter): New.
16808         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
16809         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
16810         and add support for a register alternative requiring a split.
16811         (thumb1_zero_extendqisi2): Likewise.
16812         (arm_zero_extendqisi2): Likewise.
16813         (arm_extendhisi2): Likewise.
16814         (arm_extendqisi2): Likewise.
16815
16816 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
16817
16818         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
16819         instead of an unspec.
16820         (neon_expand_vector_init): Likewise.
16821         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
16822         (UNSPEC_VDUP_LANE): Delete.
16823         (UNSPEC VDUP_N): Delete.
16824         (UNSPEC_VGET_HIGH): Delete.
16825         (UNSPEC_VGET_LANE): Delete.
16826         (UNSPEC_VGET_LOW): Delete.
16827         (UNSPEC_VMVN): Delete.
16828         (UNSPEC_VSET_LANE): Delete.
16829         (V_double_vector_mode): New.
16830         (vec_set<mode>_internal): Make code emitted match that for the
16831         corresponding intrinsics.
16832         (vec_setv2di_internal): Likewise.
16833         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
16834         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
16835         (neon_vset_lane<mode>): Combine double and quad patterns and
16836         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
16837         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
16838         (neon_vdup_n<mode>): Rewrite RTL without unspec.
16839         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
16840         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
16841         with neon_vdup_lanev2di, adjusting the pattern from the latter
16842         to be predicable for consistency.
16843         (neon_vdup_lane<mode>_internal): New.
16844         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
16845         to avoid using an unspec.
16846         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
16847         (neon_vdup_lanev2di): Turn into a define_expand.
16848         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
16849         (neon_vget_high<mode>): Replace with....
16850         (neon_vget_highv16qi): New pattern using canonical RTL.
16851         (neon_vget_highv8hi): Likewise.
16852         (neon_vget_highv4si): Likewise.
16853         (neon_vget_highv4sf): Likewise.
16854         (neon_vget_highv2di): Likewise.
16855         (neon_vget_low<mode>): Replace with....
16856         (neon_vget_lowv16qi): New pattern using canonical RTL.
16857         (neon_vget_lowv8hi): Likewise.
16858         (neon_vget_lowv4si): Likewise.
16859         (neon_vget_lowv4sf): Likewise.
16860         (neon_vget_lowv2di): Likewise.
16861
16862         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
16863         test for this emitting vmov.
16864         (Vset_lane): Likewise.
16865         (Vdup_n): Likewise.
16866         (Vmov_n): Likewise.
16867
16868         * doc/arm-neon-intrinsics.texi: Regenerated.
16869
16870 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
16871
16872         * config/arm/neon.md (vec_extractv2di): Correct error in register
16873         numbering to reconcile with neon_vget_lanev2di.
16874
16875 2010-07-02  Richard Guenther  <rguenther@suse.de>
16876
16877         * tree-ssa-structalias.c (pt_solution_set_var): New function.
16878         * tree-ssa-alias.h (pt_solution_set_var): Declare.
16879         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
16880         points-to information.
16881
16882 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
16883
16884         * config/s390/s390.c (override_options): Adopt prefetching
16885         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
16886
16887 2010-07-02  Jan Hubicka  <jh@suse.cz>
16888
16889         * df-problems.c (df_kill_notes): Do not collect dead  notes.
16890         (df_set_note): Just call add_reg_note.
16891         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
16892         df_create_unused_note): Do not deal with lists of old notes.
16893         (df_note_bb_compute): Likewise.
16894
16895 2010-07-02  Richard Guenther  <rguenther@suse.de>
16896
16897         * tree-ssa-structalias.c (find_func_aliases): Handle
16898         pointer alignment via BIT_AND_EXPR.
16899         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
16900
16901 2010-07-02  Richard Guenther  <rguenther@suse.de>
16902
16903         * tree-data-ref.c (initialize_data_dependence_relation): Handle
16904         mismatching number of dimensions properly.
16905
16906 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16907
16908         PR target/44707
16909         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
16910         (lo_sum (high ...) ...) patterns generated by earlier passes.
16911
16912 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16913
16914         * doc/install.texi (Prerequisites): Document Perl requirement on
16915         Solaris 2.
16916         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
16917
16918 2010-07-02  Richard Guenther  <rguenther@suse.de>
16919
16920         PR middle-end/44777
16921         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
16922
16923 2010-07-02  Jan Hubicka  <jh@suse.cz>
16924
16925         PR middle-end/44706
16926         * predict.c (predict_paths_for_bb): Handle case when control dependence
16927         BB has only abnormal edges.
16928
16929 2010-07-02  Richard Guenther  <rguenther@suse.de>
16930
16931         PR tree-optimization/44748
16932         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
16933         the embedded conversion in MEM_REFs.
16934
16935 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
16936
16937         * reload.c: Include toplev.h.
16938         * recog.c:  Likewise.
16939         * Makefile.in: Adjust dependencies.
16940
16941 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
16942
16943         PR debug/44694
16944         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
16945         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
16946
16947 2010-07-01  Richard Guenther  <rguenther@suse.de>
16948
16949         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
16950         types for offsets.
16951
16952 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
16953
16954         PR target/44732
16955         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
16956         Fix argument types.
16957
16958 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
16959
16960         PR target/44727
16961         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16962         Make sure operand 0 dies.
16963
16964 2010-07-01  Richard Guenther  <rguenther@suse.de>
16965
16966         PR middle-end/42834
16967         PR middle-end/44468
16968         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
16969         * doc/generic.texi (References to storage): Document MEM_REF.
16970         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
16971         (print_call_name): Likewise.
16972         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
16973         (build_simple_mem_ref_loc): New function.
16974         (mem_ref_offset): Likewise.
16975         * tree.h (build_simple_mem_ref_loc): Declare.
16976         (build_simple_mem_ref): Define.
16977         (mem_ref_offset): Declare.
16978         * fold-const.c: Include tree-flow.h.
16979         (operand_equal_p): Handle MEM_REF.
16980         (build_fold_addr_expr_with_type_loc): Likewise.
16981         (fold_comparison): Likewise.
16982         (fold_unary_loc): Fold
16983         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
16984         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
16985         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
16986         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
16987         (ptr_deref_may_alias_ref_p_1): Likewise.
16988         (ao_ref_base_alias_set): Properly differentiate base object for
16989         offset and TBAA.
16990         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
16991         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
16992         (indirect_refs_may_alias_p): Likewise.
16993         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
16994         chasing code.
16995         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
16996         (call_may_clobber_ref_p_1): Likewise.
16997         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
16998         * expr.c (expand_assignment): Handle MEM_REF.
16999         (store_expr): Handle MEM_REFs from STRING_CSTs.
17000         (store_field): If expanding a MEM_REF of a non-addressable
17001         decl use bitfield operations.
17002         (get_inner_reference): Handle MEM_REF.
17003         (expand_expr_addr_expr_1): Likewise.
17004         (expand_expr_real_1): Likewise.
17005         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
17006         * alias.c (ao_ref_from_mem): Handle MEM_REF.
17007         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
17008         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
17009         (dr_analyze_indices): Likewise.
17010         (dr_analyze_alias): Likewise.
17011         (object_address_invariant_in_loop_p): Likewise.
17012         * gimplify.c (mark_addressable): Handle MEM_REF.
17013         (gimplify_cond_expr): Build MEM_REFs.
17014         (gimplify_modify_expr_to_memcpy): Likewise.
17015         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
17016         (gimple_fold_indirect_ref): Adjust.
17017         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
17018         * tree.def (MEM_REF): New tree code.
17019         * tree-dfa.c: Include toplev.h.
17020         (get_ref_base_and_extent): Handle MEM_REF.
17021         (get_addr_base_and_unit_offset): New function.
17022         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
17023         * gimple-fold.c (may_propagate_address_into_dereference): Handle
17024         MEM_REF.
17025         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
17026         accesses if the array has just one dimension.  Remove always true
17027         parameter.  Do not require type compatibility here.
17028         (maybe_fold_offset_to_component_ref): Remove.
17029         (maybe_fold_stmt_indirect): Remove.
17030         (maybe_fold_reference): Remove INDIRECT_REF handling.
17031         Fold back to non-MEM_REF.
17032         (maybe_fold_offset_to_address): Simplify.  Deal with type
17033         mismatches here.
17034         (maybe_fold_reference): Likewise.
17035         (maybe_fold_stmt_addition): Likewise.  Also handle
17036         &ARRAY + I in addition to &ARRAY[0] + I.
17037         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
17038         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
17039         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
17040         * tree-ssa.c (useless_type_conversion_p): Make most pointer
17041         conversions useless.
17042         (warn_uninitialized_var): Handle MEM_REF.
17043         (maybe_rewrite_mem_ref_base): New function.
17044         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
17045         to SSA form.
17046         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
17047         INDIRECT_REF handling.
17048         (copy_tree_body_r): Handle MEM_REF.
17049         * gimple.c (is_gimple_addressable): Adjust.
17050         (is_gimple_address): Likewise.
17051         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
17052         invariant base are invariant.
17053         (is_gimple_min_lval): Adjust.
17054         (is_gimple_mem_ref_addr): New function.
17055         (get_base_address): Handle MEM_REF.
17056         (count_ptr_derefs): Likewise.
17057         (get_base_loadstore): Likewise.
17058         * gimple.h (is_gimple_mem_ref_addr): Declare.
17059         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
17060         * tree-cfg.c (verify_address): New function, split out from ...
17061         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
17062         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
17063         INDIRECT_REFs.
17064         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
17065         INDIRECT_REF.  Allow conversions.
17066         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
17067         a register does not change its size.
17068         (verify_types_in_gimple_reference): Verify MEM_REF.
17069         (verify_gimple_assign_single): Disallow INDIRECT_REF.
17070         Handle MEM_REF.
17071         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
17072         New.
17073         (mark_address_taken): Handle MEM_REF.
17074         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
17075         (get_asm_expr_operands): Pass opf_not_non_addressable.
17076         (get_expr_operands): Handle opf_[not_]non_addressable.
17077         Handle MEM_REF.  Remove INDIRECT_REF handling.
17078         * tree-vrp.c (check_array_ref): Handle MEM_REF.
17079         (search_for_addr_array): Likewise.
17080         (check_array_bounds): Likewise.
17081         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
17082         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
17083         (ref_always_accessed_p): Likewise.
17084         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
17085         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
17086         Handle MEM_REF.
17087         * cgraphbuild.c (mark_load): Properly check for NULL result
17088         from get_base_address.
17089         (mark_store): Likewise.
17090         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
17091         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
17092         handling for MEM_REF.
17093         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
17094         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
17095         * builtins.c (stabilize_va_list_loc): Use the function ABI
17096         valist type if we couldn't canonicalize the argument type.
17097         Always dereference with the canonical va-list type.
17098         (maybe_emit_free_warning): Handle MEM_REF.
17099         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
17100         memmove to memcpy.
17101         * builtins.c (fold_builtin_memory_op): Use ref-all types
17102         for all memcpy foldings.
17103         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
17104         (build_outer_var_ref): Likewise.
17105         (scan_omp_1_op): Likewise.
17106         (lower_rec_input_clauses): Likewise.
17107         (lower_lastprivate_clauses): Likewise.
17108         (lower_reduction_clauses): Likewise.
17109         (lower_copyprivate_clauses): Likewise.
17110         (expand_omp_atomic_pipeline): Likewise.
17111         (expand_omp_atomic_mutex): Likewise.
17112         (create_task_copyfn): Likewise.
17113         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
17114         Remove old union trick.  Initialize constant offsets.
17115         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
17116         INDIRECT_REF.  Init base_alias_set properly.
17117         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
17118         (vn_reference_fold_indirect): Adjust for MEM_REFs.
17119         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
17120         for ARRAY_REFs.
17121         (may_insert): Remove.
17122         (visit_reference_op_load): Do not test may_insert.
17123         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
17124         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17125         a field to store the constant offset this op applies.
17126         (run_scc_vn): Adjust prototype.
17127         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
17128         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
17129         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
17130         bother about volatile qualifiers on pointers.
17131         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
17132         * tree-ssa-loop-ivopts.c
17133         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
17134         (strip_offset_1): Likewise.
17135         (find_interesting_uses_address): Replace INDIRECT_REF handling with
17136         MEM_REF handling.
17137         (get_computation_cost_at): Likewise.
17138         * ipa-pure-const.c (check_op): Handle MEM_REF.
17139         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
17140         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
17141         and constants.
17142         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
17143         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
17144         (eliminate_local_variables_1): Likewise.
17145         (create_call_for_reduction_1): Likewise.
17146         (create_loads_for_reductions): Likewise.
17147         (create_loads_and_stores_for_name): Likewise.
17148         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
17149         (ssa_accessed_in_tree): Handle MEM_REF.
17150         (ssa_accessed_in_assign_rhs): Likewise.
17151         (update_type_size): Likewise.
17152         (analyze_accesses_for_call_stmt): Likewise.
17153         (analyze_accesses_for_assign_stmt): Likewise.
17154         (transform_access_sites): Likewise.
17155         (transform_allocation_sites): Likewise.
17156         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
17157         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
17158         not handle INDIRECT_REF.
17159         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
17160         (cond_store_replacement): Likewise.
17161         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17162         MEM_REF, no not handle INDIRECT_REFs.
17163         (insert_into_preds_of_block): Properly initialize avail.
17164         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
17165         for ARRAY_REFs.  Properly handle reference lookups that
17166         require a bit re-interpretation.
17167         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
17168         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
17169         (build_ref_for_offset_1): Remove.
17170         (build_ref_for_offset): Build MEM_REFs.
17171         (gate_intra_sra): Disable for now.
17172         (sra_ipa_modify_expr): Handle MEM_REF.
17173         (ipa_early_sra_gate): Disable for now.
17174         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
17175         MEM_REF handling.
17176         (disqualify_base_of_expr): Likewise.
17177         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
17178         MEM_REF handling.
17179         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
17180         Use mem_ref_offset.  Remove bogus folding.
17181         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
17182         (make_fancy_name_1): Add support for MEM_REF.
17183         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
17184         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
17185         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
17186         (compute_complex_ancestor_jump_func): Likewise.
17187         (ipa_analyze_virtual_call_uses): Likewise.
17188         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
17189         INDIRECT_REF folding with more generalized MEM_REF folding.
17190         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
17191         (forward_propagate_addr_into_variable_array_index): Also handle
17192         &ARRAY + I in addition to &ARRAY[0] + I.
17193         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
17194         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
17195         creates assignments with overlap.
17196         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
17197         (get_frame_field): Likewise.
17198         (get_nonlocal_debug_decl): Likewise.
17199         (convert_nonlocal_reference_op): Likewise.
17200         (struct nesting_info): Add mem_refs pointer-set.
17201         (create_nesting_tree): Allocate it.
17202         (convert_local_reference_op): Insert to be folded mem-refs.
17203         (fold_mem_refs): New function.
17204         (finalize_nesting_tree_1): Perform defered folding of mem-refs
17205         (free_nesting_tree): Free the pointer-set.
17206         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
17207         (vectorizable_load): Likewise.
17208         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
17209         (propagate_with_phi): Likewise.
17210         * tree-object-size.c (addr_object_size): Handle MEM_REFs
17211         instead of INDIRECT_REFs.
17212         (compute_object_offset): Handle MEM_REF.
17213         (plus_stmt_object_size): Handle MEM_REF.
17214         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
17215         for &MEM_REF.
17216         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
17217         (symbol_marked_for_renaming): Likewise.
17218         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
17219         (fold-const.o): Add $(TREE_FLOW_H).
17220         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
17221         (find_func_clobbers): Likewise.
17222         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
17223         (decompose_access): Likewise.
17224         (replace_field_acc): Likewise.
17225         (replace_field_access_stmt): Likewise.
17226         (insert_new_var_in_stmt): Likewise.
17227         (get_stmt_accesses): Likewise.
17228         (reorg_structs_drive): Disable.
17229         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
17230         (ix86_canonical_va_list_type): Likewise.
17231
17232 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17233
17234         PR other/44566
17235         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
17236         * target.def (struct gcc_target): Replace enum reg_class with
17237         reg_class_t in hook argument / return types.
17238         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
17239         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
17240         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
17241         * targhooks.h (default_branch_target_register_class): Likewise.
17242         (default_ira_cover_classes, default_secondary_reload): Likewise.
17243         (default_memory_move_cost, default_register_move_cost): Likewise.
17244         * targhooks.c (default_branch_target_register_class): Likewise.
17245         (default_ira_cover_classes, default_secondary_reload): Likewise.
17246         (default_memory_move_cost, default_register_move_cost): Likewise.
17247         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
17248         * bt-load.c (branch_target_load_optimize): Likewise.
17249         * ira.c (setup_cover_and_important_classes): Likewise.
17250         * ira-costs.c (copy_cost): Likewise.
17251         * reload1.c (emit_input_reload_insns): Likewise.
17252         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17253         * config/frv/frv.c (frv_secondary_reload): Likewise.
17254         * config/s390/s390.c (s390_secondary_reload): Likewise.
17255         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
17256         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
17257         (ix86_register_move_cost): Likewise.
17258         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
17259         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
17260         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
17261         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
17262         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
17263         (rs6000_ira_cover_classes): Likewise.
17264         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
17265         * config/picochip/picochip-protos.h (picochip_secondary_reload):
17266         Likewise.
17267         * config/pa/pa.c (pa_secondary_reload): Likewise.
17268         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
17269         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
17270         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
17271         * doc/tm.texi: Regenerate.
17272
17273 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
17274
17275         PR bootstrrap/44726
17276         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
17277         use.
17278         (build_alias_set_optimal_p): Likewise.
17279         (build_base_obj_set_for_drs): Likewise.
17280
17281 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17282
17283         * target.def: Remove comment about licensing problems of function
17284         declarations.
17285
17286         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
17287         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
17288         * doc/tm.texi: Regenerate.
17289
17290         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
17291         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
17292
17293         * target.def (enum_va_list_p): Use DEFHOOK.
17294         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
17295         Rename ptype to ptree.
17296         * doc/tm.texi: Regenerate.
17297
17298         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
17299         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
17300         * doc/tm.texi: Regenerate.
17301
17302         * target.def (memory_move_cost): Use DEFHOOK.
17303         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
17304         Rename regclass AKA class to rclass.
17305         * doc/tm.texi: Regenerate.
17306
17307         * target.def (pragma_parse): Use DEFHOOK.
17308         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
17309         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
17310         * doc/tm.texi: Regenerate.
17311
17312         * target.def (pass_by_reference): Use DEFHOOK.
17313         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
17314         * doc/tm.texi: Regenerate.
17315
17316         * target.def (resolve_overloaded_builtin): Rename params to arglist.
17317         Use DEFHOOK.
17318         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
17319         * doc/tm.texi: Regenerate.
17320
17321         * target.def (return_pops_args): Use DEFHOOK.
17322         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
17323         Rename stack-size to size.
17324         * doc/tm.texi: Regenerate.
17325
17326         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
17327         last-sched_cycle to last_clock, cur_cycle to clock.
17328         * doc/tm.texi.in: Use @hook.
17329         * doc/tm.texi: Regenerate.
17330
17331         * target.def (print_operand, print_operand_address): Update comment.
17332         (print_operand_punct_valid_p): Likewise.
17333
17334 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17335
17336         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
17337         to rtl.h.
17338         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
17339         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
17340         * rtl-error.h: New.
17341         * regrename.c: Do not include toplev.h. Include rtl-error.h.
17342         * rtl-error.c: Likewise.
17343         * reload.c: Likewise.
17344         * recog.c:  Likewise.
17345         * sel-sched.c: Likewise.
17346         * function.c: Likewise.
17347         * reg-stack.c: Likewise.
17348         * cfgrtl.c: Likewise.
17349         * reload1.c: Likewise.
17350         * final.c: Include rtl-error.
17351         * Makefile.in: Adjust dependencies.
17352
17353 2010-06-30  Jan Hubicka  <jh@suse.cz>
17354
17355         PR middle-end/PR44706
17356         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
17357         to return the value.
17358
17359 2010-06-30  Michael Matz  <matz@suse.de>
17360
17361         PR bootstrap/44699
17362         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
17363         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
17364         a gimple reg, attach the original VDEF to the last store in the
17365         sequence.
17366
17367 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
17368
17369         PR other/44034
17370         * config/darwin.c (darwin_override_options): Use renamed
17371         targetm.asm_out.emit_unwind_label.
17372
17373 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
17374
17375         PR tree-optimization/39799
17376         * tree-inline.c (remap_ssa_name): Initialize variable only if
17377         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17378
17379 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
17380
17381         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
17382
17383 2010-06-30  Richard Guenther  <rguenther@suse.de>
17384
17385         PR target/44722
17386         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
17387         against oscillation with reverse peephole2.
17388
17389 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
17390
17391         PR target/44721
17392         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17393         Fix last commit.
17394
17395 2010-06-30  Nick Clifton  <nickc@redhat.com>
17396
17397         * config/rx/rx-modes.def: New file.
17398         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
17399         (CC_REGNUM): Define.
17400         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
17401         register.
17402         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
17403         (SELECT_CC_MODE): Define.
17404         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
17405         (reg:CC CC_REG) instead of (cc0).
17406         (attr "cc"): Delete.
17407         (cbranchsi4): Do not split compare and branch here. Instead move
17408         it to...
17409         (cbranchsi4_<code>): ... here.  New patterns.
17410         (cmpsi): Call rx-compare_redundant to find out if it is necessary
17411         to emit the compare instruction.
17412         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
17413         cc_status flags.
17414         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
17415         FIRST_PSEUDO_REGNUM.
17416         (rx_expand_prologue, rx_expand_epilogue): Likewise.
17417         (rx_notice_update_cc): Delete.
17418         (rx_cc_modes_compatible): New function.
17419         (flags_needed_for_conditional): New function.
17420         (flags_from_mode): New function.
17421         (rx_compare_redundant): New function - scans backwards through
17422         insn list to find out if condition flags are already set correctly.
17423         (TARGET_CC_MODES_COMPATIBLE): Define.
17424         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
17425
17426         * config/rx/rx.h (BRANCH_COST): Define.
17427         (REGISTER_MOVE_COST): Define.
17428         * config/rx/predicates (rx_source_operand): Allow all constant types.
17429         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
17430         (tstsi4): New pattern.
17431         * config/rx/rx.c (rx_memory_move_cost): Define.
17432         (TARGET_MEMORY_MOVE_COST): Define.
17433
17434 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17435
17436         * tree.h (block_may_fallthru): Declare here.
17437         * tree-flow.h (block_may_fallthru): Do not declare here.
17438         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
17439         bitmap.h
17440         * Makefile.in (c-typeck.o): Update dependencies.
17441
17442 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
17443
17444         PR debug/44694
17445         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
17446         * cselib.c (cfa_base_preserved_regno): New static variable.
17447         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
17448         of REGNO (cfa_base_preserved_val->locs->loc).
17449         (cselib_preserve_cfa_base_value): Add regno argument, set
17450         cfa_base_preserved_regno to it.
17451         (cselib_invalidate_regno): Allow removal of registers other than
17452         cfa_base_preserved_regno from cfa_base_preserved_val.
17453         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
17454         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
17455         of MEM addresses, if not on LHS.
17456         (reverse_op): Don't add reverse ops for cfa_base_rtx.
17457         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
17458
17459 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
17460
17461         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
17462         static variables.
17463         (peep2_buf_position): New static function.
17464         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
17465         peephole2_optimize): Use it.
17466         (peep2_attempt, peep2_update_life): New static functions, broken out
17467         of peephole2_optimize.
17468         (peep2_fill_buffer): New static function.
17469         (peephole2_optimize): Change the main loop to try to fill the buffer
17470         with the maximum number of insns before matching them against
17471         peepholes.  Use a forward scan.  Remove special case for targets with
17472         conditional execution.
17473         * genrecog.c (change_state): Delete dead code.
17474         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17475         Rewrite so as not to expect the second insn to have had a peephole
17476         applied yet.
17477
17478 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17479
17480         * genhooks.c (emit_findices): Cast field precision to int.
17481         (emit_documentation): Likewise.
17482
17483 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
17484
17485         PR tree-optimization/43801
17486         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
17487         if old_decl was DECL_ONE_ONLY.
17488
17489         PR debug/44668
17490         * dwarf2out.c (add_accessibility_attribute): New function.
17491         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
17492         instead of adding DW_AT_accessibility manually.
17493         (gen_enumeration_type_die, gen_struct_or_union_type_die,
17494         gen_typedef_die): Use it.
17495
17496 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17497
17498         * vmsdbgout.c (full_name): Just output the file name if not native.
17499
17500 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17501
17502         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
17503         (funcnam_table): New static table.
17504         (funcnum_table): New static table.
17505         (write_rtnbeg): Write value saved in funcnum_table.
17506         (write_rtnend): Write value saved in funcnum_table.
17507         (vmsdbgout_begin_function): Save current function info in
17508         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
17509         (vmsdbgout_finish): Iterate over funcnum_table.
17510
17511 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17512
17513         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
17514         (vmsdbgout_type_decl): Declare
17515         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
17516         (FUNC_EPILOGUE_LABEL): New macro
17517         (vmsdbgout_begin_epilogue): New function.
17518         (vmsdbgout_type_decl): New function.
17519
17520 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17521
17522         * vmsdbg.h: Update copyright.
17523
17524 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17525
17526         * vmsdbg.h (DST_K_TBG): New DST constant.
17527         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
17528         (write_modbeg): Cast module_language to avoid warning.
17529         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
17530
17531 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
17532
17533         PR other/44034
17534         * target.def, doc/tm.texi.in, genhooks.c: New files.
17535         * target.h: Instead of defining individual hook members,
17536         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
17537         include target.def.
17538         * target-def.h: Instead of defining individual hook initializers,
17539         include target-hooks-def.h.
17540         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
17541         targetm.live_on_entry -> targetm.extra_live_on_entry
17542         targetm.sched.md_finish ->targetm.sched.finish
17543         targetm.sched.md_init -> targetm.sched.init
17544         targetm.sched.md_init_global -> targetm.sched.init_global
17545         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
17546         targetm.asm_out.except_table_label ->
17547           targetm.asm_out.emit_except_table_label
17548         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
17549         targetm.target_help -> targetm.help
17550         targetm.vectorize.builtin_support_vector_misalignment ->
17551           targetm.vectorize.support_vector_misalignment
17552         targetm.file_start_app_off -> targetm.asm_file_start_app_off
17553         targetm.file_start_file_directive ->
17554          targetm.asm_file_start_file_directive
17555         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
17556         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
17557         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
17558         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
17559           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
17560         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
17561           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
17562         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
17563         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
17564         * Makefile.in (TARGET_H): Depend on target.def.
17565         (TARGET_DEF_H): Depend on target-hooks-def.h.
17566         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
17567         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
17568         * doc/tm.texi: Regenerate.
17569
17570         * Makefile.in (s-tm-texi): Remove stray tab / rule.
17571
17572         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
17573         (targetm.sched.init): Likewise.
17574
17575 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17576
17577         PR bootstrap/44713
17578         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
17579         (function_arg_advance_32): Const-ify TYPE parameter.
17580         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
17581         (ix86_function_arg_advance): Change type of NAMED to bool.
17582         (function_arg_32): Const-ify CUM and TYPE parameters.
17583         (function_arg_64): Likewise.  Change type of NAMED to bool.
17584         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
17585         to bool.
17586         (ix86_function_arg): Change type of NAMED to bool.
17587         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
17588         last argument as a bool.
17589
17590 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
17591
17592         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
17593         (OVERRIDE_OPTIONS): Add note of obsolescence.
17594         Replace references with references to TARGET_OPTION_OVERRIDE.
17595         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
17596          the macro).
17597         * targhooks.c (default_target_option_override): New function.
17598         * targhooks.h (default_target_option_override): Declare.
17599         * target.h (struct gcc_target): Add override member to
17600         target_option member.
17601         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
17602         targetm.target_option.override call.
17603         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
17604         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
17605
17606 2010-06-29  Jan Hubicka  <jh@suse.cz>
17607
17608         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
17609
17610 2010-06-29  Jan Hubicka  <jh@suse.cz>
17611
17612         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
17613         unreachable.
17614         (rebuild_frequencies): New function.
17615         * predict.h (rebuild_frequencies): Declare.
17616         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
17617         entry block and edge reaching new_entry.
17618         (tree_function_versioning): When doing partial cloning, rebuild
17619         frequencies when done.
17620         * passes.c (execute_function_todo): Use rebild_frequencies.
17621
17622 2010-06-29  Richard Guenther  <rguenther@suse.de>
17623
17624         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
17625         * tree-flow.h (enum noalias_state): Remove.
17626         (struct var_ann_d): Remove noalias_state member.
17627
17628 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
17629
17630         PR target/43902
17631         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
17632         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
17633         (maddhidi4): Likewise.
17634
17635         Revert parts of the change for PR25130.
17636         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17637         MEM_ALIAS_SET.
17638
17639 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17640
17641         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
17642         targetm.calls.function_incoming_arg, and
17643         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
17644         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
17645         * target.h (struct gcc_target): Add function_arg_advance,
17646         function_arg, and function_incoming_arg fields.
17647         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
17648         (TARGET_FUNCTION_INCOMING_ARG): Define.
17649         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
17650         and TARGET_FUNCTION_INCOMING_ARG.
17651         * targhooks.h (default_function_arg_advance): Declare.
17652         (default_function_arg, default_function_incoming_arg): Declare.
17653         * targhooks.c (default_function_arg_advance): New function.
17654         (default_function_arg, default_function_incoming_arg): New function.
17655         * config/i386/i386.c (function_arg_advance): Rename to...
17656         (ix86_function_arg_advance): ...this.  Make static.
17657         (function_arg): Rename to...
17658         (ix86_function_arg): ...this.  Make static.
17659         (TARGET_FUNCTION_ARG_ADVANCE): Define.
17660         (TARGET_FUNCTION_ARG): Define.
17661         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
17662         (FUNCTION_ARG): Delete.
17663         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
17664         (function_arg): Delete prototype.
17665
17666 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17667
17668         * reginfo.c (init_reg_sets_1): Adjust comments.
17669         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
17670         * calls.c (prepare_call_address): Likewise.
17671         (emit_call_1): Use targetm.calls.return_pops_args.
17672         (expand_call): Likewise.
17673         * function.c (assign_parms): Likewise.
17674         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
17675         * target.h (struct gcc_target) [struct calls]: Add
17676         return_pops_args field.
17677         * targhooks.h (default_return_pops_args): Declare.
17678         * targhooks.c (default_return_pops_args): Define.
17679         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
17680         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
17681         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
17682         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
17683         documentation.
17684         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
17685         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
17686         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
17687         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
17688         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
17689         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
17690         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
17691         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
17692         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
17693         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
17694         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
17695         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
17696         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
17697         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
17698         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
17699         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
17700         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
17701         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
17702         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
17703         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
17704         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
17705         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
17706         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
17707         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
17708         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
17709         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
17710         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
17711         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
17712         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
17713         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
17714         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
17715         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
17716         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
17717         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
17718         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
17719         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
17720         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
17721         * config/i386/i386.c (ix86_return_pops_args): Make static.
17722         Constify arguments.
17723         (TARGET_RETURN_POPS_ARGS): Define.
17724         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
17725         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
17726         (TARGET_RETURN_POPS_ARGS): Define.
17727         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
17728         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
17729         (TARGET_RETURN_POPS_ARGS): Define.
17730
17731 2010-06-29  Richard Guenther  <rguenther@suse.de>
17732
17733         PR middle-end/44667
17734         * tree-inline.c (initialize_inlined_parameters): Make sure
17735         to remap the inlined parameter variable substitutions types.
17736
17737 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
17738
17739         PR rtl-optimization/44659
17740         * combine.c (make_compound_operation) <SUBREG>: Do not return the
17741         result of force_to_mode if it partially re-expanded the compound.
17742
17743 2010-06-28  Jan Hubicka  <jh@suse.cz>
17744
17745         PR middle-end/44671
17746         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
17747         RESULT_DECL.
17748
17749 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
17750
17751         * double-int.h (force_fit_type_double): Remove declaration.
17752         * double-int.c (force_fit_type_double): Move to tree.c.
17753         * tree.h (force_fit_type_double): Declare.
17754         * tree.h (force_fit_type_double): Moved from double-int.c. Use
17755         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
17756         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
17757         * convert.c (convert_to_pointer): Adjust call to
17758         force_fit_type_double.
17759         * tree-vrp.c (extract_range_from_assert,
17760         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
17761         * fold-const.c: Update comment.
17762         (int_const_binop, fold_convert_const_int_from_int,
17763         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
17764         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
17765         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
17766         round_up_loc): Adjust call to force_fit_type_double.
17767
17768 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17769
17770         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
17771
17772 2010-06-28  Martin Jambor  <mjambor@suse.cz>
17773
17774         * tree-sra.c (convert_callers): New parameter, change fndecls of
17775         recursive calls.
17776         (modify_function): Pass the old decl to convert_callers.
17777
17778 2010-06-28  Martin Jambor  <mjambor@suse.cz>
17779
17780         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
17781         ipa_check_create_node_params and ipa_initialize_node_params with
17782         checking asserts they are not necessary.
17783
17784 2010-06-28  Jan Hubicka  <jh@suse.cz>
17785
17786         PR tree-optimization/44687
17787         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
17788
17789 2010-06-28  Martin Jambor  <mjambor@suse.cz>
17790
17791         PR c++/44535
17792         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
17793         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
17794         instead of BINFO_BASE_BINFO.
17795
17796 2010-06-28  Michael Matz  <matz@suse.de>
17797
17798         PR middle-end/44592
17799         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
17800         proper VDEF chain for intermediate stores in the sequence.
17801
17802 2010-06-28  Jan Hubicka  <jh@suse.cz>
17803
17804         PR tree-optimization/44357
17805         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
17806         uninlinable functions.
17807
17808 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17809
17810         * config.gcc (powerpc*-*-*): Handle titan.
17811         * config/rs6000/rs6000.c (titan_cost): New costs.
17812         (rs6000_override_options): Add "titan" to processor_target_table.
17813         Add Titan to branch alignment logic.
17814         Correctly set rs6000_cost for titan.
17815         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
17816         * config/rs6000/titan.md: New file.
17817         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
17818
17819 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
17820
17821         * tree-browser.c (TB_history_stack): Convert to a VEC.
17822         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
17823         (TB_history_prev): Likewise.
17824
17825 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
17826
17827         * vec.h (vec_heap_free): Add parentheses around free.
17828
17829 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
17830
17831         * system.h: Poison GCC_EXCEPT_H for front-end files.
17832
17833         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
17834         langhook.
17835         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
17836         Define to NULL by default.
17837         * except.h: Define GCC_EXCEPT_H.
17838         (doing_eh): Remove prototype.
17839         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
17840         (lang_protect_cleanup_actions): Remove.
17841         * except.c (lang_protect_cleanup_actions): Remove.
17842         (doing_eh): Remove.
17843         (gen_eh_region): Don't check doing_eh here.
17844         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
17845         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
17846         instead of lang_protect_cleanup_actions.
17847         * omp-low.c (maybe_catch_exception): Likewise.
17848         * Makefile.in: Update dependencies.
17849
17850 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
17851
17852         * cgraph.h (struct varpool_node): new used_from_object_file flag.
17853         (struct cgraph_local_info): new used_from_object_file flag.
17854         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
17855         (cgraph_clone_node): initialize used_from_object_file.
17856         (cgraph_create_virtual_clone): initialize used_from_object_file.
17857         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
17858         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
17859         when compiling with -fwhole-program.
17860         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
17861         internal resolver.
17862         * ipa.c (function_and_variable_visibility): Set externally_visible
17863         flag of varpool_node if used_from_object_file flag is set.
17864         (cgraph_externally_visible_p): check used_from_object_file flag.
17865         * doc/invoke.texi (-fwhole-program option): Change description of
17866         externally_visible attribute accordingly.
17867         * doc/extend.texi (externally_visible): Ditto.
17868
17869 2010-06-27  Jan Hubicka  <jh@suse.cz>
17870
17871         * params.def (max-inline-insns-auto): Default to 40.
17872         * doc/invoke.texi (max-inline-insns-auto): Document the change.
17873
17874 2010-06-27  Jan Hubicka  <jh@suse.cz>
17875
17876         PR middle-end/44671
17877         PR middle-end/44686
17878         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
17879         signature change.
17880         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
17881         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
17882
17883 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
17884
17885         * target.h (struct gcc_target): Add register_move_cost field.
17886         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
17887         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
17888         * targhooks.c (default_register_move_cost): New function.
17889         * targhooks.h (default_register_move_cost): Declare function.
17890         * defaults.h (REGISTER_MOVE_COST): Delete.
17891         * ira-int.h (ira_register_move_cost): Update comment.
17892         * ira.c (ira_register_move_cost): Update comment.
17893         * reload.h (register_move_cost): Declare.
17894         * reginfo.c (register_move_cost): New function.
17895         (move_cost): Update comment.
17896         (init_move_cost, memory_move_secondary_cost): Replace
17897         REGISTER_MOVE_COST with register_move_cost.
17898         * postreload.c (reload_cse_simplify_set): (Ditto.).
17899         * reload.c (find_valid_class, find_reloads): (Ditto.).
17900         * reload1.c (choose_reload_regs): (Ditto.).
17901         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
17902         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
17903         * doc/md.texi (can_create_pseudo_p): Update documentation.
17904
17905         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
17906         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
17907         * config/i386/i386.h (ix86_memory_move_cost): Make static.
17908         (TARGET_MEMORY_MOVE_COST): Define.
17909
17910         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17911         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
17912         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
17913         (TARGET_MEMORY_MOVE_COST): Define.
17914
17915 2010-06-27  Richard Guenther  <rguenther@suse.de>
17916
17917         PR tree-optimization/44683
17918         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
17919         false edge from the inverted condition.
17920
17921 2010-06-27  Richard Guenther  <rguenther@suse.de>
17922
17923         PR middle-end/44684
17924         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
17925         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
17926         for register LHS.  Or non-store assignments.
17927
17928 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
17929
17930         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
17931         (sparc_emit_set_const64): Likewise.  Remove disabled code.
17932         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
17933         (sparc_emit_set_const64): Likewise.
17934
17935 2010-06-26  Catherine Moore  <clm@codesourcery.com>
17936
17937         * config/mips/mips.md (alu_type): New attribute.
17938         (type): Infer type from alu_type.
17939         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
17940         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
17941         *subsi3_extended, negsi2, negdi2, *low<mode>,
17942         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
17943         xor<mode>3, *nor<mode>3,
17944         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
17945         *zero_extendhi_truncqi):  Set alu_type instead of type.
17946
17947 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
17948
17949         * config/alpha/alpha.c (alpha_need_linkage): Adjust
17950         splay_tree_new_ggc call.
17951         (alpha_use_linkage): Likewise.
17952
17953 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
17954
17955         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
17956         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
17957         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
17958         (static_specs): Remove switches_need_spaces.
17959         (process_command, do_self_spec): Hardcode handling "-o" instead of
17960         checking switches_need_spaces.
17961         * system.h (SWITCHES_NEED_SPACES): Poison.
17962
17963 2010-06-26  Richard Guenther  <rguenther@suse.de>
17964
17965         PR tree-optimization/44393
17966         * tree-loop-distribution.c (generate_loops_for_partition): Fix
17967         stmt removal and VOP renaming.
17968         (generate_memset_zero): Remove redundant stmt updating.
17969         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
17970         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
17971
17972 2010-06-26  Jan Hubicka  <jh@suse.cz>
17973
17974         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
17975         edges comming from header are equivalent.
17976         (visit_bb): Handle PHIs correctly.
17977         * tree-inline.c (copy_phis_for_bb): Be able to copy
17978         PHI from entry edge.
17979         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
17980
17981 2010-06-26  Richard Guenther  <rguenther@suse.de>
17982
17983         PR middle-end/44674
17984         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
17985         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
17986
17987 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
17988
17989         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
17990         add_infile, alloc_switch): New.
17991         (process_command): Remove variable lang_n_infiles.  Process
17992         options in a single pass.  Use new functions for allocating
17993         infiles and switches arrays.  Properly skip operands of
17994         -Xpreprocessor and -Xassembler.
17995
17996 2010-06-26  Jan Hubicka  <jh@suse.cz>
17997
17998         PR middle-end/44671
17999         * cgraphunit.c (cgraph_function_versioning): Remove wrong
18000         cgraph_make_decl_local call; fix typo copying RTL data.
18001
18002 2010-06-25  DJ Delorie  <dj@redhat.com>
18003
18004         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
18005         (m32c_output_aligned_common): Likewise.
18006         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18007         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18008         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
18009         (m32c_register_pragmas): Register it.
18010         * config/m32c/m32c.c (m32c_get_pragma_address): New.
18011         (m32c_insert_attributes): Set #pragma address decls volatile.
18012         (pragma_entry_eq): New.
18013         (pragma_entry_hash): New.
18014         (m32c_note_pragma_address): New.
18015         (m32c_get_pragma_address): New.
18016         (m32c_output_aligned_common): New.
18017         * doc/extend.texi: Document the new pragma.
18018
18019         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
18020         also.
18021         * config/m32c/predicates.md (m32c_any_operand): Check the code
18022         instead of memory_operand so as to allow matching volatile MEMs.
18023         (m32c_nonimmediate_operand): Likewise.
18024         (mra_operand): Allow volatiles.
18025
18026 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
18027
18028         PR debug/44610
18029         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
18030         address if the offset is unknown.
18031
18032 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
18033
18034         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
18035         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
18036         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
18037         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
18038         to ia64_start_function. Invoke it.
18039         * config/ia64/ia64.c (ia64_start_function): Call new function
18040         dwarf2out_vms_debug_main_pointer.
18041
18042 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18043
18044         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
18045         statements computing the true predicate.
18046
18047 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18048
18049         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
18050         to boolean_true_node.
18051         (reset_bb_predicate): New.
18052         (predicate_bbs): Call reset_bb_predicate.
18053
18054 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18055
18056         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
18057         (tree_if_conversion): Returns true when something has been changed.
18058         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
18059         changed something.
18060
18061 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18062
18063         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
18064         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
18065         * tree-if-conv.c: Include dbgcnt.h.
18066         (tree_if_conversion): Use if_conversion_tree to count the number of
18067         if-convertible loops.
18068
18069 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
18070
18071         * common.opt (fprefetch-loop-arrays): Re-define
18072         -fprefetch-loop-arrays as a tri-state option with the initial
18073         value of -1.
18074         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
18075         pass only when flag_prefetch_loop_arrays > 0.
18076         * toplev.c (process_options): Note that, with tri-states,
18077         flag_prefetch_loop_arrays>0 means prefetching is enabled.
18078         * config/i386/i386.c (override_options): Enable prefetching at -O3
18079         for a set of CPUs that sw prefetching is helpful.
18080         (software_prefetching_beneficial_p): New.  Return TRUE if software
18081         prefetching is beneficial for the given CPU.
18082
18083 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18084
18085         PR rtl-optimization/44326
18086         * implicit-zee.c (find_removable_zero_extends): Replace
18087         INSN_P with NONDEBUG_INSN_P.
18088
18089 2010-06-25  Martin Jambor  <mjambor@suse.cz>
18090
18091         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
18092         (struct ipa_node_params): Removed the modification_analysis_done flag.
18093         (ipa_is_param_modified): Removed.
18094         (ipa_analyze_node): Declare.
18095         (ipa_compute_jump_functions): Remove declaration.
18096         (ipa_count_arguments): Likewise.
18097         (ipa_detect_param_modifications): Likewise.
18098         (ipa_analyze_params_uses): Likewise.
18099         * ipa-prop.c (struct param_analysis_info): New type.
18100         (visit_store_addr_for_mod_analysis): Removed.
18101         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
18102         moved down in the file.
18103         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
18104         (ipa_count_arguments): Made static.
18105         (mark_modified): New function.
18106         (is_parm_modified_before_call): New function.
18107         (compute_pass_through_member_ptrs): New parameter parms_info, call
18108         is_parm_modified_before_call instead of ipa_is_param_modified.
18109         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
18110         it to compute_pass_through_member_ptrs.
18111         (ipa_compute_jump_functions): New parameter parms_info, pass it to
18112         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
18113         on the callee if it is analyzed.  Made static.
18114         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
18115         is_parm_modified_before_call instead of ipa_is_param_modified.
18116         (ipa_analyze_call_uses): New parameter parms_info, pass it to
18117         ipa_analyze_indirect_call_uses.
18118         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
18119         ipa_analyze_call_uses.
18120         (ipa_analyze_params_uses): New parameter parms_info, pass it to
18121         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
18122         (ipa_analyze_node): New function.
18123         (ipa_print_node_params): Do not dump the modified flag.
18124         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
18125         it.  Do not stream the modified parameter flag.
18126         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
18127         it.  Do not stream the modified parameter flag.
18128         * ipa-cp.c (ipcp_analyze_node): Removed.
18129         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
18130         with only a call to ipa_analyze_node.
18131         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
18132         node with only a call to ipa_analyze_node.
18133
18134 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18135
18136         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
18137
18138 2010-06-25  Jan Hubicka  <jh@suse.cz>
18139
18140         * tree-pass.h (pass_split_functions): Declare.
18141         * opts.c (decode_options): Enable function splitting at -O2
18142         * timevar.def (TV_IPA_FNSPLIT): New macro.
18143         * ipa-split.c: New file.
18144         * common.opt (-fpartial-inlining): New flag.
18145         * Makefile.in (ipa-split.o): New object file.
18146         * passes.c (init_optimization_passes): Add ipa-split.
18147         * params.def (partial-inlining-entry-probability): New parameters.
18148         * doc/invoke.texi (-fpartial-inlining): New.
18149
18150 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18151
18152         PR 44665
18153         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
18154         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
18155         (gimplify_expr): Likewise.
18156
18157 2010-06-25  Martin Jambor  <mjambor@suse.cz>
18158
18159         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
18160         statements instead of bailing out on them.
18161         (ipa_analyze_indirect_call_uses): Do not require that loads from the
18162         parameter are in the same BB as the condition.  Update comments.
18163
18164 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
18165
18166         PR middle-end/43866
18167         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
18168         true or always false, return NULL_TREE.
18169         (tree_unswitch_single_loop): Optimize conditions even when reaching
18170         max-unswitch-level parameter.  If num > 0, optimize first all conditions
18171         using entry checks, then do still reachable block discovery and consider
18172         only conditions in still reachable basic blocks in the loop.
18173
18174         PR tree-optimization/44539
18175         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
18176         the call doesn't have LHS, but has VDEF.
18177
18178 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
18179
18180         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
18181         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
18182         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
18183         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
18184         * system.h (MODIFY_TARGET_NAME): Poison.
18185
18186 2010-06-25  Alan Modra  <amodra@gmail.com>
18187
18188         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
18189         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
18190         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
18191         CMODEL_LARGE as default.
18192         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
18193         (offsettable_ok_by_alignment): Delete.
18194         (rs6000_emit_move): Remove mcmodel=medium optimization.
18195
18196 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
18197
18198         With large parts from Jim Wilson:
18199         PR target/43902
18200         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
18201         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18202         * optabs.c (optab_for_tree_code): Likewise.
18203         (expand_widen_pattern_expr): Likewise.
18204         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
18205         out of execute_optimize_widening_mul.
18206         (convert_plusminus_to_widen): New function.
18207         (execute_optimize_widening_mul): Use the two new functions.
18208         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
18209         Remove code to generate widening multiply-accumulate.  Add support
18210         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18211         * gimple-pretty-print.c (dump_ternary_rhs): New function.
18212         (dump_gimple_assign): Call it when appropriate.
18213         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
18214         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
18215         (expand_gimple_stmt_1): Likewise.
18216         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
18217         WIDEN_MULT_MINUS_EXPR.
18218         * tree-ssa-operands.c (get_expr_operands): Likewise.
18219         * tree-inline.c (estimate_operator_cost): Likewise.
18220         * gimple.c (extract_ops_from_tree_1): Renamed from
18221         extract_ops_from_tree.  Add new arg for a third operand; fill it.
18222         (gimple_build_assign_stat): Support operations with three operands.
18223         (gimple_build_assign_with_ops_stat): Likewise.
18224         (gimple_assign_set_rhs_from_tree): Likewise.
18225         (gimple_assign_set_rhs_with_ops_1): Renamed from
18226         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
18227         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
18228         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
18229         WIDEN_MULT_MINUS_EXPR.
18230         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
18231         (extract_ops_from_tree_1): Adjust declaration.
18232         (gimple_assign_set_rhs_with_ops_1): Likewise.
18233         (gimple_build_assign_with_ops): Pass NULL for last operand.
18234         (gimple_build_assign_with_ops3): New macro.
18235         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
18236         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
18237         functions.
18238         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
18239         (verify_gimple_assign): Call it.
18240         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
18241         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
18242         functions for dealing with three-operand statements.
18243         * tree.c (commutative_ternary_tree_code): New function.
18244         * tree.h (commutative_ternary_tree_code): Declare it.
18245         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
18246         ternary statements.
18247         (gimple_assign_nonzero_warnv_p): Likewise.
18248         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
18249         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
18250         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
18251         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
18252         (struct hashtable_expr): New member ternary in the union.
18253         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
18254         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
18255         (iterative_hash_hashable_expr): Likewise.
18256         (print_expr_hash_elt): Handle EXPR_TERNARY.
18257         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
18258         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
18259         statements.  Handle GIMPLE_TERNARY_RHS.
18260
18261 2010-06-25  Jan Hubicka  <jh@suse.cz>
18262
18263         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
18264
18265 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
18266
18267         PR c/44517
18268         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
18269         parameters are not good.
18270         (c_parser_parameter_declaration): Error unknown type name if the type
18271         name can't start declaration specifiers.
18272
18273 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
18274
18275         * gcc.c (translate_options): Don't mention +e in comment.
18276         (process_command): Don't handle +e specially.
18277
18278 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
18279
18280         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
18281
18282         * ira-build.c (merge_hard_reg_conflicts): New function.
18283         (create_cap_allocno, copy_info_to_removed_store_destinations,
18284         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
18285         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
18286         (remove_unnecessary_allocnos, remove_low_level_allocnos)
18287         copy_nifo_to_removed_store_destination): Use them.
18288         * ira-lives.c (make_hard_regno_born): New function, split out of
18289         make_regno_born.
18290         (make_allocno_born): Likewise.
18291         (make_hard_regno_dead): New function, split out of make_regno_dead.
18292         (make_allocno_dead): Likewise.
18293         (inc_register_pressure): New function, split out of set_allocno_live.
18294         (dec_register_pressure): New function, split out of clear_allocno_live.
18295         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
18296         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
18297         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
18298         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
18299         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
18300         mark_pseudo_regno_live.
18301         (process_bb_node_lives): Use mark_pseudo_regno_live,
18302         make_hard_regno_born and make_allocno_dead.
18303         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
18304         set_allocno_live, clear_allocno_live): Delete functions.
18305
18306         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
18307         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
18308         functions.
18309         (ira_flattening): Use ira_parent_allocno.
18310         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
18311         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
18312
18313         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
18314         statement.
18315
18316         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
18317         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
18318         minmax_set_iter_cond, minmax_set_iter_next,
18319         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
18320         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
18321         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
18322         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
18323         uses changed.
18324
18325         * ira-int.h (struct live_range, live_range_t): Renamed from struct
18326         ira_allocno_live_range and allocno_live_range_t; all uses changed.
18327         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
18328         All uses changed.
18329
18330 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
18331
18332         * thumb2.md (thumb2_tlobits_cbranch): Delete.
18333         (peephole2 to convert zero_extract/compare of single bit to
18334          lshift/compare): New.
18335
18336 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
18337
18338         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
18339         recursive call and call to 'int_const_binop'.
18340         (build_range_check, fold_cond_expr_with_comparison, unextend,
18341         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
18342         multiple_of_p): Adjust call to const_binop.
18343
18344 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
18345
18346         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
18347         determine size of XFmode operand.
18348         (XFmode extended DFmode push splitter): Ditto.
18349         (XFmode extended SFmode push splitter): Ditto.
18350
18351 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18352
18353         PR target/44588
18354         * config/i386/i386.md (extract_code): New.
18355         (<u>divmodqi4): Likewise.
18356         (divmodhiqi3): Likewise.
18357         (udivmodhiqi3): Likewise.
18358         (<u>divqi3): Remvoved.
18359
18360 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
18361
18362         PR middle-end/44492
18363         * recog.h (struct recog_data): Add is_asm field.
18364         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
18365         present in constraints of inline-asm operand and memory operand
18366         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
18367         (extract_insn): Initialize recog_data.is_asm.
18368         * doc/md.texi (Constraints): Document operand side-effect rules.
18369
18370 2010-06-24  Andi Kleen  <ak@linux.intel.com>
18371
18372         * c-parser.c (c_parser_conditional_expression): Call
18373         warn_for_omitted_condop.
18374         * doc/invoke.texi: Document omitted condop warning.
18375
18376 2010-06-24  Nick Clifton<nickc@redhat.com>
18377
18378         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
18379         insn in the sequence is a jump insn before setting its label.
18380
18381 2010-06-24  Alan Modra  <amodra@gmail.com>
18382
18383         * collect2.c (main): Match exactly --version and --help.
18384
18385 2010-06-24  DJ Delorie  <dj@redhat.com>
18386
18387         * config/m32c/m32c-pragma.c: Don't include rtl.h.
18388
18389 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
18390
18391         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
18392         using X87MODEF mode iterator.
18393         (pushsf splitter): Macroize splitter using P mode iterator.
18394         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
18395         mode iterator.
18396
18397         (*movxf_internal): Rename from *movxf_integer.
18398         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
18399         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
18400         (*movdf_internal): Rename from *movdf_integer.
18401         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
18402         (*movsf_internal): Rename from *movdf_1.
18403
18404 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
18405
18406         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
18407         (const_gimple_seq_node): Removed typedefs.
18408
18409         * gimple.h (gimple_seq_node_d, gimple_seq_node)
18410         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
18411
18412 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18413
18414         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
18415         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
18416         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
18417         and CODE_FOR_vec_extract_lo_v4df.
18418
18419         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
18420         Changed to define_insn_and_split.
18421         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
18422         (vec_extract_lo_v16hi): Likewise.
18423         (vec_extract_lo_v32qi): Likewise.
18424         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
18425         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
18426
18427 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
18428
18429         PR target/44640
18430         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
18431         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
18432         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
18433         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
18434         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
18435
18436         PR target/44640
18437         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
18438
18439         PR other/44644
18440         * df-core.c (struct df): Rename to df_d.
18441         * df.h (struct df): Likewise.
18442         * dse.h (struct df): Remove forward declaration.
18443         * recog.h (struct insn_data): Rename to:
18444         (struct_insn_data_d).  Adjusted all users.
18445
18446 2010-06-23  Arnaud Charlet  <charlet@adacore.com
18447
18448         PR ada/22220
18449         * doc/install.texi: Update requirements to build GNAT.
18450
18451 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
18452
18453         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
18454         enum type.
18455         (m68k_sched_attr_opx_type): Remove unreachable return.
18456         (m68k_sched_attr_opy_type): Likewise.
18457         (m68k_sched_attr_size): Likewise.
18458         (sched_get_opxy_mem_type): Likewise.
18459         (m68k_sched_attr_op_mem): Likewise.
18460
18461 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
18462
18463         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
18464         new statement and adjust VDEF only if necessary.  Remove superfluous
18465         call to maybe_clean_or_replace_eh_stmt.
18466         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
18467         copy the flags.
18468         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
18469         * tree-inline.c (copy_bb): ...and not there.
18470
18471 2010-06-22  Cary Coutant  <ccoutant@google.com>
18472
18473         * dwarf2out.c (is_nested_in_subprogram): New function.
18474         (should_move_die_to_comdat): Use it.
18475         (copy_ancestor_tree): Don't mark DIEs here.
18476         (copy_decls_walk): Start walk from root of newly-added tree;
18477         mark DIEs here instead.
18478
18479 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18480
18481         * config/i386/i386.md (unit): Also check sseishft1.
18482
18483 2010-06-22  Jan Hubicka  <jh@suse.cz>
18484
18485         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
18486         enabled.
18487
18488 2010-06-22  Jan Hubicka  <jh@suse.cz>
18489
18490         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
18491         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
18492         Return true if something changed.
18493         * df.h (df_confluence_function_n): Return bool.
18494         * df-core.c (df_worklist_propagate_forward,
18495         df_worklist_propagate_backward): Track changes and ages.
18496         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
18497         track ages.
18498         * dse.c (dse_confluence_n): Return always true.
18499
18500 2010-06-22  Jan Hubicka  <jh@suse.cz>
18501
18502         * bitmap.c (bitmap_clear_bit): Micro optimize.
18503
18504 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
18505
18506         * config/i386/i386.md (SWI1248x): New mode iterator.
18507         (SWI48x): Ditto.
18508         (SWI12): Ditto.
18509         (SWI24): Ditto.
18510
18511         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
18512         SWI1248x mode iterator.
18513         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
18514         using SWI124 mode iterator.
18515         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
18516         mode iterator.
18517         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
18518         *pushdi2_prologue_rex64 using P mode iterator.
18519         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
18520         using SWI48 mode iterator.
18521         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
18522         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
18523         using SWI1248x mode iterator.
18524         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
18525         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
18526         SWI48 mode iterator.
18527         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
18528         iterator.
18529         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
18530         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
18531         SWI12 mode iterator.
18532         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
18533         SWI12 mode iterator.
18534         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
18535         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
18536         SWI24 mode iterator.
18537         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
18538         SWI48 mode iterator.
18539         (mov<mode>_insn_1): New expander.
18540         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
18541         using SWI48x mode iterator.
18542
18543         (*movoi_internal_avx): Rename from *movoi_internal.
18544         (*movti_internal_rex64): Rename from *movti_rex64.
18545         (*movti_internal_sse): Rename from *movti_sse.
18546         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
18547         (*movdi_internal): Rename from *movdi_2.
18548         (*movsi_internal): Rename from *movsi_1.
18549         (*movhi_internal): Rename from *movhi_1.
18550         (*movqi_internal): Rename from *movqi_1.
18551
18552         (insv): Update the call to gen_movsi_insv_1 for rename.
18553         * config/i386/i386.c (promote_duplicated_reg): Ditto.
18554
18555 2010-06-22  Jan Hubicka  <jh@suse.cz>
18556
18557         * passes.c (execute_function_todo): Move call of statistics_fini_pass
18558         to ...
18559         (execute_todo) ... this one.
18560
18561 2010-06-22  Alan Modra  <amodra@gmail.com>
18562
18563         PR target/44364
18564         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18565         * caller-save.c (insert_restore, insert_save): Use non-validate
18566         form of adjust_address.
18567
18568 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18569
18570         PR target/39690
18571         * config/pa/pa.c (override_options): Disable
18572         -freorder-blocks-and-partition.
18573
18574 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
18575
18576         PR target/44615
18577         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
18578
18579         * config/i386/i386.md (type): Add sseishft1
18580
18581         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
18582         (ppro_insn_load): Likewise.
18583         (ppro_insn_store): Likewise.
18584         (ppro_insn_both): Likewise.
18585
18586         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
18587         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
18588         for type.
18589         (*vec_extractv2di_1_avx): Likewise.
18590         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
18591         type.  Remove atom_unit.
18592         (*vec_extractv2di_1_sse2): Likewise.
18593
18594 2010-06-21  DJ Delorie  <dj@redhat.com>
18595
18596         * diagnostic.h (diagnostic_classification_change_t): New.
18597         (diagnostic_context): Add history and push/pop list.
18598         (diagnostic_push_diagnostics): Declare.
18599         (diagnostic_pop_diagnostics): Declare.
18600         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
18601         from pragmas in a history chain instead of the global table.
18602         (diagnostic_push_diagnostics): New.
18603         (diagnostic_pop_diagnostics): New.
18604         (diagnostic_report_diagnostic): Scan history chain to find state
18605         of diagnostics as of the diagnostic location.
18606         * opts.c (set_option): Pass UNKNOWN_LOCATION to
18607         diagnostic_classify_diagnostic.
18608         (enable_warning_as_error): Likewise.
18609         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
18610         use in the history chain.
18611         * doc/extend.texi: Document pragma GCC diagnostic changes.
18612
18613 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
18614
18615         * dwarf2out.c (add_linkage_name): New function.  Don't add
18616         anything to DW_TAG_member DIEs.
18617         (add_name_and_src_coords_attributes): Use it.
18618         (gen_variable_die): Call it for C++ static data members if
18619         specification is DW_TAG_member.
18620
18621         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
18622         C++ char16_t and char32_t.
18623
18624         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
18625         * genattrtab.c: Include vecprim.h.
18626         (cached_attrs, cached_attr_count, attrs_seen_once,
18627         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
18628         attrs_cached_after): New variables.
18629         (find_attrs_to_cache): New function.
18630         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
18631         (write_test_expr): Add attrs_cached argument, return it too,
18632         attempt to cache non-const attributes used more than once in
18633         a single case handling.
18634         (write_attr_get): Use find_attrs_to_cache, for caching candidates
18635         emit cached_* variables.  Adjust write_attr_set callers.
18636         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
18637         to find attributes that should be cached in this block.  Adjust
18638         write_test_expr callers.
18639         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
18640         callers.
18641         (make_automaton_attrs): Adjust write_test_expr caller.
18642
18643         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
18644         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
18645         (make_automaton_attrs): If find_tune_attr returns non-NULL,
18646         write separate internal_dfa_insn_code_* and insn_default_latency_*
18647         functions for each attribute's value and emit init_sched_attrs
18648         function and function pointers.
18649         * genattr.c (const_attrs, reservations): New variables.
18650         (gen_attr): Add const attributes to const_attrs vector.
18651         (check_tune_attr, find_tune_attr): New functions.
18652         (main): Add reservations to reservations vector.  If find_tune_attr
18653         returns true, add prototype for init_sched_attrs and make
18654         internal_dfa_insn_code and insn_default_latency function pointers,
18655         otherwise define init_sched_attrs as dummy macro.
18656         * cfgexpand.c: Include insn-attr.h.
18657         (gimple_expand_cfg): Call init_sched_attrs.
18658
18659         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
18660
18661         PR target/44575
18662         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
18663         va_arg from a set of register save slots into a temporary,
18664         if the container is bigger than type size, do the copying
18665         using smaller mode or using memcpy.
18666
18667         PR bootstrap/44426
18668         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
18669         prototype.
18670         (sel_print_to_dot): Remove macro.
18671         (sel_print): Likewise.  New prototype.
18672         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
18673         (sel_print): New function.
18674
18675 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18676
18677         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
18678         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
18679
18680 2010-06-21  Nick Clifton  <nickc@redhat.com>
18681
18682         * config/rx/rx.h (PTRDIFF_TYPE): Define.
18683         (SMALL_REGISTER_CLASS): Define (to zero).
18684         (PRINT_OPERAND): Delete.
18685         (PRINT_OPERAND_ADDRESS): Delete.
18686         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
18687         (rx_print_operand_address): Delete prototype.
18688         * config/rx/rx.c (rx_print_operand): Make static.
18689         Allow %H and %L to handle CONST_DOUBLEs.
18690         (rx_print_operand_address): Make static.
18691         (rx_gen_move_template): Rename local variable 'template' to
18692         out_template.
18693         (rx_function_arg): Do not pass unknown sized objects in registers.
18694         (TARGET_PRINT_OPERAND): Define.
18695         (TARGET_PRINT_OPERAND_ADDRESS): Define.
18696
18697 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
18698
18699         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
18700
18701 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
18702
18703         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
18704         stack-alignment for simple leaf-functions.
18705
18706 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
18707
18708         * doc/install.texi: Document bootstrap-lto.
18709
18710 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
18711
18712         PR debug/44248
18713         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
18714         (input_function): Drop them here, if VTA is disabled.
18715
18716 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
18717
18718         PR target/44546
18719         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
18720         New predicate.
18721         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
18722         ix86_swapped_fp_comparsion_operator instead of
18723         ix86_fp_comparison_operator.
18724
18725         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
18726         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
18727         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
18728         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
18729         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
18730         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
18731
18732 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
18733
18734         PR other/32998
18735         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
18736         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
18737         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
18738         (decode_cmdline_option): Update for this return value.  Set
18739         orig_option_with_args_text field.  Set arg field for unknown
18740         options.  Make static.
18741         (decode_cmdline_options_to_array): New.
18742         (prune_options): Update handling of find_opt return value.
18743         * opts.c (read_cmdline_option): Take decoded option.  Return void.
18744         (read_cmdline_options): Take decoded options.
18745         (decode_options): Add parameters for decoded options.  Use
18746         decode_cmdline_options_to_array.  Use decoded options for -O
18747         scan.  Use integral_argument for -O parameters.  Update call to
18748         read_cmdline_options.
18749         (enable_warning_as_error): Update handling of find_opt return value.
18750         * opts.h: Update comment on unknown options.
18751         (struct cl_decoded_option): Update comments on opt_index and arg.
18752         Add orig_option_with_args_text.
18753         (decode_cmdline_option): Remove.
18754         (decode_cmdline_options_to_array): Declare.
18755         (decode_options): Update prototype.
18756         * toplev.c (save_argv): Remove.
18757         (save_decoded_options, save_decoded_options_count): New.
18758         (read_integral_parameter): Remove.
18759         (print_switch_values): Use decoded options.
18760         (toplev_main): Don't set save_argv.  Update call to decode_options.
18761         * toplev.h (read_integral_parameter): Remove.
18762         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
18763
18764 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
18765
18766         PR target/44072
18767         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
18768         immediate.
18769         * constraints.md (Pw, Px): New constraints.
18770         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
18771
18772 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
18773
18774         * config/i386/sse.md (fma4modesuffixf4): Removed.
18775         (ssemodesuffixf2s): Likewise.
18776         (ssemodesuffixf4): Likewise.
18777         (ssemodesuffixf2c): Likewise.
18778         (ssescalarmodesuffix2s): Likewise.
18779         (avxmodesuffixf2c): Likewise.
18780         (ssemodesuffix): New.
18781         (ssescalarmodesuffix): Likewise.
18782         Update patterns with ssemodesuffix and ssescalarmodesuffix.
18783
18784 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
18785
18786         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
18787
18788 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18789
18790         * stor-layout.c (debug_rli): Remove unused local variables.
18791
18792 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
18793
18794         PR rtl-optimization/40900
18795         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
18796         original expression for later reuse.
18797         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
18798         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
18799
18800 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
18801
18802         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
18803         double_int_fits_in_uhwi_p): Implement as static inline.
18804         (double_int_xor): New inline function.
18805         (double_int_lrotate, double_int_rrotate, double_int_max,
18806         double_int_umax, double_int_smax, double_int_min, double_int_umin,
18807         double_int_smin): Declare.
18808         (lrotate_double, rrotate_double): Remove declaration.
18809         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
18810         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
18811         (double_int_lrotate, double_int_rrotate, double_int_max,
18812         double_int_umax, double_int_smax, double_int_min, double_int_umin,
18813         double_int_smin): New function.
18814         * fold-const.c (int_const_binop): Clean up, use double_int_*
18815         functions.
18816         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
18817         double_int_* and immed_double_int_const functions.
18818
18819 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
18820
18821         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
18822         * function.c (types_used_by_cur_var_decl): Likewise.
18823         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
18824
18825 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
18826
18827         * tree.h (record_layout_info): Change type of pending_statics field
18828         to a VEC.
18829         * stor-layout.c (start_record_layout): Store NULL into
18830         pending_statics.
18831         (debug_rli): Call debug_vec_tree instead of debug_tree.
18832         (place_field): Likewise.
18833         (finish_record_layout): Likewise.
18834
18835 2010-06-18  Alan Modra  <amodra@gmail.com>
18836
18837         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
18838
18839 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18840
18841         PR target/43740
18842         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
18843         for SET source operand from SET destination operand.
18844
18845 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
18846
18847         PR rtl-optimization/39871
18848         * reload1.c (init_eliminable_invariants): For flag_pic, disable
18849         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
18850         (function_invariant_p): Rule out a plus of frame or arg pointer with
18851         a SYMBOL_REF.
18852         * ira.c (find_reg_equiv_invariant_const): Likewise.
18853
18854 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
18855
18856         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
18857         print_operand_address and puts to output the operand for CONST.
18858
18859 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
18860
18861         PR debug/44572
18862         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
18863         hook.
18864
18865 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
18866
18867         * v850-protos.h (print_operand): Delete.
18868         (print_operand_address): Delete.
18869         * v850.h (PRINT_OPERAND): Delete.
18870         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18871         (PRINT_OPERAND_ADDRESS): Delete.
18872         * v850.c (print_operand_address): Rename to...
18873         (v850_print_operand_address): ...this.  Make static. Call
18874         v850_print_operand.
18875         (print_operand): Rename to...
18876         (v850_print_operand): ...this.  Make static.  Call
18877         v850_print_operand_address.
18878         (v850_print_operand_punct_valid_p): New function.
18879         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18880         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18881
18882 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
18883
18884         * config/sh/sh-protos.h (print_operand): Delete.
18885         (print_operand_address): Delete.
18886         * config/sh/sh.h (PRINT_OPERAND): Delete.
18887         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18888         (PRINT_OPERAND_ADDRESS): Delete.
18889         * config/sh/sh.c (sh_print_operand_address): Make static.
18890         (sh_print_operand): Make static.  Call sh_print_operand_address
18891         and sh_print_operand.
18892         (sh_print_operand_punct_valid_p): New function.
18893         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18894         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18895
18896 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
18897
18898         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
18899         (mcore_print_operand_address): Delete.
18900         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
18901         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18902         (PRINT_OPERAND_ADDRESS): Delete.
18903         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
18904         (mcore_print_operand): Make static.
18905         (mcore_print_operand_punct_valid_p): New function.
18906         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
18907         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18908
18909 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
18910
18911         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
18912         (print_operand_address): Delete.
18913         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
18914         (PRINT_OPERAND_ADDRESS): Delete.
18915         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
18916         static.
18917         (m68hc11_print_operand): Make static.
18918         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18919
18920 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
18921
18922         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
18923         (m32r_print_operand_address): Delete.
18924         * config/m32r/m32r.h (m32r_punct_chars): Delete.
18925         (PRINT_OPERAND): Delete.
18926         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18927         (PRINT_OPERAND_ADDRESS): Delete.
18928         * config/m32r/m32r.c (m32r_punct_chars): Make static.
18929         (m32r_print_operand_address): Make static.
18930         (m32r_print_operand): Make static.
18931         (m32r_print_operand_punct_valid_p): New function.
18932         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18933         (TARGET_PRINT_OPERAND_ADDRESS): Define.
18934
18935 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
18936
18937         * config/iq2000/iq2000-protos.h (print_operand): Delete.
18938         (print_operand_address): Delete.
18939         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
18940         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18941         (PRINT_OPERAND_ADDRESS): Delete.
18942         (iq2000_print_operand_punct): Delete.
18943         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
18944         (iq2000_print_operand_address): Make static.
18945         (iq2000_print_operand): Make static.
18946         (iq2000_print_operand_punct_valid_p): New function.
18947         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18948         (TARGET_PRINT_OPERAND_ADDRESS): Define.
18949
18950 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
18951
18952         * config/frv/frv-protos.h (frv_print_operand): Delete.
18953         (frv_print_operand_address): Delete.
18954         * config/frv/frv.h (PRINT_OPERAND): Delete.
18955         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18956         (PRINT_OPERAND_ADDRESS): Delete.
18957         * config/frv/frv.c (frv_print_operand_address): Make static.
18958         (frv_print_operand): Make static.
18959         (frv_print_operand_punct_valid_p): New function.
18960         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18961         (TARGET_PRINT_OPERAND_ADDRESS): Define.
18962
18963 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
18964
18965         * tree.h (vec_member): Declare.
18966         * tree.c (vec_member): Define.
18967
18968 2010-06-17  Richard Guenther  <rguenther@suse.de>
18969
18970         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
18971         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
18972
18973 2010-06-17  Richard Guenther  <rguenther@suse.de>
18974
18975         * tree-inline.c (declare_return_variable): Remove bogus code.
18976
18977 2010-06-17  Richard Guenther  <rguenther@suse.de>
18978
18979         * gimplify.c (gimplify_bind_expr): Always promote complex
18980         and vector variables to registers if possible.
18981
18982 2010-06-17  Richard Guenther  <rguenther@suse.de>
18983
18984         * expr.c (get_inner_reference): Use double_int for bit_offset
18985         calculation.
18986
18987 2010-06-16  DJ Delorie  <dj@redhat.com>
18988
18989         * common.opt (-fstrict-volatile-bitfields): new.
18990         * doc/invoke.texi: Document it.
18991         * fold-const.c (optimize_bit_field_compare): For volatile
18992         bitfields, use the field's type to determine the mode, not the
18993         field's size.
18994         * expr.c (expand_assignment): Likewise.
18995         (get_inner_reference): Likewise.
18996         (expand_expr_real_1): Likewise.
18997         * expmed.c (store_fixed_bit_field): Likewise.
18998         (extract_bit_field_1): Likewise.
18999         (extract_fixed_bit_field): Likewise.
19000
19001 2010-06-16  Richard Guenther  <rguenther@suse.de>
19002
19003         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
19004
19005 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
19006
19007         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
19008         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
19009         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
19010         * debug.c: Likewise.
19011         * sdbout.c: Likewise.
19012         * vmsdbgout.c: Likewise.
19013         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
19014         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
19015         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
19016         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
19017         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
19018         * dwarf2out.c (dw_fde_struct): New fields
19019         dw_fde_vms_{end,begin}_prologue.
19020         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
19021         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
19022         (dwarf2out_vms_end_prologue): New function.
19023         (dwarf2out_vms_begin_epilogue): New function.
19024         (dw_val_struct): New value dw_val_class_vms_delta.
19025         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
19026         begin_epilogue for VMS.
19027         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
19028         new static functions.
19029         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
19030         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
19031         static functions.
19032         (print_die): New case dw_val_class_vms_delta.
19033         (attr_checksum): Likewise.
19034         (same_dw_val_p: Likewise.
19035         (size_of_die): Likewise.
19036         (value_format): Likewise.
19037         (output_die): Likewise.
19038         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
19039         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
19040         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
19041         dwarf2out_cfi_begin_epilogue
19042         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
19043
19044 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
19045
19046         * config/cris/cris-protos.h (cris_print_operand): Delete.
19047         (cris_print_operand_address): Delete.
19048         * config/cris/cris.h (PRINT_OPERAND): Delete.
19049         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19050         (PRINT_OPERAND_ADDRESS): Delete.
19051         * config/cris/cris.c (cris_print_operand_address): Make static.
19052         (cris_print_operand): Make static.
19053         (cris_print_operand_punct_valid_p): New function.
19054         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19055         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19056
19057 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
19058
19059         * config/arm/arm-protos.h (arm_print_operand): Delete.
19060         (arm_print_operand_address): Delete.
19061         * config/arm/arm.h (PRINT_OPERAND): Delete.
19062         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19063         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
19064         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
19065         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
19066         (arm_print_operand): Make static.
19067         (arm_print_operand_punct_valid_p): New function.
19068         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19069         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19070
19071 2010-06-16  Nick Clifton  <nickc@redhat.com>
19072
19073         * config/rx/constraints.md (NEGint4): New constraint.
19074         * config/rx/rx.md (attr cc): Add set_zsc.
19075         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
19076         initialised.
19077         (cmpsf): Likewise.
19078         (call_internal): Clobber the cc0 register.
19079         (call_value_internal): Likewise.
19080         (cstoresi4): Likewise.
19081         (movsieq): Likewise.
19082         (movsine): Likewise.
19083         (addsi3): Add alternative to handle small negative constants.
19084         (sunsi3): Likewise.
19085         (addsi3): Do not set the O bit in the cc0 register.
19086         (adddi3): Likewise.
19087         (subsi3): Likewise.
19088         (subdi3): Likewise.
19089         (andsi3): Reorder alternatives to prefer shorter forms.
19090         (mulsi3): Likewise.
19091         (iorsi3): Likewise.
19092         (negsi2): Note that the cc0 flags are set.
19093         (rotlsi3): Note that only the Z and S bits are set in cc0.
19094         (lshrsi3): Likewise.
19095         (ashlsi3): Likewise.
19096         (subsf3): Use %Q for the MEM operand.
19097         (fix_truncsfsi2): Likewise.
19098         (floatsisf2): Likewise.
19099         (bitset): Remove early clobber from destination.
19100         (bitset_in_memory): Likewise.
19101         (lrintsf2): Clobber the cc0 register.
19102         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
19103         (rx_print_operand): Handle %N.
19104
19105 2010-06-16  Jan Hubicka  <jh@suse.cz>
19106
19107         * df-core.c (df_compact_blocks): Free problem_temps vector.
19108
19109 2010-06-16  Martin Jambor  <mjambor@suse.cz>
19110
19111         PR tree-optimization/43905
19112         * tree-sra.c: Include tree-inline.h.
19113         (create_abstract_origin): Removed.
19114         (modify_function): Version the call graph node instead of creating
19115         abstract origins and dealing with same_body aliases.
19116         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
19117         function is versionable.
19118         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
19119
19120 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
19121
19122         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
19123         (CHOOSE_DYNAMIC_LINKER): Update.
19124
19125 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
19126
19127         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
19128         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
19129         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
19130         *prefetch_3dnow_rex.
19131
19132 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
19133
19134         * target.h (struct asm_out):Add declare_constant_name field.
19135         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19136         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
19137         * output.h (default_asm_declare_constant_name): Declare.
19138         (assemble_label): Update prototype.
19139         * varasm.c (assemble_constant_contents): Use
19140         targetm.asm_out.declare_constant_name target hook.
19141         (assemble_label): Add 'file' argument.
19142         (default_asm_declare_constant_name): New function.
19143         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
19144         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
19145         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
19146
19147         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
19148         * config/darwin.c (darwin_asm_declare_constant_name): New function.
19149         (machopic_output_indirection): Update assemble_label argument list.
19150         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
19151         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19152
19153 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
19154
19155         PR middle-end/44391
19156         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19157         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
19158
19159 2010-06-15  Richard Guenther  <rguenther@suse.de>
19160
19161         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
19162
19163 2010-06-15  Paul Brook  <paul@codesourcery.com>
19164
19165         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
19166         hard-float ABI.
19167
19168 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
19169
19170         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
19171         don't get a vector type for output.
19172
19173 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
19174
19175         PR fortran/44536
19176         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
19177         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
19178         (LANG_HOOKS_DECLS): Add it.
19179         * gimplify.c (omp_notice_variable): Call
19180         lang_hooks.decls.omp_report_decl.
19181
19182 2010-06-15  Martin Jambor  <mjambor@suse.cz>
19183
19184         PR lto/44464
19185         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
19186         on the newly dead SSA name.
19187
19188 2010-06-15  Alan Modra  <amodra@gmail.com>
19189
19190         * doc/invoke.texi: Add mcmodel to powerpc options.
19191         * configure.ac: Add HAVE_LD_LARGE_TOC test.
19192         * configure: Regenerate.
19193         * config.in: Regenerate.
19194         * config/rs6000/linux64.opt (mcmodel): New.
19195         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
19196         (TARGET_CMODEL, SET_CMODEL): Define.
19197         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
19198         select CMODEL_MEDIUM default.
19199         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
19200         (TARGET_CMODEL): Define default.
19201         * config/rs6000/rs6000.c (cmodel): New variable.
19202         (rs6000_explicit_options): Add cmodel field.
19203         (rs6000_handle_option): Handle -mcmodel.
19204         (create_TOC_reference): Add largetoc_reg param.  Generate high,
19205         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
19206         (rs6000_delegitimize_address): Recognise new toc reference rtl
19207         and minimal-toc rtl.
19208         (rs6000_legitimize_reload_address): Handle new toc references.
19209         (print_operand_address): Handle legitimate_constant_pool_address_p
19210         match before lo_sum.
19211         (rs6000_eliminate_indexed_memrefs): Tidy.
19212         (rs6000_emit_move): Tweak threshold for inlining constants.
19213         Keep rs6000_emit_allocate_stack large stack frame offsets
19214         loaded into r0 inline.
19215         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
19216         (tocrel_base, tocrel_offset): New variables.
19217         (toc_relative_expr_p): Set them here.
19218         (print_operand_address): Skip over any offset on constant pool address.
19219         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
19220         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
19221         (offsettable_ok_by_alignment): New function.
19222         (rs6000_emit_move): Address suitably aligned local symbol_refs
19223         relative to the toc pointer for -mcmodel=medium.
19224         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
19225         strict param.  Allow lo_sum version of addressing.  Verify reg
19226         used for -mminimal-toc and -mcmodel != small.  Update all callers.
19227         * config/rs6000/constraints.md: Update for above change.
19228         * config/rs6000/predicates.md: Likewise.
19229         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
19230         code.
19231         (tls_gd): Split for -mcmodel=medium/large.
19232         (tls_gd_high, tls_gd_low): New.
19233         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
19234         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
19235         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
19236         (largetoc_high, largetoc_low): New.
19237         (cmptf_internal2): Add clobber.
19238         * config/rs6000/rs6000-protos.h: Update.
19239
19240 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
19241
19242         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
19243         true if no prefetch is going to be generated for a given group.
19244         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
19245         estimate the prefetch_count.
19246         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
19247         prefetch count by considering the unroll_factor and prefetch_mod
19248         for is_loop_prefetching_profitable.
19249
19250 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
19251
19252         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
19253         anything if the argument is not a MEM.
19254
19255 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
19256
19257         PR debug/43650
19258         PR debug/44181
19259         PR debug/44247
19260         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
19261         debug stmts.
19262         (canonicalize_loop_ivs): Likewise.
19263
19264 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
19265
19266         PR debug/43656
19267         * haifa-sched.c (setup_insn_reg_pressure_info,
19268         update_register_pressure): Reject debug insns.
19269         (ready_sort): Don't setup reg pressure for debug insns.
19270         (schedule_insn): Don't update reg pressure for debug insns.
19271
19272 2010-06-14  Richard Guenther  <rguenther@suse.de>
19273
19274         * lto-streamer.c (cached_bp): Remove.
19275         (bitpack_delete): Likewise.
19276         (bitpack_create): Likewise.
19277         (bp_get_next_word): Likewise.
19278         (bp_pack_value, bp_unpack_value): Move ...
19279         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
19280         Re-implement.
19281         (struct bitpack_d): Likewise.
19282         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
19283         New inline functions.
19284         * lto-streamer-out.c (lto_output_bitpack): Remove.
19285         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
19286         (pack_value_fields): Adjust.
19287         (lto_write_tree): Likewise.
19288         (output_gimple_stmt): Likewise.
19289         (output_function): Likewise.
19290         * lto-streamer-in.c (input_gimple_stmt): Adjust.
19291         (input_function): Likewise.
19292         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
19293         (lto_input_bitpack): Remove.
19294         (lto_materialize_tree): Adjust.
19295         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
19296         * lto-cgraph.c (lto_output_edge): Adjust.
19297         (lto_output_node): Likewise.
19298         (lto_output_varpool_node): Likewise.
19299         (lto_output_ref): Likewise.
19300         (input_node): Likewise.
19301         (input_varpool_node): Likewise.
19302         (input_ref): Likewise.
19303         (input_edge): Likewise.
19304         (output_node_opt_summary): Likewise.
19305         (input_node_opt_summary): Likewise.
19306         * ipa-pure-const.c (pure_const_write_summary): Likewise.
19307         (pure_const_read_summary): Likewise.
19308         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
19309         (ipa_read_indirect_edge_info): Likewise.
19310         (ipa_write_node_info): Likewise.
19311         (ipa_read_node_info): Likewise.
19312
19313 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19314
19315         PR target/44534
19316         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
19317         (vec_extract_lo_v16hi): Likewise.
19318         (vec_extract_lo_v32qi): Likewise.
19319
19320 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
19321
19322         PR bootstrap/44426
19323         * tree.h (build_call_expr): Don't define as vararg macro, instead
19324         add a prototype.
19325         * builtins.c (build_call_nofold): Remove.
19326         (expand_builtin_int_roundingfn, expand_builtin_pow,
19327         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
19328         expand_builtin_memset_args, expand_builtin_strcmp,
19329         expand_builtin_strncmp, expand_builtin_memory_chk): Use
19330         build_call_nofold_loc instead of build_call_nofold.
19331         (build_call_expr): New function.
19332
19333         PR tree-optimization/44508
19334         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
19335         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
19336         don't eliminate trivially dead stmts.
19337         * tree-vrp.c (vrp_finalize): Pass false as last argument
19338         to substitute_and_fold.
19339         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
19340         to substitute_and_fold.
19341         * tree-ssa-ccp.c (ccp_finalize): Likewise.
19342
19343         PR bootstrap/44509
19344         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
19345
19346 2010-06-14  Ira Rosen  <irar@il.ibm.com>
19347
19348         PR tree-optimization/44507
19349         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
19350         to build initial vector for BIT_AND_EXPR.
19351         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19352
19353 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
19354
19355         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
19356         adjust z10prop set_attr.
19357
19358 2010-06-13  Jan Hubicka  <jh@suse.cz>
19359
19360         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
19361         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
19362         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
19363         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
19364         datastructure checks into checking asserts.
19365         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
19366         * tree-ssa-sccvn.c (VN_INFO): Likewise.
19367         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
19368         df_ref_create_structure): Likewise.
19369         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
19370         pool_free): Use gcc_checking_assert.
19371         * alias.c (get_alias_set): Likewise.
19372         * var-tracking.c (variable_htab_free, shared_hash_copy,
19373         canonicalize_values_mark, variable_merge_over_cur): Likewise.
19374         * lto-streamer.c (bp_unpack_value): Likewise.
19375
19376 2010-06-13  Richard Guenther  <rguenther@suse.de>
19377
19378         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
19379         Do not stream but initialize TYPE_CANONICAL to NULL.
19380         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
19381         * gimple.c (gimple_types_compatible_p): Disregard
19382         TYPE_STRUCTURAL_EQUALITY_P.
19383         (gimple_register_type): Use TYPE_CANONICAL as cache.
19384         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
19385         before registering common types.
19386         * config/i386/i386.c (ix86_function_arg_boundary): Do not
19387         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
19388         * tree.h (TYPE_CANONICAL): Clarify documentation.
19389
19390 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
19391
19392         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19393         LIBCALL_VALUE): Remove macros.
19394         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
19395         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19396         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19397         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
19398         (ia64_function_value): Make static. Handle receiving the function
19399         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
19400
19401 2010-06-12  Jan Hubicka  <jh@suse.cz>
19402
19403         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
19404         at correct place.
19405
19406 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
19407
19408         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
19409
19410 2010-06-12  Jan Hubicka  <jh@suse.cz>
19411
19412         * df-core.c (df_clear_bb_info): New function.
19413         (df_set_blocks): bb_info is always allocated.
19414         (df_get_bb_info): Use block_info_elt_size.
19415         (df_set_bb_info): Likewise.
19416         (df_compact_blocks): Update for new block_info.
19417         (grow_bb_info): New function.
19418         * df-problems.c (df_grow_bb_info): Move to df-core.c
19419         (df_rd_set_bb_info): Remove.
19420         (df_rd_free_bb_info): Do not free block pool.
19421         (df_rd_alloc): Do not create pool, use check for
19422         obstack presence instead of NULL pointer for new blocks.
19423         (df_rd_free): DO not free alloc pool; clear block_info.
19424         (problem_RD): Add size of block info structure.
19425         (df_lr_set_bb_info): Remove.
19426         (df_lr_free_bb_info): Do not free block pool.
19427         (df_lr_alloc): Do not create pool, use check for
19428         obstack presence instead of NULL pointer for new blocks.
19429         (df_lr_free): DO not free alloc pool; clear block_info.
19430         (problem_LR): Add size of block info structure.
19431         (df_live_set_bb_info): Remove.
19432         (df_live_free_bb_info): Do not free block pool.
19433         (df_live_alloc): Do not create pool, use check for
19434         obstack presence instead of NULL pointer for new blocks.
19435         (df_live_free): DO not free alloc pool; clear block_info.
19436         (problem_LIVE): Add size of block info structure.
19437         (problem_CHAIN): Add size of block info structure.
19438         (df_byte_lr_set_bb_info): Remove.
19439         (df_byte_lr_free_bb_info): Do not free block pool.
19440         (df_byte_lr_alloc): Do not create pool, use check for
19441         obstack presence instead of NULL pointer for new blocks.
19442         (df_byte_lr_free): DO not free alloc pool; clear block_info.
19443         (problem_BYTE_LR): Add size of block info structure.
19444         (problem_NOTE): Add size of block info structure.
19445         (df_byte_MD_set_bb_info): Remove.
19446         (df_byte_MD_free_bb_info): Do not free block pool.
19447         (df_byte_MD_alloc): Do not create pool, use check for
19448         obstack presence instead of NULL pointer for new blocks.
19449         (df_byte_MD_free): DO not free alloc pool; clear block_info.
19450         (problem_BD): Add size of block info structure.
19451         * df-scan.c (df_scan_free_internal): Free block pool.
19452         (df_scan_set_bb_info): Remove.
19453         (df_scan_free_bb_info): Check for artificial_defs instead
19454         of bb_info being non-NULL.
19455         (df_scan_alloc): DO not create df_scan_block pool.
19456         (problem_SCAN): Set size of block info.
19457         (df_bb_refs_record): Do not allocate bb_info.
19458         * df.h (df_problem): Add block_info_elt_size.
19459         (struct dataflow): Change block_info to void *.
19460         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
19461         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
19462         in-line structures.
19463
19464 2010-06-12  Jan Hubicka  <jh@suse.cz>
19465
19466         PR tree-optimize/44485
19467         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
19468         containing use of return value of noreturn function.
19469
19470 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
19471
19472         * targhooks.c (default_function_value): Don't use
19473         FUNCTION_OUTGOING_VALUE.
19474         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
19475         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
19476
19477 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
19478
19479         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
19480         Add crtfastmath.o to extra_parts.
19481         * config/mips/crtfastmath.c: New.
19482         * config/mips/linux.h (ENDFILE_SPEC): New.
19483
19484 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
19485
19486         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
19487         old_type in parameter.
19488         (gcc_type_for_value): Update call to gcc_type_for_interval.
19489         (compute_type_for_level_1): Renamed compute_type_for_level.
19490         Update call to gcc_type_for_interval.
19491
19492 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
19493
19494         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
19495         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
19496
19497 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
19498
19499         * opts-common.c: Include options.h.
19500         (integral_argument): Move from opts.c.
19501         (decode_cmdline_option): New.  Based on read_cmdline_option.
19502         * opts.c (integral_argument): Move to opts-common.c.
19503         (read_cmdline_option): Move most contents to
19504         decode_cmdline_option.  Use %qs in diagnostics.
19505         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
19506         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
19507         decode_cmdline_option): New.
19508
19509 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
19510
19511         PR target/44481
19512         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
19513         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
19514         (partiysi2_cmp): Ditto.
19515         (*partiyhi2_cmp): Ditto.
19516         (*parityqi2_cmp): Remove.
19517
19518 2010-06-11  Jan Hubicka  <jh@suse.cz>
19519
19520         * bitmap.h (bmp_iter_next_bit): New.
19521         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
19522
19523 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
19524             Eric Botcazou  <ebotcazou@adacore.com>
19525
19526         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
19527         computed cost.
19528
19529 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
19530
19531         * config/i386/i386.md (unspec): New define_c_enum.
19532         (unspecv): Ditto.
19533
19534 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
19535
19536         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
19537
19538 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
19539
19540         PR middle-end/44483
19541         * tree-if-conv.c (bb_predicate_s): New struct.
19542         (bb_predicate_p): New.
19543         (bb_has_predicate): New.
19544         (bb_predicate): New.
19545         (set_bb_predicate): New.
19546         (bb_predicate_gimplified_stmts): New.
19547         (set_bb_predicate_gimplified_stmts): New.
19548         (add_bb_predicate_gimplified_stmts): New.
19549         (init_bb_predicate): New.
19550         (free_bb_predicate): New.
19551         (is_predicated): Use bb_predicate.
19552         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
19553         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
19554         before processing their successors.
19555         (clean_predicate_lists): Removed.
19556         (find_phi_replacement_condition): Use bb_predicate.
19557         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
19558         computations.
19559         (insert_gimplified_predicates): New.
19560         (combine_blocks): Call insert_gimplified_predicates.
19561         (tree_if_conversion): Call free_bb_predicate instead of
19562         clean_predicate_lists.
19563
19564 2010-10-11  Paul Brook  <paul@codesourcery.com>
19565
19566         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
19567         * config/arm/arm.c (all_architectures): Change v7e-m default to
19568         cortexm4.
19569         * config/arm/arm-cores.def: Add cortex-m4.
19570         * config/arm/arm-tune.md: Regenerate.
19571
19572 2010-06-11  Jan Hubicka  <jh@suse.cz>
19573
19574         * ipa-pure-const.c (special_builtlin_state): New function.
19575         (check_call): Use it instead of special casign BUILT_IN_RETURN.
19576         (propagate_pure_const): Use it.
19577
19578 2010-06-11  Jan Hubicka  <jh@suse.cz>
19579
19580         * df-problems.c (df_live_scratch): Convert to bitmap_head.
19581         (df_live_alloc): Initialize df_live_scratch when initializing
19582         problem_data.
19583         (df_live_transfer_function): Update uses of df_live_scratch.
19584         (df_live_free): Free problem_data; clear df_live_scratch before
19585         releasing the obstack.
19586         (df_md_free): Free problem data.
19587
19588 2010-06-11  Jan Hubicka  <jh@suse.cz>
19589
19590         * doc/invoke.texi (Wsuggest-attribute): Document.
19591         (Wmissing-noreturn): Remove.
19592         * ipa-pure-const.c (warn_function_noreturn): New function.
19593         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
19594         warn_missing_noreturn.
19595         * common.opt (Wsuggest-attribute=noreturn): New.
19596         * tree-flow.h (warn_function_noreturn): Declare.
19597         * tree-cfg.c (execute_warn_function_noreturn): Use
19598         warn_function_noreturn.
19599         (gate_warn_function_noreturn): New.
19600         (pass_warn_function_noreturn): Update.
19601
19602 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19603
19604         * c-typeck.c (handle_warn_cast_qual): Add loc
19605         parameter. Improve warning message.
19606         (build_c_cast): Pass location to handle_warn_cast_qual.
19607
19608 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
19609
19610         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
19611         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
19612         insn mnemonic.
19613         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
19614
19615 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
19616
19617         Fix bootstap on mips
19618         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
19619         be naming typedefs.
19620
19621 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
19622
19623         * system.h (helper_const_non_const_cast): New inline for
19624         gcc version <= 4.0.
19625         (CONST_CAST2): For gcc version <= 4.0 use
19626         new helper to do const/non-const casting.
19627
19628 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19629
19630         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
19631         * Makefile.in (OBJS-common): Include insn-enums.o.
19632         (insn-enums.o): New rule.
19633         (simple_generated_c): Add insn-enums.c.
19634         (build/genenums.o): New rule.
19635         (genprogmd): Add "enums".
19636         * genconstants.c (print_enum_type): Declare a C string array
19637         for each enum.
19638         * genenums.c: New file.
19639         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
19640         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
19641         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
19642
19643 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19644
19645         * doc/md.texi (define_enum_attr): Document.
19646         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
19647         * read-md.h (lookup_enum_type): Declare.
19648         * read-md.c (lookup_enum_type): New function.
19649         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
19650         * genattrtab.c (attr_desc): Add an enum_name field.
19651         (evaluate_eq_attr): Take the associated attribute as argument.
19652         Get the enum prefix from the enum_name field, if defined.
19653         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
19654         (simplify_test_exp): Pass attr to evaluate_eq_attr.
19655         (add_attr_value): New function, split out from...
19656         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
19657         (write_test_expr): Pass attr to evaluate_eq_attr.
19658         (write_attr_get): Use the enum_name as the enum tag, if defined.
19659         (write_attr_valueq): Use the enum_name as a prefix, if defined.
19660         (find_attr): Initialize enum_name.
19661         (main): Handle DEFINE_ENUM_ATTR.
19662         * gensupport.c (process_rtx): Likewise.
19663         * config/mips/mips.h (mips_tune_attr): Delete.
19664         * config/mips/mips.md (cpu): Use define_attr_enum.
19665
19666 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19667
19668         * doc/md.texi (define_c_enum, define_enum): Document.
19669         * read-md.h (md_constant): Add a parent_enum field.
19670         (enum_value, enum_type): New structures.
19671         (upcase_string, traverse_enum_types): Declare.
19672         * read-md.c (enum_types): New variable.
19673         (upcase_string, add_constant): New functions.
19674         (handle_constants): Don't create the hash table here.
19675         Use add_constant.
19676         (traverse_md_constants): Don't check for a null md_constants.
19677         (decimal_string, handle_enum, traverse_enum_types): New functions.
19678         (read_md_files): Initialize md_constants and md_enums.
19679         * genconstants.c (print_md_constant): Ignore info argument.
19680         Only print constants that belong to no enum.
19681         (print_enum_type): New function.
19682         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
19683         for each defined enum type.
19684         * config/mips/mips.md (processor): New define_enum.
19685         (unspec): New define_c_enum.
19686         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
19687         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
19688         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
19689         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
19690         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
19691         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
19692         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
19693         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
19694         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
19695         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
19696         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
19697         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
19698         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
19699         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
19700         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
19701         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
19702         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
19703         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
19704         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
19705         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
19706         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
19707         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
19708         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19709         (UNSPEC_RDDSP): Move to mips-dsp.md.
19710         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
19711         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
19712         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
19713         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
19714         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
19715         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
19716         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
19717         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
19718         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
19719         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
19720         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
19721         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
19722         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
19723         Moved to mips-dspr2.md.
19724         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
19725         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
19726         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
19727         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
19728         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
19729         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
19730         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19731         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19732         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19733         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19734         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19735         UNSPEC_LOONGSON_PSADBH)
19736         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19737         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19738         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
19739         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19740         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19741         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19742         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
19743         (cpu): Update comment.
19744         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
19745         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
19746         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
19747         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
19748         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
19749         UNSPEC_LOONGSON_PCMPEQ)
19750         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
19751         UNSPEC_LOONGSON_PINSR_0)
19752         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19753         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19754         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19755         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19756         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19757         UNSPEC_LOONGSON_PSADBH)
19758         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19759         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19760         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
19761         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19762         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19763         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19764         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
19765         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
19766         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
19767         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
19768         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
19769         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
19770         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
19771         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
19772         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
19773         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
19774         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
19775         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
19776         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
19777         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
19778         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
19779         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
19780         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
19781         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
19782         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
19783         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
19784         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19785         (UNSPEC_RDDSP): Moved from mips.md.
19786         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
19787         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
19788         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
19789         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
19790         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
19791         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
19792         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
19793         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
19794         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
19795         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
19796         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
19797         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
19798         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
19799         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
19800         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
19801         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
19802         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
19803         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
19804         (UNSPEC_SCC): Moved from mips.md.
19805         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
19806         "processor_type" to "processor".
19807         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
19808         * config/mips/mips.h (processor_type): Delete.
19809         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
19810         "processor_type" to "processor".
19811
19812 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19813
19814         * configure.ac (tm_include_list): Add insn-constants.h.
19815         * configure: Regenerate.
19816         * Makefile.in (GTM_H): Move insn-constants.h here from...
19817         (TM_H): ...here.
19818         * mkconfig.sh: Remove special handling for insn-constants.h.
19819
19820 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19821
19822         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
19823         (BUILD_MD): ...this new variable.
19824         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
19825         that include the old contents of simple_generated_h and
19826         simple_generated_c.
19827         (simple_generated_h, simple_generated_c): Include them.  Add
19828         insn-constants.h.
19829         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
19830         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
19831         Remove these dependencies from the main rule and include
19832         insn-conditions.md in the command line only if it appears
19833         in the dependency list.
19834         (insn-constants.h, s-constants): Delete.
19835         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
19836         or gensupport.h.
19837         (build/genmddeps.o): Likewise.
19838         (genprogrtl): New variable that contains everything from genprogmd
19839         except mddeps and constants.
19840         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
19841         depend on $(BUILD_MD)
19842         (genprog): New variable.  Make these programs depend on
19843         $(BUILD_ERRORS).
19844         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
19845         (main): Use read_md_files instead of init_rtx_reader_args.
19846         * genconstants.c: As for genmddeps.c.
19847         * read-md.h (read_skip_construct): Declare.
19848         * read-md.c (read_skip_construct): New function.
19849         (handle_file): Allow a null handle_directive, skipping the
19850         construct if so.
19851         (parse_include): Update the comment accordingly.
19852
19853 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19854
19855         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
19856         * genmddeps.c: Include read-md.h.
19857         (main): Call init_rtx_reader_args instead of init_md_reader_args.
19858         * genattr.c (main): Likewise.
19859         * genattrtab.c (main): Likewise.
19860         * genautomata.c (main): Likewise.
19861         * gencodes.c (main): Likewise.
19862         * genconditions.c (main): Likewise.
19863         * genconfig.c (main): Likewise.
19864         * genconstants.c (main): Likewise.
19865         * genemit.c (main): Likewise.
19866         * genextract.c (main): Likewise.
19867         * genflags.c (main): Likewise.
19868         * genopinit.c (main): Likewise.
19869         * genoutput.c (main): Likewise.
19870         * genpeep.c (main): Likewise.
19871         * genrecog.c (main): Likewise.
19872         * genpreds.c (main): Likewise.
19873         * gensupport.h (in_fname): Move to read-md.h.
19874         (init_md_reader_args_cb): Rename to...
19875         (init_rtx_reader_args_cb): ...this and return a bool.
19876         (init_md_reader_args): Rename to...
19877         (init_rtx_reader_args): ...this and return a bool.
19878         (include_callback): Move to read-md.h.
19879         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
19880         (file_name_list, first_dir_md_include): Move to read-md.c
19881         (first_bracket_include): Delete unused variable.
19882         (last_dir_md_include): Move to read-md.c.
19883         (process_include): Delete, moving code to read-md.c:handle_include.
19884         (process_rtx): Don't handle INCLUDE.
19885         (save_string): Delete.
19886         (rtx_handle_directive): New function.
19887         (init_md_reader_args_cb): Rename to...
19888         (init_rtx_reader_args_cb): ...this and return a boolean success value.
19889         Use read_md_args.
19890         (init_md_reader_args): Rename to...
19891         (init_rtx_reader_args): ...this and return a boolean success value.
19892         * rtl.def (INCLUDE): Delete.
19893         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
19894         argument.
19895         * read-rtl.c (read_conditions): Don't gobble ')' here.
19896         (read_mapping): Likewise.
19897         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
19898         Handle top-level non-rtx constructs here rather than in read_rtx_1.
19899         Store the whole queue in *X.  Remove call to init_md_reader.
19900         (read_rtx_1): Rename to...
19901         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
19902         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
19903         here.
19904         (read_nested_rtx): New function.  Handle (nil) here rather than
19905         in read_rtx_code.
19906         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
19907         gobble ')' here.
19908         * read-md.h (directive_handler_t): New type.
19909         (in_fname, include_callback): Moved from read-md.h.
19910         (read_constants, init_md_reader): Delete.
19911         (read_md_files): Declare.
19912         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
19913         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
19914         from gensupport.c.
19915         (read_constants): Rename to...
19916         (handle_constants): ...this.  Don't gobble ')' here.
19917         (handle_include, handle_file, handle_toplevel_file)
19918         (parse_include): New functions, mostly taken from gensupport.c.
19919         (init_md_reader): Subsume into...
19920         (read_md_files): ...this new function.
19921
19922 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19923
19924         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
19925         (unread_char): Decrement read_md_lineno after putting back '\n'.
19926         * read-md.c (fatal_with_file_and_line): Push back any characters
19927         that we decide not to add to the context.
19928         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
19929         fatal_expected_char in cases where '/' ends a line (for example).
19930         (read_name): Don't increment read_md_lineno here.
19931         (read_escape): Likewise.
19932         (read_quoted_string): Likewise.
19933         (read_braced_string): Likewise.
19934
19935 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19936
19937         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
19938         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
19939         * genconstants.c: Include read-md.h.
19940         * read-rtl.c (md_constants): Move to read-md.c.
19941         (md_name): Move to read-md.h.
19942         (initialize_iterators): Use leading_string_hash instead of def_hash
19943         and leading_string_eq_p instead of def_name_eq_p.
19944         (read_name): Move to read-md.c.
19945         (def_hash, def_name_eq_p): Delete.
19946         (read_constants, traverse_md_constants): Move to read-md.c.
19947         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
19948         * read-md.h: Include hashtab.h.
19949         (md_name): Moved from read-rtl.c.
19950         (md_constant): Moved from read-md.h.
19951         (leading_string_hash, leading_string_eq_p, read_name)
19952         (read_constants, traverse_md_constants): Declare.
19953         * read-md.c (md_constants): Moved from read-rtl.c.
19954         (leading_string_hash, leading_string_eq_p): New functions.
19955         (read_name, read_constants, traverse_md_constants): Moved from
19956         read-rtl.c.
19957
19958 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19959
19960         * read-rtl.c (md_name): New structure.
19961         (read_name): Take an md_name instead of a buffer pointer.
19962         Use the "string" field instead of strcpy when expanding constants.
19963         (read_constants): Remove the tmp_char argument.  Update the calls
19964         to read_name, using two local name buffers instead of the tmp_char
19965         argument.  Merge the constant-creation code.
19966         (read_conditions): Remove the tmp_char argument.  Update the calls
19967         to read_name, using a local name buffer instead of the tmp_char
19968         argument.
19969         (read_mapping): Replace tmp_char variable with a local name buffer.
19970         Update the calls to read_name.
19971         (read_rtx_1): Likewise.  Update the calls to read_constants and
19972         read_conditions.
19973
19974 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19975
19976         * Makefile.in (build/read-md.o): Depend on errors.h.
19977         * read-md.h (error_with_line): Declare.
19978         * read-md.c: Include errors.h.
19979         (message_with_line_1): New function, extracted from...
19980         (message_with_line): ...here.
19981         (error_with_line): New function.
19982         * genattrtab.c: If a call to message_with_line is followed by
19983         "have_error = 1;", replace both statements with a call to
19984         error_with_line.
19985         * genoutput.c: Likewise.
19986         * genpreds.c: Likewise.
19987         * genrecog.c: If a call to message_with_line is followed by
19988         "error_count++;", replace both statements with a call to
19989         error_with_line.
19990         (errorcount): Delete.
19991         (main): Don't check it.
19992         * gensupport.c: If a call to message_with_line is followed by
19993         "errors = 1;", replace both statements with a call to error_with_line.
19994         (errors): Delete.
19995         (process_define_cond_exec): Check have_error instead of errors.
19996         (init_md_reader_args_cb): Likewise.  Don't set errors.
19997
19998 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19999
20000         * read-md.h (read_md_file): Declare.
20001         (read_char, unread_char): New functions.
20002         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20003         (read_quoted_string, read_string): Remove FILE * argument.
20004         * read-md.c (read_md_file): New variable.
20005         (read_md_filename, read_md_lineno): Update comments and remove
20006         unnecessary initialization.
20007         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20008         (read_escape, read_quoted_string, read_braced_string, read_string):
20009         Remove FILE * argument.  Update calls accordingly, using read_char
20010         and unread_char instead of getc and ungetc.
20011         * rtl.h (read_rtx): Remove FILE * argument.
20012         * read-rtl.c (iterator_group): Remove FILE * argument from
20013         "find_builtin".
20014         (iterator_traverse_data): Remove "infile" field.
20015         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
20016         (add_mapping, read_name, read_constants, read_conditions)
20017         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
20018         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
20019         Remove file arguments from all calls, using read_char and unread_char
20020         instead of getc and ungetc.
20021         * gensupport.c (process_include): Preserve read_md_file around
20022         the include.  Set read_md_file to the handle of the included file.
20023         Update call to read_rtx.
20024         (init_md_reader_args_cb): Set read_md_file to the handle of the file
20025         and remove local FILE *.  Update calls to read_rtx.
20026
20027 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20028
20029         * read-md.h (read_rtx_lineno): Rename to...
20030         (read_md_lineno): ...this.
20031         (read_rtx_filename): Rename to...
20032         (read_md_filename): ...this.
20033         (copy_rtx_ptr_loc): Rename to...
20034         (copy_md_ptr_loc): ...this.
20035         (print_rtx_ptr_loc): Rename to...
20036         (print_md_ptr_loc): ...this.
20037         * read-md.c: Likewise.  Update references after renaming.
20038         (string_obstack): Replace RTL with MD in comment.
20039         (set_rtx_ptr_loc): Rename to...
20040         (set_md_ptr_loc): ...this.
20041         (get_rtx_ptr_loc): Rename to...
20042         (get_md_ptr_loc): ...this.
20043         * genconditions.c: Update references after renaming.
20044         * genemit.c: Likewise.
20045         * genoutput.c: Likewise.
20046         * genpreds.c: Likewise.
20047         * gensupport.c: Likewise.
20048         * read-rtl.c: Likewise.
20049
20050 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20051
20052         * Makefile.in (READ_MD_H): New variable.
20053         (BUILD_RTL): Add build/read-md.o.
20054         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
20055         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
20056         (build/genattrtab.o, build/genconditions.o build/genemit.o)
20057         (build/genextract.o, build/genflags.o, build/genoutput.o)
20058         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
20059         (build/read-md.o): New rule.
20060         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
20061         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
20062         * coretypes.h: ...here.
20063         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
20064         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
20065         * genattr.c: Include read-md.h.
20066         * genattrtab.c: Likewise.
20067         * genconditions.c: Likewise.
20068         * genemit.c: Likewise.
20069         * genextract.c: Likewise.
20070         * genflags.c: Likewise.
20071         * genoutput.c: Likewise.
20072         * genpreds.c: Likewise.
20073         * genrecog.c: Likewise.
20074         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
20075         (join_c_conditions, print_c_condition, read_rtx_filename)
20076         (read_rtx_lineno): Move to read-md.h.
20077         * read-rtl.c: Include read-md.h.
20078         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
20079         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
20080         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
20081         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
20082         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
20083         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
20084         (read_braced_string, read_string): Move to read-md.c.
20085         (read_rtx): Move some initialization to init_md_reader and call
20086         init_md_reader here.
20087         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
20088         Move to read-md.h.
20089         * gensupport.c: Include read-md.h.
20090         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
20091         * read-md.h, read-md.c: New files.
20092
20093 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
20094
20095         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20096         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20097         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
20098         * config/moxie/moxie.c (moxie_function_value): Make static.
20099         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
20100         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20101
20102 2010-06-10  Martin Jambor  <mjambor@suse.cz>
20103
20104         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
20105         * dbgcnt.def (tree_sra): New counter.
20106         * tree-sra.c: Include dbgcnt.h.
20107         (gate_intra_sra): Check tree_sra debug counter.
20108
20109 2010-06-10  Martin Jambor  <mjambor@suse.cz>
20110
20111         PR tree-optimization/44258
20112         * tree-sra.c (build_access_subtree): Return false iff there is a
20113         partial overlap.
20114         (build_access_trees): Likewise.
20115         (analyze_all_variable_accesses): Disqualify candidates if
20116         build_access_trees returns true for them.
20117
20118 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
20119
20120         PR debug/41371
20121         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
20122         tail-recurse into canonical node.  Fast-forward over
20123         non-canonical VALUEs.
20124
20125 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
20126
20127         PR boostrap/44470
20128         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
20129         (*addsi_1_zext) <TYPE_LEA>: Likewise.
20130         (add lea splitter): Likewise.
20131         (add_zext lea splitter): Likewise.
20132
20133 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
20134
20135         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
20136
20137 2010-06-10  Jan Hubicka  <jh@suse.cz>
20138
20139         * df-problems.c (df_live_problem_data): Add live_bitmaps.
20140         (df_live_alloc): Initialize problem data and live_osbtacks.
20141         (df_live_finalize): Remove obstack, problem data; do not
20142         clear all bitmaps.
20143         (df_live_top_dump, df_live_bottom_dump): Do not dump old
20144         data when not allocated.
20145         (df_live_verify_solution_start): Do not allocate problem data.
20146         (df_live_verify_solution_end): Check if out is allocated.
20147         (struct df_md_problem_data): New structure.
20148         (df_md_alloc): Allocate problem data.
20149         (df_md_free): Free problem data; do not clear bitmaps.
20150
20151 2010-06-10  Jan Beulich  <jbeulich@novell.com>
20152
20153         PR bootstrap/37304
20154         * configure.ac: Replace $() with ${} when intending to expand
20155         variables rather than invoking commands.
20156         * configure: Re-generate.
20157
20158 2010-06-10  Jan Hubicka  <jh@suse.cz>
20159
20160         PR rtl-optimization/44460
20161         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
20162         TYPE_NEEDS_CONSTRUCTING sanity check.
20163
20164 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
20165
20166         * doc/include/fdl.texi: Move to GFDL version 1.3.
20167
20168         * doc/cpp.texi: Move to GFDL version 1.3.
20169         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
20170         * doc/gccint.texi: Move to GFDL version 1.3.
20171         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
20172         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
20173         * doc/invoke.texi: Move to GFDL version 1.3.
20174
20175 2010-06-09  Jan Hubicka  <jh@suse.cz>
20176
20177         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
20178         Break out from ...
20179         (propagate) ... here; swap the order.
20180
20181 2010-06-09  Jan Hubicka  <jh@suse.cz>
20182
20183         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
20184         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
20185         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
20186         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
20187
20188 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
20189
20190         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
20191         Do not the gather memory reference in the outer loop if the step
20192         is not a constant.
20193
20194 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
20195
20196         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
20197         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
20198         8 to 4.  Minor change of the related comments.
20199
20200 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20201
20202         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
20203         the scev analysis when the variable is not used outside the loop
20204         in a close phi node: call compute_overall_effect_of_inner_loop.
20205
20206 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20207
20208         * graphite-sese-to-poly.c (single_pred_cond): Renamed
20209         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
20210         (build_sese_conditions_before): Renamed call to single_pred_cond.
20211         (build_sese_conditions_after): Same.
20212
20213 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20214
20215         * graphite-poly.h: Fix comments and indentation.
20216         * graphite-sese-to-poly.c: Same.
20217         (build_sese_conditions_before): Compute stmt and gbb only when needed.
20218         * tree-chrec.c: Fix comments and indentation.
20219         (tree-ssa-loop-niter.c): Same.
20220
20221 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
20222
20223         PR rtl-optimization/42461
20224         * dce.c (deletable_insn_p): Return true for const or pure calls again.
20225         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
20226
20227 2010-06-09  Jan Hubicka  <jh@suse.cz>
20228
20229         * bitmap.c (bitmap_and): Walk array forward.
20230         (bitmap_and_compl_into): Likewise.
20231         (bitmap_xor): Likewise.
20232         (bitmap_xor_into):  Likewise.
20233         (bitmap_equal_p): Likewise.
20234         (bitmap_intersect_p): Likewise.
20235         (bitmap_intersect_compl_p): Likewise.
20236         (bitmap_ior_and_into): Likewise.
20237         (bitmap_elt_copy): Likewise.
20238         (bitmap_and_compl): Likewise.
20239         (bitmap_elt_ior): Likewise.
20240
20241 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
20242
20243         * opts-common.c (prune_options): Ensure replacement argv array
20244         is correctly terminated by a NULL entry.
20245
20246 2010-06-09  Jan Hubicka  <jh@suse.cz>
20247
20248         * cgraph.h (varpool_first_static_initializer,
20249         varpool_next_static_initializer): Make checking only when
20250         checking enabled.
20251         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
20252         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
20253         gcc_assert to gcc_checking_assert.
20254         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
20255         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
20256         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
20257         op_iter_init_phiuse, op_iter_init_phidef,
20258         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
20259         gcc_checking_assert.
20260         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
20261         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
20262         partition_is_global, live_on_entry, live_on_exit,
20263         live_merge_and_clear): Likewise.
20264         * system.h (gcc_checking_assert): New macro.
20265         * gimple.h (set_bb_seq): Use gcc_checking_assert.
20266
20267 2010-06-09  Jason Merrill  <jason@redhat.com>
20268
20269         * Makefile.in (TAGS): Collect tags info from c-family.
20270
20271 2010-06-09  Jan Hubicka  <jh@suse.cz>
20272
20273         * gimple.h (gcc_gimple_checking_assert): New macro.
20274         (gimple_set_def_ops, gimple_set_use_ops,
20275         gimple_set_vuse, gimple_set_vdef,
20276         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
20277         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
20278         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
20279         gimple_asm_output_op, gimple_asm_output_op_ptr,
20280         gimple_asm_set_output_op, gimple_asm_clobber_op,
20281         gimple_asm_set_clobber_op, gimple_asm_label_op,
20282         gimple_asm_set_label_op, gimple_try_set_kind,
20283         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
20284         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
20285         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
20286         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
20287         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
20288         gimple_omp_for_set_initial, gimple_omp_for_final,
20289         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
20290         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
20291         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
20292         conditional with ENABLE_GIMPLE_CHECKING.
20293         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
20294
20295 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
20296
20297         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
20298         (get_computation_cost_at): Use it.
20299         (determine_use_iv_cost_condition): Likewise.
20300         (determine_iv_cost): Likewise.
20301
20302 2010-06-09  Richard Guenther  <rguenther@suse.de>
20303
20304         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
20305         replace constants.
20306
20307 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
20308
20309         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
20310
20311 2010-06-09  Martin Jambor  <mjambor@suse.cz>
20312
20313         PR tree-optimization/44423
20314         * tree-sra.c (dump_access): Dump also grp_assignment_read.
20315         (analyze_access_subtree): Pass negative allow_replacements to children
20316         if the current type is scalar.
20317
20318 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
20319
20320         PR testsuite/42843
20321         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
20322         * doc/plugins.texi (Plugin license check): Update information
20323         on type of plugin_is_GPL_compatible.
20324         * Makefile.in (PLUGINCC): Define as $(COMPILER).
20325         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
20326
20327 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
20328
20329         * config/arm/arm.c (thumb2_reorg): New function.
20330         (arm_reorg): Call it.
20331         * config/arm/thumb2.md (define_peephole2 for flag clobbering
20332         arithmetic operations): Delete.
20333
20334 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
20335
20336         PR target/44067
20337         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
20338         e500v2 target.
20339
20340 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
20341
20342         PR plugins/44459
20343         * gcc-plugin.h: Encapsulate all declarations in extern "C".
20344
20345 2010-06-08  Jan Hubicka  <jh@suse.cz>
20346
20347         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
20348         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
20349
20350 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
20351
20352         PR tree-optimization/39874
20353         PR middle-end/28685
20354         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
20355         Declare.
20356         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
20357         same_bool_result_p): New.
20358         (and_var_with_comparison, and_var_with_comparison_1,
20359         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
20360         (or_var_with_comparison, or_var_with_comparison_1,
20361         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
20362         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
20363         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
20364         of combine_comparisons.
20365         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
20366
20367 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
20368
20369         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20370         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20371         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
20372         pdp11_function_value_regno_p): New functions.
20373         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20374         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20375
20376 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
20377
20378         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
20379         Thumb-2 in the MINUS case.
20380
20381 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20382
20383         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
20384
20385         * doc/gty.texi (GTY Options): Document typed GC allocation and
20386         variable_size GTY option.
20387
20388         * ggc-internal.h: New.
20389
20390         * ggc.h: Update copyright year.
20391         (digit_string): Move to stringpool.c.
20392         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
20393         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
20394         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
20395         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
20396         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
20397         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
20398         (ggc_force_collect, ggc_get_size, ggc_statistics)
20399         (ggc_print_common_statistics): Move to ggc-internal.h.
20400         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
20401         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
20402         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
20403         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
20404         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
20405         (ggc_alloc_zone_pass_stat): Remove.
20406         (ggc_internal_alloc_stat, ggc_internal_alloc)
20407         (ggc_internal_cleared_alloc_stat): New.
20408         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
20409         (ggc_internal_vec_alloc_stat)
20410         (ggc_internal_cleared_vec_alloc_stat)
20411         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
20412         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
20413         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
20414         (ggc_cleared_alloc_ptr_array_two_args): New.
20415         (htab_create_ggc, splay_tree_new_ggc): Redefine.
20416         (ggc_splay_alloc): Change the type of the first argument to
20417         enum gt_types_enum.
20418         (ggc_alloc_string): Make macro.
20419         (ggc_alloc_string_stat): New.
20420         (ggc_strdup): Redefine.
20421         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
20422         (ggc_alloc_rtvec_sized): New.
20423         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
20424         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
20425         (ggc_internal_cleared_alloc_zone_stat)
20426         (ggc_internal_zone_alloc_stat)
20427         (ggc_internal_zone_cleared_alloc_stat)
20428         (ggc_internal_zone_vec_alloc_stat)
20429         (ggc_alloc_zone_rtx_def_stat)
20430         (ggc_alloc_zone_tree_node_stat)
20431         (ggc_alloc_zone_cleared_tree_node_stat)
20432         (ggc_alloc_cleared_gimple_statement_d_stat): New.
20433
20434         * ggc-common.c: Include ggc-internal.h.
20435         (ggc_internal_cleared_alloc_stat): Rename from
20436         ggc_alloc_cleared_stat.
20437         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
20438         (ggc_calloc): Remove.
20439         (ggc_cleared_alloc_htab_ignore_args): New.
20440         (ggc_cleared_alloc_ptr_array_two_args): New.
20441         (ggc_splay_alloc): Add obj_type parameter.
20442         (init_ggc_heuristics): Formatting fixes.
20443
20444         * ggc-none.c: Update copyright year.
20445         (ggc_alloc_stat): Rename to ggc_alloc_stat.
20446         (ggc_alloc_cleared_stat): Rename to
20447         ggc_internal_cleared_alloc_stat.
20448         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20449
20450         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
20451         Remove references to ggc_alloc in comments.
20452         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
20453         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
20454         (new_ggc_zone, destroy_ggc_zone): Remove.
20455         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20456
20457         * ggc-zone.c: Include ggc-internal.h.  Remove references to
20458         ggc_alloc in comments.
20459         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
20460         (ggc_internal_alloc_zone_pass_stat): New.
20461         (ggc_internal_cleared_alloc_zone_stat): New.
20462         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
20463         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
20464         (new_ggc_zone, destroy_ggc_zone): Remove.
20465
20466         * stringpool.c: Update copyright year.  Include ggc-internal.h
20467         (digit_vector): Make static.
20468         (digit_string): Moved from ggc.h.
20469         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
20470         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
20471
20472         * Makefile.in (GGC_INTERNAL_H): New.
20473         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
20474         $(GGC_INTERNAL_H) to dependencies.
20475
20476         * gentype.c: Update copyright year.
20477         (walk_type): Accept variable_size GTY option.
20478         (USED_BY_TYPED_GC_P): New macro.
20479         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
20480         whitespace at the end of strings.
20481         (get_type_specifier, variable_size_p): New functions.
20482         (alloc_quantity, alloc_zone): New enums.
20483         (write_typed_alloc_def): New function.
20484         (write_typed_struct_alloc_def): Likewise.
20485         (write_typed_typed_typedef_alloc_def): Likewise.
20486         (write_typed_alloc_defns): Likewise.
20487         (output_typename, write_splay_tree_allocator_def): Likewise.
20488         (write_splay_tree_allocators): Likewise.
20489         (main): Call write_typed_alloc_defns and
20490         write_splay_tree_allocators.
20491
20492         * lto-streamer.h (lto_file_decl_data_ptr): New.
20493
20494         * passes.c (order): Define using cgraph_node_ptr.
20495
20496         * strinpool.c (struct string_pool_data): Declare nested_ptr using
20497         ht_identifier_ptr.
20498
20499         * gimple.h (union gimple_statement_d): Likewise.
20500
20501         * rtl.h (struct rtx_def): Likewise.
20502         (struct rtvec_def): Likewise.
20503
20504         * tree.h (union tree_node): Likewise.
20505
20506         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
20507
20508         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
20509
20510         * tree-scalar-evolution.c (scev_initialize): Likewise.
20511
20512         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
20513
20514         * dwarf2asm.c (dw2_force_const_mem): Likewise.
20515
20516         * omp-low.c (lower_omp_critical): Likewise.
20517
20518         * bitmap.h (struct bitmap_head_def): Update comment to not
20519         reference ggc_alloc.
20520
20521         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
20522
20523         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
20524
20525         * ipa-prop.c (duplicate_ggc_array): Rename to
20526         duplicate_ipa_jump_func_array.  Use typed GC allocation.
20527         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
20528
20529         * gimple.c (gimple_alloc_stat): Use
20530         ggc_alloc_cleared_gimple_statement_d_stat.
20531
20532         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
20533
20534         * tree.c (make_node_stat): Use
20535         ggc_alloc_zone_cleared_tree_node_stat.
20536         (make_tree_vec_stat): Likewise.
20537         (build_vl_exp_stat): Likewise.
20538         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
20539         (make_tree_binfo_stat): Likewise.
20540         (tree_cons_stat): Likewise.
20541
20542         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
20543         (shallow_copy_rtx_stat): Likewise.
20544         (make_node_stat): Likewise.
20545
20546         * lto-symtab.c: Fix comment.
20547
20548         * tree-cfg.c (create_bb): Update comment to not reference
20549         ggc_alloc_cleared.
20550         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
20551
20552         * varpool.c (varpool_node): Use typed GC allocation.
20553         (varpool_extra_name_alias): Likewise.
20554
20555         * varasm.c (emutls_decl): Likewise.
20556         (get_unnamed_section): Likewise.
20557         (get_noswitch_section): Likewise.
20558         (get_section): Likewise.
20559         (get_block_for_section): Likewise.
20560         (build_constant_desc): Likewise.
20561         (create_constant_pool): Likewise.
20562         (force_const_mem): Likewise.
20563
20564         * tree.c (build_vl_exp_stat): Likewise.
20565         (build_real): Likewise.
20566         (build_string): Likewise.
20567         (decl_debug_expr_insert): Likewise.
20568         (decl_value_expr_insert): Likewise.
20569         (type_hash_add): Likewise.
20570         (build_omp_clause): Likewise.
20571
20572         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
20573
20574         * tree-ssa.c (init_tree_ssa): Likewise.
20575
20576         * tree-ssa-structalias.c (heapvar_insert): Likewise.
20577
20578         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20579
20580         * tree-ssa-loop-niter.c (record_estimate): Likewise.
20581
20582         * tree-ssa-alias.c (get_ptr_info): Likewise.
20583
20584         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20585
20586         * tree-phinodes.c (allocate_phi_node): Likewise.
20587
20588         * tree-iterator.c (tsi_link_before): Likewise.
20589         (tsi_link_after): Likewise.
20590
20591         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20592
20593         * tree-dfa.c (create_var_ann): Likewise.
20594
20595         * tree-cfg.c (create_bb): Likewise.
20596
20597         * toplev.c (alloc_for_identifier_to_locale): Likewise.
20598         (general_init): Likewise.
20599
20600         * stringpool.c (stringpool_ggc_alloc): Likewise.
20601         (gt_pch_save_stringpool): Likewise.
20602
20603         * sese.c (if_region_set_false_region): Likewise.
20604
20605         * passes.c (do_per_function_toporder): Likewise.
20606
20607         * optabs.c (set_optab_libfunc): Likewise.
20608         (set_conv_libfunc): Likewise.
20609
20610         * lto-symtab.c (lto_symtab_register_decl): Likewise.
20611
20612         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20613         (input_eh_region): Likewise.
20614         (input_eh_lp): Likewise.
20615         (make_new_block): Likewise.
20616         (unpack_ts_real_cst_value_fields): Likewise.
20617
20618         * lto-section-in.c (lto_new_in_decl_state): Likewise.
20619
20620         * lto-cgraph.c (input_node_opt_summary): Likewise.
20621
20622         * loop-init.c (loop_optimizer_init): Likewise.
20623
20624         * lambda.h (lambda_vector_new): Likewise.
20625
20626         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20627
20628         * ira.c (update_equiv_regs): Likewise.
20629
20630         * ipa.c (cgraph_node_set_new): Likewise.
20631         (cgraph_node_set_add): Likewise.
20632         (varpool_node_set_new): Likewise.
20633         (varpool_node_set_add): Likewise.
20634
20635         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
20636         (duplicate_ipa_jump_func_array): Likewise.
20637         (ipa_read_node_info): Likewise.
20638
20639         * ipa-cp.c (ipcp_create_replace_map): Likewise.
20640
20641         * integrate.c (get_hard_reg_initial_val): Likewise.
20642
20643         * gimple.c (gimple_alloc_stat): Likewise.
20644         (gimple_build_omp_for): Likewise.
20645         (gimple_seq_alloc): Likewise.
20646         (gimple_copy): Likewise.
20647
20648         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
20649         (gsi_insert_after_without_update): Likewise.
20650
20651         * function.c (add_frame_space): Likewise.
20652         (insert_temp_slot_address): Likewise.
20653         (assign_stack_temp_for_type): Likewise.
20654         (allocate_struct_function): Likewise.
20655         (types_used_by_var_decl_insert): Likewise.
20656
20657         * except.c (init_eh_for_function): Likewise.
20658         (gen_eh_region): Likewise.
20659         (gen_eh_region_catch): Likewise.
20660         (gen_eh_landing_pad): Likewise.
20661         (add_call_site): Likewise.
20662
20663         * emit-rtl.c (get_mem_attrs): Likewise.
20664         (get_reg_attrs): Likewise.
20665         (start_sequence): Likewise.
20666         (init_emit): Likewise.
20667
20668         * dwarf2out.c (new_cfi): Likewise.
20669         (queue_reg_save): Likewise.
20670         (dwarf2out_frame_init): Likewise.
20671         (new_loc_descr): Likewise.
20672         (find_AT_string): Likewise.
20673         (new_die): Likewise.
20674         (add_var_loc_to_decl): Likewise.
20675         (clone_die): Likewise.
20676         (clone_as_declaration): Likewise.
20677         (break_out_comdat_types): Likewise.
20678         (new_loc_list): Likewise.
20679         (loc_descriptor): Likewise.
20680         (add_loc_descr_to_each): Likewise.
20681         (add_const_value_attribute): Likewise.
20682         (tree_add_const_value_attribute): Likewise.
20683         (add_comp_dir_attribute): Likewise.
20684         (add_name_and_src_coords_attributes): Likewise.
20685         (lookup_filename): Likewise.
20686         (store_vcall_insn): Likewise.
20687         (dwarf2out_init): Likewise.
20688
20689         * dbxout.c (dbxout_init): Likewise.
20690
20691         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20692
20693         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20694
20695         * config/score/score7.c (score7_output_external): Likewise.
20696
20697         * config/score/score3.c (score3_output_external): Likewise.
20698
20699         * config/s390/s390.c (s390_init_machine_status): Likewise.
20700
20701         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20702         (rs6000_init_machine_status): Likewise.
20703         (output_toc): Likewise.
20704
20705         * config/pa/pa.c (pa_init_machine_status): Likewise.
20706         (get_deferred_plabel): Likewise.
20707
20708         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20709
20710         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20711
20712         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20713
20714         * config/mep/mep.c (mep_init_machine_status): Likewise.
20715         (mep_note_pragma_flag): Likewise.
20716
20717         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20718
20719         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20720
20721         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20722
20723         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20724         (i386_pe_maybe_record_exported_symbol): Likewise.
20725
20726         * config/i386/i386.c (get_dllimport_decl): Likewise.
20727         (ix86_init_machine_status): Likewise.
20728         (assign_386_stack_local): Likewise.
20729
20730         * config/frv/frv.c (frv_init_machine_status): Likewise.
20731
20732         * config/darwin.c (machopic_indirection_name): Likewise.
20733
20734         * config/cris/cris.c (cris_init_machine_status): Likewise.
20735
20736         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20737
20738         * config/avr/avr.c (avr_init_machine_status): Likewise.
20739
20740         * config/arm/arm.c (arm_init_machine_status): Likewise.
20741
20742         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20743         (alpha_need_linkage): Likewise.
20744         (alpha_use_linkage): Likewise.
20745
20746         * cgraph.c (cgraph_allocate_node): Likewise.
20747         (cgraph_create_edge_1): Likewise.
20748         (cgraph_create_indirect_edge): Likewise.
20749         (cgraph_add_asm_node): Likewise.
20750
20751         * cfgrtl.c (init_rtl_bb_info): Likewise.
20752
20753         * cfgloop.c (alloc_loop): Likewise.
20754         (rescan_loop_exit): Likewise.
20755
20756         * cfg.c (init_flow): Likewise.
20757         (alloc_block): Likewise.
20758         (unchecked_make_edge): Likewise.
20759
20760         * c-parser.c (c_parse_init): Likewise.
20761         (c_parse_file): Likewise.
20762
20763         * c-decl.c (bind): Likewise.
20764         (record_inline_static): Likewise.
20765         (push_scope): Likewise.
20766         (make_label): Likewise.
20767         (lookup_label_for_goto): Likewise.
20768         (finish_struct): Likewise.
20769         (finish_enum): Likewise.
20770         (c_push_function_context): Likewise.
20771
20772         * bitmap.c (bitmap_element_allocate): Likewise.
20773         (bitmap_gc_alloc_stat): Likewise.
20774
20775         * alias.c (record_alias_subset): Likewise.
20776         (init_alias_analysis): Likewise.
20777
20778 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
20779
20780         * fold-const.c (fold_comparison): Remove redundant parenthesis.
20781         * tree-inline.c (expand_call_inline): Pass translated return value of
20782         cgraph_inline_failed_string to diagnostic function.
20783
20784 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
20785             Shujing Zhao  <pearly.zhao@oracle.com>
20786
20787         PR c/37724
20788         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
20789         implicit bad conversions is initialization.
20790         (error_init): Use gmsgid instead of msgid for argument name and change
20791         the call for error.
20792         (pedwarn_init): Use gmsgid instead of msgid for argument name and
20793         change the call for pedwarn.
20794         (warning_init): Use gmsgid instead of msgid for argument name and
20795         change the call for warning.
20796
20797 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
20798
20799         * config/mips/mips-protos.h (mips_print_operand): Delete.
20800         (mips_print_operand_address): Delete.
20801         * config/mips/mips.h (mips_print_operand_punct): Delete.
20802         (PRINT_OPERAND): Delete.
20803         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20804         (PRINT_OPERAND_ADDRESS): Delete.
20805         * config/mips/mips.c (mips_print_operand_punct): Make static.
20806         (mips_print_operand_address): Make static.
20807         (mips_print_operand): Make static.  Call
20808         mips_print_operand_punct_valid_p.
20809         (mips_print_operand_punct_valid_p): New function.
20810         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20811         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20812
20813 2010-06-07  Jan Hubicka  <jh@suse.cz>
20814
20815         PR middle-end/44454
20816         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
20817         are allocated.
20818
20819 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
20820
20821         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
20822         name of RECORD.
20823
20824 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20825
20826         * doc/sourcebuild.texi (Effective-Target Keywords, Other
20827         attributes): Document gas.
20828
20829 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
20830
20831         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
20832         <TYPE_LEA>: Split instruction.
20833         <default>: Remove alternative 2 handling.
20834         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
20835         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
20836         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
20837
20838         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
20839         (ashift_zext lea splitter): Use DImode for multiplication.
20840
20841         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
20842         to generate addition.
20843
20844 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
20845
20846         * common.opt (fira-verbose): Use Var.
20847         (fpcc-struct-return): Use Init instead of VarExists.
20848         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
20849         toplev.c.
20850         * flags.h (flag_signed_char, flag_short_enums,
20851         flag_pcc_struct_return, flag_ira_verbose,
20852         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
20853         * toplev.c (flag_detailed_statistics, flag_signed_char,
20854         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
20855         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
20856         * toplev.h (flag_crossjumping, flag_if_conversion,
20857         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
20858         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
20859         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
20860         flag_cprop_registers, time_report, flag_ira_loop_pressure,
20861         flag_ira_coalesce, flag_ira_move_spills,
20862         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
20863
20864 2010-06-07  Jan Hubicka  <jh@suse.cz>
20865
20866         * df-core.c (df_analyze_problem): Do verification after allocation.
20867
20868         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
20869         (df_lr_alloc): Initialize problem data; move bitmaps to
20870         lr_bitmaps obstack.
20871         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
20872         (df_lr_verify_solution_start): Do not initialize problem data;
20873         allocate bitmaps in lr_bitmaps.
20874         (df_lr_verify_solution_end): Do not free problem data.
20875
20876 2010-06-07  Jan Hubicka  <jh@suse.cz>
20877
20878         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
20879         if caller is noreturn.
20880         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
20881         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
20882         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
20883         * ipa-pure-const.c (check_decl): Add IPA parameter.
20884         (state_from_flags): New function.
20885         (better_state, worse_state): New functions.
20886         (check_call): When in IPA mode, do not care about callees.
20887         (check_load, check_store): Update.
20888         (check_ipa_load, check_ipa_store): New.
20889         (check_stmt): When in IPA mode, use IPA checkers.
20890         (analyze_function): Use state_from_flags.
20891         (propagate): Check indirect edges and references.
20892
20893 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
20894
20895         PR rtl-optimization/44404
20896         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
20897         of count_occurrences to see if it's safe to modify mem_insn.
20898
20899 2010-06-07  Richard Guenther  <rguenther@suse.de>
20900
20901         * gimplify.c (gimplify_cleanup_point_expr): For empty body
20902         and EH-only cleanup drop the cleanup instead of inserting it
20903         unconditionally.
20904
20905 2010-06-07  Ira Rosen  <irar@il.ibm.com>
20906
20907         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
20908         documentation.
20909         * targhooks.c (default_builtin_vectorization_cost): New function.
20910         * targhooks.h (default_builtin_vectorization_cost): Declare.
20911         * target.h (enum vect_cost_for_stmt): Define.
20912         (builtin_vectorization_cost): Change argument and comment.
20913         * tree-vectorizer.h: Remove cost model macros.
20914         * tree-vect-loop.c: Include target.h.
20915         (vect_get_cost): New function.
20916         (vect_estimate_min_profitable_iters): Replace cost model macros with
20917         calls to vect_get_cost.
20918         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
20919         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
20920         default implementation.
20921         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
20922         calls to target hook builtin_vectorization_cost.
20923         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
20924         Likewise.
20925         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
20926         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
20927         implementation to return costs.
20928         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
20929         * config/spu/spu.h: Remove vectorizer cost model macros.
20930         * config/i386/i386.h: Likewise.
20931         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
20932         a call to target hook builtin_vectorization_cost.
20933
20934 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
20935
20936         PR target/44319
20937         * config/i386/i386.c (override_options): Turn zee pass on for level 2
20938         and above and defer till target is known.
20939         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
20940         turn off otherwise.
20941
20942 2010-05-25  Jan Hubicka  <jh@suse.cz>
20943
20944         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
20945         (df_compact_blocks): Likewise.
20946         * df.h (struct df): Turn hardware_regs_used,
20947         regular_block_artificial_uses, eh_block_artificial_uses,
20948         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
20949         bitmap_head.
20950         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
20951         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
20952         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
20953         df_scan_blocks, df_insn_delete, df_insn_rescan,
20954         df_insn_rescan_debug_internal, df_insn_rescan_all,
20955         df_process_deferred_rescans, df_process_deferred_rescans,
20956         df_notes_rescan, df_get_call_refs, df_get_call_refs,
20957         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
20958         df_record_entry_block_defs, df_record_exit_block_uses,
20959         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
20960         df_scan_verify): Update.
20961
20962 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
20963
20964         PR c++/44188
20965         * c-common.c (is_typedef_decl): Move this definition ...
20966         * tree.c (is_typedef_decl): ... here.
20967         (typdef_variant_p): Move definition here from cp/tree.c.
20968         * c-common.h (is_typedef_decl): Move this declaration ...
20969         * tree.h (is_typedef_decl): ... here.
20970         (typedef_variant_p): Move declaration here from cp/cp-tree.h
20971         * dwarf2out.c (is_naming_typedef_decl): New function.
20972         (gen_tagged_type_die): Split out of ...
20973         (gen_type_die_with_usage): ... this function. When an anonymous
20974         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20975         is emitted for the typedef.
20976         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20977         anonymous tagged types.
20978
20979 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20980
20981         PR c/20000
20982         * c-decl.c (grokdeclarator): Delete warning.
20983
20984 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
20985
20986         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
20987         newly built CALL_EXPR.
20988         * tree-profile.c (tree_profiling): Don't profile functions produced
20989         for built-in stuff.
20990
20991 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
20992
20993         PR bootstrap/44427
20994         PR bootstrap/44428
20995         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
20996         endianness-independent.
20997
20998 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
20999
21000         * c-common.c: Move to c-family/.
21001         * c-common.def: Likewise.
21002         * c-common.h: Likewise.
21003         * c-cppbuiltin.c: Likewise.
21004         * c-dump.c: Likewise.
21005         * c-format.c: Likewise.
21006         * c-format.h : Likewise.
21007         * c-gimplify.c: Likewise.
21008         * c-lex.c: Likewise.
21009         * c-omp.c: Likewise.
21010         * c.opt: Likewise.
21011         * c-opts.c: Likewise.
21012         * c-pch.c: Likewise.
21013         * c-ppoutput.c: Likewise.
21014         * c-pragma.c: Likewise.
21015         * c-pragma.h: Likewise.
21016         * c-pretty-print.c: Likewise.
21017         * c-pretty-print.h: Likewise.
21018         * c-semantics.c: Likewise.
21019         * stub-objc.c: Likewise.
21020
21021         * gengtype.c (get_file_langdir): Special-case files in c-family/.
21022         (get_output_file_with_visibility): Fix name for c-common.h.
21023         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
21024
21025         * c-tree.h: Update include path for moved files.
21026         * c-lang.c: Likewise.
21027         * c-lang.h: Likewise.
21028         * c-parser.c: Likewise.
21029         * c-convert.c: Likewise.
21030         * c-decl.c: Likewise.
21031         * c-objc-common.c: Likewise.
21032         * configure.ac: Make sure c-family/ exists in the build directory.
21033         * configure: Regenerate.
21034         * Makefile.in: Update paths for moved files.  Regroup files per
21035         location and update dependencies.  Move generated_files down after
21036         ALL_GTFILES_H.
21037
21038         * config/spu/spu-c.c: Update paths for moved files.
21039         * config/mep/mep-pragma.c: Likewise.
21040         * config/darwin-c.c: Likewise.
21041         * config/i386/msformat-c.c: Likewise.
21042         * config/i386/i386-c.c: Likewise.
21043         * config/avr/avr-c.c: Likewise.
21044         * config/sol2-c.c: Likewise.
21045         * config/ia64/ia64-c.c: Likewise.
21046         * config/rs6000/rs6000-c.c: Likewise.
21047         * config/arm/arm.c: Likewise.
21048         * config/arm/arm-c.c: Likewise.
21049         * config/h8300/h8300.c: Likewise.
21050         * config/v850/v850-c.c: Likewise.
21051
21052         * config/t-darwin: Fix dependencies for moved files.
21053         * config/t-sol2: Fix dependencies for moved files.
21054         * config/mep/t-mep: Fix dependencies for moved files.
21055         * config/ia64/t-ia64: Fix dependencies for moved files.
21056         * config/rs6000/t-rs6000: Fix dependencies for moved files.
21057         * config/v850/t-v850: Fix dependencies for moved files.
21058         * config/v850/t-v850e: Fix dependencies for moved files.
21059
21060         * config/m32c/m32c-pragma.c
21061
21062         * po/exgettext: Look in c-family/ also.
21063
21064 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
21065
21066         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
21067         (mark_control_dependent_edges_necessary): Call it instead of marking
21068         the last statement manually.
21069         (propagate_necessity): Likewise.
21070
21071 2010-06-05  Jan Hubicka  <jh@suse.cz>
21072
21073         * basic-block.h (compute_dominance_frontiers): Updated.
21074         (compute_idf): Likewise.
21075
21076         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
21077         for dominance frontiers.
21078         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
21079         (insert_updated_phi_nodes_for): Likewise.
21080         (update_ssa): Likewise.
21081         * cfganal.c (compute_dominance_frontiers_1): Likewise.
21082         (compute_dominance_frontiers): Likewise.
21083         (compute_idf): Likewise.
21084         * df-problems.c (df_md_local_compute): Likewise.
21085
21086 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
21087
21088         * target.h (struct gcc_target): Add memory_move_cost field.
21089         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
21090         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
21091         * targhooks.c (default_memory_move_cost): New function.
21092         * targhooks.h (default_memory_move_cost): Declare function.
21093         * reload.h (memory_move_cost): Declare.
21094         (memory_move_secondary_cost): Change type of 'in' argument to bool.
21095         * reginfo.c (memory_move_cost): New function.
21096         (memory_move_secondary_cost): Change type of 'in' argument to bool.
21097         * ira.h (ira_memory_move_cost): Update comment.
21098         * ira.c (ira_memory_move_cost): Update comment.
21099         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
21100         with memory_move_cost.
21101         * postreload.c (reload_cse_simplify_set): (Ditto.).
21102         * reload1.c (choose_reload_regs): (Ditto.).
21103         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
21104         (MEMORY_MOVE_COST):  Revise documentation.
21105
21106         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21107         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21108         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
21109         type of 'in' argument to bool.
21110         (TARGET_MEMORY_MOVE_COST): Define.
21111
21112 2010-06-05  Jan Hubicka  <jh@suse.cz>
21113
21114         * ipa-pure-const.c (propagate): Fix typo in handling of functions
21115         that cannot return.  Be more careful when merging the results with
21116         previously known ones.
21117
21118 2010-06-05  Matthias Klose  <doko@ubuntu.com>
21119
21120         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
21121         function to add the -iplugindir option.
21122         (find_plugindir_spec_function): Add new declaration and function.
21123         (static_spec_func): Use it for "find-plugindir".
21124
21125 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
21126
21127         PR c++/44361
21128         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
21129         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
21130         statement expression.
21131
21132 2010-06-05  Jan Hubicka  <jh@suse.cz>
21133
21134         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
21135         (df_rd_problem_data): Convert sparse_invalidated_by_call,
21136         dense_invalidated_by_call to bitmap head.
21137         (df_rd_alloc, df_rd_bb_local_compute_process_def,
21138         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
21139         df_rd_start_dump, df_lr_verify_transfer_functions,
21140         df_live_verify_transfer_functions, df_chain_create_bb,
21141         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
21142         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
21143         df_simulate_one_insn_forwards, df_md_alloc,
21144         df_md_bb_local_compute_process_def,
21145         df_md_bb_local_compute_process_def, df_md_local_compute,
21146         df_md_transfer_function df_md_free): Update.
21147
21148 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
21149
21150         PR c/44322
21151         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
21152         target type for ADDR_EXPR; require no changes to qualifiers except
21153         for function types.
21154         * c-tree.h (c_build_type_variant): Remove.
21155
21156 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
21157
21158         * genautomata.c (get_excl_set): Do work per element, not per char.
21159         (check_presence_pattern_sets): Similar.
21160         (check_absence_pattern_sets): Similar.
21161
21162 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
21163
21164         * genautomata.c (curr_state_pass_num): Delete.
21165         (min_issue_delay_pass_states): Delete.
21166         (min_issue_delay): Delete.
21167         (initiate_min_issue_delay_pass_states): Delete.
21168         (output_min_issue_delay_table): Compute min_issue_delay_vect
21169         using a breadth-first search variant.
21170         (output_tables): Don't call initiate_min_issue_delay_pass_states.
21171
21172 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
21173
21174         PR boostrap/44421
21175         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
21176         (df_byte_lr_bb_local_compute): Likewise.
21177
21178 2010-06-03  Jason Merrill  <jason@redhat.com>
21179
21180         Implement noexcept operator (5.3.7)
21181         * c-common.c (c_common_reswords): Add noexcept.
21182         * c-common.h (enum rid): Add RID_NOEXCEPT.
21183
21184 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
21185
21186         * config/darwin-driver.c (darwin_default_min_version): Use
21187         GCC-specific formats in diagnostics.
21188         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
21189         diagnostics.
21190         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
21191         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
21192         eval_spec_function, handle_braces, process_brace_body, main,
21193         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
21194         getenv_spec_function, compare_version_strings,
21195         version_compare_spec_function): Use GCC-specific formats in
21196         diagnostics.
21197
21198 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21199
21200         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
21201         that operand 0 and operand 1 are equal.
21202         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
21203         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
21204         and operand 1 are equal.
21205         <default>: Ditto.  Remove ??? comment.
21206         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
21207         and operand 1 are equal.
21208         <default>: Ditto.  Remove ??? comment.
21209         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
21210         are equal.
21211         (*add<mode>_4) <default>: Ditto.
21212         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
21213
21214 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
21215
21216         * config/i386/i386-protos.h (ix86_print_operand): Declare.
21217         * config/i386/i386.c (ix86_print_operand): Make non-static.
21218         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
21219         * output.h (output_operand): Declare.
21220         * final.c (output_operand): Make non-static.
21221
21222 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
21223
21224         PR rtl-optimization/44013
21225         * sched-deps.c (add_dependence_list_and_free): Don't free lists
21226         when processing debug insns.
21227
21228         PR debug/41371
21229         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
21230         recursing.  Check that recursion is bounded.  Rename inner var
21231         to avoid hiding incoming argument.
21232
21233 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21234
21235         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
21236         operands[2] == 255.
21237         (*addqi_3): Ditto.
21238         (*addqi_4): Ditto.
21239         (*addqi_5): Ditto.
21240         (*addqi_ext_1_rex64): Ditto.
21241         (*addqi_ext_1): Ditto.
21242
21243         (*addqi_4): Check for incdec_operand in QImode.
21244
21245         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
21246         using SWI mode iterator.
21247         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
21248         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
21249         mode iterator.
21250         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
21251         using SWI mode iterator.
21252
21253 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21254
21255         PR c/25880
21256         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
21257         * c-format.c (gcc_diag_flag_specs): Add hash.
21258         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
21259         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
21260         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
21261         pp_c_cv_qualifiers. Handle qualifiers spelling here.
21262         (pp_c_type_qualifier_list): Call the function above.
21263         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
21264         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
21265         (WARN_FOR_QUALIFIERS): New macro.
21266         (convert_for_assignment): Use it.
21267
21268 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
21269
21270         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
21271
21272 2010-06-04  Jan Hubicka  <jh@suse.cz>
21273
21274         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
21275         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
21276         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
21277         DF_BYTE_LR_OUT): Update for embedded bitmaps.
21278         * fwprop.c (single_def_use_enter_block): Likewise.
21279         * ddg.c (create_ddg_dep_from_intra_loop_link,
21280         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
21281         * loop-iv.c (latch_dominating_def): Likewise.
21282         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
21283         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
21284         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
21285         df_rd_transfer_function, df_rd_top_dump,
21286         df_rd_bottom_dump): Update.
21287         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
21288         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
21289         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
21290         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
21291         df_lr_verify_solution_start, df_lr_verify_solution_end,
21292         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
21293         df_live_free_bb_info, df_live_alloc, df_live_reset,
21294         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
21295         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
21296         df_live_verify_solution_start, df_live_verify_solution_end,
21297         df_live_verify_transfer_functions, df_chain_create_bb,
21298         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
21299         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21300         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21301         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
21302         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
21303         df_byte_lr_transfer_function, df_byte_lr_top_dump,
21304         df_byte_lr_bottom_dump, df_create_unused_note,
21305         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
21306         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
21307         df_md_transfer_function, df_md_init, df_md_confluence_0,
21308         df_md_confluence_n,
21309         df_md_top_dump, df_md_bottom_dump): Update.
21310         (struct df_lr_problem_data): Embedd bitmap headers.
21311
21312 2010-06-04  Jan Hubicka  <jh@suse.cz>
21313
21314         * dce.c (dce_process_block): Do not re-scan already marked
21315         instructions.
21316
21317 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
21318
21319         PR rtl-optimization/39871
21320         PR rtl-optimization/40615
21321         PR rtl-optimization/42500
21322         PR rtl-optimization/42502
21323         * ira.c (init_reg_equiv_memory_loc: New function.
21324         (ira): Call it twice.
21325         * reload.h (calculate_elim_costs_all_insns): Declare.
21326         * ira-costs.c: Include "reload.h".
21327         (regno_equiv_gains): New static variable.
21328         (init_costs): Allocate it.
21329         (finish_costs): Free it.
21330         (ira_costs): Call calculate_elim_costs_all_insns.
21331         (find_costs_and_classes): Take estimated elimination costs
21332         into account.
21333         (ira_adjust_equiv_reg_cost): New function.
21334         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
21335         * reload1.c (init_eliminable_invariants, free_reg_equiv,
21336         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
21337         (elim_bb): New static variable.
21338         (reload): Move code out of here into init_eliminable_invariants and
21339         free_reg_equiv.  Call them.
21340         (calculate_elim_costs_all_insns): New function.
21341         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
21342         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
21343         but call note_reg_elim_costly if we turned a valid memory address
21344         into an invalid one.
21345         * Makefile.in (ira-costs.o): Depend on reload.h.
21346
21347 2010-06-04  Julian Brown  <julian@codesourcery.com>
21348
21349         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
21350         for pool ranges.
21351
21352 2010-06-04  Richard Guenther  <rguenther@suse.de>
21353
21354         PR lto/41584
21355         * cgraph.h (struct varpool_node): Add lto_file_data field.
21356         * lto-cgraph.c (input_varpool_node): Initialize it.
21357
21358 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21359
21360         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
21361         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
21362         predicate in "type" attribute calculation.
21363         (*addsi_1_zext): Ditto.
21364         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
21365         (*addsi_2_zext): Ditto.
21366         (*add<mode>_3): Ditto.
21367         (*addsi_3_zext): Ditto.
21368         (*add<mode>_5): Ditto.
21369
21370 2010-06-03  Jan Hubicka  <jh@suse.cz>
21371
21372         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
21373         of bitmap_bit_p.
21374         * cfganal.c (compute_dominance_frontiers_1): Likewise.
21375
21376 2010-06-03  Jan Hubicka  <jh@suse.cz>
21377
21378         * df-problems.c (df_create_unused_note, df_note_bb_compute):
21379         micro-optimize the checks when to add new note.
21380
21381 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
21382
21383         * final.c (output_asm_insn): Call
21384         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
21385         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
21386         (output_address): Call targetm.asm_out.print_operand_address.
21387         Update comments.
21388         * target.h (struct gcc_target): Add print_operand,
21389         print_operand_address, and print_operand_punct_valid_p fields.
21390         * targhooks.h (default_print_operand): Declare.
21391         (default_print_operand_address): Declare.
21392         (default_print_operand_punct_valid_p): Declare.
21393         * targhooks.c (default_print_operand): Define.
21394         (default_print_operand_address): Define.
21395         (default_print_operand_punct_valid_p): Define.
21396         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
21397         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
21398         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
21399         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
21400         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
21401         * vmsdbgout.c (addr_const_to_string): Update comment.
21402         * config/i386/i386.c (print_operand): Rename to...
21403         (ix86_print_operand): ...this.  Make static.
21404         (print_operand_address): Rename to...
21405         (ix86_print_operand_address): ...this.  Make static.  Call
21406         ix86_print_operand instead of PRINT_OPERAND.
21407         (ix86_print_operand_punct_valid_p): New function.
21408         (TARGET_PRINT_OPERAND): Define.
21409         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21410         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21411         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
21412         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21413         (PRINT_OPERAND): Delete.
21414         (PRINT_OPERAND_ADDRESS): Delete.
21415         * config/i386/i386-protos.h (print_operand): Delete prototype.
21416         (print_operand_address): Delete prototype.
21417
21418 2010-06-03  Richard Guenther  <rguenther@suse.de>
21419
21420         PR tree-optimization/44403
21421         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21422         Preserve pointer qualifiers.
21423         (vect_create_data_ref_ptr): Likewise.
21424
21425 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
21426
21427         PR c++/44294
21428         * defaults.h (MAX_FIXED_MODE_SIZE): New.
21429
21430         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
21431
21432 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
21433
21434         PR debug/44375
21435         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
21436         return false if merging the bbs would lead to goto_locus
21437         location being lost from the IL.
21438
21439 2010-06-03  Jan Hubicka  <jh@suse.cz>
21440             Jakub Jelinek  <jakub@redhat.com>
21441
21442         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
21443         set->regs[i] is NULL or has just one entry.
21444
21445 2010-06-03  Jan Hubicka  <jh@suse.cz>
21446
21447         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
21448         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
21449
21450 2010-06-03  Paul Brook  <paul@codesourcery.com>
21451
21452         * config/arm/arm.c (FL_TUNE): Define.
21453         (arm_default_cpu, arm_cpu_select): Remove.
21454         (all_cores): Populate core field.
21455         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
21456         (arm_find_cpu): New function.
21457         (arm_handle_option): Lookup cpu/architecture names.
21458         (arm_override_options): Cleanup mcpu/march/mtune handling.
21459         (arm_file_start): Ditto.
21460
21461 2010-06-03  Alan Modra  <amodra@gmail.com>
21462
21463         PR target/44169
21464         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
21465         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
21466         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
21467         (rs6000_emit_load_toc_table): Likewise.
21468
21469 2010-06-02  Jan Hubicka  <jh@suse.cz>
21470
21471         * passes.c (init_optimization_passes): Put ipa reference
21472         after ipa pure-const.
21473
21474 2010-06-02  Jan Hubicka  <jh@suse.cz>
21475
21476         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
21477         calls_read_all and calls_write_all.
21478         (get_reference_optimization_summary): Fix formatting.
21479         (is_proper_for_analysis): Check that decl is not readonly.
21480         (propagate_bits): Check CONST/PURE/noreturn flags.
21481         (ipa_init): Move all_module_statics to optimization_summary_obstack.
21482         (analyze_function): Ignore indirect edges.
21483         (copy_global_bitmap): For all module statics, do nothing.
21484         (generate_summary): Do not print calls_read_all/calls_write_all.
21485         (read_write_all_from_decl): Take node as argument; check
21486         cgraph_node_cannot_return.
21487         (propagate): Reorganize read_all/write_all computation;
21488         check indirect edges; check ecf flags; use all_module_statics
21489         in the results; do not free all_module_statics.
21490         (stream_out_bitmap): Handle all_module_statics.
21491         (ipa_reference_write_optimization_summary): Likewise; use
21492         varpool/cgraph encoders to get boundaries.
21493         (ipa_reference_read_optimization_summary): Read in all_module_statics;
21494         use it when possible.
21495
21496 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21497
21498         PR target/44218
21499         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
21500         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
21501
21502         * doc/extend.texi (powerpc builtins): Document vec_recip,
21503         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
21504
21505         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
21506         (rs6000_emit_swrsqrt): Ditto.
21507         (rs6000_emit_swdivsf): Delete.
21508         (rs6000_emit_swdivdf): Ditto.
21509         (rs6000_emit_swrsqrtsf): Ditto.
21510
21511         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
21512         describe the reciprocal estimate support for each type.
21513         (recip_options): Map -mrecip=<opt> into option bits.
21514         (gen_2arg_fn_t): New typedef for binary rtx gen function.
21515         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
21516         reciprocal estimate instructions.
21517         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
21518         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
21519         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
21520         cost information if -mdebug=cost or -mdebug=reg.
21521         (rs6000_override_options): Set -mrecip-precision for power6, and
21522         power7 machines.  If -mvsx or -mdfp, enable various options that
21523         came in previous instruction set ISAs, unless the option was
21524         explicitly disabled by the command line option.  Parse
21525         -mrecip=<opt> options.
21526         (rs6000_builtin_vectorized_function): Add support for vectorizing
21527         the reciprocal estimate builtins and expansions.
21528         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
21529         (bdesc_2arg): Add reciprocal estimate builtins.
21530         (bdesc_1arg): Add reciprocal square root estimate builtins.
21531         (rs6000_expand_builtin): Rewrite to use a switch statement,
21532         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
21533         (rs6000_init_builtins): Create declarations for reciprocal
21534         estimate builtins.
21535         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
21536         sized, prefer traditional floating point registers, if integer
21537         vector types, prefer altivec registers.  Don't actually look at
21538         the memory address any more.
21539         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
21540         builtins.
21541         (rs6000_load_constant_and_splat): New helper function to load up
21542         the constant for reciprocal estimate instructions.
21543         (rs6000_emit_madd): New helper function for generating
21544         multiply/add type instructions, based on the current switches.
21545         (rs6000_emit_msub): Ditto.
21546         (rs6000_emit_mnsub): Ditto.
21547         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
21548         replace a divide with a reciprocal estimate and fixup, adding
21549         support for machines with high precision and vectors.
21550         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
21551         low precision machines.
21552         (rs6000_emit_swdiv): New common function to be called to replace a
21553         division with reciprocal estimate and fixup.
21554         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
21555         for double and vector types.  Add support for high precision machines.
21556
21557         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
21558         the reciprocal estimate instructions can be generated.
21559         (TARGET_FRE): Ditto.
21560         (TARGET_FRSQRTES): Ditto.
21561         (TARGET_FRSQRTE): Ditto.
21562         (RS6000_RECIP_*): New macros for reciprocal estimate support.
21563
21564         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
21565         square root estimate on vectors.
21566         (re<mode>2): New insn for reciprocal division estimate on vectors.
21567
21568         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
21569         New builtin.
21570         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
21571         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
21572         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
21573         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
21574         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
21575         (RS6000_BUILTIN_RSQRT): Ditto.
21576         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
21577         floating point builtin.
21578
21579         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21580         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
21581         __RECIP_PRECISION__ based on the command line switches.
21582         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
21583
21584         * config/rs6000/rs6000.opt (-mrecip): Document add support for
21585         replacing division instructions with reciprocal estimate and fixup.
21586         (-mrecip=<opt>): New option.
21587         (-mrecip-precision): Ditto.
21588
21589         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
21590         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
21591         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
21592         precision scalar.
21593
21594         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
21595         (UNSPEC_VREFP): Ditto.
21596         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
21597         conterparts with regard to support of -mno-fused-madd and -ffast-math.
21598         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
21599         reciprocal estimate instructions to be generated.
21600         (altivec_vrefp): Ditto.
21601
21602         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
21603         estimate support.
21604         (rreg): New mode attribute for reciprocal estimate support.
21605         (recip<mode>3): New insn for division using reciprocal estimate
21606         and fixup builtins.
21607         (divide define_split): New define_split to convert floating point
21608         division to use reciprocal estimate if the user used the
21609         appropriate options and the split is run when we can add new
21610         pseudo registers for the fixup.
21611         (rsqrt<mode>2): New insn for reciprocal square root support.
21612         (recipsf3): Move into recip<mode>3.
21613         (recipdf3): Ditto.
21614         (fres): Use TARGET_FRES.
21615         (rsqrtsf2): Move into rsqrt<mode>2.
21616         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
21617         (copysignsf3): Add support for VSX.
21618         (fred): Use TARGET_FRE.
21619         (fred_fpr): Ditto.
21620         (rsqrtdf_internal1): New function for frsqrte instruciton.
21621
21622         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
21623         (vec_rsqrt): Ditto.
21624
21625 2010-06-03  Richard Guenther  <rguenther@suse.de>
21626
21627         PR middle-end/44291
21628         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
21629         (set_user_assembler_libfunc): Likewise.
21630
21631 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
21632
21633         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
21634         defaults.h.
21635         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
21636         to defaults.h
21637         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
21638         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
21639         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
21640         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
21641         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
21642         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
21643         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
21644         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
21645         * defaults.h: Updated for above mentioned changes.
21646
21647 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
21648
21649         * c-common.c: Remove header include of tm_p.h.
21650         * Makefile.in (c-common.o): Remove TM_P_H dependency.
21651
21652 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
21653
21654         * tree.h (struct tree_decl_map): New type.
21655         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
21656         (tree_decl_map_hash): New prototype.
21657         (debug_expr_for_decl, value_expr_for_decl): Change into
21658         tree_decl_map hashtab from tree_map.
21659         (init_ttree): Adjust initialization.
21660         (tree_decl_map_hash): New function.
21661         (decl_debug_expr_lookup, decl_debug_expr_insert,
21662         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
21663
21664 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21665
21666         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
21667         linker emulations.
21668         * configure: Regenerate.
21669         * config.in: Regenerate.
21670
21671         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
21672         (X86_64_EMULATION): Define.
21673         (TARGET_LD_EMULATION): Use them.
21674
21675         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
21676         (SPARC64_EMULATION): Define.
21677         (LINK_ARCH_SPEC): Use them.
21678
21679 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
21680
21681         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
21682         smallest_mode_for_size for computing the precision types of new
21683         graphite IVs.  Do not call lang_hooks.types.type_for_size.
21684
21685 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
21686
21687         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
21688         information.
21689         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
21690
21691 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
21692
21693         PR middle-end/44363
21694         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
21695         return false instead.
21696
21697 2010-06-02  Jan Hubicka  <jh@suse.cz>
21698
21699         PR middle-end/44295
21700         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
21701         create new cgraph node to check callee.
21702
21703 2010-06-02  Richard Guenther  <rguenther@suse.de>
21704
21705         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
21706
21707 2010-06-02  Richard Guenther  <rguenther@suse.de>
21708
21709         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
21710         (lto_wrapper_cleanup): ... this.  Do not exit.
21711         (fatal): Adjust.  Exit here.
21712         (fatal_perror): Likewise.
21713         (fatal_signal): New function.
21714         (main): Set up signal handlers to cleanup temporary files.
21715         * Makefile.in (lto-wrapper.o): Adjust dependencies.
21716
21717 2010-06-02  Richard Guenther  <rguenther@suse.de>
21718
21719         PR tree-optimization/44377
21720         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
21721
21722 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21723
21724         * config/s390/2097.md (z10_fhex): Remove insn reservation.
21725         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
21726         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
21727         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
21728         instruction.
21729         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
21730
21731 2010-06-02  Jan Hubicka  <jh@suse.cz>
21732
21733         * bitmap.c (bitmap_descriptor): Add search_iter.
21734         (bitmap_find_bit): Increment it.
21735         (print_statistics): Print it.
21736
21737 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
21738
21739         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
21740         instead of gimple_build_call_vec.  Delete unnecessary local variable.
21741
21742 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
21743
21744         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
21745         change from yesterday.
21746
21747 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
21748
21749         * c-ada-spec.c: Clean up redundant includes.
21750
21751 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
21752
21753         * gimplify.c: Do not include except.h and optabs.h.
21754         (gimplify_body): Do not initialize RTL profiling.
21755         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
21756         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
21757         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
21758         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
21759         langhooks.h.
21760
21761         * tree-pretty-print.h: Include pretty-print.h.
21762         * gimple-pretty-print.h: Include pretty-print.h.
21763
21764         * tree-pretty-print.c: Do not include diagnostic.h.
21765         * tree-vrp.c: Likewise.
21766         * tree-tailcall.c: Likewise
21767         * tree-scalar-evolution.c: Likewise
21768         * tree-ssa-dse.c: Likewise
21769         * tree-chrec.c: Likewise
21770         * tree-ssa-sccvn.c: Likewise
21771         * tree-ssa-copyrename.c: Likewise
21772         * tree-nomudflap.c: Likewise
21773         * tree-call-cdce.c: Likewise
21774         * tree-stdarg.c: Likewise
21775         * tree-ssa-math-opts.c: Likewise
21776         * tree-nrv.c: Likewise
21777         * tree-ssa-sink.c: Likewise
21778         * tree-browser.c: Likewise
21779         * tree-ssa-loop-ivcanon.c: Likewise
21780         * tree-ssa-loop.c: Likewise
21781         * tree-parloops.c: Likewise
21782         * tree-ssa-address.c: Likewise
21783         * tree-ssa-ifcombine.c: Likewise
21784         * tree-if-conv.c: Likewise
21785         * tree-data-ref.c: Likewise
21786         * tree-affine.c: Likewise
21787         * tree-ssa-phiopt.c: Likewise
21788         * tree-ssa-coalesce.c: Likewise
21789         * tree-ssa-pre.c: Likewise
21790         * tree-ssa-live.c: Likewise
21791         * tree-predcom.c: Likewise
21792         * tree-ssa-forwprop.c: Likewise
21793         * tree-ssa-dce.c: Likewise
21794         * tree-ssa-ter.c: Likewise
21795         * tree-ssa-loop-prefetch.c: Likewise
21796         * tree-optimize.c: Likewise
21797         * tree-ssa-phiprop.c: Likewise
21798         * tree-object-size.c: Likewise
21799         * tree-outof-ssa.c: Likewise
21800         * tree-ssa-structalias.c: Likewise
21801         * tree-switch-conversion.c: Likewise
21802         * tree-ssa-reassoc.c: Likewise
21803         * tree-ssa-operands.c: Likewise
21804         * tree-vectorizer.c: Likewise
21805         * tree-vect-data-refs.c: Likewise
21806         * tree-vect-generic.c: Likewise
21807         * tree-vect-stmts.c: Likewise
21808         * tree-vect-patterns.c: Likewise
21809         * tree-vect-slp.c: Likewise
21810         * tree-vect-loop.c: Likewise
21811         * tree-ssa-loop-ivopts.c: Likewise
21812         * tree-ssa-loop-im.c: Likewise
21813         * tree-ssa-loop-niter.c: Likewise
21814         * tree-ssa-loop-unswitch.c: Likewise
21815         * tree-ssa-loop-manip.c: Likewise
21816         * tree-ssa-loop-ch.c: Likewise
21817         * tree-dump.c: Likewise
21818         * tree-complex.c: Likewise
21819
21820         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
21821         * tree-ssa-uninit.c: Likewise
21822         * tree-ssa-threadupdate.c: Likewise
21823         * tree-ssa-uncprop.c: Likewise
21824         * tree-ssa-ccp.c: Likewise
21825         * tree-ssa-dom.c: Likewise
21826         * tree-ssa-propagate.c: Likewise
21827         * tree-ssa-alias.c: Likewise
21828         * tree-dfa.c: Likewise
21829         * tree-cfgcleanup.c: Likewise
21830         * tree-sra.c: Likewise
21831         * tree-ssa-copy.c: Likewise
21832         * tree-ssa.c: Likewise
21833         * tree-profile.c: Likewise
21834         * tree-cfg.c: Likewise
21835         * tree-ssa-threadedge.c: Likewise
21836         * tree-vect-loop-manip.c: Likewise
21837
21838         * tree-inline.c: Do not include diagnostic.h and expr.h.
21839         Include rtl.h.
21840         (copy_decl_for_dup_finish): Do not use NULL_RTX.
21841
21842         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
21843         * tree-loop-distribution.c: Likewise.
21844
21845 2010-06-01  Jan Hubicka  <jh@suse.cz>
21846
21847         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
21848
21849 2010-06-01  Jan Hubicka  <jh@suse.cz>
21850
21851         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
21852         remove return value.
21853         (split_bbs_on_noreturn_calls) .... here.
21854         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
21855         * tree-flow.h (fixup_noreturn_call): New.
21856
21857 2010-06-01  Jan Hubicka  <jh@suse.cz>
21858
21859         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
21860
21861 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
21862
21863         * tree.h (build_nt_call_list): Delete.
21864         * tree.c (build_nt_call_list): Delete.
21865
21866 2010-06-01  Jan Hubicka  <jh@suse.cz>
21867
21868         * fwprop.c: Make emit-rtl.h include last.
21869         * rtlanal.c: Include emit-rtl.h.
21870         * genautomata.c: Output emit-rtl include into insn-automata.c
21871         * df-scan.c: Include emit-rtl.h.
21872         * haifa-sched.c: Indlude emit-rtl.h.
21873         * mode-switching.c: Indlude emit-rtl.h.
21874         * graph.c: Indlude emit-rtl.h.
21875         * sel-sched.c: Include emit-rtl.h.
21876         * sel-sched-ir.c: Include emit-rtl.h.
21877         * ira-build.c: Include emit-rtl.h.
21878         * emit-rtl.c (first_insn, last_insn): Remove defines.
21879         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
21880         Move to emit-rtl.h.
21881         (set_new_first_and_last_insn, get_last_insn_anywhere,
21882         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
21883         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
21884         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
21885         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
21886         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
21887         Use accessor functions.
21888         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21889          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21890         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21891         mem_expr_equal_p): Move here from rtl.h.
21892         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
21893         Move here from emit-rtl.c; make inline.
21894         * cfglayout.h: Include emit-rtl.h.
21895         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21896          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21897         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21898         mem_expr_equal_p, get_insns, set_first-insn,
21899         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
21900         * reg-stack.c: Include emit-rtl.h.
21901         * dce.c: Likewise.
21902
21903 2010-06-01  Jan Hubicka  <jh@suse.cz>
21904
21905         * cgraph.h (tree_function_versioning): Update prototype.
21906         (cgraph_function_versioning): Update prototype.
21907         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
21908         bitmap.
21909         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
21910         (cgraph_materialize_clone, save_inline_function_body): Update use of
21911         tree_function_versioning.
21912         * tree-inline.c (copy_bb): Look for previous copied block to link
21913         after; fix debug output.
21914         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
21915         (copy_body): Likewise.
21916         (expand_call_inline): Update use of copy_body.
21917         (tree_function_versioning): Update use of copy body; accept
21918         blocks_to_copy and new_entry.
21919
21920 2010-06-01  Jan Hubicka  <jh@suse.cz>
21921
21922         * gegenrtl.c: Remove unnecesary prototypes.
21923         (gendecl): Remove.
21924         (gendef): Produce static inline.
21925         (gencode): Remove.
21926         (main): Do not decode parameters; generate header only.
21927         * Makefile.in (genrtl.c): Remove.
21928
21929 2010-06-01  Jan Hubicka  <jh@suse.cz>
21930
21931         * tree-switch-conversion.c (build_one_array): Make it readonly.
21932
21933 2010-06-01  Richard Guenther  <rguenther@suse.de>
21934
21935         * optabs.c (init_optabs): Guard all accesses to reinit.
21936         * ipa-pure-const.c (propagate): Fix another typo.
21937         * opts.c (common_handle_option): Split assignment to bool.
21938         * c-opts.c (c_common_handle_option): Likewise.
21939
21940 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
21941             Matthew Gingell  <gingell@adacore.com>
21942
21943         * doc/invoke.texi: Mention -fdump-ada-spec.
21944         * tree-dump.c (dump_files): Add ada-spec.
21945         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
21946         * tree-pass.h (tree_dump_index): Add TDI_ada.
21947         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
21948         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
21949         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
21950         * c-decl.c: Include c-ada-spec.h.
21951         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
21952         functions.
21953         (c_write_global_declarations): Add handling of -fdump-ada-spec.
21954         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
21955         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
21956         * c-ada-spec.h, c-ada-spec.c: New files.
21957
21958 2010-06-01  Richard Guenther  <rguenther@suse.de>
21959
21960         PR lto/43853
21961         * ipa-pure-const.c (get_function_state): Hand back varying state
21962         if we do not have one.
21963         (has_function_state): New function.
21964         (duplicate_node_data): Adjust.
21965         (remove_node_data): Likewise.
21966         (pure_const_write_summary): Likewise.
21967         (propagate): Likewise.  Fix typo.
21968
21969 2010-06-01  Jan Hubicka  <jh@suse.cz>
21970
21971         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
21972         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
21973         (execute_all_ipa_transforms): Do not play with the states.
21974
21975 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
21976
21977         * config/arm/t-linux-androideabi: New.
21978         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
21979
21980 2010-06-01  Jan Hubicka  <jh@suse.cz>
21981
21982         * tree-inline.c (estimate_num_insns): For stdarg functions look
21983         into call statement to count cost of argument passing.
21984
21985 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
21986
21987         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
21988         argument for fprintf.
21989         (ix86_output_addr_diff_elt): Likewise.
21990         (x86_function_profiler): Likewise.
21991         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
21992         (LPREFIX): Likewise.
21993         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
21994
21995 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
21996
21997         PR target/44338
21998         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
21999         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
22000         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
22001         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
22002         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
22003         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
22004         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
22005         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
22006         TARGET_FUSED_MADD.
22007
22008 2010-05-31  Jan Hubicka  <jh@suse.cz>
22009
22010         * tree.h (tree_range_check_failed): Declare noreturn.
22011
22012 2010-05-31  Jan Hubicka  <jh@suse.cz>
22013
22014         * gimple.c (gimple_call_builtin_p): New function.
22015         * gimple.h (gimple_call_builtin_p): Declare.
22016         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
22017         to exit.
22018         (execute_warn_function_return): BUILT_IN_RETURN is return.
22019         (split_critical_edges): Return edges are not critical.
22020         (is_ctrl_altering_stmt): Builtin_in_return is altering.
22021         (gimple_verify_flow_info): Handle built_in_return.
22022         (execute_warn_function_return): Handle built_in_return.
22023         * ipa-pure-const.c (check_call): Ignore builtin_return.
22024
22025 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
22026
22027         PR middle-end/44337
22028         * expr.c (expand_assignment): Don't store anything for out-of-bounds
22029         array accesses with non-MEM.
22030
22031         PR tree-optimization/44182
22032         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
22033         newly needs to end a bb is followed by debug stmts, instead return
22034         true from the function at the end.
22035         (maybe_move_debug_stmts_to_successors): New function.
22036         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
22037
22038 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
22039
22040         PR target/44161
22041         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
22042
22043 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
22044
22045         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
22046         for nested functions in non-optimized compilation.
22047
22048 2010-05-31  Richard Guenther  <rguenther@suse.de>
22049
22050         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
22051
22052 2010-05-30  Jan Hubicka  <jh@suse.cz>
22053
22054         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
22055
22056 2010-05-30  Richard Guenther  <rguenther@suse.de>
22057
22058         PR lto/42975
22059         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
22060         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
22061         no longer needed.
22062
22063 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
22064
22065         * config/darwin.c (output_objc_section_asm_op): Add comment.
22066         (name_needs_quotes): Add '_' to list of valid comment chars.
22067         (machopic_output_function_base_name): Remove unneeded quotes.
22068         (darwin_encode_section_info): Adjust asm whitespace.
22069         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
22070         (ASM_OUTPUT_LOCAL): Ditto.
22071         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
22072         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
22073         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
22074
22075 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
22076
22077         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
22078         RS6000_OUTPUT_BASENAME unconditionally.
22079         (rs6000_output_function_epilogue): Likewise.
22080
22081 2010-05-30  Jan Hubicka  <jh@suse.cz>
22082
22083         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
22084         nodes.
22085
22086 2010-05-30  Richard Guenther  <rguenther@suse.de>
22087
22088         * tree-cfg.c (verify_gimple_assign_single): Implement
22089         verification for COND_EXPR rhs.
22090
22091 2010-05-30  Jan Hubicka  <jh@suse.cz>
22092
22093         * cgraph.h (cgraph_dump_file): Declare.
22094         * cgraphunit.c (cgraph_dump_file): Export.
22095         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
22096
22097 2010-05-30  Jan Hubicka  <jh@suse.cz>
22098
22099         * dwarf2out.c (reference_to_unused,
22100         premark_types_used_by_global_vars_helper): Avoid creation of new
22101         varpool nodes.
22102
22103 2010-05-30  Jan Hubicka  <jh@suse.cz>
22104
22105         * cgraph.h (cgraph_node_cannot_return,
22106         cgraph_edge_cannot_lead_to_return): New functions.
22107         * cgraph.c (cgraph_node_cannot_return,
22108         cgraph_edge_cannot_lead_to_return): Use them.
22109         * ipa-pure-const.c (pure_const_names): New static var.
22110         (check_call): Handle calls not leading to return.
22111         (pure_const_read_summary): Dump info read.
22112         (propagate): Dump info about propagation process; ignore side effects
22113         of functions not leading to exit; fix handling of pure functions.
22114
22115 2010-05-30  Jan Hubicka  <jh@suse.cz>
22116
22117         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
22118         for tail call epilogues.
22119
22120 2010-05-30  Jan Hubicka  <jh@suse.cz>
22121
22122         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
22123         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
22124         dump files.
22125
22126 2010-05-29  Jan Hubicka  <jh@suse.cz>
22127
22128         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
22129         node; remove references in node we no longer keep in cgrpah but need
22130         body of.
22131
22132 2010-05-29  Jan Hubicka  <jh@suse.cz>
22133
22134         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
22135
22136 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22137
22138         PR target/44165
22139         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
22140
22141 2010-05-29  Jan Hubicka  <jh@suse.cz>
22142
22143         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
22144         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
22145         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
22146         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
22147         debug_names_replaced_by, debug_update_ssa): Likewise.
22148         * sbitmap.c (debug_sbitmap): Likewise.
22149         * genrecog.c (debug_decision, debug_decision_list): Likewise.
22150         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
22151         debug_tree_chain): Likewise.
22152         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
22153         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
22154         * optabs.c (debug_optab_libfuncs): Likewise.
22155         (verify_loop_closed_ssa): Likewise.
22156         * value-prof.c (verify_histograms): Likewise.
22157         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
22158         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
22159         * cfghooks.c (verify_flow_info): Likewise.
22160         * fold-const.c (debug_fold_checksum): Likewise.
22161         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
22162         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
22163         Likewise.
22164         * omega.c (debug_omega_problem): Likewise.
22165         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
22166         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
22167         * dominance.c (verify_dominators, debug_dominance_info,
22168         debug_dominance_tree): Likewise.
22169         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
22170         * df_regno_debug, df_ref_debug,
22171         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
22172         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
22173         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
22174         * sel-sched.c (debug_state): Likewise.
22175         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
22176         Likewise.
22177         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
22178         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
22179         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
22180         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
22181         Likewise.
22182         * c-pretty-print.c (debug_c_tree): Likewise.
22183         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
22184         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
22185         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
22186         * ebitmap.c (debug_ebitmap): Likewise.
22187         * function.c (debug_find_var_in_block_tree): Likewise.
22188         * print-rtl.c (debug_rtx): Likewise.
22189         (debug_rtx_count): Likewise.
22190         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
22191         * stor-layout.c (debug_rli): Likewise.
22192         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
22193         * tree-data-ref.c (debug_data_references,
22194         debug_data_dependence_relations, debug_data_reference,
22195         debug_data_dependence_relation, debug_rdg_vertex,
22196         debug_rdg_component, debug_rdg): Likewise.
22197         * tree-affine.c (debug_aff): Likewise.
22198         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
22199         Likewise.
22200         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
22201         * emit-rtl.c (verify_rtl_sharing): Likewise.
22202         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
22203         debug_value_expressions): Likewise.
22204         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
22205         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
22206         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
22207         * cfglayout.c (verify_insn_chain): Likewise.
22208         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
22209         debug_clast_stmt, debug_generated_program): Likewise.
22210         * ggc-page.c (debug_print_page_list): Likewise.
22211         * tree-ssa-ter.c (debug_ter): Likewise.
22212         * graphite-dependences.c (debug_pddr): Likewise.
22213         * sched-deps.c (debug_ds): Likewise.
22214         * tree-ssa.c (verify_ssa): Likewise.
22215         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
22216         debug_scattering_functions, debug_iteration_domains, debug_pdr,
22217         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
22218         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
22219         * tree-inline.c (debug_find_tree): Likewise.
22220         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
22221         debug_ppl_powerset_matrix): Likewise.
22222         * var-tracking.c (debug_dv): Likewise.
22223         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
22224         * cfgloop.c (verify_loop_structure): Likewise.
22225         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
22226         * c-common.c (verify_sequence_points): Likewise.
22227         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
22228         debug_candidates, debug_rgn_dependencies): Likewise.
22229         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
22230         * debug_constraint_graph, debug_solution_for_var,
22231         debug_sa_points_to_info): Likewise.
22232         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
22233         Likewie.
22234         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
22235         debug_loops, debug_loop, debug_loop_num): Likewise.
22236         * passes.c (debug_pass): Likewise.
22237         (dump_properties): Likewise; add cfglayout property.
22238         (debug_properties): Likewise.
22239         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
22240         * varpool.c (debug_varpool): Likewise.
22241         * regcprop.c (debug_value_data): Likewise.
22242         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
22243         debug_immediate_uses_for): Likewise.
22244
22245 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
22246
22247         PR bootstrap/44315
22248         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
22249         Filter out insn-flags.h.
22250
22251 2010-05-29  Jan Hubicka  <jh@suse.cz>
22252
22253         * cgraph.h (struct varpool_node_set_def,
22254         struct cgraph_node_set_def): Remove unused AUX pointer.
22255         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
22256         VEC_empty macro.
22257
22258 2010-05-29  Jan Hubicka  <jh@suse.cz>
22259
22260         PR middle-end/44324
22261         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
22262
22263 2010-05-29  Richard Guenther  <rguenther@suse.de>
22264
22265         * lto-streamer.c (cached_bp): New global variable.
22266         (bitpack_create): Return the cached bitpack, if available.
22267         (bitpack_delete): Clear and cache the bitpack, if appropriate.
22268         (bp_pack_value): Remove redundant asserts.
22269
22270 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
22271
22272         PR middle-end/44306
22273         * tree-if-conv.c (is_true_predicate): New.
22274         (is_predicated): Use is_true_predicate.
22275         (add_to_predicate_list): Same.  Do not use unshare_expr.
22276         (add_to_dst_predicate_list): Same.
22277
22278 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
22279
22280         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
22281         field on edges.
22282         (predicate_bbs): Same.
22283         (clean_predicate_lists): Same.
22284         (find_phi_replacement_condition): Do not AND the predicate from
22285         edge->aux.
22286
22287 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
22288
22289         PR bootstrap/44315
22290         * Makefile.in (build/gencondmd.o): Add a missing `\'.
22291
22292 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22293
22294         PR target/44261
22295         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
22296         (negdf2): Adjust expander pattern and use negdf2_slow.
22297         (negsf2): Likewise.
22298
22299 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
22300
22301         * basic-block.h (struct control_flow_graph): Move last_label_uid field
22302         up.
22303         * df.h (struct df_base_ref): Move regno field up.
22304         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
22305         * expr.h (struct separate_ops): Move location field up.
22306         * optabs.h (struct optab_d): Move libcall_basename field down.
22307         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
22308         * config/i386/i386.h (struct machine_function): Convert call_abi field
22309         into a bitfield.  Move cfa field to the end of the structure.
22310
22311 2010-05-29  Jan Hubicka  <jh@suse.cz>
22312
22313         * varpool.c (varpool_get_node): Fix lookup.
22314
22315 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22316
22317         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
22318         RTL specific prototypes with #ifdef RTX_CODE.
22319         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
22320         * config/spu/t-spu-elf: Fix dependencies.
22321
22322         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
22323
22324 2010-05-29  Mike Stump  <mikestump@comcast.net>
22325
22326         PR bootstrap/44315
22327         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
22328         TM_H when building to avoid dependency loops.
22329
22330 2010-05-29  Jan Hubicka  <jh@suse.cz>
22331
22332         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
22333         refs and body; not the whole node for masters of materialized clones.
22334
22335 2010-05-29  Mike Stump  <mikestump@comcast.net>
22336
22337         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
22338
22339 2010-05-29  Jan Hubicka  <jh@suse.cz>
22340
22341         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
22342         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
22343         use of clone_function_name.
22344         * cgraph.h (cgraph_create_virtual_clone,
22345         cgraph_function_versioning): update prototypes.
22346         (clone_function_name): Declare.
22347         * ipa-cp.c (ipcp_insert_stage): Update call of
22348         cgraph_create_virtual_clone.
22349         * omp-low.c (create_omp_child_function_name): Use
22350         cgraph_create_virtual_clone.
22351         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
22352         (cgraph_function_versioning): Take SUFFIX argument; produce new name
22353         and make decl local.
22354
22355 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22356
22357         * vec.h: Include statistics.h
22358         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
22359         with VEC_H.
22360
22361 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22362
22363         * c-lex.c: Do not include c-tree.h.
22364         * c-pretty-print.c: Likewise.
22365         * c-opts.c: Likewise.
22366         * c-gimplify.c: Likewise.
22367         * c-common.c: Likewise.
22368         * c-dump.c: Likewise.  Include c-common.h.
22369
22370 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22371
22372         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
22373         before including diagnostic-core.h.
22374         (c_cpp_error): New prototype moved from c-tree.h.
22375         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
22376         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
22377         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
22378         (c_cpp_error): Prototype moved to c-common.h.
22379         * Makefile.in: Update dependency for C_COMMON_H.
22380
22381 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22382
22383         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
22384         * c-common.c (c_register_addr_space): Remove here.
22385         * c-decl.c (c_register_addr_space): Re-add here.
22386
22387 2010-05-28  Mike Stump  <mikestump@comcast.net>
22388
22389         * config/darwin-c.c: Remove c-tree.h include.
22390
22391 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22392
22393         * gcc.c: Include diagnostic.h.
22394         (error_count): Remove.  All users changed to use errorcount.
22395         (programname): Remove.  All users changed to use progname.
22396         (fancy_abort, internal_error, fatal_error, error, warning, inform,
22397         fnotice): Remove.
22398         (execute): Don't include "Internal error" and bug reporting
22399         information in argument of internal_error call.
22400         (process_command): Don't increment error_count after calling
22401         perror_with_name.
22402         (input_filename): Rename to gcc_input_filename.  All users
22403         changed.
22404         (main): Call diagnostic_initialize.  Register delete_temp_files
22405         with atexit.  Use seen_error to test for errors.
22406         * gcc.h: Include diagnostic-core.h.
22407         (fatal_error, error, warning): Remove.
22408         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
22409         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
22410         (gcc.o): Update dependencies.
22411
22412 2010-05-28  Jeff Law  <law@redhat.com>
22413
22414         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
22415         functions.
22416         * ira.h (ira_bad_reload_regno): Declare
22417         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
22418
22419         * ira-color.c (update_curr_costs): Free updated hard reg costs.
22420         (ira_reassign_conflict_allocnos): Remove bogus asserts.
22421         (allocno_reload_assign): Likewise.
22422
22423 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
22424
22425         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
22426         build1_stat.
22427
22428 2010-05-28  Richard Guenther  <rguenther@suse.de>
22429
22430         PR lto/44312
22431         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
22432         Stream fixed-point constants mode.
22433         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
22434         and TYPE_PRECISION.
22435         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
22436         Stream fixed-point constants mode.
22437         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
22438         and TYPE_PRECISION.
22439
22440 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22441
22442         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
22443         only place it was called from.
22444         (number_of_latch_executions): Do not return chrec_dont_know when the
22445         may_be_zero is a runtime condition: instead, return a COND_EXPR
22446         including the may_be_zero condition.
22447         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
22448         of nb_iterations.
22449         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
22450         COND_EXPRs.
22451
22452 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22453
22454         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
22455         generate COND_EXPRs for degenerate_phi_result.
22456
22457 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22458
22459         PR middle-end/44293
22460         * tree-if-conv.c (if_convertible_loop_p): Check the
22461         if-convertibility of phi nodes in non predicated BBs.
22462
22463 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22464
22465         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
22466
22467 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22468
22469         PR driver/15303
22470         * gcc.c (inform, warning, inform): New functions.
22471         (fatal_ice): Rename to internal_error; change cmsgid parameter to
22472         gmsgid.  All callers changed.
22473         (notice): Rename to fnotice; add parameter fp.  All callers changed.
22474         (fatal_error): Rename to fatal_signal.  All users changed.
22475         (fatal): Rename to fatal_error; change cmsgid parameter to
22476         gmsgid.  All callers changed.
22477         (process_command): Use warning instead of error for warnings.
22478         (end_going_arg): Don't use _() around argument of error.
22479         (do_spec_1): Use inform for message from %n specs.  Use warning
22480         instead of error for warnings.
22481         (main): Use inform for comparison messages.  Use warning for
22482         message about unused linker input.
22483         (error): Increment error_count.  Print "error: ".
22484         * gcc.h (fatal): Change to fatal_error.
22485         (warning): Declare.
22486         * config/darwin-driver.c (darwin_default_min_version): Use warning
22487         instead of fprintf for warnings.
22488         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
22489
22490 2010-05-28  Julian Brown  <julian@codesourcery.com>
22491
22492         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
22493         (*thumb2_addsi3_compare0_scratch): New.
22494         * config/arm/constraints.md (Pv): New.
22495         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
22496         for ARM mode only.
22497         (*addsi3_compare0_scratch): Likewise.
22498
22499 2010-05-28  Jan Hubicka  <jh@suse.cz>
22500
22501         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
22502         check.
22503         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
22504         only on local statics.
22505
22506 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
22507
22508         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
22509
22510 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
22511
22512         PR bootstrap/44314
22513         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
22514         (OPTION_GLIBC): Define.
22515
22516 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
22517
22518         PR debug/41048
22519         * dwarf2out.c (double_int_type_size_in_bits): New function.
22520         (round_up_to_align): Change first argument and return value to
22521         double_int.
22522         (field_byte_offset): Work internally on double_ints.
22523
22524         PR target/43636
22525         * builtins.c (expand_movstr): Use a temporary pseudo instead
22526         of target even when target is not NULL and not const0_rtx, but
22527         fails movstr predicate.
22528         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
22529
22530 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22531
22532         * final.c (rest_of_clean_state): Use %m in errors instead of
22533         strerror (errno).
22534         * gengtype.c (read_input_list, close_output_files): Use xstrerror
22535         instead of strerror.
22536         * toplev.c (process_options): Use %m in errors instead of strerror
22537         (errno).
22538         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
22539         (errno).
22540
22541 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
22542
22543         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
22544         (ix86_canonical_va_list_type): Make static.  Add declaration.
22545         (ix86_enum_va_list): Make static.  Reindent.
22546         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
22547         (ix86_canonical_va_list_type): Ditto.
22548         (ix86_enum_va_list): Ditto.
22549
22550 2010-05-28  Richard Guenther  <rguenther@suse.de>
22551
22552         * lto-wrapper.c (run_gcc): With -save-temps generate a
22553         user-visible ltrans filename.  Fixup ltrans unit numbering.
22554
22555 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
22556
22557         * c-common.c (c_common_nodes_and_builtins): Replace use
22558         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
22559         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
22560         to ix86_enum_va_list.
22561         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
22562         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
22563         (TARGET_ENUM_VA_LIST_P): Add hook description.
22564         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
22565         * target.h (gcc_target): Add enum_va_list hook.
22566
22567         PR bootstrap/44299
22568         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
22569         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
22570         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
22571
22572 2010-05-28  Alan Modra  <amodra@gmail.com>
22573
22574         PR target/44266
22575         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
22576         emit_library_call machinery to set up __tls_get_addr calls.
22577
22578 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22579
22580         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
22581
22582 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
22583
22584         Revert fix for PR c++/44188
22585         * c-common.c (is_typedef_decl): Revert the moving of  this
22586         definition ...
22587         * tree.c (is_typedef_decl): ... here.
22588         (typdef_variant_p): Revert the moving of this  definition
22589         here from cp/tree.c.
22590         * c-common.h (is_typedef_decl): Revert the moving of this
22591         declaration ...
22592         * tree.h (is_typedef_decl): ... here.
22593         (typedef_variant_p): Revert the moving of this  declaration here
22594         from cp/cp-tree.h
22595         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
22596         (gen_tagged_type_die): Revert the splitting out of ...
22597         (gen_type_die_with_usage): ... this function. Revert the anonymous
22598         tagged type handling.
22599         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
22600         typedefs naming anonymous tagged types.
22601
22602 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
22603
22604         * config/rs6000/rs6000-modes.def (PSImode): Delete.
22605
22606 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
22607
22608         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
22609         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
22610         throughout.
22611         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
22612         "xer" to "ca".
22613         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
22614         XER_REGS to CA_REGS throughout.
22615         * config/rs6000/rs6000.h: Same.
22616         (ADDITIONAL_REGISTER_NAMES): Add "xer".
22617         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
22618         that mode_iterator "P" is the size for arithmetic carries as well.
22619         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
22620
22621 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
22622
22623         PR bootstrap/44255
22624         * combine.c (struct rtx_subst_pair): Define unconditionally.
22625         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
22626         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
22627         Call make_compound_operation on pair->to.
22628         (propagate_for_debug): Don't call make_compound_operation here.
22629         Always use simplify_replace_fn_rtx.
22630
22631 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
22632
22633         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
22634         * config/xtensa/xtensa.c (override_options): Check
22635           TARGET_FORCE_NO_PIC and set flag_pic.
22636         * config/xtensa/xtensa.opt: Document -mforce-no-pic
22637
22638 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
22639
22640         PR bootstrap/44299
22641         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
22642         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
22643
22644 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
22645
22646         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
22647         toplev.h.
22648         * diagnostic.c: Don't include toplev.h.
22649         (progname): Define.  Moved from toplev.c.
22650         (seen_error): New function.
22651         * diagnostic.h: Include diagnostic-core.h.
22652         (diagnostic_t, emit_diagnostic): Don't declare here.
22653         * toplev.c (progname): Move to toplev.c.
22654         (emit_debug_global_declarations, compile_file, finalize,
22655         do_compile, toplev_main): Use seen_error.
22656         * toplev.h: Include diagnostic-core.h.
22657         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
22658         internal_error, warning, warning_at, error, error_n, error_at,
22659         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
22660         verbatim, fnotice, progname): Move to diagnostic-core.h.
22661         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
22662         (expand_builtin_expect): Use seen_error.
22663         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
22664         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
22665         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
22666         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
22667         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
22668         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
22669         errorcount for errors.
22670         * c-opts.c (c_common_finish): Use seen_error.
22671         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22672         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
22673         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
22674         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
22675         (get_coverage_counts): Use seen_error.
22676         * dwarf2out.c (dwarf2out_finish): Use seen_error.
22677         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
22678         gimplify_body): Use seen_error.
22679         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
22680         * ipa-pure-const.c (gate_pure_const): Use seen_error.
22681         * ipa-reference.c (gate_reference): Use seen_error.
22682         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
22683         * lambda-code.c: Include diagnostic-core.h instead of
22684         diagnostic.h.
22685         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22686         * lto-compress.c: Include diagnostic-core.h instead of
22687         diagnostic.h.
22688         * lto-section-in.c: Include diagnostic-core.h instead of
22689         diagnostic.h.
22690         * lto-streamer-out.c: Include diagnostic-core.h instead of
22691         diagnostic.h.
22692         * lto-streamer.c: Include diagnostic-core.h instead of
22693         diagnostic.h.
22694         (gate_lto_out): Use seen_error.
22695         * matrix-reorg.c: Include diagnostic-core.h instead of
22696         diagnostic.h.
22697         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
22698         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
22699         (gate_expand_omp, lower_omp_1): Use seen_error.
22700         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
22701         (rest_of_decl_compilation, rest_of_type_compilation,
22702         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
22703         * tree-cfg.c (label_to_block_fn): Use seen_error.
22704         * tree-inline.c (optimize_inline_calls): Use seen_error.
22705         * tree-mudflap.c (mudflap_finish_file): Use
22706         seen_error.
22707         * tree-optimize.c (gate_all_optimizations,
22708         gate_all_early_local_passes, gate_all_early_optimizations): Use
22709         seen_error.
22710         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
22711         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
22712         (varpool_remove_unreferenced_decls,
22713         varpool_assemble_pending_decls): Use seen_error.
22714         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
22715         (TOPLEV_H, DIAGNOSTIC_H): Update.
22716         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
22717         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
22718         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
22719         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
22720         coverage.o, lambda-code.o): Update dependencies.
22721
22722 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
22723
22724         PR c++/44188
22725         * c-common.c (is_typedef_decl): Move this definition ...
22726         * tree.c (is_typedef_decl): ... here.
22727         (typdef_variant_p): Move definition here from cp/tree.c.
22728         * c-common.h (is_typedef_decl): Move this declaration ...
22729         * tree.h (is_typedef_decl): ... here.
22730         (typedef_variant_p): Move declaration here from cp/cp-tree.h
22731         * dwarf2out.c (is_naming_typedef_decl): New function.
22732         (gen_tagged_type_die): Split out of ...
22733         (gen_type_die_with_usage): ... this function. When an anonymous
22734         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22735         is emitted for the typedef.
22736         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22737         anonymous tagged types.
22738
22739 2010-05-27  Jason Merrill  <jason@redhat.com>
22740
22741         * print-tree.c (debug_vec_tree): New fn.
22742         (print_vec_tree): New fn.
22743         * tree.h: Declare them.
22744         * gdbinit.in (pvt): New command.
22745
22746         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
22747
22748         * gdbinit.in (pdd): New command.
22749
22750 2010-05-27  Jan Hubicka  <jh@suse.cz>
22751
22752         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
22753         (update_caller_keys): Return early if there are no callers;
22754         only update fibheap when decresing the key.
22755         (update_callee_keys): Avoid recursion.
22756         (decide_inlining_of_small_functions): When badness does not match;
22757         re-insert into fibheap.
22758
22759 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
22760
22761         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
22762         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
22763         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
22764         (ALL_HOST_OBJS): Now a union of the above two.
22765         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
22766         all files in ALL_HOST_FRONTEND_OBJS.
22767         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
22768
22769         * c-common.c: Pretend to be a backend file by undefining
22770         IN_GCC_FRONTEND (still need rtl.h here).
22771
22772 2010-05-27  Jan Hubicka  <jh@suse.cz>
22773
22774         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
22775         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
22776
22777 2010-05-27  Jan Hubicka  <jh@suse.cz>
22778
22779         * sched-ebb.c: Rename struct deps to struct deps_desc.
22780         * ddg.c: Likewise.
22781         * sel-sched-ir.c: Likewise.
22782         * sched-deps.c: Likewise.
22783         * sched-int.h: Likewise.
22784         * sched-rgn.c: Likewise.
22785
22786 2010-05-27  Jon Beniston  <jon@beniston.com>
22787
22788         PR 43726
22789         * config/lm32/lm32.h: Remove definition of
22790         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
22791
22792 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22793
22794         PR lto/44230
22795         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
22796
22797 2010-05-27  Richard Guenther  <rguenther@suse.de>
22798
22799         PR tree-optimization/44284
22800         * tree-vect-stmts.c (vectorizable_assignment): Handle
22801         sign-changing conversions as simple copy.
22802
22803 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
22804
22805         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
22806         Bionic C library.
22807         (__gthread_active_p): Check for pthread_create if compiling against
22808         Bionic C library.
22809
22810 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
22811
22812         Support compilation for Android platform.  Reimplement -mandroid.
22813
22814         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
22815         (*android*): Set ANDROID_DEFAULT.
22816         (arm*-*-linux*): Include linux-android.h.
22817         (arm*-*-eabi*): Don't include previous -mandroid implementation.
22818         * config/arm/eabi.h: Remove, move Android-specific parts ...
22819         * config/linux-android.h: ... here.  New file.
22820         * config/arm/eabi.opt: Rename to ...
22821         * config/linux-android.opt: ... this.
22822         (mandroid): Allow -mno-android option.  Initialize based on
22823         ANDROID_DEFAULT.
22824         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
22825         Move logic to corresponding LINUX_TARGET_* macros.
22826         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
22827         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
22828         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
22829         Android definitions.
22830         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
22831         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
22832         Document.
22833
22834 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
22835
22836         Add support for Bionic C library
22837
22838         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
22839         macro.
22840         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
22841         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
22842
22843         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
22844         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
22845         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
22846         to support multiple C libraries.  Handle Bionic.
22847         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
22848         (BIONIC_DYNAMIC_LINKER64): Define.
22849         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
22850         Update.
22851         (TARGET_HAS_SINCOS): Enable for Bionic.
22852
22853         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
22854         the last option specified on command line take effect.
22855         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
22856         (mbionic): New.
22857         (mglibc, muclibc): Update.
22858
22859         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
22860         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
22861         DEFAULT_LIBC.
22862
22863         * doc/invoke.texi (-mglibc, -muclibc): Update.
22864         (-mbionic): Document.
22865
22866 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22867
22868         * c-common.h (c_register_addr_space): Add prototype.
22869         (ADDR_SPACE_KEYWORD): Remove.
22870         * c-common.c (c_register_addr_space): New function.
22871         (c_addr_space_name): Reimplement.
22872         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
22873
22874         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
22875         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
22876
22877         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
22878         Remove TARGET_ADDR_SPACE_KEYWORDS.
22879
22880 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
22881
22882         * input.c: New file.
22883         * input.h (main_input_filename): Move declaration to toplev.h.
22884         * toplev.c (input_location, line_table): Move to input.c
22885         * toplev.h (main_input_filename): Move declaration from input.h.
22886         * tree.c (expand_location): Move to input.c.
22887         * Makefile.in (OBJS-common): Add input.o.
22888         (input.o): Add dependencies.
22889
22890 2010-05-27  Richard Guenther  <rguenther@suse.de>
22891
22892         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
22893         for non-existant files.
22894         (fork_execute): Mark args_name file as deleted.
22895
22896 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
22897
22898         PR bootstrp/44287
22899         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
22900         (narrow_signed_type): Likewise.
22901
22902 2010-05-26  Jan Hubicka  <jh@suse.cz>
22903
22904         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
22905         edge only when checking is enabled; check using former_clone_of;
22906         check inline clones too.
22907         (cgraph_materialize_clone): Record former_clone_of pointer.
22908         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
22909         combining redirections; dump args_to_skip bitmap
22910         (cgraph_materialize_all_clones): Do no redirection here.
22911         * ipa-inline.c (inline_transform): Do redirection here.
22912         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
22913         cheking only).
22914
22915 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
22916
22917         * config/avr/avr-c.c: Do not include regs.h.
22918         Include cpplib.h for cpp_define and tree.h for c-common.h.
22919         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
22920         * config/avr/t-avr: Fix dependencies for avr-c.o.
22921
22922 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
22923
22924         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
22925         string instead of SYMBOL_REF rtx.
22926         * rtl.h (set_stack_check_libfunc): Move prototype from here...
22927         * libfuncs.h: ...to here.  Adjust for explow.c change.
22928
22929 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
22930
22931         * pretty-print.c: Don't include ggc.h.
22932         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
22933         (identifier_to_locale): Use them for allocation.
22934         * pretty-print.h (identifier_to_locale_alloc,
22935         identifier_to_locale_free): Declare.
22936         * toplev.c (alloc_for_identifier_to_locale): New.
22937         (general_init): Set identifier_to_locale_alloc and
22938         identifier_to_locale_free.
22939         * Makefile.in (pretty-print.o): Update dependencies.
22940
22941 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
22942
22943         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
22944         pointer types if they have different alignment or mode.
22945
22946 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
22947
22948         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22949         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22950         * config/sparc/sparc-protos.h (function_value): Remove declaration.
22951         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
22952         sparc_function_value_regno_p): New functions.
22953         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22954         TARGET_FUNCTION_VALUE_REGNO_P): Define.
22955         (function_value): Rename to...
22956         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
22957         argument to 'outgoing'.
22958         (function_arg_record_value, function_arg_union_value,
22959         function_arg_vector_value): Update comment.
22960
22961 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
22962
22963         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
22964         (fde_needed_for_eh_p): New predicate.
22965         (output_call_frame_info): Use it throughout to decide whether FDEs
22966         are needed for EH purpose.
22967         (dwarf2out_begin_prologue): Reorder assignments.
22968
22969 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
22970
22971         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
22972         special case loop->header.
22973         (is_predicated): New.
22974         (if_convertible_loop_p): Call it.
22975
22976 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
22977
22978         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
22979         iterator in parameter.  Do not generate code during the analysis.
22980         (tree_if_convert_cond_stmt): Removed.
22981         (tree_if_convert_stmt): Removed.
22982         (predicate_bbs): New.
22983         (if_convertible_loop_p): Call predicate_bbs.
22984         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
22985         now contains all the analysis part.
22986
22987 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
22988
22989         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
22990         statements in the analysis part.
22991         (tree_if_convert_stmt): Update comment.
22992         (remove_conditions_and_labels): New.
22993         (combine_blocks): Call remove_conditions_and_labels.
22994         (tree_if_conversion): Update comment.
22995
22996 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
22997
22998         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
22999         than 2 predecessors or more than 2 successors.
23000
23001 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23002
23003         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
23004         of loops in which the data dependence analysis fails.
23005
23006 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23007
23008         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
23009         CDI_POST_DOMINATORS.
23010         (tree_if_conversion): Same.
23011
23012 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23013
23014         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
23015
23016 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23017
23018         * tree-if-conv.c: Update copyright years.  Fix comments.
23019         Fix indentation.
23020
23021 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
23022
23023         * builtin-types.def (BT_INT128): New primitive type.
23024         (BT_UINT128): Likewise.
23025         * c-common.c (c_common_r): Add __int128 keyword.
23026         (c_common_type_for_size): Handle __int128.
23027         (c_common_type_for_mode): Likewise.
23028         (c_common_signed_or_unsigned_type): Likewise.
23029         (c_common_nodes_and_builtins): Add builtin type
23030         if target supports 128-bit integer scalar.
23031         * c-common.h (enum rid): Add RID_INT128.
23032         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
23033         if target supports 128-bit integer scalar.
23034         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
23035         (finish_declspecs): Likewise.
23036         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
23037         (c_token_starts_declspecs): Likewise.
23038         (c_parser_declspecs): Likewise.
23039         (c_parser_attributes): Likewise.
23040         (c_parser_objc_selector): Likewise.
23041         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
23042         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
23043         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
23044         * tree.c (make_or_reuse_type): Likewise.
23045         (make_unsigned_type): Likewise.
23046         (build_common_tree_nodes_2): Likewise.
23047         * tree.h (enum integer_type_kind): Add itk_int128 and
23048         itk_unsigned_int128.
23049         (int128_integer_type_node): New define.
23050         (int128_unsigned_type_node): New define.
23051         * doc/extend.texi: Add documentation about __int128 type.
23052
23053 2010-05-26  Richard Guenther  <rguenther@suse.de>
23054
23055         * tree-ssa-sccvn.c (copy_nary): Adjust.
23056         (copy_phis): Rename to ...
23057         (copy_phi): ... this.  Adjust.
23058         (copy_references): Rename to ...
23059         (copy_reference): ... this.  Adjust.
23060         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
23061         result into the valid table.
23062
23063 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23064
23065         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
23066         insn-config.h, insn-codes.h, recog.h, and optabs.h.
23067
23068 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23069
23070         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
23071
23072 2010-05-26  Richard Guenther  <rguenther@suse.de>
23073
23074         * opts.c (common_handle_option): Handle OPT_Ofast.
23075
23076 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
23077
23078         * diagnostic.c: Don't include opts.h.
23079         (permissive_error_option): Define.
23080         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
23081         for classify_diagnostic.  Don't use memset for
23082         classify_diagnostic.  Initialize new and recently added fields.
23083         (diagnostic_classify_diagnostic): Use context->n_opts instead of
23084         N_OPTS.
23085         (diagnostic_report_diagnostic): Pass context parameter to
23086         diagnostic_report_warnings_p.  Use option_enabled and option_name
23087         hooks from context.
23088         (emit_diagnostic): Use permissive_error_option.
23089         (permerror): Likewise.
23090         * diagnostic.h: Don't include options.h.
23091         (struct diagnostic_context): Add n_opts, opt_permissive,
23092         inhibit_warnings, warn_system_headers, option_enabled and
23093         option_name fields.  Change classify_diagnostic to a pointer.
23094         * opts-diagnostic.h: New file.
23095         * opts.c: Include opts-diagnostic.h.
23096         (common_handle_option): Set global_dc fields for -Wfatal-errors,
23097         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
23098         (option_name): New function.
23099         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
23100         (c_common_handle_option): Set global_dc->permissive for
23101         -fpermissive.
23102         * c-common.c (c_cpp_error): Save and restore
23103         global_dc->warn_system_headers, not variable warn_system_headers.
23104         * toplev.c: Include opts-diagnostic.h.
23105         (general_init): Update call to diagnostic_initialize.  Set
23106         global_dc->show_column, global_dc->option_enabled and
23107         global_dc->option_name.
23108         (process_options): Don't set global_dc fields here.
23109         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
23110         (diagnostic.o, opts.o, toplev.o): Update dependencies.
23111
23112 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
23113
23114         * config/picochip/picochip.md (movsi): Split a movsi from a
23115         const after reload.
23116
23117 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23118
23119         * ggc-zone.c: Update copyright year.
23120         (poison_region): Mark memory for Valgrind as undefined before
23121         memset () call and inaccessible afterwards.
23122         (ggc_pch_total_size): Change type of i to int.
23123
23124 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23125
23126         * ggc-common.c (ggc_free_overhead): Allow empty slot.
23127
23128 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23129
23130         * ggc-common.c: Update copyright year.
23131         (ggc_rlimit_bound): Remove prototype.  Compile only if
23132         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
23133         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
23134         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
23135         (ggc_min_heapsize_heuristic): Likewise.
23136
23137 2010-05-26  Richard Guenther  <rguenther@suse.de>
23138
23139         PR rtl-optimization/44164
23140         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
23141         no-common access-path disambiguation.
23142         (indirect_ref_may_alias_decl_p): Adjust.
23143         (indirect_refs_may_alias_p): Likewise.
23144         (refs_may_alias_p_1): Likewise.
23145
23146 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23147
23148         * c-typeck.c: Do not include expr.h.
23149
23150 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23151
23152         * rtl.h (decl_default_tls_model): Move prototype from here...
23153         * output.h: ...to here.
23154         * c-decl.c: Do not include rtl.h.
23155         * c-pragma.c: Likewise.
23156         * c-parser.c: Likewise.
23157         * c-gimplify.c: Likewise.  And also not hard-reg-set.
23158         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
23159         FIXME note for it.  Add a FIXME note for expr.h.
23160         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
23161         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
23162         defined.
23163
23164 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
23165
23166         PR target/44199
23167         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
23168         or total_size is larger than red zone size for non-V4 ABI, emit a
23169         stack_tie resp. frame_tie insn before stack pointer restore.
23170         * config/rs6000/rs6000.md (frame_tie): New insn.
23171
23172 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
23173
23174         * function.h (struct function): Add can_throw_non_call_exceptions bit.
23175         * lto-streamer-in.c (input_function): Stream it in.
23176         * lto-streamer-out.c (output_function): Stream it out.
23177         * function.c (allocate_struct_function): Set it.
23178         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
23179         for flag_non_call_exceptions.
23180         * cfgbuild.c (control_flow_insn_p): Likewise.
23181         (make_edges): Likewise.
23182         * cfgexpand.c (expand_stack_alignment): Likewise.
23183         * combine.c (distribute_notes): Likewise.
23184         * cse.c (cse_extended_basic_block): Likewise.
23185         * except.c (insn_could_throw_p): Likewise.
23186         * gcse.c (simple_mem): Likewise.
23187         * ipa-pure-const.c (check_call): Likewise.
23188         (check_stmt ): Likewise.
23189         * lower-subreg.c (lower-subreg.c): Likewise.
23190         * optabs.c (emit_libcall_block): Likewise.
23191         (prepare_cmp_insn): Likewise.
23192         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
23193         * postreload.c (rest_of_handle_postreload): Likewise.
23194         * reload1.c (reload_as_needed): Likewise.
23195         (emit_input_reload_insns): Likewise.
23196         (emit_output_reload_insns): Likewise.
23197         (fixup_abnormal_edges): Likewise.
23198         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
23199         * store-motion.c (find_moveable_store): Likewise.
23200         * tree-eh.c (stmt_could_throw_p): Likewise.
23201         (tree_could_throw_p): Likewise.
23202         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23203         * config/arm/arm.c (arm_expand_prologue): Likewise.
23204         (thumb1_expand_prologue): Likewise.
23205         * config/rx/rx.md (cbranchsf4): Likewise.
23206         (cmpsf): Likewise.
23207         * config/s390/s390.c (s390_emit_prologue): Likewise.
23208         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
23209         (inline_forbidden_into_p): New predicate.
23210         (expand_call_inline): Use it to forbid inlining.
23211         (tree_can_inline_p): Likewise.
23212
23213 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23214
23215         * config/i386/i386-c.c: Do not include rtl.h.
23216         * config/i386/t-i386: Update dependencies.
23217
23218 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23219
23220         * attribs.c: Do not include rtl.h.
23221         * Makefile.in: Update dependencies.
23222
23223 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
23224
23225         * double-int.h (double_int_and): New.
23226         * combine.c (try_combine): Clean up, use double_int_* and
23227         immed_double_int_const functions.
23228
23229 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23230
23231         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
23232         stderr to /dev/null instead of grep -q.
23233         * configure: Regenerate.
23234
23235 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23236
23237         * Makefile.in (EXCEPT_H): Fix typo.
23238
23239 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
23240
23241         * ira-build.c (update_conflict_hard_reg_costs): New.
23242         (ira_build): Call update_conflict_hard_reg_costs.
23243
23244 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
23245
23246         PR debug/41371
23247         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
23248         ENABLE_CHECKING.
23249         (intersect_loc_chains): Walk the s2var's loc_chain together
23250         with s1node chain as long as the locations are equal, don't
23251         call find_loc_in_1pdv in that case.
23252
23253         PR debug/42801
23254         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
23255         (copy_bind_expr): ... instead of here.
23256         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
23257         if the block hasn't been remapped.
23258         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
23259         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
23260
23261 2010-05-25  Richard Guenther  <rguenther@suse.de>
23262
23263         PR middle-end/44069
23264         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
23265         out-of-bounds array accesses.
23266
23267 2010-05-25  Richard Guenther  <rguenther@suse.de>
23268
23269         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
23270         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
23271         (run_gcc): Re-organize to make cleanup easier.
23272
23273 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23274
23275         * config/s390/s390.c (optimization_options): Fix and move the
23276         flag_prefetch_loop_arrays override ...
23277         (override_options): ... here.
23278
23279 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
23280
23281         * diagnostic.c: Don't include plugin.h.
23282         (diagnostic_report_diagnostic): Don't handle plugins specially
23283         here.  Pass context to internal_error callback.
23284         * diagnostic.h (struct diagnostic_context): Add context parameter
23285         to internal_error callback.
23286         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
23287         * plugin.h (struct diagnostic_context): Declare.
23288         (warn_if_plugins, plugins_internal_error_function): Declare.
23289         * toplev.c (general_init): Set global_dc->internal_error.
23290         * Makefile.in (diagnostic.o): Update dependencies.
23291
23292 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
23293
23294         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
23295         * config/rs6000/t-darwin64: New.
23296         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
23297         build crt2.
23298
23299 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
23300
23301         PR 44203
23302         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
23303         match the original (and intended) behaviour before r159557.  This
23304         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
23305         in two ways.
23306
23307 2010-05-25  Richard Guenther  <rguenther@suse.de>
23308
23309         * doc/invoke.texi: Document -Ofast.
23310         * target.h (struct gcc_target): Add handle_ofast.
23311         * target-def.h (TARGET_HANDLE_OFAST): Add.
23312         (TARGET_INITIALIZER): Adjust.
23313         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
23314         * common.opt (Ofast): Add.
23315
23316 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
23317
23318         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
23319         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
23320
23321 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
23322
23323         PR target/43610
23324         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
23325         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
23326         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
23327         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
23328
23329 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
23330
23331         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
23332         DW_OP_minus with negated offset instead of DW_OP_plus.
23333         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
23334
23335 2010-05-25  Wei Guozhi  <carrot@google.com>
23336
23337         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
23338         tst instruction and a new alternative.
23339         * config/arm/constraints.md (Pu): New constraint.
23340
23341 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
23342
23343         * function.c (assign_stack_local_1): Initialize variable
23344         to avoid warning when bootstrapping at -O3.
23345
23346 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
23347
23348         * configure.ac (all_lang_makefiles): Remove everything related to it.
23349         * configure: Regenerate.
23350         * Makefile.in: Fix reference to ada Make-lang.in.
23351         Remove support for LANG_MAKEFILES.
23352
23353 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
23354             Sandra Loosemore  <sandra@codesourcery.com>
23355
23356         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
23357         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
23358         description.  Add arm_neon_fp16_ok.
23359         (Add Options): Add arm_neon and arm_neon_fp16.
23360
23361 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
23362
23363         * diagnostic.c: Don't include flags.h.
23364         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
23365         context parameters.  Check flags in the context passed as a parameter.
23366         (diagnostic_build_prefix): Add context parameter.  Check
23367         show_column flag in context.
23368         (diagnostic_action_after_output): Check fatal_errors flag in context.
23369         (diagnostic_report_current_module): Check show_column flag in context.
23370         (default_diagnostic_starter): Update call to
23371         diagnostic_build_prefix.
23372         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
23373         (emit_diagnostic): Pass context to permissive_error_kind.
23374         (permerror): Pass context to permissive_error_kind.
23375         * diagnostic.h (struct diagnostic_context): Add show_column,
23376         pedantic_errors, permissive and fatal_errors fields.
23377         (diagnostic_build_prefix): Update prototype.
23378         * langhooks.c
23379         * toplev.c (process_options): Set flags in global_dc from
23380         flag_show_column, flag_pedantic_errors, flag_permissive,
23381         flag_fatal_errors.
23382         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
23383         to diagnostic_build_prefix.
23384         * Makefile.in (diagnostic.o): Update dependencies.
23385
23386 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23387
23388         * config/i386/ia32intrin.h (__crc32q): Define only if
23389         __SSE4_2__ is defined.
23390
23391 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
23392
23393         PR target/44132
23394         PR middle-end/43602
23395         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
23396         DECL_VISIBILITY_SPECIFIED.
23397         (emutls_decl): Set DECL_PRESERVE_P and copy
23398         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
23399         (emutls_finalize_control_var): New callback.
23400         (emutls_finish): Finalize emutls control variables.
23401         * toplev.c (compile_file): Move the call to emutls_finish ()
23402         before varpool_assemble_pending_decls ().
23403
23404 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
23405
23406         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
23407         added to the preprocessor condition.
23408
23409 2010-05-24  Paul Brook  <paul@codesourcery.com>
23410
23411         * gengtype-lex.l: Add HARD_REG_SET.
23412         * expr.c (expand_expr_real_1): Record writes to hard registers.
23413         * function.c (rtl_data): Add asm_clobbers.
23414         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
23415         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
23416         Use crtl->asm_clobbers.
23417
23418 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23419
23420         * doc/makefile.texi (Makefile): Mention stages 'profile'
23421         and 'feedback' for profiledbootstrap.
23422
23423 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23424
23425         PR target/44245
23426         * config/i386/i386.c (def_builtin): Properly check
23427         OPTION_MASK_ISA_64BIT.
23428
23429 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
23430
23431         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
23432         typedefs with different but compatible types.  Allow duplicate
23433         typedefs with the same type except for pedantic non-C1X, but give
23434         warning for variably modified types.
23435         * c-typeck.c (tagged_types_tu_compatible_p,
23436         function_types_compatible_p, type_lists_compatible_p,
23437         comptypes_internal): Add parameter different_types_p; set
23438         *different_types_p for different but compatible types.  All
23439         callers changed.
23440         (comptypes_check_different_types): New.
23441         * c-tree.h (comptypes_check_different_types): Declare.
23442
23443 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
23444
23445         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
23446         * jump.c: Include basic-block.h.
23447         * profile.c: Likewise.
23448         * tree-profile.c: Likewise.
23449         * coverage.c: Likewise.
23450         * basic-block.h (optimize_function_for_size_p): Move to function.h.
23451         (optimize_function_for_speed_p): Likewise.
23452         * function.h (optimize_function_for_size_p,
23453         optimize_function_for_speed_p): Moved here from basic-block.h.
23454         * Makefile.in: Update dependencies.
23455
23456 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23457
23458         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
23459         before calling make; allow override through $MAKE.
23460         * doc/invoke.texi (Optimize Options): Document override.
23461
23462 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
23463
23464         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
23465         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23466         (rs6000_mode_dependent_address_ptr): Make static.
23467         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23468         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
23469         Remove.
23470
23471 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
23472
23473         PR target/43869
23474         * config/i386/i386.c: Make sure that the correct regparm is passed.
23475
23476 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
23477
23478         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
23479         * sbitmap.c: ...to here to internalize sbitmap element access.
23480         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
23481         Explain why basic-block.h is included.
23482         * function.h: Include tm.h for CUMULATIVE_ARGS.
23483         * Makefile.in: Update dependencies.
23484
23485 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
23486
23487         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
23488         New core types.
23489         * sbitmap.h (struct sbitmap_def): Do not typedef here.
23490         * sbitmap.c: Include sbitmap.h.
23491         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
23492         hard-reg-set.h.  Split everything related to regsets out from here...
23493         * regset.h: ...to here.  New file.
23494         * df.h: Include regset.h and sbitmap.h.
23495         * tree-flow.h: Likewise.
23496         * cfgloop.h: Likewise.
23497         * except.h: Do not include sbitmap.h.  Include hashtab.h.
23498         * cgraph.h: Include vec.h and function.h.
23499         * reload.h (struct insn_chain): Change types of live_throughout
23500         and dead_or_set from regset_head to bitmap_head.
23501         (compute_use_by_pseudos): Be defined also if regset.h is not included.
23502         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
23503         spilled_regs from regset_head to bitmap_head to avoid dependency
23504         in regset.h.
23505         * sel-sched-ir.h: Include regset.h.
23506         * reload.c: Include df.h before reload.h.
23507         * caller-save.c: Likewise.
23508         * reload1.c: Likewise.
23509         * ira.c: Likewise.
23510         (mark_elimination): Update type of r to bitmap, consistent with
23511         DF_LR_IN.
23512         * dominance.c: Include bitmap.h.
23513         * modulo-sched.c: Include df.h.
23514         * cfganal.c: Include bitmap.h and sbitmap.h.
23515         * cfgbuild.c: Include sbitmap.h.
23516         * lcm.c: Include sbitmap.h.
23517         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
23518         * domwalk.c: Include sbitmap.h, exclude ggc.h.
23519         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
23520         * cselib.c: Include bitmap.h.
23521         * tree-optimize.c: Include regset.h.
23522         * stmt.c: Include bitmap.h.
23523         * Makefile.in: Update dependencies.
23524
23525 2010-05-22  Jan Hubicka  <jh@suse.cz>
23526
23527         * cgraph.h (struct varpool_node): Add same_comdat_group.
23528         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
23529         pointer.
23530         (output_varpool): Update call of lto_output_varpool_node.
23531         (input_varpool): Read same_comdat_group pointer.
23532         (input_varpool_1): Fixup same_comdat_group pointer.
23533         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
23534         group is needed, all are.
23535         * varpool.c (varpool_remove_node): Remove node from same comdat group
23536         linklist too.
23537         (varpool_analyze_pending_decls): Walk same comdat groups.
23538
23539 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
23540
23541         * rtl.h (union rtunion_def): Remove rt_bit member.
23542         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
23543         * print-rtl (print_rtx): Do not print the member.
23544         * gengtype.c (adjust_field_rtx_def): Do not handle it.
23545         * gengenrtl.c (type_from_format): Likewise.
23546         (accessor_from_format): Likewise.
23547
23548 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
23549
23550         * dbgcnt.c: Include toplev.h instead of errors.h.
23551         * ira-emit.c: Don't include errors.h.
23552         * ira.c: Include toplev.h instead of errors.h.
23553         * lto-compress.c: Include toplev.h instead of errors.h.
23554         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
23555         ira.o, dbgcnt.o): Update dependencies.
23556
23557 2010-05-22  Richard Guenther  <rguenther@suse.de>
23558
23559         * gimple.c (gimple_types_compatible_p): Check type qualifications
23560         before merging pointer to complete and pointer to incomplete type.
23561         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
23562         we use our own resolution algorithm.  The gold linker plugin
23563         doesn't do the job we want it to do here.
23564
23565 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
23566
23567         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23568         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23569         (sparc_mode_dependent_address_p): New function.
23570
23571 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
23572
23573         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
23574
23575         * timevar.c: Do not include any core headers.
23576         (timevar_print): De-i18n-ize.
23577         (print_time): Likewise.
23578         * timevar.h (timevar_push, timevar_pop): Make inline functions.
23579
23580 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
23581
23582         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
23583         langhooks-def.h.
23584         (diagnostic_initialize): Initialize x_data not last_function.
23585         (diagnostic_report_current_function): Move to tree-diagnostic.c.
23586         (default_diagnostic_starter): Call
23587         diagnostic_report_current_module not
23588         diagnostic_report_current_function.
23589         (diagnostic_report_diagnostic): Initialize x_data not
23590         abstract_origin.
23591         (verbatim): Likewise.
23592         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
23593         x_data.
23594         (struct diagnostic_context): Change last_function to x_data.
23595         (diagnostic_auxiliary_data): Replace with
23596         diagnostic_context_auxiliary_data and
23597         diagnostic_info_auxiliary_data.
23598         (diagnostic_last_function_changed, diagnostic_set_last_function,
23599         diagnostic_report_current_function): Move to tree-diagnostic.h.
23600         (print_declaration, dump_generic_node, print_generic_stmt,
23601         print_generic_stmt_indented, print_generic_expr,
23602         print_generic_decl, debug_c_tree, dump_omp_clauses,
23603         print_call_name, debug_generic_expr, debug_generic_stmt,
23604         debug_tree_chain, default_tree_printer): Move to
23605         tree-pretty-print.h.
23606         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
23607         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
23608         gimple-pretty-print.h.
23609         * pretty-print.c: Don't include tree.h
23610         (pp_base_format): Don't handle %K here.
23611         (pp_base_tree_identifier): Move to tree-pretty-print.c.
23612         * pretty-print.h (text_info): Change abstract_origin to x_data.
23613         (pp_tree_identifier, pp_unsupported_tree,
23614         pp_base_tree_identifier): Move to tree-pretty-print.h.
23615         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
23616         tree-pretty-print.h: New files.
23617         * tree-pretty-print.c: Include tree-pretty-print.h.
23618         (percent_K_format): New.  Moved from pretty-print.c.
23619         (pp_base_tree_identifier): Move from pretty-print.c.
23620         * c-objc-common.c: Include tree-pretty-print.h.
23621         (c_tree_printer): Handle %K here.
23622         * langhooks.c: Include tree-diagnostic.h.
23623         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
23624         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
23625         (default_tree_printer): Handle %K using percent_K_format.
23626         (general_init): Use default_tree_diagnostic_starter.
23627         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
23628         (free_lang_data): Use default_tree_diagnostic_starter.
23629         * c-pretty-print.c: Include tree-pretty-print.h.
23630         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23631         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23632         * dwarf2out.c: Include tree-pretty-print.h.
23633         * except.c: Include tree-pretty-print.h.
23634         * gimple-pretty-print.c: Include tree-pretty-print.h and
23635         gimple-pretty-print.h.
23636         * gimplify.c: Include tree-pretty-print.h.
23637         * graphite-poly.c: Include tree-pretty-print.h and
23638         gimple-pretty-print.h.
23639         * ipa-cp.c: Include tree-pretty-print.h.
23640         * ipa-inline.c: Include gimple-pretty-print.h.
23641         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23642         * ipa-pure-const.c: Include gimple-pretty-print.h.
23643         * ipa-struct-reorg.c: Include tree-pretty-print.h and
23644         gimple-pretty-print.h.
23645         * ipa-type-escape.c: Include tree-pretty-print.h.
23646         * print-rtl.c: Include tree-pretty-print.h.
23647         * print-tree.c: Include gimple-pretty-print.h.
23648         * sese.c: Include tree-pretty-print.h.
23649         * tree-affine.c: Include tree-pretty-print.h.
23650         * tree-browser.c: Include tree-pretty-print.h.
23651         * tree-call-cdce.c: Include gimple-pretty-print.h.
23652         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23653         * tree-chrec.c: Include tree-pretty-print.h.
23654         * tree-data-ref.c: Include tree-pretty-print.h and
23655         gimple-pretty-print.h.
23656         * tree-dfa.c: Include tree-pretty-print.h.
23657         * tree-if-conv.c: Include tree-pretty-print.h and
23658         gimple-pretty-print.h.
23659         * tree-inline.c: Include tree-pretty-print.h.
23660         * tree-into-ssa.c: Include tree-pretty-print.h and
23661         gimple-pretty-print.h.
23662         * tree-nrv.c: Include tree-pretty-print.h.
23663         * tree-object-size.c: Include tree-pretty-print.h and
23664         gimple-pretty-print.h.
23665         * tree-outof-ssa.c: Include tree-pretty-print.h and
23666         gimple-pretty-print.h.
23667         * tree-parloops.c: Include tree-pretty-print.h and
23668         gimple-pretty-print.h.
23669         * tree-predcom.c: Include tree-pretty-print.h and
23670         gimple-pretty-print.h.
23671         * tree-scalar-evolution.c: Include tree-pretty-print.h and
23672         gimple-pretty-print.h.
23673         * tree-sra.c: Include tree-pretty-print.h.
23674         * tree-ssa-address.c: Include tree-pretty-print.h.
23675         * tree-ssa-alias.c: Include tree-pretty-print.h.
23676         * tree-ssa-ccp.c: Include tree-pretty-print.h and
23677         gimple-pretty-print.h.
23678         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
23679         * tree-ssa-copy.c: Include tree-pretty-print.h and
23680         gimple-pretty-print.h.
23681         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
23682         * tree-ssa-dce.c: Include tree-pretty-print.h and
23683         gimple-pretty-print.h.
23684         * tree-ssa-dom.c: Include tree-pretty-print.h and
23685         gimple-pretty-print.h.
23686         * tree-ssa-dse.c: Include gimple-pretty-print.h.
23687         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
23688         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
23689         * tree-ssa-live.c: Include tree-pretty-print.h and
23690         gimple-pretty-print.h.
23691         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
23692         gimple-pretty-print.h.
23693         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
23694         gimple-pretty-print.h.
23695         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
23696         gimple-pretty-print.h.
23697         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
23698         gimple-pretty-print.h.
23699         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
23700         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
23701         * tree-ssa-operands.c: Include tree-pretty-print.h and
23702         gimple-pretty-print.h.
23703         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
23704         gimple-pretty-print.h.
23705         * tree-ssa-pre.c: Include tree-pretty-print.h and
23706         gimple-pretty-print.h.
23707         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
23708         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
23709         gimple-pretty-print.h.
23710         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
23711         gimple-pretty-print.h.
23712         * tree-ssa-sink.c: Include gimple-pretty-print.h.
23713         * tree-ssa-ter.c: Include tree-pretty-print.h and
23714         gimple-pretty-print.h.
23715         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
23716         * tree-ssa.c: Include tree-pretty-print.h and
23717         gimple-pretty-print.h.
23718         * tree-stdarg.c: Include gimple-pretty-print.h.
23719         * tree-switch-conversion.c: Include gimple-pretty-print.h.
23720         * tree-tailcall.c: Include tree-pretty-print.h and
23721         gimple-pretty-print.h.
23722         * tree-vect-data-refs.c: Include tree-pretty-print.h and
23723         gimple-pretty-print.h.
23724         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
23725         gimple-pretty-print.h.
23726         * tree-vect-loop.c: Include tree-pretty-print.h and
23727         gimple-pretty-print.h.
23728         * tree-vect-patterns.c: Include gimple-pretty-print.h.
23729         * tree-vect-slp.c: Include tree-pretty-print.h and
23730         gimple-pretty-print.h.
23731         * tree-vect-stmts.c: Include tree-pretty-print.h and
23732         gimple-pretty-print.h.
23733         * tree-vectorizer.c: Include tree-pretty-print.h.
23734         * tree-vrp.c: Include tree-pretty-print.h and
23735         gimple-pretty-print.h.
23736         * value-prof.c: Include tree-pretty-print.h and
23737         gimple-pretty-print.h.
23738         * var-tracking.c: Include tree-pretty-print.h.
23739         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
23740         (tree-diagnostic.o): New dependencies.
23741         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
23742         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
23743         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
23744         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
23745         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
23746         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
23747         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
23748         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
23749         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
23750         tree-ssa-address.o, tree-ssa-loop-niter.o,
23751         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
23752         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
23753         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
23754         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
23755         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
23756         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
23757         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
23758         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
23759         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
23760         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
23761         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
23762         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
23763         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
23764         tree-switch-conversion.o, var-tracking.o, value-prof.o,
23765         cfgexpand.o, pretty-print.o): Update dependencies.
23766
23767 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
23768
23769         * tree-ssa-structalias.c: Remove tm_p.h from include.
23770
23771 2010-05-21  Jeff Law  <law@redhat.com>
23772
23773         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
23774
23775 2010-05-21  Jason Merrill  <jason@redhat.com>
23776
23777         * tree-eh.c (cleanup_is_dead_in): New.
23778         (lower_try_finally): Don't generate a dead cleanup region.
23779         (lower_cleanup): Likewise.
23780
23781 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
23782
23783         PR debug/44223
23784         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
23785         unchain each use from the cyclic next_regno_use chain first.
23786
23787 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
23788
23789         * real: Do not include gmp.h, mpfr.h, and mpc.h.
23790         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
23791         (real_value_negate, real_value_abs): New prototypes.
23792         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
23793         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
23794         new include file for interface between MPFR and REAL_VALUE_TYPE.
23795         * real.c: Include realmpfr.h.
23796         (real_arithmetic2): Remove legacy function.
23797         (real_value_negate): New.
23798         (real_value_abs): New.
23799         (mfpr_from_real, real_from_mpfr): Move from here...
23800         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
23801         * builtins.c: Include realmpfr.h.
23802         * fold-const.c: Include realmpfr.h.
23803         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
23804         (fold_negate_const): Likewise.
23805         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
23806         * toplev.c: Include realmpfr.h.
23807         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
23808         and real_value_negate.
23809         * fixed-value.c (check_real_for_fixed_mode): Likewise.
23810         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
23811         (vfp3_const_double_index): Likewise.
23812         (arm_print_operand): Likewise.
23813         * Makefile.in: Update dependencies.
23814
23815 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23816
23817         * config/s390/s390.c (override_options): Increase the default
23818         of max-completely-peel-times.
23819
23820 2010-05-21  Julian Brown  <julian@codesourcery.com>
23821             Mark Mitchell  <mark@codesourcery.com>
23822
23823         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
23824         sibling calls for Thumb-1.
23825         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
23826         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
23827         Thumb-2.
23828         (*call_insn, *call_value_insn): Don't use for Thumb-2.
23829         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
23830         for Thumb-2.
23831         (return): New expander.
23832         (*arm_return): New name for ARM return insn.
23833         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
23834
23835 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
23836
23837         * config.gcc (sparc64-*-rtems*): New target.
23838
23839 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
23840
23841         * tree.c (build_function_decl_skip_args): Fix grammar.
23842         (build_function_type_list_1): Fix typos, adjust formatting.
23843
23844 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
23845
23846         * tree.h: Include real.h and fixed-value.h as basic datatypes.
23847         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
23848         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
23849         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
23850         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
23851         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
23852         tree-pretty-print.c, tree-loop-distribution.c,
23853         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
23854         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
23855         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
23856         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
23857         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
23858         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
23859         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
23860         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
23861         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
23862         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
23863         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
23864         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
23865         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
23866         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
23867         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
23868         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
23869         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
23870         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
23871         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
23872         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
23873         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
23874         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
23875         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
23876         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
23877         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
23878         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
23879         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
23880         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
23881         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
23882         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
23883         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
23884         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
23885         config/score/score7.c, config/score/score.c, config/arm/arm.c,
23886         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
23887         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
23888         config/bfin/bfin.c: Clean up redundant includes.
23889         * Makefile.in: Update accordingly.
23890
23891 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
23892
23893         PR middle-end/44204
23894         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
23895         statement has no arguments.
23896
23897 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
23898
23899         PR/44139
23900         * varasm.c (emutls_decl): Merge attributes to new decl.
23901
23902 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
23903
23904         PR middle-end/44101
23905         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
23906         around the uniquized constructor if its type requires a conversion.
23907
23908 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
23909
23910         PR debug/44205
23911         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
23912         at -O0 goto_locus of any of the incoming edges differs from
23913         goto_locus of outgoing edge, or gimple_location of any of the
23914         labels differs.
23915
23916 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
23917
23918         * ira.c (ira_non_ordered_class_hard_regs): Define.
23919         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
23920         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
23921         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
23922         cost of unaligned hard regs when allocating multi-reg pseudos.
23923
23924 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
23925
23926         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
23927         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
23928         for TARGET_NO_FLOAT.
23929         * config/mips/mips.c (mips_file_start): Expand conditional expression
23930         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
23931         (mips_override_options): Move -mno-float override -msoft-float and
23932         -mhard-float.
23933         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
23934         Condition(TARGET_SUPPORTS_NO_FLOAT).
23935         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
23936         __mips_no_float here.
23937         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
23938         (TARGET_SUPPORTS_NO_FLOAT): Define.
23939         * config/mips/sdemtk.opt: Delete.
23940
23941 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
23942
23943         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
23944
23945 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
23946
23947         PR target/43733
23948         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
23949         * configure: Regenerate.
23950         * config.in: Regenerate.
23951         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
23952         instead of sahf only for 64bit targets.
23953
23954 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
23955
23956         PR debug/44178
23957         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
23958         setup_ref_regs for DEBUG_INSNs.
23959
23960 2010-05-20  Jan Hubicka  <jh@suse.cz>
23961
23962         PR middle-end/44197
23963         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
23964
23965 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
23966
23967         PR bootstrap/43870
23968         * df-scan.c (df_ref_compare): Stabilize sort.
23969
23970 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
23971
23972         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
23973         argument.  Don't use DW_OP_piece if offset is non-zero,
23974         put offset into second DW_OP_bit_piece argument.
23975         (dw_sra_loc_expr): Adjust callers.  For memory expressions
23976         compute offset.
23977
23978 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
23979
23980         PR target/44202
23981         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
23982         settings for 16-bit-constant "addo" alternative.
23983
23984 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
23985
23986         * config/mips/mips-dsp.md (add<DSPV:mode>3,
23987         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
23988
23989         PR target/43764
23990         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
23991         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
23992         Use it.
23993
23994 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
23995
23996         * diagnostic.c (FLOAT, FFS): Don't undefine.
23997         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
23998         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
23999         include ordering.
24000
24001 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24002
24003         * combine.c (propagate_for_debug): Call make_compound_operation
24004         on the source value.
24005         (try_combine): When implementing a split chosen by find_split_point,
24006         either copy i2src or set it to null.  Assert that i2src is not null
24007         before substituting into CALL_INSN_FUNCTION_USAGE.
24008
24009 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
24010
24011         * double-int.h (double_int_ior): New function.
24012         * tree.h (build_int_cst_wide_type): Remove.
24013         * tree.c (build_int_cst_wide_type): Remove.
24014         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
24015         of build_int_cst_wide_type.
24016         * stor-layout.c (set_sizetype): (Ditto.).
24017         * dojump.c (do_jump): Use build_int_cstu instead of
24018         build_int_cst_wide_type.
24019
24020 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
24021
24022         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
24023         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
24024         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
24025         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
24026         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
24027         propagate the 'data' argument to copy_tree_r.
24028         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
24029         Propagate 'data' argument to walk_tree.
24030         (copy_if_shared): New function.
24031         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
24032         (unmark_visited): New function.
24033         (unshare_body): Call copy_if_shared instead of doing it manually.
24034         (unvisit_body): Call unmark_visited instead of doing it manually.
24035
24036 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
24037
24038         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
24039         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
24040         * hooks.c: Likewise.
24041         * target-def.h (TARGET_FOLD_BUILTIN): Define to
24042         hook_tree_tree_int_treep_bool_null.
24043         * target.h (struct gcc_target): Update signature of fold_builtin
24044         field.
24045         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
24046         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
24047         instead of the call expression.
24048         (fold_builtin_call_array): Pass n and argarray directly.
24049         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
24050         consing a list.
24051         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
24052         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
24053         `i' and use it in place of `arity'.
24054         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
24055         Dereference `args' directly.
24056         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
24057
24058 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24059
24060         * doc/sourcebuild.texi (Effective-Target Keywords): Document
24061         3dnow, sse3, sse2.
24062         (Directives): Document optional dg-require-effective-target
24063         selector.
24064
24065 2010-05-19  Richard Guenther  <rguenther@suse.de>
24066
24067         PR lto/44196
24068         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
24069
24070 2010-05-19  Richard Guenther  <rguenther@suse.de>
24071
24072         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
24073         * common.opt (fwhopr=): New.
24074         * opts.c (common_handle_option): Handle OPT_fwhopr.
24075         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
24076         * collect2.c (main): Match -fwhopr*.
24077         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
24078         Execute ltrans stage in parallel when jobs is bigger than 1.
24079
24080 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24081
24082         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
24083         pentiumpro on Solaris 8/x86 with Sun as.
24084         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
24085         hidden alias bug.
24086         (gcc_cv_as_ix86_quad): Check for .quad directive.
24087         * configure: Regenerate.
24088         * config.in: Regenerate.
24089         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
24090
24091 2010-05-19  Martin Jambor  <mjambor@suse.cz>
24092
24093         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
24094         also for indirect edges.  Actual printing moved...
24095         (ipa_print_node_jump_functions_for_edge): ...here.
24096         (ipa_compute_jump_functions): Renamed to
24097         ipa_compute_jump_functions_for_edge and made static.
24098         (ipa_compute_jump_functions): New function.
24099         (make_edge_direct_to_target): Check if the number of arguments on
24100         the newly direct edge is the same as the number of parametrs of
24101         the callee.
24102         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
24103         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
24104         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
24105         analysis functions unconditionally, call the new
24106         ipa_analyze_params_uses on the node instead of every edge.
24107
24108 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
24109
24110         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
24111         to tree.
24112         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
24113         also checks for a constant int vs.  non-constant but
24114         loop-invariant steps.
24115         (find_or_create_group): Change the sort algorithm to only consider
24116         steps that are constant ints.
24117         (idx_analyze_ref): Adopt code to handle a tree instead of a
24118         HOST_WIDE_INT for step.
24119         (gather_memory_references_ref): Handle tree instead of int and be
24120         prepared to see a NULL_TREE.
24121         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
24122         prefetches if the step cannot be calculated at compile time.
24123         (issue_prefetch_ref): Issue prefetches for non-constant but
24124         loop-invariant steps.
24125
24126 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24127
24128         Revert:
24129         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24130
24131         * tree.h (build_call_list): Remove.
24132         * tree.c (build_call_list): Remove.
24133
24134 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24135
24136         * tree.h (build_call_list): Remove.
24137         * tree.c (build_call_list): Remove.
24138
24139 2010-05-18  Jan Hubicka  <jh@suse.cz>
24140
24141         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
24142
24143 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
24144
24145         PR rtl-optimization/43332
24146         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
24147
24148 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
24149
24150         * tree.h (build_int_cstu): Implement as static inline.
24151         * tree.c (build_int_cstu): Remove function.
24152         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
24153         sign extended.
24154
24155 2010-05-18  Richard Guenther  <rguenther@suse.de>
24156
24157         PR lto/44143
24158         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
24159         (debug): Initialize from -save-temps.
24160         (collect_execute): Print command-line when verbose.
24161         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
24162         for ltrans invocation.  Produce -dumpbase flag again.
24163         (process_args): Remove.
24164         (main): Simplify.
24165         * collect2.c (maybe_run_lto_and_relink): Only pass object
24166         files to lto-wrapper.
24167         * gcc.c (LINK_COMMAND_SPEC): Likewise.
24168
24169 2010-05-18  Jan Hubicka  <jh@suse.cz>
24170
24171         * opts.c (decode_options): Do not disable whopr at ipa_cp.
24172         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
24173
24174 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
24175
24176         PR lto/44184
24177         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
24178         in a GIMPLE_ASM.
24179         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
24180         in a GIMPLE_ASM.
24181
24182 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
24183
24184         PR debug/41371
24185         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
24186         rtx_equal_p inline.
24187
24188 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
24189
24190         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
24191         lto-macho as lto_binary_reader.
24192
24193         * darwin.c (darwin_asm_named_section): Do not add assembler comment
24194         after .section directive; just print it before the directive instead.
24195
24196 2010-05-17  Jan Hubicka  <jh@suse.cz>
24197
24198         * cgraph.c (cgraph_create_virtual_clone): Only check
24199         versionable_function_p when not in wpa and checking is enabled.
24200         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
24201         there are no more functions to materialize.
24202
24203 2010-05-17  Jan Hubicka  <jh@suse.cz>
24204
24205         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
24206         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
24207         New functions.
24208         (output_cgraph): Call output_cgraph_opt_summary.
24209         (input_cgrpah): Call input_cgraph_opt_summary.
24210         (output_cgraph_opt_summary_p, output_node_opt_summary,
24211         input_node_opt_summary, input_cgraph_opt_section): New functions.
24212         * lto-section-in.c (lto_section_name): Add cgraphopt.
24213         * tree-inline.c (tree_function_versioning): Handle parm_num.
24214         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
24215         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
24216
24217 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
24218
24219         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
24220         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
24221         the insn to prefetch ratio heuristic to loops with known trip count.
24222
24223 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
24224
24225         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
24226         (schedule_prefetches): Do not generate a prefetch if the unroll factor
24227         is far from what is required by the prefetch.
24228
24229 2010-05-17  Jan Hubicka  <jh@suse.cz>
24230
24231         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
24232         (ipcp_estimate_growth): Likewise.
24233         (ipcp_const_param_count): Likewise.
24234         (ipcp_insert_stage): Likewise.
24235         * ipa-prop.c (visit_load_for_mod_analysis): New function.
24236         (visit_store_addr_for_mod_analysis): Set used flag.
24237         (ipa_detect_param_modifications): Set used flag for SSE params;
24238         update use of walk_stmt_load_store_addr_ops.
24239         (ipa_print_node_params): Print used flag.
24240         (ipa_write_node_info): Stream used flag.
24241         (ipa_read_node_info): Likewise.
24242         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
24243         (ipa_is_param_used): New function.
24244         (lto_ipa_fixup_call_notes): Remove unused declaration.
24245
24246 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24247
24248         PR target/44074
24249         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
24250         * configure: Regenerate.
24251         * config.in: Regenerate.
24252         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
24253         !HAVE_AS_IX86_REP_LOCK_PREFIX.
24254         Don't emit whitespace.
24255         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
24256         (*rep_movsi): Likewise.
24257         (*rep_movsi_rex64): Likewise.
24258         (*rep_movqi): Likewise.
24259         (*rep_movqi_rex64): Likewise.
24260         (*rep_stosdi_rex64): Likewise.
24261         (*rep_stossi): Likewise.
24262         (*rep_stossi_rex64): Likewise.
24263         (*rep_stosqi): Likewise.
24264         (*rep_stosqi_rex64): Likewise.
24265         (*cmpstrnqi_nz_1): Use {%;} after repz.
24266         (*cmpstrnqi_nz_rex_1): Likewise.
24267         (*cmpstrnqi_1): Likewise.
24268         (*cmpstrnqi_rex_1): Likewise.
24269         (*strlenqi_1): Use {%;} after repnz.
24270         (*strlenqi_rex_1): Likewise.
24271         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
24272         (*sync_compare_and_swap<mode>): Likewise.
24273         (sync_double_compare_and_swap<mode>): Likewise.
24274         (*sync_double_compare_and_swapdi_pic): Likewise.
24275         (sync_old_add<mode>): Likewise.
24276         (sync_add<mode>): Likewise.
24277         (sync_sub<mode>): Likewise.
24278         (sync_<code><mode>): Likewise.
24279
24280 2010-05-17  Martin Jambor  <mjambor@suse.cz>
24281
24282         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
24283         otr_token and polymorphic.
24284         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
24285         (cgraph_clone_edge): Copy the above fields.
24286         * tree.c (get_binfo_at_offset): New function.
24287         * tree.h (get_binfo_at_offset): Declare.
24288         * ipa-prop.h (enum jump_func_type): Added known_type jump function
24289         type, reordered items, updated comments.
24290         (union jump_func_value): Added base_type field, reordered fields.
24291         (enum ipa_lattice_type): Moved down in the file.
24292         (struct ipa_param_descriptor): New field polymorphic.
24293         (ipa_is_param_polymorphic): New function.
24294         * ipa-prop.c: Include gimple.h and gimple-fold.h.
24295         (ipa_print_node_jump_functions): Print known type jump functions.
24296         (compute_complex_pass_through): Renamed to...
24297         (compute_complex_assign_jump_func): this.
24298         (compute_complex_ancestor_jump_func): New function.
24299         (compute_known_type_jump_func): Likewise.
24300         (compute_scalar_jump_functions): Create known type and complex ancestor
24301         jump functions.
24302         (ipa_note_param_call): New parameter polymorphic, set the corresponding
24303         flag in the call note accordingly.
24304         (ipa_analyze_call_uses): Renamed to...
24305         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
24306         variable var only in the block where it is used.
24307         (ipa_analyze_virtual_call_uses): New function.
24308         (ipa_analyze_call_uses): Likewise.
24309         (combine_known_type_and_ancestor_jfs): Likewise.
24310         (update_jump_functions_after_inlining): Implemented handling of a
24311         number of new jump function types combination.
24312         (print_edge_addition_message): Removed.
24313         (make_edge_direct_to_target): New function.
24314         (try_make_edge_direct_simple_call): Likewise.
24315         (try_make_edge_direct_virtual_call): Likewise.
24316         (update_call_notes_after_inlining): Renamed to...
24317         (update_indirect_edges_after_inlining): this.  Moved edge creation for
24318         indirect calls to try_make_edge_direct_simple_call, also calls
24319         try_make_edge_direct_virtual_call for virtual calls.
24320         (ipa_print_node_params): Changed the header message.
24321         (ipa_write_jump_function): Stream also known type jump functions.
24322         (ipa_read_jump_function): Likewise.
24323         (ipa_write_indirect_edge_info): Stream new fields in
24324         cgraph_indirect_call_info.
24325         (ipa_read_indirect_edge_info): Likewise.
24326         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
24327         GIMPLE_FOLD_H.
24328
24329 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24330
24331         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
24332
24333 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
24334
24335         * tree.h (CALL_EXPR_ARGS): Delete.
24336         (call_expr_arglist): Delete.
24337         * tree.c (call_expr_arglist): Delete.
24338         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
24339         targetm.fold_builtin.
24340         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
24341         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
24342         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
24343         arglist parameter.  Use CALL_EXPR_ARG.
24344         (picochip_expand_builtin_3op): Likewise.
24345         (picochip_expand_builtin_2opvoid): Likewise.
24346         (picochip_expand_array_get): Likewise.
24347         (picochip_expand_array_put): Likewise.
24348         (picochip_expand_array_testport): Likewise.
24349         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
24350         rather than arglist.
24351         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
24352         CALL_EXPR_ARGS.
24353         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
24354         than TREE_VALUE and TREE_CHAIN.
24355         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
24356         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
24357         the arglist.
24358
24359 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
24360
24361         PR bootstrap/42347
24362         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
24363         to have no fallthru edge.
24364
24365         PR middle-end/44102
24366         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
24367         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
24368         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
24369         add BARRIER after previous bb if needed.
24370
24371 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
24372
24373         * tree.c (build_function_type_list_1): Remove bogus assert condition.
24374
24375 2010-05-17  Alan Modra  <amodra@gmail.com>
24376
24377         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
24378         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
24379         with copy_reg rtx param.
24380         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
24381         Correct cases where code for ABI_V4 did not initialise the reg
24382         used to access frame.  Also leave frame_reg_rtx as sp for large
24383         frames that save no regs.
24384
24385 2010-05-17  Martin Jambor  <mjambor@suse.cz>
24386
24387         PR middle-end/44133
24388         * tree-sra.c (create_access_replacement): New parameter rename, mark
24389         the replaement for renaming only when it is true.
24390         (get_access_replacement): Pass true in the rename parameter of
24391         create_access_replacement.
24392         (get_unrenamed_access_replacement): New function.
24393         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
24394         replacement declaration from it.
24395
24396 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
24397
24398         * function.c (try_fit_stack_local, add_frame_space): New static
24399         functions.
24400         (assign_stack_local_1): Use them.  Look for opportunities to use
24401         space previously wasted on alignment.
24402         * function.h (struct frame_space): New.
24403         (struct rtl_data): Add FRAME_SPACE_LIST member.
24404         * reload1.c (something_was_spilled): New static variable.
24405         (alter_reg): Set it.
24406         (reload): Test it in addition to testing if the frame size changed.
24407
24408 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
24409
24410         * config/s390/s390.c: Define sane prefetch settings and activate
24411         flag_prefetch_loop_arrays on -O3.
24412         * config/s390/s390.h: Declare that read can use write prefetch.
24413
24414 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
24415
24416         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
24417         build.
24418
24419 2010-05-16  Jan Hubicka  <jh@suse.cz>
24420
24421         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
24422         function body; do not check stdarg field of struct function.
24423
24424 2010-05-16  Jan Hubicka  <jh@suse.cz>
24425
24426         * cgraph.c (dump_cgraph_node): Dump versionable flag.
24427         * cgraph.h (cgraph_local_info): Add versionable flag.
24428         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
24429         (ipcp_versionable_function_p): Use it.
24430         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24431         versionable flag.
24432
24433 2010-05-16  Jan Hubicka  <jh@suse.cz>
24434
24435         * cgraph.c (cgraph_clone_node): Take decl argument and insert
24436         clone into hash when it is different from orig.
24437         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
24438         * cgraph.h (cgraph_clone_node): Update prototype.
24439         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
24440         (lto_cgraph_encoder_delete): Delete body map.
24441         (lto_cgraph_encoder_size): Move to header.
24442         (lto_cgraph_encoder_encode_body_p,
24443         lto_set_cgraph_encoder_encode_body): New.
24444         (lto_output_node): Do not take written_decls argument; output clone_of
24445         pointer.
24446         (add_node_to): Add include_body_argument; call
24447         lto_set_cgraph_encoder_encode_body on master of the clone.
24448         (add_references): Update use of add_node_to.
24449         (compute_ltrans_boundary): Likewise.
24450         (output_cgraph): Do not create written_decls bitmap.
24451         (input_node): Take nodes argument; stream in clone_of correctly.
24452         (input_cgraph_1): Update use of input_node.
24453         * lto-streamer-out.c (lto_output): Use encoder info to decide
24454         what bodies to output.
24455         * ipa-inline.c (cgraph_clone_inlined_nodes,
24456         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
24457         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
24458         (lto_cgraph_encoder_size): Define here.
24459         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
24460         Declare.
24461
24462 2010-05-16  Richard Guenther  <rguenther@suse.de>
24463
24464         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
24465         -fipa-type-escape.
24466         * ipa-type-escape.c (gate_type_escape_vars): Run when
24467         -fipa-struct-reorg runs.
24468         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
24469         * common.opt (fipa-type-escape): Remove.
24470
24471 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24472
24473         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
24474         (decode_options): Likewise.
24475         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
24476
24477 2010-05-16  Jan Hubicka  <jh@suse.cz>
24478
24479         * ipa.c (function_and_variable_visibility): Also bring local all
24480         aliases.
24481
24482 2010-05-16  Richard Guenther  <rguenther@suse.de>
24483
24484         * alias.c (nonoverlapping_memrefs_p): Remove use of
24485         IPA type-escape information.
24486
24487 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
24488
24489         * c-common.c (c_common_reswords): Add _Static_assert for C.
24490         * c-parser.c (c_token_starts_declaration,
24491         c_parser_next_token_starts_declaration,
24492         c_parser_static_assert_declaration_no_semi,
24493         c_parser_static_assert_declaration): New.
24494         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
24495         Handle static assertions if static_assert_ok.
24496         (c_parser_external_declaration, c_parser_declaration_or_fndef,
24497         c_parser_compound_statement_nostart, c_parser_label,
24498         c_parser_for_statement, c_parser_objc_methodprotolist,
24499         c_parser_omp_for_loop): All callers of
24500         c_parser_declaration_or_fndef changed.
24501         (c_parser_struct_declaration): Handle static assertions.
24502         (c_parser_compound_statement_nostart): Use
24503         c_parser_next_token_starts_declaration and
24504         c_token_starts_declaration to detect start of declarations.
24505         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
24506         Likewise.
24507
24508 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
24509
24510         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24511         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24512         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24513         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24514         (mmix_function_outgoing_value): Rename to...
24515         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
24516         (mmix_function_value_regno_p): Make static.
24517         (mmix_libcall_value): New function.
24518         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
24519         mmix_function_value_regno_p): Remove declaration.
24520
24521 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24522
24523         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
24524         BUILT_IN_ALLOCA if stack checking is enabled.
24525
24526 2010-05-16  Richard Guenther  <rguenther@suse.de>
24527
24528         * var-tracking.c (vars_copy_1): Inline ...
24529         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
24530         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
24531         (variable_merge_over_cur): Adjust.  Merge asserts.
24532         (variable_merge_over_src): Likewise.
24533         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
24534         (variable_post_merge_new_vals): Merge asserts.
24535         (variable_post_merge_perm_vals): Likewise.
24536         (find_mem_expr_in_1pdv): Likewise.
24537         (dataflow_set_different_value): Remove.
24538         (onepart_variable_different_p): Merge asserts.
24539         (variable_different_p): Likewise.
24540         (dataflow_set_different_1): Inline ...
24541         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
24542         (emit_notes_for_differences_1): Merge asserts.
24543
24544 2010-05-16  Richard Guenther  <rguenther@suse.de>
24545
24546         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
24547         * optabs.c (libfunc_decl_hash): Likewise.
24548         * varasm.c (emutls_decl): Likewise.
24549
24550 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
24551
24552         * c-decl.c: Don't include gimple.h.
24553         (merge_decls): Do not copy gimple_body.
24554
24555 2010-05-15  Jason Merrill  <jason@redhat.com>
24556
24557         * c.opt: Add -fnothrow-opt.
24558
24559 2010-05-15  Jan Hubicka  <jh@suse.cz>
24560
24561         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
24562         analyzed.
24563         * passes.c (ipa_write_summaries): Write all analyzed nodes.
24564
24565 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
24566
24567         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
24568         * Makefile.in: Add it.
24569         Fix all other Makefile dependencies for changes below.
24570         * tree.h: Include it instead of defining VEC primitives here.
24571         * gimple.h: Likewise.
24572         * rtl.h: Likewise.
24573         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
24574         * except.h: Include vecir.h, break dependence on tree.h.
24575
24576         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
24577         Move from here...
24578         * tree-iterator.c: ...to here.
24579         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
24580
24581         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
24582         tm_p.h.
24583         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
24584         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
24585         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
24586         tree-mudflap.h, and target.h.
24587         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
24588         predict.h, tree-inline.h, gimple.h, and langhooks.h.
24589         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
24590         Add FIXME for why gimple.h is still included (should be unnecessary
24591         since GCC 4.5 gimplification unit-at-a-time).
24592         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
24593         * c-pragma.c: Add FIXME for why function.h needs to be included just
24594         for cfun, at front-end level.
24595         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
24596         Do not include ggc.h, but include vecprim.h for VEC(char).
24597         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
24598         Explain why target.h is included.
24599         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
24600         Explain why gimple.h is included.
24601         * c-ppoutput.c: Do not include tm.h.
24602         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
24603         * c-parses.c: Explain why rtl.h is included, and that this (and only
24604         this) is also why tm.h must be included.
24605         Do not include except.h.
24606         * c-lang.c: Do not include ggc.h.
24607
24608 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
24609
24610         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
24611
24612 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
24613
24614         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
24615         unions by default if those structs and unions have no tags.  Do
24616         not condition anonymous struct and unions handling on flag_iso.
24617         Allow anonymous structs and unions for C1X.
24618         (finish_struct): Do not diagnose lack of named fields when
24619         anonymous structs and unions present for C1X.  Accept flexible
24620         array members in structure with anonymous structs or unions but no
24621         directly named fields.
24622         * doc/extend.texi (Unnamed Fields): Update.
24623
24624 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
24625
24626         * gimple.h (compare_field_offset): Rename into...
24627         (gimple_compare_field_offset): ...this.
24628         * gimple.c (compare_field_offset): Rename into...
24629         (gimple_compare_field_offset): ...this.  Compare the full access if
24630         the offset is self-referential.
24631         (gimple_types_compatible_p): Adjust for above renaming.
24632         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
24633         DECL_NONADDRESSABLE_P flag of fields before merging them.
24634
24635 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
24636
24637         * tree.h (ctor_to_list): Delete.
24638         * tree.c (ctor_to_list): Delete.
24639
24640 2010-05-15  Jan Hubicka  <jh@suse.cz>
24641
24642         * ipa-reference.c: Include toplev.h
24643         (is_proper_for_analysis): Only add to all_module_statics
24644         if it is allocated.
24645         (write_node_summary_p, stream_out_bitmap,
24646         ipa_reference_write_optimization_summary,
24647         ipa_reference_read_optimization_summary): New.
24648         (struct ipa_opt_pass_d pass_ipa_reference): Add
24649         optimization summary streaming.
24650         * lto-cgraph.c (referenced_from_this_partition_p,
24651         reachable_from_this_partition_p): New functions.
24652         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
24653         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
24654         * opts.c (decode_options): Enable ipa_reference.
24655         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
24656         * lto-streamer.h (referenced_from_this_partition_p,
24657         reachable_from_this_partition_p): Declare.
24658
24659 2010-05-15  Richard Guenther  <rguenther@suse.de>
24660
24661         PR tree-optimization/44038
24662         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
24663         taking the address of a V_C_E of a constant.
24664
24665 2010-05-14  Jan Hubicka  <jh@suse.cz>
24666
24667         * tree.h (memory_identifier_string): Remove.
24668         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
24669         (ipa_reference_global_vars_info_d): Remove statics_not_read and
24670         statics_not_written.
24671         (ipa_reference_optimization_summary_d): New structure.
24672         (ipa_reference_optimization_summary_t): New type and vector.
24673         (ipa_reference_vars_info_d): Embedd structures instead of using
24674         pointers.
24675         (reference_vars_to_consider): Remove out of GGC space.
24676         (module_statics_escape): Remove.
24677         (global_info_obstack): Rename to ...
24678         (optimization_summary_obstack): ... this one.
24679         (initialization_status_t): Remove.
24680         (memory_identifier_string): Remove.
24681         (get_reference_vars_info): Fix indenting.
24682         (set_reference_vars_info): Likewise.
24683         (get_reference_optimization_summary): New.
24684         (set_reference_optimization_summary): New.
24685         (get_global_reference_vars_info): Remove.
24686         (ipa_reference_get_read_global): Remove.
24687         (ipa_reference_get_written_global): Remove.
24688         (ipa_reference_get_not_read_global): Update.
24689         (ipa_reference_get_not_written_global): Update.
24690         (is_proper_for_analysis): Outlaw addressable.
24691         (propagate_bits): Update for new datastructures.
24692         (analyze_variable): Remove.
24693         (init_function_info): Update for new datastructures.
24694         (clean_function_local_data): Remove.
24695         (clean_function): Remove.
24696         (copy_global_bitmap): Use optimizations_summary_obstack.
24697         (duplicate_node_data): Duplicate optimization summary only.
24698         (remove_node_data): Remove optimization summary only.
24699         (generate_summary): Do not analyze variables; do not compute
24700         module_statics_escape; do not prune solutions by it.
24701         (read_write_all_from_decl): Fix typos in comments.
24702         (propagate): Doscover readonly and nonaddressable first;
24703         update for new datastructures; share global bitmaps.
24704         * ipa-reference.h (ipa_reference_get_read_global,
24705         ipa_reference_get_written_global): Remove.
24706         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
24707         * Makefile.in: Remove ipa-refereference from GT files.
24708
24709 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
24710
24711         PR debug/44112
24712         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
24713         for all SYMBOL_REF_DECLs.
24714
24715 2010-05-14  Jan Hubicka  <jh@suse.cz>
24716
24717         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
24718         (varpool_all_refs_explicit_p): New inline function.
24719         * ipa-reference.c: Update comment.
24720         (module_statics_written): Remove.
24721         (get_static_decl): Remove.
24722         (ipa_init): Do not initialize module_statics_written.
24723         (analyze_function): Likewise.
24724         (generate_summary): Likewise; do not compute module_statics_readonly
24725         and do not update variable flags.
24726         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
24727         * ipa.c: Inlucde flags.h
24728         (cgraph_local_node_p): New.
24729         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
24730         promote functions to local.
24731         (ipa_discover_readonly_nonaddressable_vars): New function.
24732         (function_and_variable_visibility): Use cgraph_local_node_p.
24733         * varpool.c (varpool_finalize_decl): Set force_output for
24734         DECL_PRESERVE_P vars.
24735
24736 2010-05-14  Jan Hubicka  <jh@suse.cz>
24737
24738         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
24739
24740 2010-05-14  Richard Guenther  <rguenther@suse.de>
24741
24742         PR tree-optimization/44119
24743         * tree-ssa-pre.c (eliminate): Properly mark replacement of
24744         a PHI node necessary.
24745
24746 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24747
24748         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
24749
24750 2010-05-14  Jason Merrill  <jason@redhat.com>
24751
24752         PR c++/44127
24753         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
24754         (gimple_call_set_nothrow): New.
24755         * gimple.c (gimple_build_call_from_tree): Call it.
24756         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
24757
24758         PR c++/44127
24759         * gimplify.c (gimplify_seq_add_stmt): No longer static.
24760         * gimple.h: Declare it.
24761         * gimple.c (gimple_build_eh_filter): No ops.
24762
24763 2010-05-14  Jan Hubicka  <jh@suse.cz>
24764
24765         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
24766         nodes already in queue.
24767         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
24768         re-enqueueing node.
24769
24770 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
24771
24772         PR debug/44136
24773         * cfgexpand.c (expand_debug_expr): If non-memory op0
24774         has BLKmode, return NULL.
24775
24776 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
24777
24778         * config.gcc: Add support for --with-cpu option for bdver1.
24779         * config/i386/i386.h (TARGET_BDVER1): New macro.
24780         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
24781         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24782         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
24783         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24784         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
24785         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
24786         (processor_type): Add PROCESSOR_BDVER1.
24787         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
24788         processor_type in config/i386/i386.h.
24789         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
24790         movaps <reg, reg> instead of movapd <reg, reg> when replacing
24791         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
24792         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24793         to emit packed xor instead of packed double/packed integer
24794         xor for SSE and AVX when moving a zero value.
24795         * config/i386/sse.md: Add check for
24796         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
24797         movapd/movdqa for SSE and AVX.
24798         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
24799         single logical operations i.e and, or and xor instead of packed double
24800         logical operations for SSE and AVX.
24801         * config/i386/i386-c.c (ix86_target_macros_internal):
24802         Add PROCESSOR_BDVER1.
24803         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
24804         (has_fma4, has_xop): New.
24805         * config/i386/i386.c (bdver1_cost): New variable.
24806         (m_BDVER1): New macro.
24807         (m_AMD_MULTIPLE): Add m_BDVER1.
24808         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
24809         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
24810         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
24811         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
24812         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
24813         x86_tune_sse_partial_reg_dependency,
24814         x86_tune_sse_unaligned_load_optimal,
24815         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
24816         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
24817         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
24818         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
24819         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
24820         Enable/disable for bdver1.
24821         (processor_target_table): Add bdver1_cost.
24822         (cpu_names): Add bdver1.
24823         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
24824          processor_alias_table.
24825         (ix86_expand_vector_move_misalign): Change.
24826         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
24827         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
24828         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
24829         of movupd/movdqu for SSE and AVX.
24830         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
24831         (ix86_tune_adjust_cost): Add code for bdver1.
24832         (standard_sse_constant_opcode): Add check for
24833         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
24834         of packed double xor for SSE and AVX.
24835
24836 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
24837
24838         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
24839         result to unsigned.
24840
24841 2010-05-14  Tristan Gingold  <gingold@adacore.com>
24842
24843         * toplev.c (default_debug_hooks): Remove this variable.
24844         (process_options): Remove assignments to default_debug_hooks.
24845
24846 2010-05-14  Martin Jambor  <mjambor@suse.cz>
24847
24848         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
24849         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
24850         * langhooks.h (struct lang_hooks_for_decls): Removed field
24851         fold_obj_type_ref.
24852         * tree.c (free_lang_data): Remove assignment to
24853         lang_hooks.fold_obj_type_ref.
24854         * tree.def (OBJ_TYPE_REF): Update comment.
24855
24856 2010-05-14  Richard Guenther  <rguenther@suse.de>
24857
24858         PR tree-optimization/44124
24859         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
24860
24861 2010-05-14  Alan Modra  <amodra@gmail.com>
24862
24863         PR target/44075
24864         * config/rs6000/rs6000.c (struct machine_function): Reorder
24865         fields for better packing.  Add lr_save_state.
24866         (rs6000_ra_ever_killed): Return lr_save_state if set.
24867         (rs6000_emit_eh_reg_restore): Set lr_save_state.
24868
24869 2010-05-13  Jan Hubicka  <jh@suse.cz>
24870
24871         * varpool.c (decide_is_variable_needed): Drop code checking
24872         TREE_SYMBOL_REFERENCED.
24873
24874 2010-05-13  Jan Hubicka  <jh@suse.cz>
24875
24876         * final.c (output_addr_const): Do not call mark_decl_referenced.
24877         * cgraphunit.c (process_function_and_variable_attributes): Use
24878         mark_needed_node dirrectly.
24879         (assemble_thunk): Do not call mark_decl_referenced.
24880
24881 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
24882
24883         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
24884
24885 2010-05-13  Jeff Law  <law@redhat.com>
24886
24887         * ira-conflicts.c (print_allocno_conflicts): New function broken out
24888         from...
24889         (print_conflicts): Call print_allocno_conflicts.
24890
24891 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
24892
24893         PR debug/44104
24894         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
24895         if it is NULL.
24896
24897 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
24898
24899         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
24900         t-mingw-w64 or t-mingw-w32 for multilib configuration.
24901         * config/i386/t-mingw-w32: New.
24902         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
24903
24904 2010-05-13  Martin Jambor  <mjambor@suse.cz>
24905
24906         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
24907         gimple-fold.c).
24908         * gimple-fold.c (get_base_binfo_for_type): New function.
24909         (gimple_get_relevant_ref_binfo): Likewise.
24910         (gimple_fold_obj_type_ref_known_binfo): Likewise.
24911         (gimple_fold_obj_type_ref): Likewise.
24912         (fold_gimple_call): Simplify condition for folding virtual calls
24913         and call gimple_fold_obj_type_ref.
24914         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
24915         (gimple_fold_obj_type_ref_known_binfo): Likewise.
24916
24917 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
24918
24919         * config/rs6000/rs6000-protos.h
24920         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
24921         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
24922         (rs6000_debug_mode_dependent_address)
24923         (rs6000_mode_dependent_address_ptr): Likewise.
24924
24925 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
24926
24927         PR debug/43983
24928         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
24929         by SRA.
24930         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
24931         * tree-sra.c (create_access_replacement): Call unshare_expr before
24932         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
24933         * dwarf2out.c: Include tree-flow.h.
24934         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
24935         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
24936         Handle DW_OP_bit_piece.
24937         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
24938         construct_piece_list, adjust_piece_list): New functions.
24939         (add_var_loc_to_decl): Handle SRA optimized variables.
24940         Adjust for var_loc_note to loc field renaming.
24941         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
24942         in VAR_LOCATION note.
24943         (new_loc_descr_op_bit_piece): New function.
24944         (dw_sra_loc_expr): New function.
24945         (dw_loc_list): Use it.  Don't handle the last range after the
24946         loop, handle it inside of the loop.  Adjust for var_loc_note
24947         to loc field renaming.
24948         (add_location_or_const_value_attribute): Only special case
24949         single entry loc lists if loc is NOTE_P.  Adjust for
24950         var_loc_note to loc field renaming.
24951         (dwarf2out_var_location): Don't set newloc->var_loc_note
24952         and newloc->next here.
24953
24954 2010-05-12  Jan Hubicka  <jh@suse.cz>
24955
24956         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
24957         flag.
24958         * cgraph.h (cgraph_only_called_directly_p,
24959         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
24960         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
24961         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
24962         (assemble
24963         * ipa.c (cgraph_remove_unreachable_nodes): Use
24964         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
24965         flags.
24966         * tree-inline.c (copy_bb): Check address_taken flag.
24967         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
24968         externally_visible flag.
24969
24970 2010-05-12  Jason Merrill  <jason@redhat.com>
24971
24972         PR bootstrap/44048
24973         PR target/44099
24974         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
24975         * sdbout.c (plain_type_1): Likewise.
24976         * dwarf2out.c (is_base_type): Likewise.
24977         (gen_type_die_with_usage): Likewise.  Generate
24978         DW_TAG_unspecified_type for any LANG_TYPE.
24979
24980 2010-05-12  Jan Hubicka  <jh@suse.cz>
24981
24982         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
24983         indrect edges too.
24984         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
24985         (cgraph_clone_edge): Update.
24986         (cgraph_node_remove_callees): Remove indirect calls too.
24987         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
24988         (cgraph_create_indirect_edge): Update prototype.
24989         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
24990         is_proper_for_analysis.
24991         (add_new_function, visited_nodes, function_insertion_hook_holder,
24992         get_local_reference_vars_info, mark_address_taken, mark_address,
24993         mark_load, mark_store, check_asm_memory_clobber, check_call,
24994         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
24995         (ipa_init): Do not initialize visited_nodes;
24996         function_insertion_hook_holder.
24997         (analyze_variable): Rewrite.
24998         (analyze_function): Rewrite.
24999         (copy_local_bitmap): Remove.
25000         (duplicate_node_dat): Do not duplicate local info.
25001         (generate_summary): Simplify to only walk cgraph.
25002         (write_node_summary_p, ipa_reference_write_summary,
25003         ipa_reference_read_summary): Remove.
25004         (propagate): Do not remove function insertion;
25005         generate summary.
25006         (pass_ipa_reference): NULLify summary handling fields.
25007         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
25008         (input_edge): Input ecf_flags.
25009         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
25010         (update_indirect_edges_after_inlining): Ignore edges with unknown
25011         param.
25012
25013 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
25014
25015         * implicit-zee.c: New file.
25016         * tree-pass.h (pass_implicit_zee): Declare.
25017         * passes.c (init_optimization_passes): Add zee pass.
25018         * common.opt (fzee): New flag.
25019         * timevar.def (TV_ZEE): Define.
25020         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
25021         and beyond.
25022         * Makefile.in (implicit-zee.o): Add new build file.
25023
25024 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25025             Nathan Froyd  <froydnj@codesourcery.com>
25026
25027         * c-common.c (sync_resolve_params): Remove write-only variable.
25028
25029 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
25030
25031         * target.h (struct gcc_target): Add mode_dependent_address_p field.
25032         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25033         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
25034         * targhooks.c (default_mode_dependent_address_p): New function.
25035         * targhooks.h (default_mode_dependent_address_p): Declare function.
25036         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25037         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
25038         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
25039         target hook. Change return type to bool.
25040         * recog.h (mode_dependent_address_p): Change return type to bool.
25041
25042 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25043             Nathan Froyd  <froydnj@codesourcery.com>
25044
25045         * tree-mudflap.c (build_function_type_0, build_function_type_1,
25046         build_function_type_2, build_function_type_3): Remove.
25047         (mudflap_init): Use build_function_type_list.
25048
25049 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25050             Nathan Froyd  <froydnj@codesourcery.com>
25051
25052         * coverage.c (build_fn_info_value): Call build_constructor instead of
25053         build_constructor_from_list.
25054         (build_ctr_info_value): Likewise.
25055         (build_gcov_info): Likewise.
25056
25057 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
25058
25059         * tree.c (build_constructor): Compute TREE_CONSTANT for the
25060         resultant constructor.
25061         (build_constructor_single): Don't set TREE_CONSTANT.
25062         (build_constructor_from_list): Don't compute TREE_CONSTANT.
25063
25064 2010-05-12  Jan Hubicka  <jh@suse.cz>
25065
25066         * cgraph.h (struct varpool_node): Add aux.
25067         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
25068         * varpool.c (varpool_remove_node): Do not remove initializer.
25069         (varpool_reset_queue): Export.
25070         (varpool_finalize_decl): Volatile vars are forced to be output.
25071         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
25072         replaced decl.
25073         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
25074         process_references, varpool_can_remove_if_no_refs): New functions.
25075         (cgraph_remove_unreachable_nodes): Handle variables too.
25076
25077 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
25078
25079         PR target/44088
25080         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
25081
25082 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
25083
25084         PR middle-end/44085
25085         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
25086         change value of ORT_TASK.
25087         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
25088         (omp_notice_threadprivate_variable): New function.
25089         (omp_notice_variable): Call it for threadprivate variables.
25090         If enclosing ctx is a task, print enclosing task rather than
25091         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
25092         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
25093         if task has untied clause.
25094
25095         PR debug/42278
25096         * dwarf2out.c (base_type_die): Don't add name attribute here.
25097         (modified_type_die): Instead of sizetype use
25098         its underlying original type.  If a DW_TAG_base_type doesn't
25099         have name added, add __unknown__.
25100         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
25101         always call force_type_die instead.
25102
25103 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
25104
25105         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
25106         for __stack_chk_guard.
25107
25108 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
25109
25110         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
25111         don't call start_source_file debug hook here...
25112         (finish_options): ... but here, after outputting predefined and
25113         command line defines and undefs.
25114
25115         PR middle-end/44071
25116         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
25117         no fallthru edge.
25118         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
25119         optimizing away empty bb with no successors, move over its
25120         footer chain to fallthru predecessor.
25121         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
25122         (rtl_split_edge): For asm goto call patch_jump_insn even if
25123         splitting fallthru edge.
25124
25125         PR c++/44059
25126         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
25127         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
25128         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
25129         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
25130         on DW.ref.* decls.
25131
25132         PR c++/44062
25133         * c-parser.c (c_parser_expression): Mark LHS of a comma
25134         expression as read if it is a decl, handled component or
25135         COMPOUND_EXPR with that on the RHS.
25136         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
25137         if it is a decl or handled component.
25138
25139 2010-05-11  Jan Hubicka  <jh@suse.cz>
25140
25141         * lto-symtab.c (lto_symtab_free): New function.
25142         * lto-streamer.h (lto_symtab_free): Declare.
25143
25144 2010-05-11  Jan Hubicka  <jh@suse.cz>
25145
25146         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
25147         that if function is needed it is reachable.
25148         (lto_output_node): See if it the function is reachable or referenced.
25149         (output_cgraph): Update call of lto_output_node.
25150         * lto-streamer.h (reachable_from_other_partition_p): Declare.
25151
25152 2010-05-11  Jan Hubicka  <jh@suse.cz>
25153
25154         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
25155         Mark as used.
25156
25157 2010-05-11  Jan Hubicka  <jh@suse.cz>
25158
25159         PR tree-optimize/44063
25160         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
25161         queue.
25162         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
25163         limits.
25164         (estimate_function_body_sizes): Compute sizes even when disregarding.
25165
25166 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
25167
25168         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
25169
25170 2010-05-11  Jan Hubicka  <jh@suse.cz>
25171
25172         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
25173         into every boundary.
25174
25175 2010-05-11  Jan Hubicka  <jh@suse.cz>
25176
25177         * matrix-reorg.c (matrix_reorg): Rebuild edges.
25178
25179 2010-05-11  Jan Hubicka  <jh@suse.cz>
25180
25181         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
25182         lto_streamer_cache_delete): Put nodes into heap.
25183         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
25184         heap.
25185
25186 2010-05-11  Jan Hubicka  <jh@suse.cz>
25187
25188         * cgraphbuild.c (cgraph_rebuild_references): New.
25189         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
25190         out extern inlines.
25191         * cgraph.h (cgraph_rebuild_references): Declare.
25192         * tree-inline.c (tree_function_versioning): Use it.
25193         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
25194
25195 2010-05-11  Jan Hubicka  <jh@suse.cz>
25196
25197         * cgraph.c: Include ipa-utils.h
25198         (cgraph_create_virtual_clone): Update references.
25199         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
25200
25201 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
25202
25203         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
25204         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
25205         cache size.
25206
25207 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
25208
25209         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
25210
25211 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
25212
25213         * gcc.c (execute): For -### don't quote arguments that
25214         contain just alphanumerics and _/-. characters.
25215         * doc/invoke.texi: Document that change for -###.
25216
25217         PR debug/44023
25218         * df-problems.c (struct dead_debug): Add to_rescan field.
25219         (dead_debug_init): Clear to_rescan field.
25220         (dead_debug_finish): Rescan all debug insns in to_rescan
25221         bitmap and free the bitmap.
25222         (dead_debug_insert_before): Instead of rescanning debug insns
25223         immediately queue their rescanning until dead_debug_finish.
25224         (df_note_bb_compute): After dead_debug_add do continue instead
25225         of break.
25226
25227 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
25228
25229         PR debug/44028
25230         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
25231         clear also INSN_REG_USE_LIST.
25232
25233 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25234
25235         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
25236
25237 2010-05-10  Jan Hubicka  <jh@suse.cz>
25238
25239         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
25240         commited change.
25241
25242 2010-05-10  Jan Hubicka  <jh@suse.cz>
25243
25244         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
25245         Allocate encoders.
25246         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
25247         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
25248         (lto_streamer_cache_create): Init alloc pool.
25249         (lto_streamer_cache_delete): Free alloc pool.
25250         * lto-streamer.h: Include alloc pool.
25251         (lto_streamer_cache_d): Use alloc pool.
25252         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
25253
25254 2010-05-10  Jan Hubicka  <jh@suse.cz>
25255
25256         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
25257         * cgraphbuild.c: Include except.h
25258         (record_type_list, record_eh_tables): New function.
25259         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
25260
25261 2010-05-10  Jan Hubicka  <jh@suse.cz>
25262
25263         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
25264         __frame_dummy_init_array_entry, force_to_data): Attribute as used
25265         rather than unused.
25266
25267 2010-05-10  Michael Matz  <matz@suse.de>
25268
25269         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
25270         (can_reassociate_p): Use FLOAT_TYPE_P.
25271         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
25272         (vect_force_simple_reduction): ... this.
25273         * tree-parloops.c (gather_scalar_reductions): Use
25274         vect_force_simple_reduction.
25275         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
25276         vect_is_simple_reduction, add modify argument, if true rewrite
25277         "a-b" into "a+(-b)".
25278         (vect_is_simple_reduction, vect_force_simple_reduction): New
25279         functions.
25280         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
25281
25282 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25283             Vladimir Makarov  <vmakarov@redhat.com>
25284
25285         PR rtl-optimization/44012
25286         * ira-build.c (remove_unnecessary_allocnos): Nullify
25287         regno_allocno_map of the removed allocno.
25288
25289 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25290
25291         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
25292         to /dev/null.
25293         * configure: Regenerate.
25294
25295 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25296
25297         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
25298         unused.
25299         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
25300         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
25301         support in Sun ld.
25302         * configure: Regenerate.
25303
25304 2010-05-10  Richard Guenther  <rguenther@suse.de>
25305
25306         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
25307         marked if the entry identifier is marked.
25308
25309 2010-05-10  Richard Guenther  <rguenther@suse.de>
25310
25311         * c-common.c (struct c_common_attributes): Add fnspec attribute.
25312         (handle_fnspec_attribute): New function.
25313         * gimple.h (gimple_call_return_flags): Declare.
25314         (gimple_call_arg_flags): Likewise.
25315         * gimple.c (gimple_call_arg_flags): New function.
25316         (gimple_call_return_flags): Likewise.
25317         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
25318         New argument flags.
25319         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
25320         return value flags.
25321         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
25322         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
25323         main work to ...
25324         (make_heapvar_for): ... this new function.
25325         (handle_rhs_call): Handle fnspec attribute argument specifiers.
25326         (handle_lhs_call): Likewise.
25327         (find_func_aliases): Adjust.
25328
25329 2010-05-10  Richard Guenther  <rguenther@suse.de>
25330
25331         PR tree-optimization/44050
25332         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
25333
25334 2010-05-10  Wei Guozhi  <carrot@google.com>
25335
25336         PR target/42879
25337         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
25338
25339 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
25340
25341         PR c/10676
25342         * c-typeck.c (lookup_field): Take a type directly.  Update
25343         recursive calls.
25344         (build_component_ref): Update call to lookup_field.
25345         (set_init_label): Use lookup_field to find initialized field.
25346         Handle returned list of fields like a sequence of designators.
25347
25348 2010-05-09  Richard Guenther  <rguenther@suse.de>
25349
25350         PR middle-end/44024
25351         * fold-const.c (tree_single_nonzero_warnv_p): Properly
25352         handle &FUNCTION_DECL.
25353
25354 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
25355
25356         PR c/4784
25357         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
25358         structures and unions recursively.
25359         (detect_field_duplicates): Move duplicate detection with a hash to
25360         detect_field_duplicates_hash.  Always use a hash if anonymous
25361         structures or unions are present.
25362         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
25363         give errors.
25364
25365 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25366
25367         PR target/44046
25368         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
25369         detect Atom, Core 2 and Core i7.
25370
25371 2010-05-09  Richard Guenther  <rguenther@suse.de>
25372
25373         * gcc.c (store_arg): Handle temporary file deletion for
25374         joined arguments.
25375
25376 2010-05-09  Richard Guenther  <rguenther@suse.de>
25377
25378         PR middle-end/44043
25379         * ipa-inline.c (estimate_function_body_sizes): Return after
25380         disregarding inline limits.
25381
25382 2010-05-09  Richard Guenther  <rguenther@suse.de>
25383
25384         * gcc.c (store_arg): Revert last change.
25385
25386 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
25387
25388         PR middle-end/28685
25389         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
25390         (optimize_ops_list): Call it.
25391
25392 2010-05-08  Richard Guenther  <rguenther@suse.de>
25393
25394         PR tree-optimization/44030
25395         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
25396         NECESSARY flag if we propagate from a inserted expression.
25397
25398 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
25399
25400         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
25401         domain types as equal if they are both PLACEHOLDER_EXPRs.
25402
25403 2010-05-08  Richard Guenther  <rguenther@suse.de>
25404
25405         * lto-wrapper.c (run_gcc): Remove linker output from
25406         command line for LTRANS invocation.
25407
25408 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
25409
25410         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25411         lto-macho as lto_binary_reader.
25412         * target.h (struct gcc_target): New hooks lto_start and lto_end.
25413         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
25414         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
25415         in lto_start and lto_end calls.
25416         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
25417         magic numbers.
25418         (scan_prog_file): Update is_elf_or_coff call.
25419         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
25420
25421         * collect2.c (main): Fix enum comparison.
25422
25423         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
25424         Add prototypes.
25425         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
25426         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
25427         and TARGET_ASM_LTO_END.
25428         * darwin.c: Include obstack.h and lto-streamer.h.
25429         (lto_section_names_offset, lto_section_names_obstack,
25430         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
25431         global variables.
25432         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
25433         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
25434         to a temporary file.
25435         (darwin_asm_lto_end): New function.  Restore asm_out_file.
25436         (darwin_asm_named_section): For LTO sections, replace the name with
25437         the offset of the section name in a string table, and build this
25438         table.
25439         (darwin_file_start): Initialize global vars for LTO support.
25440         (darwin_file_end): If output to asm_out_file was redirected, append it
25441         to the proper asm_out_file here.  Add the section names section.
25442
25443 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
25444
25445         * c-pragma.c (pending_weak_d, pending_weak): New.
25446         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
25447         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
25448         handle_pragma_weak): Update the uses of pending_weaks.
25449
25450 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25451
25452         PR documentation/44016
25453         * doc/standards.texi (Standards): Link to unversioned
25454         cxx0x_status.html page.
25455
25456 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
25457
25458         PR target/43708
25459         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
25460         in addition to TREE_USED, to avoid "set but unused" warnings.
25461
25462 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25463
25464         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
25465         (is_loop_prefetching_profitable): Do not insert prefetches
25466         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
25467         times the prefetch ahead distance.
25468
25469 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25470
25471         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
25472         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
25473         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
25474         the unroll_factor.
25475
25476 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25477
25478         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
25479         a diagnostic info when the insn-to-mem ratio is too small.
25480
25481 2010-05-07  Richard Guenther  <rguenther@suse.de>
25482
25483         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
25484         the linker plugin.
25485         (store_arg): Queue temp_filename for deletion instead of
25486         the whole argument.
25487
25488 2010-05-07  Richard Guenther  <rguenther@suse.de>
25489
25490         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
25491         (run_gcc): Handle LTRANS phase invocation.
25492         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
25493
25494 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
25495
25496         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
25497         this is also meaningful on PARM_DECLs and RESULT_DECLs.
25498
25499 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25500
25501         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
25502
25503 2010-05-07  Richard Guenther  <rguenther@suse.de>
25504
25505         PR tree-optimization/44020
25506         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
25507         code when PRE is not yet initialized.
25508
25509 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25510
25511         * config/mips/dbxmdebug.h: Remove.
25512         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
25513
25514 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
25515
25516         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
25517         with null pointer and also warn about ordered comparison of zero with
25518         pointer if -Wextra.
25519
25520 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
25521
25522         * graphite-blocking.c
25523         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
25524         * graphite-clast-to-gimple.c
25525         (clast_to_gcc_expression): Same.
25526         (precision_for_value): Same.
25527         (precision_for_interval): Same.
25528         (gcc_type_for_interval): Same.
25529         (graphite_create_new_guard): Same.
25530         (compute_bounds_for_level): Same.
25531         (graphite_create_new_loop_guard): Same.
25532         * graphite-interchange.c
25533         (build_linearized_memory_access): Same.
25534         (pdr_stride_in_loop): Same.
25535         (memory_strides_in_loop_1): Same.
25536         (memory_strides_in_loop): Same.
25537         (extend_scattering): Same.
25538         (psct_scattering_dim_for_loop_depth): Same.
25539         (pbb_number_of_iterations): Same.
25540         * graphite-poly.h
25541         (debug_iteration_domains): Same.
25542         * graphite-ppl.c
25543         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
25544         (ppl_set_inhomogeneous_gmp): Same.
25545         (ppl_strip_loop): Same.
25546         (ppl_lexico_compare_linear_expressions): Same.
25547         (ppl_read_polyhedron_matrix): Same.
25548         (ppl_max_for_le_pointset): Same.
25549         * graphite-ppl.h
25550         (ppl_read_polyhedron_matrix): Same.
25551         (tree_int_to_gmp): Same.
25552         (gmp_cst_to_tree): Same.
25553         (ppl_set_inhomogeneous): Same.
25554         (ppl_set_inhomogeneous_tree): Same.
25555         (ppl_set_coef): Same.
25556         (ppl_set_coef_tree): Same.
25557         * graphite-sese-to-poly.c
25558         (build_pbb_scattering_polyhedrons): Same.
25559         (build_scop_scattering): Same.
25560         (scan_tree_for_params_right_scev): Same.
25561         (scan_tree_for_params): Same.
25562         (find_params_in_bb): Same.
25563         (find_scop_parameters): Same.
25564         (add_upper_bounds_from_estimated_nit): Same.
25565         (build_loop_iteration_domains): Same.
25566         (add_condition_to_domain): Same.
25567         (pdr_add_memory_accesses): Same.
25568
25569 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
25570
25571         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
25572         CLooG's value_* macros to their respective mpz_* counterparts.
25573         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
25574         (graphite_create_new_loop_guard): Same.
25575         * graphite-interchange.c (build_linearized_memory_access): Same.
25576         (pdr_stride_in_loop): Same.
25577         (memory_strides_in_loop_1): Same.
25578         (1st_interchange_profitable_p): Same.
25579         * graphite-poly.c (extend_scattering): Same.
25580         (psct_scattering_dim_for_loop_depth): Same.
25581         (pbb_number_of_iterations): Same.
25582         (pbb_number_of_iterations_at_time): Same.
25583         * graphite-poly.h (new_1st_loop): Same.
25584         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
25585         (oppose_constraint): Same.
25586         (insert_constraint_into_matrix): Same.
25587         (ppl_set_inhomogeneous_gmp): Same.
25588         (ppl_set_coef_gmp): Same.
25589         (ppl_strip_loop): Same.
25590         (ppl_lexico_compare_linear_expressions): Same.
25591         (ppl_max_for_le_pointset): Same.
25592         (ppl_min_for_le_pointset): Same.
25593         (ppl_build_realtion): Same.
25594         * graphite-ppl.h (gmp_cst_to_tree): Same.
25595         (ppl_set_inhomogeneous): Same.
25596         (ppl_set_inhomogeneous_tree): Same.
25597         (ppl_set_coef): Same.
25598         (ppl_set_coef_tree): Same.
25599         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25600         (build_scop_scattering): Same.
25601         (add_value_to_dim): Same.
25602         (scan_tree_for_params_right_scev): Same.
25603         (scan_tree_for_params_int): Same.
25604         (scan_tree_for_params): Same.
25605         (find_params_in_bb): Same.
25606         (find_scop_parameters): Same.
25607         (add_upper_bounds_from_estimated_nit): Same.
25608         (build_loop_iteration_domains): Same.
25609         (create_linear_expr_from_tree): Same.
25610         (add_condition_to_domain): Same.
25611         (pdr_add_memory_accesses): Same.
25612
25613 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
25614             Jason Merrill  <jason@redhat.com>
25615
25616         * c-common.c (c_common_reswords): Add nullptr.
25617         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
25618         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
25619         (gen_type_die_with_usage): Likewise.
25620         * dbxout.c (dbxout_type): Likewise.
25621         * sdbout.c (plain_type_1): Likewise.
25622
25623 2010-05-06  Jason Merrill  <jason@redhat.com>
25624
25625         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
25626         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
25627         ret appropriately.
25628         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
25629
25630         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
25631         stripping WITH_SIZE_EXPR.
25632         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
25633         change.
25634
25635 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25636
25637         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
25638         list of obsolete configurations.
25639         Disabled check for obsolete configurations.
25640         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
25641         Removed support for previous versions.
25642         * config/mips/iris.h: Removed.
25643         * config/mips/iris5.h: Removed.
25644         * config/mips/iris6.h: Merged old iris.h contents.
25645         (TARGET_IRIX): Removed.
25646         (DRIVER_SELF_SPECS): Removed mabi=32.
25647         (IDENT_ASM_OP): Removed undef.
25648         (STARTFILE_SPEC): Removed mabi=32.
25649         (ENDFILE_SPEC): Likewise.
25650         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
25651         (MACHINE_TYPE): Update for IRIX 6.5.
25652         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
25653         TARGET_IRIX by TARGET_IRIX6.
25654         (mips_file_start): Likewise.
25655         (mips_output_external): Remove IRIX 5/6 O32 support.
25656         (mips_output_function_prologue): Likewise.
25657         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
25658         TARGET_IRIX6.
25659         (TARGET_CPU_CPP_BUILTINS): Likewise.
25660         (TARGET_IRIX): Removed.
25661         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
25662         (MULTILIB_DIRNAMES): Removed 32.
25663         (MULTILIB_OSDIRNAMES): Removed ../lib.
25664         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
25665         (Specific, mips-sgi-irix5): Document removal.
25666         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
25667         Remove references to older IRIX 6 releases and the O32 ABI.
25668
25669 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
25670
25671         PR bootstrap/43994
25672         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
25673         instead of DF_REF_REAL_REG.
25674
25675 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
25676
25677         PR target/43888
25678         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
25679         handling to still return true for x64 targets.
25680
25681 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25682
25683         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
25684
25685 2010-05-06  Jan Hubicka  <jh@suse.cz>
25686
25687         PR tree-optimization/43791
25688         * ipa-inline.c (update_caller_keys): Remove bogus
25689         disregard_inline_limits check.
25690
25691 2010-05-06  Michael Matz  <matz@suse.de>
25692
25693         PR tree-optimization/43984
25694         * tree-ssa-pre.c (inserted_phi_names): Remove.
25695         (inserted_exprs): Change to bitmap.
25696         (create_expression_by_pieces): Set bits, don't append to vector.
25697         (insert_into_preds_of_block): Don't handle inserted_phi_names.
25698         (eliminate): Don't look at inserted_phi_names, remove deleted
25699         insns from inserted_exprs.
25700         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
25701         (init_pre, fini_pre): Allocate and free bitmaps.
25702         (execute_pre): Insert insns on edges before elimination.
25703
25704 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25705
25706         * tree.c (initializer_zerop): Handle STRING_CST.
25707
25708 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25709
25710         PR 40989
25711         * doc/invoke.texi (Wimplicit): Document as C only.
25712         * opts.c (common_handle_option): Add argument kind.
25713         (handle_option): Rename as read_cmdline_option. Factor out code to...
25714         (handle_option): ... here. New.
25715         (handle_options): Rename as read_cmdline_options.
25716         (decode_options): Update call.
25717         (set_option): Use option index instead of option pointer. Classify
25718         diagnostics correctly.
25719         (enable_warning_as_error): Call handle_option.
25720         * opts.h (set_option): Update declaration.
25721         (handle_option): Declare.
25722         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
25723         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
25724         * c-opts.c (set_Wimplicit): Delete.
25725         (c_family_lang_mask): New static constant.
25726         (c_common_handle_option): Add argument kind. Use handle_option
25727         instead of set_Wimplicit.
25728         (c_common_post_options): warn_implicit and warn_implicit_int
25729         are disabled by default.
25730         * c-common.c (warn_implicit): Do not define here.
25731         * c-common.h (warn_implicit): Do not declare here.
25732         (c_common_handle_option): Update declaration.
25733         * lto-opts.c (lto_reissue_options): Update call to set_option.
25734
25735 2010-05-06  Richard Guenther  <rguenther@suse.de>
25736
25737         PR tree-optimization/43571
25738         * domwalk.c (walk_dominator_tree): Walk the dominator
25739         sons in more optimal order.
25740
25741 2010-05-06  Richard Guenther  <rguenther@suse.de>
25742
25743         PR tree-optimization/43934
25744         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
25745         (stmt_cost): Likewise.
25746         (extract_true_false_args_from_phi): New helper.
25747         (determine_max_movement): For PHI nodes verify we can hoist them
25748         and compute their cost.
25749         (determine_invariantness_stmt): Handle PHI nodes.
25750         (move_computations_stmt): Likewise.  Hoist PHI nodes in
25751         if-converted form using COND_EXPRs.
25752         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
25753         (tree_ssa_lim): Likewise.
25754         * tree-flow.h (tree_ssa_lim): Adjust prototype.
25755         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
25756
25757 2010-05-06  Richard Guenther  <rguenther@suse.de>
25758
25759         PR tree-optimization/43987
25760         * tree-ssa-structalias.c (could_have_pointers): For possibly
25761         address-taken variables force pointers to be recorded.
25762         (create_variable_info_for_1): Likewise.
25763         (push_fields_onto_fieldstack): Pass in wheter all fields
25764         must have pointers.
25765         (find_func_aliases): Query types instead of vars whether
25766         they contain pointers where appropriate.
25767
25768 2010-05-06  Jan Hubicka  <jh@suse.cz>
25769
25770         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
25771         (record_reference, mark_address, mark_load, mark_store): Record
25772         references.
25773         (record_references_in_initializer): Update call of record_references.
25774         (rebuild_cgraph_edges): Remove all references before rebuiding.
25775         * cgraph.c (cgraph_create_node): Clear ref list.
25776         (cgraph_remove_node): Remove references.
25777         (dump_cgraph_node): Dump references.
25778         (cgraph_clone_node): Clone references.
25779         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
25780         (struct cgraph_node, varpool_node): Add ref_lst.
25781         * ipa-ref.c: New file.
25782         * ipa-ref.h: New file.
25783         * ipa-ref-inline.h: New file.
25784         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
25785         (referenced_from_other_partition_p): New function.
25786         (lto_output_varpool_node): Take set arugment; call
25787         referenced_from_other_partition.
25788         (lto_output_ref): New.
25789         (add_references): New.
25790         (output_refs): New.
25791         (output_cgraph): Compute boundary based on references; output refs.
25792         (output_varpool): Accept cgraph_node_set argument.
25793         (input_ref): New.
25794         (input_refs): New.
25795         (input_cgraph): Call input_refs.
25796         * lto-section-in.c (lto_section_name): Add refs.
25797         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
25798         (ipa-ref.o): New file.
25799         * varpool.c (varpool_node): Clear ipa ref list.
25800         (varpool_remove_node): Remove references.
25801         (dump_varpool_node): Dump references.
25802         (varpool_assemble_decl): Only compile finalized ones.
25803         (varpool_extra_name_alias): Initialize ref list.
25804         * lto-streamer.c (lto-get_section_name): Add .refs section.
25805         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
25806         (referenced_from_other_partition_p): Declared.
25807
25808 2010-05-06  Ira Rosen  <irar@il.ibm.com>
25809
25810         PR tree-optimization/43901
25811         * tree-vect-stmts.c (vectorizable_call): Assert that vector
25812         type is not NULL if it's transformation phase, and return
25813         FALSE if it's analysis.
25814         (vectorizable_conversion, vectorizable_operation,
25815         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
25816
25817 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
25818
25819         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25820         Delete.
25821         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25822         New define.
25823         * config/mips/mips-protos.h
25824         (mips_small_register_classes_for_mode_p): Delete prototype.
25825
25826 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
25827
25828         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
25829         * config/arm/arm.c (multiple_operation_profitable_p,
25830         compute_offset_order): New static functions.
25831         (load_multiple_sequence, store_multiple_sequence): Use them.
25832         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
25833         memory offsets, not register numbers.
25834         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
25835
25836 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
25837
25838         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
25839         (get_pending_sizes, put_pending_size, put_pending_sizes):
25840         Update the uses of pending_sizes.
25841         * c-decl.c (store_parm_decls): Likewise.
25842         * c-tree.h (struct c_arg_info): Likewise.
25843         * tree.h: Update the prototype for get_pending_sizes and
25844         put_pending_sizes.
25845
25846 2010-05-05  Jason Merrill  <jason@redhat.com>
25847
25848         PR debug/43370
25849         * c-common.c (handle_aligned_attribute): Respect
25850         ATTR_FLAG_TYPE_IN_PLACE.
25851
25852         PR testsuite/43758
25853         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
25854         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25855         (TARGET_INITIALIZER): Use it.
25856         * c-common.c (attribute_takes_identifier_p): Call it.
25857         * c-common.h: Update prototype.
25858         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
25859         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25860
25861 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
25862
25863         PR debug/43950
25864         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
25865         DW_ID_down_case for Fortran compilation units.
25866
25867 2010-05-05  Jan Hubicka  <jh@suse.cz>
25868
25869         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
25870         handle aliases.
25871
25872 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
25873
25874         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
25875         a variable-sized RESULT_DECL.
25876
25877 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
25878
25879         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
25880
25881 2010-05-05  Jason Merrill  <jason@redhat.com>
25882
25883         PR c++/43787
25884         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
25885         returns GS_OK.
25886         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
25887
25888 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
25889             Jakub Jelinek  <jakub@redhat.com>
25890
25891         PR debug/43478
25892         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
25893         (dead_debug_init, dead_debug_finish): New functions.
25894         (dead_debug_add, dead_debug_insert_before): Likewise.
25895         (df_note_bb_compute): Initialize a dead_debug object, add dead
25896         debug uses to it, insert debug bind insns before death insns,
25897         reset debug insns that refer to pending uses at the end.
25898         * rtl.h (make_debug_expr_from_rtl): New prototype.
25899         * varasm.c (make_debug_expr_from_rtl): New function.
25900
25901 2010-05-05  Jan Hubicka  <jh@suse.cz>
25902
25903         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
25904         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
25905         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
25906         lto_varpool_encoder_deref, lto_varpool_encoder_size,
25907         lto_varpool_encoder_encode_initializer_p,
25908         lto_set_varpool_encoder_encode_initializer): New functions.
25909         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
25910         call output_varpool.
25911         (input_varpool_node): Do not always set analyzed.
25912         (input_cgraph_1): Return vector of cgraph nodes.
25913         (input_varpool_1): Return vector of varpools.
25914         (input_cgraph): Free the vectors.
25915         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25916         output only initializers needed.
25917         (lto_output): Only call output_cgraph.
25918         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
25919         * lto-section-out.c (lto_new_out_decl_state): Initialize
25920         state->varpool_node_encoder.
25921         * lto-streamer.h (lto_varpool_encoder_d): New.
25922         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
25923         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
25924         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
25925         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
25926         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
25927         Declare.
25928         (output_varpool, input_varpool): Remove declarations.
25929
25930 2010-05-05  Jan Hubicka  <jh@suse.cz>
25931
25932         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
25933         with body can prevail.
25934
25935 2010-05-05  Jan Hubicka  <jh@suse.cz>
25936
25937         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
25938         size.
25939
25940 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25941
25942         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
25943
25944         * gengtype.h (erro_at_line): Constify pos argument.
25945
25946         * gengtype.c: Include hashtab.h.
25947         (enum gc_used): Document GC_MAYBE_POINTED_TO.
25948         (error_at_line): Constify pos argument.
25949         (do_typedef): Initialize p->opt field.
25950         (get_file_gtfilename): Fix comment typo.
25951         (struct walk_type_data): Constify line field.
25952         (get_output_file_for_structure): New function.
25953         (write_local_func_for_structure): Constify orig_s argument.
25954         Use get_output_file_for_structure.
25955         (write_func_for_structure): Use get_output_file_for_structure.
25956         (INDENT): New define.
25957         (dump_pair, dump_type, dump_type_list, dump_typekind)
25958         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
25959         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
25960         functions.
25961         (seen_types): New variable.
25962         (main): New variable do_dump.  Process "-d" command line option.
25963         Call dump_everything if dump requested.
25964
25965 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
25966
25967         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
25968         in a temporary instead of invoking the macro multiple times.
25969         (track_expr_p): Likewise.
25970
25971 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
25972
25973         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
25974         per new semantics.
25975         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
25976         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
25977         conditions for printing notes.
25978         * common.opt (-Wcoverage-mismatch): Allow negative, default to
25979         true, update documentation.
25980         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
25981
25982 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
25983
25984         PR c/43981
25985         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
25986         on dimen.
25987
25988 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
25989
25990         PR target/43799
25991         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
25992         (*sse_prologue_save_insn1): Likewise.
25993         (SSE prologue save splitter): Likewise.
25994
25995 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
25996
25997         * tree.c (free_lang_data_in_one_sizepos): New inline function.
25998         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
25999         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
26000         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
26001         all decls.  Call it on DECL_FIELD_OFFSET of fields.
26002         (find_decls_types_r): Follow DECL_VALUE_EXPR.
26003         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
26004
26005 2010-05-04  Martin Jambor  <mjambor@suse.cz>
26006
26007         * tree-sra.c (build_access_from_expr_1): The first parameter type
26008         changed to simple tree.
26009         (build_access_from_expr): Likewise, gsi parameter was eliminated.
26010         (scan_assign_result): Renamed to assignment_mod_result, enum elements
26011         renamed as well.
26012         (build_accesses_from_assign): Removed all parameters except for a
26013         simple gimple statement.  Now returns a simple bool.
26014         (scan_function): All non-analysis parts moved to separate functions
26015         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
26016         parameters and updated both callers.
26017         (sra_modify_expr): Removed parameter data.
26018         (sra_modify_function_body): New function.
26019         (perform_intra_sra): Call sra_modify_function_body to modify the
26020         function body.
26021         (replace_removed_params_ssa_names): Parameter data changed into
26022         adjustments vector.
26023         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
26024         changed the parameter dont_convert to convert with the opposite
26025         meaning.
26026         (sra_ipa_modify_assign): Parameter data changed into adjustments
26027         vector, return value changed to bool.
26028         (ipa_sra_modify_function_body): New function.
26029         (sra_ipa_reset_debug_stmts): Updated a comment.
26030         (modify_function): Use ipa_sra_modify_function_body to modify function
26031         body.
26032
26033 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
26034
26035         PR middle-end/43671
26036         * alias.c (true_dependence): Handle the same VALUE in x and mem.
26037         (canon_true_dependence): Likewise.
26038         (write_dependence_p): Likewise.
26039
26040 2010-05-04  Jan Hubicka  <jh@suse.cz>
26041
26042         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
26043         * cgraphbuild.c: Include ipa-utils.h
26044         (record_reference_ctx): New struct.
26045         (record_reference): Simplify to work on initializers; not statements.
26046         (mark_address, mark_load, mark_store): New.
26047         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26048         walk PHI nodes too.
26049         (record_references_in_initializer): Update use of record_reference.
26050         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26051         walk PHI nodes too.
26052
26053 2010-05-04  Jan Hubicka  <jh@suse.cz>
26054
26055         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
26056         node will be removed anyway.
26057         (lto_varpool_replace_node): Allow also unanalyzed nodes;
26058         relink aliases of node into prevailing node.
26059         * varpool.c (varpool_remove_node): Remove aliases properly;
26060         when removing node, remove all its aliases too; remove DECL_INITIAL
26061         of removed node; ggc_free the varpool node.
26062
26063 2010-05-04  Richard Guenther  <rguenther@suse.de>
26064
26065         PR tree-optimization/43879
26066         * tree-ssa-structalias.c (alias_get_name): Use
26067         DECL_ASSEMBLER_NAME if available.
26068         (create_function_info_for): Return the varinfo node.
26069         (ipa_pta_execute): Associate same-body aliases and extra names
26070         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
26071
26072 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
26073
26074         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
26075
26076 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
26077
26078         PR bootstrap/43964
26079         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
26080         only if HONOR_REG_ALLOC_ORDER is not defined.
26081
26082 2010-05-04  Richard Guenther  <rguenther@suse.de>
26083
26084         PR tree-optimization/43949
26085         * tree-vrp.c (extract_range_from_binary_expr): Only handle
26086         TRUNC_MOD_EXPR.
26087
26088 2010-04-26  Jason Merrill  <jason@redhat.com>
26089
26090         * c.opt (-fstrict-enums): New.
26091         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
26092
26093 2010-05-03  David Ung  <davidu@mips.com>
26094             James E. Wilson  <wilson@codesourcery.com>
26095
26096         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
26097         emit the trap instruction before the divide for TUNE_74K.
26098
26099 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
26100
26101         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
26102         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
26103         based on the above, for new target hook.
26104
26105         * hooks.c (hook_bool_mode_true): New generic hook.
26106         * hooks.h (hook_bool_mode_true): Add prototype.
26107
26108         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
26109         target hook.
26110         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
26111         target hook, set to hook_bool_mode_false.
26112         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
26113         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
26114         with targetm.small_register_classes_for_mode_p.
26115         (find_reusable_reload): Likewise.
26116         (combine_reloads): Likewise.
26117         * reload1.c (reload_as_needed): Likewise.
26118         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
26119         * ifcvt.c (noce_process_if_block, check_cond_move_block,
26120         dead_or_predicable): Likewise.
26121         * regmove.c (optimize_reg_copy_1): Likewise.
26122         * calls.c (prepare_call_address): Likewise.
26123         (precompute_register_parameters): Likewise.
26124
26125         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
26126         hook definition.
26127         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
26128         implementation of the hook that considers all register classes
26129         small except for SH64.
26130         (sh_override_options): Use the new hook.
26131         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
26132         Add prototype.
26133
26134         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
26135         hook definition.
26136         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
26137         implementation of the hook that considers all register classes
26138         small for THUMB1.
26139         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
26140         Add prototype.
26141
26142         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
26143         hook definition.
26144         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
26145         implementation of the hook that considers all register classes
26146         small for MIPS16.
26147         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
26148         Add prototype.
26149
26150         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
26151         hook definition.
26152         * config/m32c/m32c.h: Likewise.
26153         * config/pdp11/pdp11.h: Likewise.
26154         * config/avr/avr.h: Likewise.
26155         * config/xtensa/xtensa.h: Likewise.
26156         * config/m68hc11/m68hc11.h: Likewise.
26157         * config/mn10300/mn10300.h: Likewise.
26158         * config/mcore/mcore.h: Likewise.
26159         * config/h8300/h8300.h: Likewise.
26160         * config/bfin/bfin.h: Likewise.
26161
26162         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
26163         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
26164
26165 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
26166
26167         * double-int.h (tree_to_double_int): Remove macro.
26168         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
26169         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26170         (tree_to_double_int): New function.
26171         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
26172         Move ...
26173         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26174
26175 2010-05-03  Richard Guenther  <rguenther@suse.de>
26176
26177         PR tree-optimization/43971
26178         * tree-ssa-structalias.c (get_constraint_for_1): Fix
26179         constraints in the !flag_delete_null_pointer_checks case.
26180
26181 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
26182
26183         PR debug/43972
26184         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
26185         result mode matches original rtl mode.
26186
26187 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
26188
26189         PR target/43888
26190         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
26191
26192 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26193
26194         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
26195         when processing flag options.
26196
26197 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26198
26199         * gcov-iov.c (main): Change format string placeholder
26200         from %#08x to 0x%08x.
26201         * genchecksum.c (dosum): Change format string placeholder
26202         from %#02x to 0x%02x.
26203
26204 2010-05-02  Richard Guenther  <rguenther@suse.de>
26205
26206         PR tree-optimization/43879
26207         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
26208
26209 2010-05-02  Bruno Haible  <bruno@clisp.org>
26210
26211         * doc/extend.texi (Function Attributes): Fix a typo.
26212
26213 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26214
26215         Revert:
26216         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
26217         placeholder from 0x%x to %#x.
26218         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26219         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26220         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26221         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26222         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26223         * config/i386/i386.c (ix86_target_string): Ditto.
26224         * config/i386/i386.c (output_pic_addr_const): Ditto.
26225         (print_operand): Ditto.
26226
26227 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26228
26229         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
26230         placeholder from 0x%x to %#x.
26231         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
26232         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
26233         (ASM_OUTPUT_DEBUG_DATA): Ditto.
26234         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
26235         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
26236         * optc-gen.awk: Ditto.
26237         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
26238         (HOST_WIDE_INT_PRINT_HEX): Ditto.
26239         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
26240         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26241
26242 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
26243
26244         * target.h (struct calls): Add function_value_regno_p field.
26245         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
26246         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
26247         * targhooks.c (default_function_value_regno_p): New function.
26248         * targhooks.h (default_function_value_regno_p): Declare function.
26249         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
26250         * builtins.c. (apply_result_size): (Ditto.).
26251         * combine.c. (likely_spilled_retval_p): (Ditto.).
26252         * mode-switching.c. Include 'target.h'.
26253         (create_pre_exit): Use function_value_regno_p hook.
26254         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
26255         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
26256         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
26257
26258         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
26259         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
26260         (ix86_function_value_regno_p): Declare as static, change argument
26261         type to const unsigned int.
26262         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
26263
26264 2010-05-01  Richard Guenther  <rguenther@suse.de>
26265
26266         PR tree-optimization/43949
26267         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
26268         types.
26269         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
26270
26271 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
26272
26273         * rtl.h (CONST_DOUBLE_P): Define.
26274         (rtx_to_double_int): Declare.
26275         * emit-rtl.c (rtx_to_double_int): New function.
26276         * dwarf2out.c (insert_double): New function.
26277         (loc_descriptor, add_const_value_attribute): Clean up, use
26278         rtx_to_double_int and insert_double functions.
26279
26280 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
26281
26282         * doc/extend.texi (Inline): Add missing return keyword to examples.
26283         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
26284         "command-line".
26285
26286 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
26287
26288         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
26289         the variable part of the offset as well.  Use highest_pow2_factor for
26290         all alignment checks.
26291
26292 2010-04-30  Richard Guenther  <rguenther@suse.de>
26293
26294         PR tree-optimization/43879
26295         * tree-ssa-structalias.c (type_could_have_pointers): Functions
26296         can have pointers.
26297
26298 2010-04-30  Jan Hubicka  <jh@suse.cz>
26299
26300         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
26301         varpool.
26302         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
26303
26304 2010-04-30  Jan Hubicka  <jh@suse.cz>
26305
26306         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
26307         New.
26308         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
26309         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
26310         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
26311         cgraph_node_set_needs_ltrans_p): Remove.
26312
26313 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
26314
26315         * sdbout.c: Include vec.h, do not include varray.h.
26316         (deferred_global_decls, sdbout_global_decl,
26317         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
26318         * toplev.c: Do not include varray.h.
26319         (dump_memory_report): Do not dump VARRAY statistics.
26320         * gengtype.c (open_base_file): Ignore varray.h.
26321         * Makefile.in: Update for abovementioned changes.
26322         Remove all traces of varray.c and varray.h.
26323         * varray.c: Remove file.
26324         * varray.h: Remove file.
26325
26326 2010-04-30  Jan Hubicka  <jh@suse.cz>
26327
26328         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
26329         references.
26330
26331 2010-04-30  Jan Hubicka  <jh@suse.cz>
26332
26333         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
26334         needed.
26335
26336 2010-04-30  Richard Guenther  <rguenther@suse.de>
26337
26338         * tree-ssa-structalias.c (get_constraint_for_1): Generate
26339         constraints for CONSTRUCTOR.
26340
26341 2010-04-30  Richard Guenther  <rguenther@suse.de>
26342
26343         PR lto/43946
26344         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
26345         first after all lowering passes.
26346
26347 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
26348
26349         * toplev.c: Include varray.h for statistics dumping.
26350         * tree.h: Do not declare varray_head_tag.
26351         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
26352         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
26353         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
26354         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
26355         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
26356         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
26357         c-common.c, c-common.h, reg-stack.c, basic-block.h,
26358         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
26359         include varray.h.
26360         * Makefile.in: Update for abovementioned changes.
26361
26362 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
26363
26364         PR debug/43942
26365         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
26366
26367 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26368
26369         * config/picochip/picochip.c (picochip_legitimize_address): Define.
26370         Use this function to do machine-specific conversion.
26371         (picochip_legitimize_reload_address): Likewise.
26372         (picochip_legitimate_address_p): Check valid base register only if
26373         strict.
26374         (picochip_check_conditional_copy): Check for modw only if opnd is
26375         register.
26376         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
26377         to call the function in c.
26378         * config/picochip/picochip-protos.h
26379         (picochip_legitimize_reload_address): Define.
26380         * config/picochip/picochip.md (supported_compare1): Define.
26381
26382 2010-04-30  Jan Hubicka  <jh@suse.cz>
26383
26384         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
26385         (cgraph_global_info): Remove inlined.
26386         (LTO_cgraph_tag_names): Remove.
26387         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
26388         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
26389         simplify cgraph tags and document.
26390         (lto_output_node): Use only LTO_cgraph_unavail_node and
26391         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
26392         for_functions_valid, global info, process and output flags.
26393         (input_overwrite_node): Initialize estimated stack size and
26394         estimated growth.  Do not read flags we no longer store.
26395         (input_node): Likewise do not read info no longer stored.
26396         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
26397         flag.
26398
26399 2010-04-30  Richard Guenther  <rguenther@suse.de>
26400
26401         PR tree-optimization/43879
26402         * tree-ssa-structalias.c (get_constraint_for_1): Properly
26403         handle non-zero initializers.
26404
26405 2010-04-30  Richard Guenther  <rguenther@suse.de>
26406
26407         * builtins.c (fold_builtin_1): Delete free (0).
26408
26409 2010-04-29  Jan Hubicka  <jh@suse.cz>
26410
26411         * gengtype.c (open_base_files): Add lto-streamer.h
26412         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
26413         (pass_ipa_cp): GGC collect.
26414         * toplev. (compile_file): Do not output symbols.
26415         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
26416         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
26417         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
26418         * lto-section-in.c: Include ggc.h
26419         (lto_new_in_decl_state): Alloc in GGC.
26420         (lto_delete_in_decl_state): Likewise.
26421         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
26422         Collect.
26423
26424 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
26425
26426         PR target/42895
26427         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
26428         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
26429         (HONOR_REG_ALLOC_ORDER): Describe new macro.
26430         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
26431         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
26432         account only if HONOR_REG_ALLOC_ORDER is not defined.
26433         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
26434         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
26435
26436 2010-04-29  Jon Grant  <04@jguk.org>
26437
26438         * collect2.c (vflag): Change type from int to bool.
26439         (debug): Likewise.
26440         (helpflag): New global bool.
26441         (main): Set vflag and debug with boolean, not integer truth values.
26442         Accept new "--help" option and output usage text if found.
26443         * collect2.h (vflag): Update prototype.
26444         (debug): Likewise.
26445
26446 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
26447
26448         PR bootstrap/43936
26449         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
26450
26451 2010-04-29  Richard Guenther  <rguenther@suse.de>
26452
26453         PR bootstrap/43935
26454         * plugin.h (invoke_plugin_callbacks): Annotate arguments
26455         with ATTRIBUTE_UNUSED.
26456
26457 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
26458
26459         PR target/43921
26460         * config/i386/i386.c (get_some_local_dynamic_name): Replace
26461         INSN_P with NONDEBUG_INSN_P.
26462         (distance_non_agu_define): Likewise.
26463         (distance_agu_use): Likewise.
26464
26465 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
26466
26467         From Dominique d'Humieres  <dominiq@lps.ens.fr>
26468         PR bootstrap/43858
26469         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
26470         test_set.
26471
26472 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
26473
26474         * plugin.h (invoke_plugin_callbacks): New inline function.
26475         * plugin.c (flag_plugin_added): New global flag.
26476         (add_new_plugin): Initialize above flag.
26477         (invoke_plugin_callbacks): Rename to ...
26478         (invoke_plugin_callbacks_full): ... this.
26479
26480 2010-04-28  Jan Hubicka  <jh@suse.cz>
26481
26482         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
26483         (lto_varpool_replace_node): New.
26484         (lto_symtab_resolve_symbols): Resolve varpool nodes.
26485         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
26486         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
26487         * cgraph.h (varpool_node_ptr): New type.
26488         (varpool_node_ptr): New vector.
26489         (varpool_node_set_def): New structure.
26490         (varpool_node_set): New type.
26491         (varpool_node_set): New vector.
26492         (varpool_node_set_element_def): New structure.
26493         (varpool_node_set_element, const_varpool_node_set_element): New types.
26494         (varpool_node_set_iterator): New type.
26495         (varpool_node): Add prev pointers, add used_from_other_partition,
26496         in_other_partition.
26497         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
26498         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
26499         varpool_get_node, varpool_remove_node): Declare.
26500         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
26501         varpool_node_set_size): New inlines.
26502         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
26503         * tree-pass.h (varpool_node_set_def): Forward declare.
26504         (ipa_opt_pass_d): Summary writting takes vnode sets too.
26505         (ipa_write_optimization_summaries): Update prototype.
26506         * ipa-cp.c (ipcp_write_summary): Update.
26507         * ipa-reference.c (ipa_reference_write_summary): Update.
26508         * lto-cgraph.c (lto_output_varpool_node): New static function.
26509         (output_varpool): New function.
26510         (input_varpool_node): New static function.
26511         (input_varpool_1): New function.
26512         (input_cgraph): Input varpool.
26513         * ipa-pure-const.c (pure_const_write_summary): Update.
26514         * lto-streamer-out.c (lto_output): Update, output varpool too.
26515         (write_global_stream): Kill WPA hack.
26516         (produce_asm_for_decls): Update.
26517         (output_alias_pair_p): Handle variables.
26518         (output_unreferenced_globals): Output only needed partition of varpool.
26519         * ipa-inline.c (inline_write_summary): Update.
26520         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
26521         cgraph.
26522         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
26523         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
26524         varpool_node_set_new, varpool_node_set_add,
26525         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
26526         debug_varpool_node_set): New functions.
26527         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
26528         (execute_one_pass): Process new decls too.
26529         (ipa_write_summaries_2): Pass around vsets.
26530         (ipa_write_summaries_1): Likewise.
26531         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
26532         to add.
26533         (ipa_write_optimization_summaries_1): Pass around vsets.
26534         (ipa_write_optimization_summaries): Likewise.
26535         * varpool.c (varpool_get_node): New.
26536         (varpool_node): Update doubly linked lists.
26537         (varpool_remove_node): New.
26538         (dump_varpool_node): More dumping.
26539         (varpool_enqueue_needed_node): Update doubly linked lists.
26540         (decide_is_variable_needed): Kill ltrans hack.
26541         (varpool_finalize_decl): Kill lto hack.
26542         (varpool_assemble_decl): Skip decls in other partitions.
26543         (varpool_assemble_pending_decls): Update doubly linkes lists.
26544         (varpool_empty_needed_queue): Likewise.
26545         (varpool_extra_name_alias): Likewise.
26546         * lto-streamer.c (lto_get_section_name): Add vars section.
26547         * lto-streamer.h (lto_section_type): Update.
26548         (output_varpool, input_varpool): Declare.
26549
26550 2010-04-28  Mike Stump  <mikestump@comcast.net>
26551
26552         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
26553
26554 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26555
26556         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
26557         record or union type with RECORD_OR_UNION_TYPE_P predicate.
26558         (lto_input_ts_type_tree_pointers): Likewise.
26559         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
26560         (lto_output_ts_type_tree_pointers): Likewise.
26561
26562 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26563
26564         Uniquization of constants at the Tree level
26565         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
26566         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
26567         bit to the end.
26568         (tree_output_constant_def): Declare.
26569         * gimplify.c (gimplify_init_constructor): When using block copy, first
26570         uniquize the constant constructor on the RHS.
26571         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
26572         DECL_IN_CONSTANT_POOL flag.
26573         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
26574         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
26575         constant pool.
26576         (assemble_variable): Deal with symbols belonging to the tree constant
26577         pool.
26578         (get_constant_section): Add ALIGN parameter and simplify.
26579         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
26580         (assemble_constant_contents): Use the expression of the VAR_DECL.
26581         (output_constant_def_contents): Use the alignment of the VAR_DECL.
26582         (tree_output_constant_def): New global function.
26583         (mark_constant): Use the expression of the VAR_DECL.
26584         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
26585         its expression.
26586         (output_object_block): Likewise and assemble the expression.
26587
26588 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26589
26590         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
26591         hash_tree, eq_tree): New tree hash table.
26592         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
26593         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
26594         lto_orig_address_remove): Reimplement.
26595
26596 2010-04-28  Xinliang David Li  <davidxl@google.com>
26597
26598         PR c/42643
26599         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
26600         (compute_uninit_opnds_pos): New function.
26601         (is_non_loop_exit_postdominating): New function.
26602         (compute_control_dep_chain): New function.
26603         (find_pdom): New function.
26604         (convert_control_dep_chain_into_preds): New function.
26605         (find_predicates): New function.
26606         (find_control_equiv_block): New function.
26607         (collect_phi_def_edges): New function.
26608         (find_def_preds): New function.
26609         (find_dom): New function.
26610         (dump_predicates): New function.
26611         (get_cmp_code): New function.
26612         (is_value_included_in): New function.
26613         (find_matching_predicate_in_rest_chains): New function.
26614         (use_pred_not_overlap_with_undef_path_pred): New function.
26615         (is_use_properly_guarded): New function.
26616         (normalize_cond_1): New function.
26617         (is_and_or_or): New function.
26618         (normalize_cond): New function.
26619         (is_gcond_subset_of): New function.
26620         (is_subset_of_any): New function.
26621         (is_or_set_subset_of): New function.
26622         (is_and_set_subset_of): New function.
26623         (is_norm_cond_subset_of): New function.
26624         (is_pred_expr_subset_of): New function.
26625         (is_pred_chain_subset_of): New function.
26626         (is_included_in): New function.
26627         (is_superset_of): New function.
26628         (find_uninit_use): New function.
26629         (warn_uninitialized_phi): New function.
26630         (compute_possibly_undefined_names): New function.
26631         (ssa_undefined_value_p): New function.
26632         (execute_late_warn_uninitialized): New function.
26633         * tree-ssa.c (ssa_undefined_value_p): Removed.
26634         (warn_uninit): Changed to extern.
26635         (warn_uninitialized_phi): Removed.
26636         (warn_uninitialized_vars): Changed to extern.
26637         (execute_late_warn_uninitialized): Removed
26638         * tree-flow.h: Add new prototypes.
26639         * timevar.def: Add new time variable.
26640         * Makefile.in: Add new build file.
26641
26642 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
26643
26644         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
26645         type if available.
26646
26647 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26648
26649         PR target/22224
26650         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
26651
26652 2010-04-28  Martin Jambor  <mjambor@suse.cz>
26653
26654         * cgraph.h (struct cgraph_node): New field indirect_calls.
26655         (struct cgraph_indirect_call_info): New type.
26656         (struct cgraph_edge): Removed field indirect_call. New fields
26657         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
26658         (cgraph_create_indirect_edge): Declare.
26659         (cgraph_make_edge_direct): Likewise.
26660         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
26661         * ipa-prop.h (struct ipa_param_call_note): Removed.
26662         (struct ipa_node_params): Removed field param_calls.
26663         (ipa_create_all_structures_for_iinln): Declare.
26664         * cgraph.c: Described indirect edges and uids in initial comment.
26665         (cgraph_add_edge_to_call_site_hash): New function.
26666         (cgraph_edge): Search also among the indirect edges, use
26667         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
26668         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
26669         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
26670         site hash.
26671         (initialize_inline_failed): Assign a reason to indirect edges.
26672         (cgraph_create_edge_1): New function.
26673         (cgraph_create_edge): Moved some functionality to
26674         cgraph_create_edge_1.
26675         (cgraph_create_indirect_edge): New function.
26676         (cgraph_edge_remove_callee): Add an assert checking for
26677         non-indirectness.
26678         (cgraph_edge_remove_caller): Special-case indirect edges.
26679         (cgraph_remove_edge): Likewise.
26680         (cgraph_set_edge_callee): New function.
26681         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
26682         (cgraph_make_edge_direct): New function.
26683         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
26684         the declaration of the call statement matches.
26685         (cgraph_node_remove_callees): Special-case indirect edges.
26686         (cgraph_clone_edge): Likewise.
26687         (cgraph_clone_node): Clone also the indirect edges.
26688         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
26689         indirect_call, dump count of indirect_calls edges.
26690         * ipa-prop.c (iinlining_processed_edges): New variable.
26691         (ipa_note_param_call): Create indirect edges instead of
26692         creating notes.  New parameter node.
26693         (ipa_analyze_call_uses): New parameter node, pass it on to
26694         ipa_note_param_call.
26695         (ipa_analyze_stmt_uses): Likewise.
26696         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
26697         (print_edge_addition_message): Work on edges rather than on notes.
26698         (update_call_notes_after_inlining): Likewise, renamed to
26699         update_indirect_edges_after_inlining.
26700         (ipa_create_all_structures_for_iinln): New function.
26701         (ipa_free_node_params_substructures): Do not free notes.
26702         (ipa_edge_duplication_hook): Propagate bits within
26703         iinlining_processed_edges bitmap.
26704         (ipa_node_duplication_hook): Do not duplicate notes.
26705         (free_all_ipa_structures_after_ipa_cp): Renamed to
26706         ipa_free_all_structures_after_ipa_cp.
26707         (free_all_ipa_structures_after_iinln): Renamed to
26708         ipa_free_all_structures_after_iinln.
26709         (ipa_write_param_call_note): Removed.
26710         (ipa_read_param_call_note): Removed.
26711         (ipa_write_indirect_edge_info): New function.
26712         (ipa_read_indirect_edge_info): Likewise.
26713         (ipa_write_node_info): Do not stream notes, do stream information
26714         in indirect edges.
26715         (ipa_read_node_info): Likewise.
26716         (lto_ipa_fixup_call_notes): Removed.
26717         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
26718         * ipa-inline.c (pass_ipa_inline): Likewise.
26719         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
26720         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
26721         * tree-inline.c (copy_bb): Removed an unnecessary double check for
26722         is_gimple_call.
26723         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
26724         edges.
26725         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
26726         (output_cgraph): Stream also indirect edges.
26727         (lto_output_edge): Added capability to stream indirect edges.
26728         (input_edge): Likewise.
26729         (input_cgraph_1): Likewise.
26730         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
26731         of indirect edges.
26732
26733 2010-04-28  Richard Guenther  <rguenther@suse.de>
26734
26735         PR tree-optimization/43879
26736         PR tree-optimization/43909
26737         * tree-ssa-structalias.c (struct variable_info): Add
26738         only_restrict_pointers flag.
26739         (new_var_info): Initialize it.  Increment stats.total_vars here.
26740         (create_function_info_for): Do not increment stats.total_vars here.
26741         (get_function_part_constraint): Fix build with C++.
26742         (insert_into_field_list): Remove.
26743         (push_fields_onto_fieldstack): Properly merge fields.
26744         (create_variable_info_for): Split and simplify.
26745         (create_variable_info_for_1): New piece.
26746         (intra_create_variable_infos): Properly make restrict constraints
26747         from parameters.
26748
26749 2010-04-28  Richard Guenther  <rguenther@suse.de>
26750
26751         PR c++/43880
26752         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
26753
26754 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26755             Jan Hubicka  <hubicka@ucw.cz>
26756
26757         * doc/invoke.texi (-Wsuggest-attribute=const,
26758         -Wsuggest-attribute=pure): Document.
26759         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
26760         (function_always_visible_to_compiler_p,
26761         suggest_attribute, warn_function_pure, warn_function_const):
26762         New functions.
26763         (check_call): Improve debug info.
26764         (analyze_function): Do not check availability.
26765         (add_new_function): Check availability.
26766         (propagate): Output warnings.
26767         (skip_function_for_local_pure_const): New function.
26768         (local_pure_const): Use it; output warnings.
26769         * common.opt (Wsuggest-attribute=const,
26770         Wsuggest-attribute=pure): New.
26771
26772 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
26773
26774         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
26775         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
26776         or DW_CFA_def_cfa_offset{,_sf}.
26777
26778 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
26779
26780         * tree.h: Fix truncated long macros.
26781
26782 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
26783
26784         * collect2.c (TARGET_64BIT): Redefine to target's default.
26785         * tlink.c: Likewise.
26786         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
26787         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
26788         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
26789         for underscoring __USER_LABEL_PREFIX__.
26790         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
26791         (SUB_LINK_ENTRY32): New.
26792         (SUB_LINK_ENTRY64): New.
26793         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
26794         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
26795         (SUB_LINK_ENTRY64): New.
26796         (SUB_LINK_ENTRY): New.
26797         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
26798         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
26799         x64 target is choosen.
26800         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
26801         * configure: Regenerated.
26802         * configure.ac (leading-mingw64-underscores): Option added.
26803
26804 2010-04-27  Jan Hubicka  <jh@suse.cz>
26805
26806         * doc/invoke.texi (-fipa-profile): Document.
26807         * opts.c (decode_options): Enable ipa-profile at -O1.
26808         * timevar.def (TV_IPA_PROFILE): Define.
26809         * common.opt (fipa-profile): Add.
26810         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
26811         flag for clones.
26812         (cgraph_propagate_frequency): Handle only local ones.
26813         * tree-pass.h (pass_ipa_profile): Declare.
26814         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
26815         (pass_ipa_profile): Use TV_IPA_PROFILE.
26816         * ipa.c (ipa_profile): New function.
26817         (gate_ipa_profile): Likewise.
26818         (pass_ipa_profile): New global variable.
26819         * passes.c (pass_ipa_profile): New.
26820
26821 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
26822
26823         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
26824
26825 2010-04-27  Martin Jambor  <mjambor@suse.cz>
26826
26827         PR middle-end/43812
26828         * ipa.c (dissolve_same_comdat_group_list): New function.
26829         (function_and_variable_visibility): Call
26830         dissolve_same_comdat_group_list when comdat group contains external or
26831         newly local nodes.
26832         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
26833         lists are circular and that they contain only DECL_ONE_ONLY nodes.
26834
26835 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
26836
26837         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
26838         (const_hash_1) <VECTOR_CST>: New case.
26839         (compare_constant) <VECTOR_CST>: Likewise.
26840         <ADDR_EXPR>: Deal with LABEL_REFs.
26841         (copy_constant) <VECTOR_CST>: New case.
26842
26843 2010-04-27  Jan Hubicka  <jh@suse.cz>
26844
26845         * cgraph.c (cgraph_propagate_frequency): New function.
26846         * cgraph.h (cgraph_propagate_frequency): Declare.
26847         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
26848         cgraph_propagate_frequency.
26849
26850 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
26851
26852         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
26853
26854 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
26855
26856         PR target/40657
26857         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
26858         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
26859         here to determine which regs to push and how much stack to reserve.
26860
26861 2010-04-27  Jie Zhang  <jie@codesourcery.com>
26862
26863         * doc/gimple.texi (gimple_statement_with_ops): Remove
26864         addresses_taken field.
26865         (gimple_statement_with_memory_ops): Likewise.
26866
26867 2010-04-27  Jan Hubicka  <jh@suse.cz>
26868
26869         * tree-inline.c (eni_inlining_weights): Remove.
26870         (estimate_num_insns): Special case more builtins.
26871
26872 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
26873
26874         PR c/32207
26875         * c-typeck.c (build_binary_op): Move forward check for comparison
26876         pointer with null pointer constant and adjust the diagnostic message.
26877
26878 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
26879
26880         PR lto/42776
26881         * configure.ac (gcc_cv_as_section_has_align): Set if installed
26882         binutils supports extended .section directive needed by LTO, or
26883         warn if older binutils found.
26884         (LTO_BINARY_READER): New AC_SUBST'd variable.
26885         (LTO_USE_LIBELF): Likewise.
26886         * config.gcc (lto_binary_reader): New target-specific configure
26887         variable.
26888         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
26889         (LTO_USE_LIBELF): Likewise.
26890         * configure: Regenerate.
26891
26892         * collect2.c (is_elf): Rename from this ...
26893         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
26894          object files in addition to ELF-formatted ones.
26895         (scan_prog_file): Caller updated.  Also allow for LTO info marker
26896         symbol to be prefixed or not by an extra underscore.
26897
26898         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
26899         * config/i386/winnt.c: Also #include lto-streamer.h
26900         (i386_pe_asm_named_section): Specify 1-byte section alignment for
26901         LTO named sections.
26902         (i386_pe_asm_output_aligned_decl_common): Add comment.
26903         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
26904
26905 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
26906
26907         PR target/43889
26908         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
26909         Add missing earlyclobber for second alternative.
26910
26911 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
26912
26913         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
26914         bits for artificial defs at the top of the block.
26915         * fwprop.c (single_def_use_enter_block): Don't call it.
26916
26917 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
26918
26919         PR 43715
26920         * configure.ac: Use "$gcc_cv_nm -g" on darwin
26921         instead of "$gcc_cv_objdump -T".
26922         Use "-undefined dynamic_lookup" on darwin.
26923         * configure: Regenerate.
26924
26925 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
26926
26927         PR c/43893
26928         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
26929
26930 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
26931
26932         * c-parser.c (struct c_token): Move location field up.
26933         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
26934         (struct c_declspecs): Convert typespec_word, storage_class, and
26935         default_int_p into bitfields.
26936         (struct c_declarator): Move loc field up.
26937
26938 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
26939
26940         * cfgloop.h (struct loop): Move can_be_parallel field up.
26941         * ipa-prop.h (struct ip_node_params): Move bitfields up.
26942         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
26943         down.
26944         (struct iv_cand): Convert pos field into a bitfield.
26945         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
26946         field up.
26947         (struct _stmt_vec_info): Shuffle fields for better packing.
26948
26949 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
26950
26951         * varasm.c (IN_NAMED_SECTION): Remove guard.
26952         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
26953         (IN_NAMED_SECTION_P): ...this.
26954         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
26955         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
26956
26957 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
26958
26959         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
26960         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
26961         of shadowing it.  Fix comments.
26962
26963 2010-04-26  Jan Hubicka  <jh@suse.cz>
26964
26965         * cgraph.c (cgraph_create_node): Set node frequency to normal.
26966         (cgraph_clone_node): Copy function frequency.
26967         * cgraph.h (node_frequency): New enum
26968         (struct cgraph_node): Add.
26969         * final.c (rest_of_clean_state): Update.
26970         * lto-cgraph.c (lto_output_node): Output node frequency.
26971         (input_overwrite_node): Input node frequency.
26972         * tre-ssa-loop-ivopts (computation_cost): Update.
26973         * lto-streamer-out.c (output_function): Do not output function
26974         frequency.
26975         * predict.c (maybe_hot_frequency_p): Update and handle functions
26976         executed once.
26977         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
26978         attribute lookup.
26979         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
26980         (compute_function_frequency): Set noreturn functions to be executed
26981         once.
26982         (choose_function_section): Update.
26983         * lto-streamer-in.c (input_function): Do not input function frequency.
26984         * function.c (allocate_struct_function): Do not initialize function
26985         frequency.
26986         * function.h (function_frequency): Remove.
26987         (struct function): Remove function frequency.
26988         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
26989         (try_update): Update.
26990         * tree-inline.c (initialize_cfun): Do not update function frequency.
26991         * passes.c (pass_init_dump_file): Update.
26992         * i386.c (ix86_compute_frame_layout): Update.
26993         (ix86_pad_returns): Update.
26994
26995 2010-04-26  Jie Zhang  <jie@codesourcery.com>
26996
26997         PR tree-optimization/43833
26998         * tree-vrp.c (range_int_cst_p): New.
26999         (range_int_cst_singleton_p): New.
27000         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
27001         when both operands are constants.  Use range_int_cst_p in
27002         BIT_IOR_EXPR case.
27003
27004 2010-04-26  Jan Hubicka  <jh@suse.cz>
27005
27006         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
27007
27008 2010-04-26  Richard Guenther  <rguenther@suse.de>
27009
27010         PR lto/43080
27011         * gimple.c (gimple_decl_printable_name): Deal gracefully
27012         with a NULL DECL_NAME.
27013
27014 2010-04-26  Richard Guenther  <rguenther@suse.de>
27015
27016         PR lto/42425
27017         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
27018         if emitting debug information and it is either a function
27019         or a namespace decl.
27020
27021 2010-04-26  Ira Rosen  <irar@il.ibm.com>
27022
27023         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
27024         determine if the statement is vectorizable, and a macro to access it.
27025         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27026         Skip statements that can't be vectorized. If the analysis fails,
27027         mark the statement as unvectorizable if vectorizing basic block.
27028         (vect_compute_data_refs_alignment): Likewise.
27029         (vect_verify_datarefs_alignment): Skip statements marked as
27030         unvectorizable. Add print.
27031         (vect_analyze_group_access): Skip statements that can't be
27032         vectorized. If the analysis fails, mark the statement as
27033         unvectorizable if vectorizing basic block.
27034         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
27035         * tree-vect-stmts.c (vectorizable_store): Fix the number of
27036         generated stmts for SLP.
27037         (new_stmt_vec_info): Initialize the new field.
27038         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
27039         statements marked as unvectorizable.
27040
27041 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
27042
27043         * c-common.c (flag_isoc1x): New.
27044         (flag_isoc99): Update comment.
27045         * c-common.h (flag_isoc1x): New.
27046         (flag_isoc99): Update comment.
27047         * c-cppbuiltin.c (builtin_define_float_constants): Also define
27048         __<type>_DECIMAL_DIG__.
27049         * c-opts.c (set_std_c1x): New.
27050         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
27051         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
27052         * c.opt (-std=c1x, -std=gnu1x): New options.
27053         * doc/cpp.texi: Mention -std=c1x.
27054         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
27055         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
27056         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
27057         * doc/standards.texi: Mention C1X.
27058         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
27059         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
27060         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
27061         Define for C1X.
27062
27063 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
27064
27065         * config/i386/gmon-sol2.c (_mcleanup): Change format string
27066         placeholder from 0x%x to %#x.
27067         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
27068         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27069         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27070         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27071         * config/i386/i386.c (ix86_target_string): Ditto.
27072         (output_pic_addr_const): Ditto.
27073         (print_operand): Ditto.
27074
27075 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
27076
27077         * combine.c (find_split_point): Add third argument.  Use it
27078         to find nested multiply-accumulate instructions.  Adjust calls.
27079         (try_combine): Adjust call to find_split_point.
27080
27081 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
27082
27083         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
27084
27085 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
27086
27087         PR tree-optimization/41442
27088         * fold-const.c (merge_truthop_with_opposite_arm): New function.
27089         (fold_binary_loc): Call it.
27090
27091 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27092
27093         * toplev.c (general_init): Set default for fdiagnostics-show-option.
27094         * opts.c (common_handle_option): Allow disabling it.
27095         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
27096
27097 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
27098
27099         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
27100         between modes if both types are integral.
27101
27102 2010-04-23  Richard Guenther  <rguenther@suse.de>
27103
27104         PR tree-optimization/43572
27105         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
27106
27107 2010-04-23  Richard Guenther  <rguenther@suse.de>
27108
27109         PR lto/43455
27110         * tree-inline.c (tree_can_inline_p): Also check compatibility
27111         of return types.
27112
27113 2010-04-23  Martin Jambor  <mjambor@suse.cz>
27114
27115         PR tree-optimization/43846
27116         * tree-sra.c (struct access): New flag grp_assignment_read.
27117         (build_accesses_from_assign): Set grp_assignment_read.
27118         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
27119         (enum mark_read_status): New type.
27120         (analyze_access_subtree): Propagate grp_assignment_read, create
27121         accesses also if both direct_read and root->grp_assignment_read.
27122
27123 2010-04-23  Martin Jambor  <mjambor@suse.cz>
27124
27125         PR middle-end/43835
27126         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
27127         function does not have type attributes.
27128
27129 2010-04-23  Richard Guenther  <rguenther@suse.de>
27130
27131         PR lto/42653
27132         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
27133         of FUNCTION_DECLs.
27134
27135 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27136
27137         * sese.h (create_if_region_on_edge): Remove.
27138
27139         * sese.c (create_if_region_on_edge): Make static.
27140
27141         * tree-inline.c: Do not include ggc.h.
27142
27143         * expr.c: Do not include ggc.h.
27144
27145         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
27146         dependencies.
27147
27148 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
27149
27150         PR target/43744
27151         * config/sh/sh.c (find_barrier): Don't emit a constant pool
27152         in the middle of insns for casesi_worker_2.
27153
27154 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
27155
27156         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
27157
27158 2010-04-22  Ira Rosen  <irar@il.ibm.com>
27159
27160         PR tree-optimization/43842
27161         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
27162         loop unrolling in update of exit phis. Fix comment.
27163         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
27164         least two reduction statements in the loop before starting SLP
27165         analysis.
27166
27167 2010-04-22  Nick Clifton  <nickc@redhat.com>
27168
27169         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
27170
27171 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
27172
27173         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
27174         to simplify a + ~a.
27175
27176 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27177
27178         * tree-parloops.c (loop_parallel_p): New argument
27179         parloop_obstack.  Pass it down.
27180         (parallelize_loops): New variable parloop_obstack.  Initialize it,
27181         pass it down, free it.
27182
27183         * tree-loop-linear.c (linear_transform_loops): Pass down
27184         lambda_obstack.
27185
27186         * tree-data-ref.h (lambda_compute_access_matrices): New argument
27187         of type struct obstack *.
27188
27189         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
27190         scratch_obstack.  Initialize it, pass down, free it.
27191
27192         * lambda.h (lambda_loop_new): Remove.
27193         (lambda_matrix_new, lambda_matrix_inverse)
27194         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
27195         argument of type struct obstack *.
27196
27197         * lambda-trans.c (lambda_trans_matrix_new): New argument
27198         lambda_obstack.  Pass it down, use obstack allocation for ret.
27199         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
27200         it down.
27201
27202         * lambda-mat.c (lambda_matrix_get_column)
27203         (lambda_matrix_project_to_null): Remove.
27204         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
27205         allocation for mat.
27206         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
27207         lambda_obstack.
27208
27209         * lambda-code.c (lambda_loop_new): New function.
27210         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
27211         (lambda_compute_auxillary_space, lambda_compute_target_space)
27212         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
27213         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
27214         (build_access_matrix): New argument lambda_obstack.  Use obstack
27215         allocation for am.
27216         (lambda_compute_step_signs, lambda_compute_access_matrices): New
27217         argument lambda_obstack.  Pass it down.
27218
27219 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27220
27221         * optabs.h (expand_widening_mult): Declare.
27222
27223 2010-04-22  Richard Guenther  <rguenther@suse.de>
27224
27225         PR tree-optimization/43845
27226         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
27227         lookup the CALL_EXPR function and arguments.
27228
27229 2010-04-22  Nick Clifton  <nickc@redhat.com>
27230
27231         * config/stormy16/stormy16.c
27232         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
27233         * config/stormy16/stormy16.h: Tidy up formatting.
27234         (DONT_USE_BUILTIN_SETJMP): Remove definition.
27235         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
27236         (ineqbranchsi): Delete pattern.
27237         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
27238         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
27239         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
27240         stormy16-lib2-ucmpsi2.c.
27241
27242 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27243
27244         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
27245         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
27246         extra set merge_set_noclobber, and use it to relax the final test
27247         slightly.
27248         * df.h (df_simulate_find_noclobber_defs): Declare.
27249         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
27250         conditional defs.
27251         (df_simulate_find_noclobber_defs): New function.
27252
27253 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
27254
27255         * config/i386/i386.md: Use {} around multi-line preparation statements.
27256
27257 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27258
27259         * c-tree.h (push_init_level, pop_init_level, set_init_index)
27260         (process_init_element): New argument of type struct obstack *.
27261
27262         * c-typeck.c (push_init_level, pop_init_level, set_designator)
27263         (set_init_index, set_init_label, set_nonincremental_init)
27264         (set_nonincremental_init_from_string, find_init_member)
27265         (output_init_element, output_pending_init_elements)
27266         (process_init_element): New argument braced_init_obstack.  Pass it
27267         down.
27268         (push_range_stack, add_pending_init): New argument
27269         braced_init_obstack.  Use obstack allocation.
27270
27271         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
27272         braced_init_obstack.  Pass it down.
27273         (c_parser_braced_init): New variables ret, braced_init_obstack.
27274         Initialize obstack, pass it down and finally free it.
27275
27276 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27277
27278         PR middle-end/29274
27279         * tree-pass.h (pass_optimize_widening_mul): Declare.
27280         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
27281         gate_optimize_widening_mul): New static functions.
27282         (pass_optimize_widening_mul): New.
27283         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
27284         <case MULT_EXPR>: Remove support for widening multiplies.
27285         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
27286         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
27287         simplify_gen_unary rather than directly building extensions.
27288         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
27289         WIDEN_MULT_EXPR.
27290         * expmed.c (expand_widening_mult): New function.
27291         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
27292
27293 2010-04-21  Jan Hubicka  <jh@suse.cz>
27294
27295         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
27296         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
27297         * lto-wpa-fixup.c: Remove.
27298         * Makefile.in (lto-wpa-fixup.o): Remove.
27299         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
27300         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
27301         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
27302
27303 2010-04-21  Jan Hubicka  <jh@suse.cz>
27304
27305         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
27306         add write_optimization_summary, read_optimization_summary.
27307         (ipa_write_summaries_of_cgraph_node_set): Remove.
27308         (ipa_write_optimization_summaries): Declare.
27309         (ipa_read_optimization_summaries): Declare.
27310         * ipa-cp.c (pass_ipa_cp): Update.
27311         * ipa-reference.c (pass_ipa_reference): Update.
27312         * ipa-pure-const.c (pass_ipa_pure_const): Update.
27313         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
27314         Update.
27315         * ipa-inline.c (pass_ipa_inline): Update.
27316         * ipa.c (pass_ipa_whole_program): Update.
27317         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
27318         * passes.c (ipa_write_summaries_1): Do not test wpa.
27319         (ipa_write_optimization_summaries_1): New.
27320         (ipa_write_optimization_summaries): New.
27321         (ipa_read_summaries): Do not test ltrans.
27322         (ipa_read_optimization_summaries_1): New.
27323         (ipa_read_optimization_summaries): New.
27324
27325 2010-04-21  Jan Hubicka  <jh@suse.cz>
27326
27327         * lto-cgraph.c (lto_output_node): Do not output comdat groups
27328         for boundary nodes.
27329         (output_cgraph): Do not arrange comdat groups for boundary nodes.
27330
27331 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27332
27333         PR debug/40040
27334         * dwarf2out.c (add_name_and_src_coords_attributes): Add
27335         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
27336
27337 2010-04-21  Jan Hubicka  <jh@suse.cz>
27338
27339         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
27340
27341 2010-04-21  Jan Hubicka  <jh@suse.cz>
27342
27343         * varpool.c (decide_is_variable_needed): Variable is always needed
27344         during ltrans.
27345
27346 2010-04-21  Jan Hubicka  <jh@suse.cz>
27347
27348         * opts.c (decode_options): Enable pure-const pass for whopr.
27349
27350 2010-04-21  Jan Hubicka  <jh@suse.cz>
27351
27352         * cgraph.c (dump_cgraph_node): Dump also assembler name.
27353         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
27354         at WPA dumping.
27355         (cgraph_decide_inlining): Do not expect callee to be removed in all
27356         cases.
27357
27358 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
27359
27360         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
27361
27362 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
27363
27364         * config/i386/i386.md (x86_shrd): Add athlon_decode and
27365         amdfam10_decode attributes.
27366
27367 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27368
27369         PR middle-end/43570
27370         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
27371         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
27372         (lower_copyprivate_clauses): Use private var in outer
27373         context instead of original var.  Make sure the types
27374         are correct for VLAs.
27375
27376 2010-04-21  Richard Guenther  <rguenther@suse.de>
27377
27378         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
27379         to non-pointer objects.
27380
27381 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27382
27383         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
27384         last chain entry if it starts with the still current label.
27385         (add_location_or_const_value_attribute): Check that
27386         loc_list->first->next is NULL instead of comparing ->first with ->last.
27387         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
27388         to add_var_loc_to_decl.
27389
27390         * dwarf2out.c (output_call_frame_info): For dw_cie_version
27391         >= 4 add also address size and segment size fields into CIE header.
27392
27393         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
27394         long as address size is the same as sizeof (void *) and
27395         segment size is 0.
27396         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
27397         address size or segment size is unexpected, return DW_EH_PE_omit.
27398         (classify_object_over_fdes): If get_cie_encoding returned
27399         DW_EH_PE_omit, return -1.
27400         (init_object): If classify_object_over_fdes returned -1,
27401         pretend there were no FDEs at all.
27402
27403 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
27404
27405         * config/i386/i386.md (bswap<mode>2): Macroize expander from
27406         bswap{si,di}2 using SWI48 mode iterator.
27407         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
27408         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
27409         set modrm attribute of bswap insn to 0 and remove length attribute.
27410         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
27411         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
27412         set mode attribute to <MODE> and remove length attribute.
27413
27414 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
27415
27416         PR rtl-optimization/43520
27417         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
27418         zero available registers.
27419
27420 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27421
27422         * builtins.c (fold_builtin_cproj): Fold more cases.
27423
27424 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27425
27426         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
27427         (fold_builtin_1): Fold builtin cproj.
27428         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
27429         Use ATTR_CONST_NOTHROW_LIST.
27430
27431 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
27432
27433         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
27434         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
27435         ffsi2_no_cmove for !TARGET_CMOVE.
27436         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
27437         (ffssi2): Remove expander.
27438         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
27439         mode iterator.
27440         (ctz<mode>2): Ditto from ctz{si,di}2.
27441         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
27442         mode iterator.
27443         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
27444         mode iterator.
27445
27446 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
27447
27448         * dwarf2out.c (AT_linkage_name): Define.
27449         (clone_as_declaration): Handle DW_AT_linkage_name.
27450         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
27451         of DW_AT_MIPS_linkage_name.
27452         (move_linkage_attr): Likewise.
27453         (dwarf2out_finish): Likewise.
27454
27455 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
27456
27457         PR middle-end/41952
27458         * fold-const.c (fold_comparison): New folding rule.
27459
27460 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
27461
27462         * double-int.h (double_int_setbit): Declare.
27463         * double-int.c (double_int_setbit): New function.
27464         * rtl.h (immed_double_int_const): Declare.
27465         * emit-rtl.c (immed_double_int_const): New function.
27466         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
27467         and immed_double_int_const functions.
27468         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
27469         expand_copysign_bit): (Ditto.).
27470         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
27471         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
27472         * dojump.c (prefer_and_bit_test): (Ditto.).
27473         * expr.c (convert_modes, reduce_to_bit_field_precision,
27474         const_vector_from_tree): (Ditto.).
27475         * expmed.c (mask_rtx, lshift_value): (Ditto.).
27476
27477 2010-04-20  Jan Hubicka  <jh@suse.cz>
27478
27479         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
27480         (dump_cgraph_node): Dump new flags.
27481         * cgraph.h (struct cgraph_node): Add flags
27482         reachable_from_other_partition and in_other_partition.
27483         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
27484         other partition can not be removed.
27485         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
27486         the other partition must be output; silence sanity checking on
27487         leaking functions bodies from other paritition.
27488         * lto-cgraph.c (reachable_from_other_partition_p): New function.
27489         (lto_output_node): Output new flags; do not sanity check that inline
27490         clones are output; drop lto_forced_extern_inline_p code; do not mock
27491         visibility flags at partition boundaries.
27492         (add_node_to): New function.
27493         (output_cgraph): Use it to sort functions so masters appear before
27494         clones.
27495         (input_overwrite_node): Input new flags.
27496         * passes.c (ipa_write_summaries): Do not call
27497         lto_new_extern_inline_states.
27498         * lto-section-out.c (forced_extern_inline,
27499         lto_new_extern_inline_states lto_delete_extern_inline_states,
27500         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
27501         * lto-streamer.h (lto_new_extern_inline_states,
27502         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
27503         lto_forced_extern_inline_p): Kill.
27504
27505 2010-04-20  Richard Guenther  <rguenther@suse.de>
27506
27507         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
27508         from vars that can have pointers.
27509         (process_constraint): Dump useless constraints.
27510
27511 2010-04-20  Richard Guenther  <rguenther@suse.de>
27512
27513         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
27514         (dump_sa_points_to_info): Remove asserts.
27515         (init_base_vars): nothing_id isn't an escape point nor does it
27516         have pointers.
27517
27518 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
27519
27520         * tree.h (TYPE_REF_IS_RVALUE): Define.
27521         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
27522         should_move_die_to_comdat, prune_unused_types_walk): Handle
27523         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
27524         (modified_type_die, gen_reference_type_die): Emit
27525         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
27526         if TYPE_REF_IS_RVALUE and -gdwarf-4.
27527
27528 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27529
27530         PR target/43635
27531         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
27532         calls for -fpic -m31 if they have been sibcall optimized.
27533
27534 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
27535
27536         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
27537         ar.lc fixed and call-used.
27538
27539         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
27540
27541 2010-04-19  Jan Hubicka  <jh@suse.cz>
27542
27543         * opts.c (decode_options): Disable whpr incompatible passes.
27544         * lto/lto.c (lto_1_to_1_map): Skip clones.
27545         (read_cgraph_and_symbols): Do not mark everything as needed.
27546         (do_whole_program_analysis): Do map only after optimizing;
27547         set proper cgraph_state; use passmanager.
27548
27549 2010-04-19  DJ Delorie  <dj@redhat.com>
27550
27551         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
27552         POINTER_PLUS_EXPR and fix them.
27553
27554 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
27555
27556         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
27557         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
27558         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
27559         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
27560         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
27561         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
27562         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
27563         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
27564         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
27565         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
27566         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
27567
27568 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
27569
27570         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
27571         (check_cond_move_block): Likewise.
27572         (cond_move_process_if_block): Likewise.
27573         (noce_find_if_block): Improve formatting.
27574         (find_if_header): Pass 0 to memset and tweak conditions.
27575         (cond_exec_find_if_block): Fix long lines and tweak conditions.
27576
27577 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
27578
27579         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
27580         for -gdwarf-4.
27581
27582         PR middle-end/43337
27583         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
27584         with non-local decl doesn't need chain.
27585
27586 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27587
27588         * ira-color.c (allocno_reload_assign): Avoid accumulating
27589         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
27590
27591 2010-04-19  Martin Jambor  <mjambor@suse.cz>
27592
27593         * gimple.h (create_tmp_reg): Declare.
27594         * gimplify.c (create_tmp_reg): New function.
27595         (gimplify_return_expr): Use create_tmp_reg.
27596         (gimplify_omp_atomic): Likewise.
27597         (gimple_regimplify_operands): Likewise.
27598         * tree-dfa.c (make_rename_temp): Likewise.
27599         * tree-predcom.c (predcom_tmp_var): Likewise.
27600         (reassociate_to_the_same_stmt): Likewise.
27601         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
27602         (get_replaced_param_substitute): Likewise.
27603         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
27604         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
27605         * tree-ssa-pre.c (get_representative_for): Likewise.
27606         (create_expression_by_pieces): Likewise.
27607         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
27608         (create_tailcall_accumulator): Likewise.
27609
27610 2010-04-19  Martin Jambor  <mjambor@suse.cz>
27611
27612         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
27613         new_stmt.
27614         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
27615
27616 2010-04-19  Richard Guenther  <rguenther@suse.de>
27617
27618         PR tree-optimization/43796
27619         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
27620         from SCEV in the lattice.
27621         (vrp_visit_phi_node): Dump change.
27622
27623 2010-04-19  Richard Guenther  <rguenther@suse.de>
27624
27625         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
27626         * configure: Re-generated.
27627
27628 2010-04-19  Richard Guenther  <rguenther@suse.de>
27629
27630         PR tree-optimization/43783
27631         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
27632         constant ARRAY_REF operands two and three if possible.
27633
27634 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
27635
27636         PR target/43766
27637         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
27638
27639 2010-04-19  Jie Zhang  <jie@codesourcery.com>
27640
27641         PR target/43662
27642         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
27643
27644 2010-04-19  Ira Rosen  <irar@il.ibm.com>
27645
27646         PR tree-optimization/37027
27647         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
27648         and macro to access it.
27649         (vectorizable_reduction): Add argument.
27650         (vect_get_slp_defs): Likewise.
27651         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
27652         statements for possible use in SLP.
27653         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
27654         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
27655         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
27656         add new argument.
27657         (vectorizable_reduction): Likewise.
27658         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
27659         vect_get_slp_defs.
27660         (vectorizable_type_demotion, vectorizable_type_promotion,
27661         vectorizable_store): Likewise.
27662         (vect_analyze_stmt): Update call to vectorizable_reduction.
27663         (vect_transform_stmt): Likewise.
27664         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
27665         (vect_build_slp_tree): Fix indentation. Check that there are no loads
27666         from different interleaving chains in same node.
27667         (vect_slp_rearrange_stmts): New function.
27668         (vect_supported_load_permutation_p): Allow load permutations for
27669         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
27670         inside SLP nodes if necessary.
27671         (vect_analyze_slp_instance): Handle reductions.
27672         (vect_analyze_slp): Try to build SLP instances originating from groups
27673         of reductions.
27674         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
27675         (vect_get_constant_vectors): Create initial vectors for reductions
27676         according to reduction code. Add new argument.
27677         (vect_get_slp_defs): Add new argument, pass it to
27678         vect_get_constant_vectors.
27679         (vect_schedule_slp_instance): Remove SLP tree root statements.
27680
27681 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
27682
27683         * tree.h (ENUM_IS_SCOPED): Define.
27684         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
27685         for ENUM_IS_SCOPED enums.
27686
27687 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
27688
27689         * fold-const.c (fold_comparison): Use ssizetype.
27690         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27691         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
27692         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
27693         * tree-object-size.c (compute_object_sizes): Use size_type_node.
27694
27695         * tree.h (initialize_sizetypes): Remove parameter.
27696         (build_common_tree_nodes): Remove second parameter.
27697         * stor-layout.c (initialize_sizetypes): Remove parameter.
27698         Always create an unsigned type.
27699         (set_sizetype): Assert that the passed type is unsigned and simplify.
27700         * tree.c (build_common_tree_nodes): Remove second parameter.
27701         Adjust call to initialize_sizetypes.
27702         * c-decl.c (c_init_decl_processing): Remove second argument in call to
27703         build_common_tree_nodes.
27704
27705 2010-04-18  Matthias Klose  <doko@ubuntu.com>
27706
27707         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
27708
27709 2010-04-18  Ira Rosen  <irar@il.ibm.com>
27710
27711         PR tree-optimization/43771
27712         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
27713         load permutation doesn't have gaps.
27714
27715 2010-04-18  Jan Hubicka  <jh@suse.cz>
27716
27717         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
27718         (sse_prologue_save_insn expander): Use new pattern.
27719         (sse_prologue_save_insn1): New pattern and splitter.
27720         (sse_prologue_save_insn): Update to deal also with 64bit aligned
27721         blocks.
27722         * i386.c (setup_incoming_varargs_64): Do not compute jump
27723         destination here.
27724         (ix86_gimplify_va_arg): Update alignment needed.
27725         (ix86_local_alignment): Do not align all local arrays to 128bit.
27726
27727 2010-04-17  Jan Hubicka  <jh@suse.cz>
27728
27729         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
27730
27731 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
27732
27733         * arm.md (negdi2): Remove redundant code to force values into a
27734         register.
27735
27736 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
27737
27738         * arm/bpabi.S: Add EABI alignment attributes to objects.
27739         * arm/bpabi-v6m.S: Likewise.
27740         * arm/crti.asm: Likewise.
27741         * arm/crtn.asm: Likewise.
27742         * arm/lib1funcs.asm: Likewise.
27743         * arm/libunwind.S: Likewise.
27744
27745 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
27746
27747         * arm-protos.h (tune_params): New structure.
27748         * arm.c (current_tune): New variable.
27749         (arm_constant_limit): Delete.
27750         (struct processors): Add pointer to the tune parameters.
27751         (arm_slowmul_tune): New tuning option.
27752         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
27753         (all_cores): Adjust to pick up the tuning model.
27754         (arm_constant_limit): New function.
27755         (arm_override_options): Select the appropriate tuning model.  Delete
27756         initialization of arm_const_limit.
27757         (arm_split_constant): Use the new constant-limit model.
27758         (arm_rtx_costs): Pick up the current tuning model.
27759         * arm.md (is_strongarm, is_xscale): Delete.
27760         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
27761         for Xscale variant architectures.
27762         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
27763
27764 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27765
27766         * config/arm/arm.c (arm_gen_constant): Remove unused variable
27767         can_shift.
27768         (arm_rtx_costs_1): Remove unused variable extra_cost.
27769         (arm_unwind_emit_set): Use variable offset.
27770         (thumb1_output_casesi): Remove unused variable flags.
27771
27772 2010-04-16  Jeff Law  <law@redhat.com>
27773
27774         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
27775         needing assignment rather than doing a two-phase assignment.  Remove
27776         unused variable 'm'.
27777
27778 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
27779
27780         PR bootstrap/43767
27781         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
27782
27783 2010-04-16  Doug Kwan  <dougkwan@google.com>
27784
27785         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
27786         (next_operand_entry_id): New static variable.
27787         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
27788         (add_to_ops_vec): Assigned unique ID to operand entry.
27789         (struct oecount_s): New field ID.
27790         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
27791         (undistribute_ops_list): Assign unique IDs to oecounts.
27792         (init_reassoc): reset next_operand_entry_id.
27793
27794 2010-04-16  Doug Kwan  <dougkwan@google.com>
27795
27796         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
27797         missing left parenthesis.
27798
27799 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
27800
27801         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
27802         *btdi_rex64 using SWI48 mode iterator.
27803         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
27804         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
27805         *jcc_btdi_mask_rex64.
27806
27807 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
27808
27809         * double-int.h (tree_to_double_int): Convert to macro.
27810         * double-int.c (tree_to_double_int): Remove.
27811
27812 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
27813
27814         PR debug/43762
27815         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
27816         with want_address 2 and in case a single element list might be
27817         possible, call it again with want_address 0.
27818
27819 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27820
27821         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
27822         case 'W' print operands for HI mode.
27823         * config/h8300/h8300.h (Y0, Y2) : New constraints.
27824         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
27825         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
27826         * config/h8300/predicate.md (bit_register_indirect_operand): New.
27827
27828         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
27829
27830         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
27831         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
27832         #xx:3 and #xx:4 mode.
27833
27834         * config/h8300/h8300.md (inverted load with HImode dest): Add
27835         support for H8300SX.
27836
27837         * config/h8300/predicate.md (bit_operand): Allow immediate values that
27838         satisfy 'U' constraint.
27839
27840 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27841
27842         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
27843         * configure: Regenerate.
27844         * config.in: Regenerate.
27845         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
27846         works.
27847
27848 2010-04-16  Richard Guenther  <rguenther@suse.de>
27849
27850         * tree.h (struct tree_decl_minimal): Move pt_uid ...
27851         (struct tree_decl_common): ... here.
27852         (DECL_PT_UID): Adjust.
27853         (SET_DECL_PT_UID): Likewise.
27854         (DECL_PT_UID_SET_P): Likewise.
27855
27856 2010-04-16  Richard Guenther  <rguenther@suse.de>
27857
27858         PR tree-optimization/43572
27859         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
27860         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
27861         * tree-flow.h (is_call_clobbered): Remove.
27862         * tree-flow-inline.h (is_call_clobbered): Likewise.
27863         * tree-dfa.c (dump_variable): Do not dump call clobber state.
27864         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
27865         (execute_return_slot_opt): Adjust.
27866         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
27867         check for call clobbered vars here.
27868         (find_tail_calls): Move tailcall verification to the
27869         proper place.
27870
27871 2010-04-16  Diego Novillo  <dnovillo@google.com>
27872
27873         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
27874
27875 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
27876
27877         PR target/40603
27878         * config/arm/arm.md (cbranchqi4): New pattern.
27879         * config/arm/predicates.md (const0_operand,
27880         cbranchqi4_comparison_operator): New predicates.
27881
27882 2010-04-16  Richard Guenther  <rguenther@suse.de>
27883
27884         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
27885         (dump_gimple_stmt): Likewise.
27886
27887 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
27888
27889         * recog.h (struct recog_data): New field is_operator.
27890         (struct insn_operand_data): New field is_operator.
27891         * recog.c (extract_insn): Set recog_data.is_operator.
27892         * genoutput.c (output_operand_data): Emit code to set the
27893         is_operator field.
27894         * reload.c (find_reloads): Use it rather than testing for an
27895         empty constraint string.
27896
27897         PR target/41514
27898         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
27899         If the previous insn is a cbranchsi4_insn with the same arguments,
27900         omit the compare instruction.
27901
27902         * config/arm/arm.md (addsi3_cbranch): If destination is a high
27903         register, inputs must be low registers and we need a low register
27904         scratch.  Handle alternative 2 like alternative 3.
27905
27906 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
27907
27908         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
27909         don't call get_addr on both.  If one expression is a VALUE and
27910         the other a REG, check VALUE's locs if the REG isn't among them.
27911
27912 2010-04-16  Christian Bruel  <christian.bruel@st.com>
27913
27914         * config/sh/sh.h (sh_frame_pointer_required): New function.
27915         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
27916         (flag_omit_frame_pointer) Set.
27917         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
27918         (rounded_frame_size): Adjust size with outgoing_args_size.
27919         (sh_set_return_address): Must return from stack pointer.
27920         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
27921         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
27922         (ACCUMULATE_OUTGOING_ARGS): Define.
27923         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
27924         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
27925
27926 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
27927
27928         PR target/43471
27929         * config/sh/sh.c (sh_legitimize_reload_address): Use
27930         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
27931         Remove a unneeded check for offset_base.
27932
27933 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
27934
27935         * configure: Regenerated.
27936
27937 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27938
27939         * config/s390/s390.c (s390_call_save_register_used): Switch back
27940         to HARD_REGNO_NREGS.
27941
27942 2010-04-15  Richard Guenther  <rguenther@suse.de>
27943
27944         * alias.c (alias_set_subset_of): Handle alias-set zero
27945         child properly.
27946
27947 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
27948             Julian Brown  <julian@codesourcery.com>
27949
27950         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
27951         alternatives according to use of high and low regs.
27952         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
27953         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
27954         optimizing for size on Thumb-2.
27955
27956 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
27957
27958         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
27959
27960 2010-04-15  Richard Guenther  <rguenther@suse.de>
27961
27962         * tree-ssa-structalias.c (struct variable_info): Add
27963         is_fn_info flag.
27964         (new_var_info): Initialize it.
27965         (dump_constraints): Support printing last added constraints.
27966         (debug_constraints): Adjust.
27967         (dump_constraint_graph): Likewise.
27968         (make_heapvar_for): Check for NULL cfun.
27969         (get_function_part_constraint): New function.
27970         (get_fi_for_callee): Likewise.
27971         (find_func_aliases): Properly implement IPA PTA constraints.
27972         (process_ipa_clobber): New function.
27973         (find_func_clobbers): Likewise.
27974         (insert_into_field_list_sorted): Remove.
27975         (create_function_info_for): Properly allocate vars for IPA mode.
27976         Do not use insert_into_field_list_sorted.
27977         (create_variable_info_for): Properly generate constraints for
27978         global vars in IPA mode.
27979         (dump_solution_for_var): Always dump the solution.
27980         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
27981         (find_what_var_points_to): Adjust.
27982         (pt_solution_set): Change.
27983         (pt_solution_ior_into): New function.
27984         (pt_solution_empty_p): Export.
27985         (pt_solution_includes_global): Adjust.
27986         (pt_solution_includes_1): Likewise.
27987         (pt_solutions_intersect_1): Likewise.
27988         (dump_sa_points_to_info): Check some invariants.
27989         (solve_constraints): Move constraint dumping ...
27990         (compute_points_to_sets): ... here.
27991         (ipa_pta_execute): ... and here.
27992         (compute_may_aliases): Do not re-compute points-to info
27993         locally if IPA info is available.
27994         (ipa_escaped_pt): New global var.
27995         (ipa_pta_execute): Properly implement IPA PTA.
27996         * tree-into-ssa.c (dump_decl_set): Support dumping
27997         decls not in referenced-vars.
27998         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
27999         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
28000         (dump_points_to_solution): Likewise.
28001         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
28002         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
28003         (remap_gimple_stmt): Reset call clobber/use information if necessary.
28004         (copy_decl_to_var): Copy DECL_PT_UID.
28005         (copy_result_decl_to_var): Likewise.
28006         * tree.c (make_node_stat): Initialize DECL_PT_UID.
28007         (copy_node_stat): Copy it.
28008         * tree.h (DECL_PT_UID): New macro.
28009         (SET_DECL_PT_UID): Likewise.
28010         (DECL_PT_UID_SET_P): Likewise.
28011         (struct tree_decl_minimal): Add pt_uid member.
28012         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
28013         (pt_solution_empty_p): Declare.
28014         (pt_solution_set): Adjust.
28015         (ipa_escaped_pt): Declare.
28016         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
28017         * gimple-pretty-print.c (pp_points_to_solution): New function.
28018         (dump_gimple_call): Dump call clobber/use information.
28019         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
28020         * tree-pass.h (TDF_ALIAS): New dump option.
28021         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
28022         * doc/invoke.texi (-fipa-pta): Update documentation.
28023
28024 2010-04-15  Richard Guenther  <rguenther@suse.de>
28025
28026         * Makefile.in (OBJS-common): Add gimple-fold.o.
28027         (gimple-fold.o): New rule.
28028         * tree.h (maybe_fold_offset_to_reference,
28029         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
28030         prototypes ...
28031         * gimple.h: ... here.
28032         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
28033         may_propagate_address_into_dereference): Move prototypes ...
28034         * gimple.h: ... here.
28035         * tree-ssa-ccp.c (get_symbol_constant_value,
28036         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
28037         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
28038         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
28039         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
28040         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
28041         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
28042         gimplify_and_update_call_from_tree): Move ...
28043         * gimple-fold.c: ... here.  New file.
28044         (ccp_fold_builtin): Rename to ...
28045         (gimple_fold_builtin): ... this.
28046         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
28047
28048 2010-04-15  Richard Guenther  <rguenther@suse.de>
28049
28050         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
28051         fit_double_type, force_fit_type_double, add_double_with_sign,
28052         neg_double, mul_double_with_sign, lshift_double, rshift_double,
28053         lrotate_double, rrotate_double, div_and_round_double): Move ...
28054         * double-int.c: ... here.
28055         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
28056         add_double, neg_double, mul_double_with_sign, mul_double,
28057         lshift_double, rshift_double, lrotate_double, rrotate_double,
28058         div_and_round_double): Move prototypes ...
28059         * double-int.h: ... here.
28060
28061 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
28062
28063         PR target/43742
28064         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
28065         matching constraints to ensure inputs match the output.
28066
28067 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
28068
28069         PR target/43742
28070         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
28071         in an input-only operand.
28072
28073 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
28074
28075         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
28076         (double_int_not, double_int_lshift, double_int_rshift): Declare.
28077         (double_int_negative_p): Convert to static inline function.
28078         * double-int.c (double_int_lshift, double_int_lshift): New functions.
28079         (double_int_negative_p): Remove.
28080         * tree.h (lshift_double, rshift_double):
28081         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
28082         * fold-const.c (fold_convert_const_int_from_real,
28083         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
28084         (lshift_double): Change type of arith argument to bool.
28085         (rshift_double): Change type of arith argument to bool. Correct
28086         comment.
28087         * expmed.c (mask_rtx, lshift_value): (Ditto.).
28088
28089 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
28090
28091         PR target/21803
28092         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
28093         at the start and end of the then/else blocks, and omit them from the
28094         conversion.
28095         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
28096         argument; all callers changed.  Pass zero to old_insns_match_p instead.
28097         (flow_find_head_matching_sequence): New function.
28098         (old_insns_match_p): Check REG_EH_REGION notes for calls.
28099         * basic-block.h (flow_find_cross_jump,
28100         flow_find_head_matching_sequence): Declare functions.
28101
28102 2010-04-14  Jason Merrill  <jason@redhat.com>
28103
28104         PR c++/36625
28105         * c-common.c (attribute_takes_identifier_p): New fn.
28106         * c-common.h: Declare it.
28107
28108 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28109
28110         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
28111         splitter condition.
28112         (*udivmod<mode>4): Ditto.
28113
28114 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28115
28116         * config/i386/i386.md (maxmin_int): Rename code attribute from
28117         maxminiprefix and update all users.
28118         (maxmin_float): Ditto from maxminfprefix.
28119         (logic): Ditto from logicprefix.
28120         (absneg_mnemonic): Ditto from absnegprefix.
28121         * config/i386/mmx.md: Update all users of maxminiprefix,
28122         maxminfprefix and logicprefix for rename.
28123         * config/i386/sse.md: Ditto.
28124         * config/i386/sync.md (sync_<code><mode>): Update for
28125         logicprefix rename.
28126
28127 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28128
28129         PR 42966
28130         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
28131         warnings converted to errors.
28132
28133 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28134
28135         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
28136         used insn_type variable.
28137         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
28138         to avoid set-but-not-used warning.
28139
28140 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28141
28142         * df-core.c (df_ref_debug): Change format string placeholder
28143         from 0x%x to %#x.
28144         * dwarf2asm.c (dw2_asm_output_data_raw,
28145         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
28146         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
28147         * dwarf2out.c (output_cfi, output_cfi_directive,
28148         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
28149         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
28150         Ditto.
28151         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
28152         * print-rtl.c (print_rtx): Ditto.
28153
28154 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28155
28156         PR middle-end/42694
28157         * builtins.c (expand_builtin_pow_root): New function to expand pow
28158         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
28159         series of sqrt and cbrt calls under -ffast-math.
28160         (expand_builtin_pow): Call it.
28161
28162 2010-04-14  Michael Matz  <matz@suse.de>
28163
28164         PR tree-optimization/42963
28165         * tree-cfg.c (touched_switch_bbs): New static variable.
28166         (group_case_labels_stmt): New function broken out from ...
28167         (group_case_labels): ... here, use the above.
28168         (start_recording_case_labels): Allocate touched_switch_bbs.
28169         (end_recording_case_labels): Deallocate it, call
28170         group_case_labels_stmt.
28171         (gimple_redirect_edge_and_branch): Remember index of affected BB.
28172
28173 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28174
28175         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
28176         from insn template.
28177
28178 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28179
28180         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
28181
28182 2010-04-13  Jan Hubicka  <jh@suse.cz>
28183
28184         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
28185         of optimized out static functions.
28186         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
28187         cost computation.  Also sanity check for overflows.
28188         (update_caller_keys): Update cgraph_edge_badness call; properly
28189         update fibheap and sanity check that it is up to date.
28190         (add_new_edges_to_heap): Update cgraph_edge_badness.
28191         (cgraph_decide_inlining_of_small_function): Likewise;
28192         add sanity checking that badness in heap is up to date;
28193         improve dumping of reason; Update badness of calls to the
28194         offline copy of function currently inlined; dump badness
28195         of functions not inlined because of unit growth limits.
28196
28197 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
28198
28199         PR middle-end/32628
28200         * c-common.c (pointer_int_sum): Disregard overflow that occured only
28201         because of sign-extension change when converting to sizetype here...
28202         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
28203
28204         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
28205         the folding to constants.  Remove redundant final conversion.
28206         (fold_binary) <associate>: Do not associate if the re-association of
28207         constants alone overflows.
28208         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
28209         to the end of the list.
28210         (multiple_of_p) <COND_EXPR>: New case.
28211
28212 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28213
28214         * opt-functions.awk (opt_sanitized_name): New.
28215         (opt_enum): New.
28216         * optc-gen.awk: Use it
28217         * opth-gen.awk: Use it.
28218
28219 2010-04-13  Martin Jambor  <mjambor@suse.cz>
28220
28221         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
28222         (sra_modify_assign): Delete stmts loading dead data even if racc has no
28223         children.  Call replace_uses_with_default_def_ssa_name to handle
28224         SSA_NAES on lhs.
28225
28226 2010-04-13  Michael Matz  <matz@suse.de>
28227
28228         PR middle-end/43730
28229         * builtins.c (expand_builtin_interclass_mathfn): Also create
28230         a register if the predicate doesn't match.
28231
28232 2010-04-13  Diego Novillo  <dnovillo@google.com>
28233
28234         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
28235         * c-pch.c: Include timevar.h.
28236         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
28237         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
28238         * ggc-common.c: Include timevar.h.
28239         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
28240         * timevar.def (TV_PCH_SAVE): Define.
28241         (TV_PCH_CPP_SAVE): Define.
28242         (TV_PCH_PTR_REALLOC): Define.
28243         (TV_PCH_PTR_SORT): Define.
28244         (TV_PCH_RESTORE): Define.
28245         (TV_PCH_CPP_RESTORE): Define.
28246
28247 2010-04-13  Michael Matz  <matz@suse.de>
28248
28249         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
28250         into MINUS_EXPRs.
28251         (can_reassociate_p): New function.
28252         (break_up_subtract_bb, reassociate_bb): Use it.
28253
28254 2010-04-13  Richard Guenther  <rguenther@suse.de>
28255
28256         PR bootstrap/43737
28257         * builtins.c (c_readstr): Fix assert.
28258
28259 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
28260
28261         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
28262         when generating cltd insn.
28263
28264         (*ashl<mode>3_1): Remove special handling for register operand 2.
28265         (*ashlsi3_1_zext): Ditto.
28266         (*ashlhi3_1): Ditto.
28267         (*ashlhi3_1_lea): Ditto.
28268         (*ashlqi3_1): Ditto.
28269         (*ashlqi3_1_lea): Ditto.
28270         (*<shiftrt_insn><mode>3_1): Ditto.
28271         (*<shiftrt_insn>si3_1_zext): Ditto.
28272         (*<shiftrt_insn>qi3_1_slp): Ditto.
28273         (*<rotate_insn><mode>3_1): Ditto.
28274         (*<rotate_insn>si3_1_zext): Ditto.
28275         (*<rotate_insn>qi3_1_slp): Ditto.
28276
28277 2010-04-13  Richard Guenther  <rguenther@suse.de>
28278
28279         * tree-ssa-structalias.c (callused_id): Remove.
28280         (call_stmt_vars): New.
28281         (get_call_vi): Likewise.
28282         (lookup_call_use_vi): Likewise.
28283         (lookup_call_clobber_vi): Likewise.
28284         (get_call_use_vi): Likewise.
28285         (get_call_clobber_vi): Likewise.
28286         (make_transitive_closure_constraints): Likewise.
28287         (handle_const_call): Adjust to do per-call call-used handling.
28288         (handle_pure_call): Likewise.
28289         (find_what_var_points_to): Remove general callused handling.
28290         (init_base_vars): Likewise.
28291         (init_alias_vars): Initialize call_stmt_vars.
28292         (compute_points_to_sets): Process call-used and call-clobbered
28293         vars for call statements.
28294         (delete_points_to_sets): Free call_stmt_vars.
28295
28296 2010-04-13  Richard Guenther  <rguenther@suse.de>
28297
28298         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28299         Only add RW dependence for dependence distance zero.
28300         Adjust maximal vectorization factor according to dependences.
28301         Move alignment handling ...
28302         (vect_find_same_alignment_drs): ... here.  New function.
28303         (vect_analyze_data_ref_dependences): Adjust.
28304         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
28305         (vect_analyze_data_refs): Adjust minimal vectorization factor
28306         according to data references.
28307         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
28308         dependences before determining the vectorization factor.
28309         Analyze alignment after determining the vectorization factor.
28310         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
28311         dependences before alignment.
28312         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
28313         Adjust prototype.
28314         (vect_analyze_data_refs): Likewise.
28315         (MAX_VECTORIZATION_FACTOR): New define.
28316
28317 2010-04-13  Duncan Sands  <baldrick@free.fr>
28318
28319         * except.h (lang_eh_type_covers): Remove.
28320         * except.c (lang_eh_type_covers): Likewise.
28321
28322 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28323             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28324
28325         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
28326         * config/s390/s390.c: Replace UNTIS_PER_WORD with
28327         UNITS_PER_LONG where it is ABI relevant.
28328         (s390_return_addr_rtx): Likewise.
28329         (s390_back_chain_rtx): Likewise.
28330         (s390_frame_area): Likewise.
28331         (s390_frame_info): Likewise.
28332         (s390_initial_elimination_offset): Likewise.
28333         (save_gprs): Likewise.
28334         (s390_emit_prologue): Likewise.
28335         (s390_emit_epilogue): Likewise.
28336         (s390_function_arg_advance): Likewise.
28337         (s390_function_arg): Likewise.
28338         (s390_va_start): Likewise.
28339         (s390_gimplify_va_arg): Likewise.
28340         (s390_function_profiler): Likewise.
28341         (s390_optimize_prologue): Likewise.
28342         (s390_rtx_costs): Likewise.
28343         (s390_secondary_reload): Likewise.
28344         (s390_promote_function_mode): Likewise.
28345         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
28346         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
28347         registers available.
28348         (s390_unwind_word_mode): New function.
28349         (s390_function_value): Split 64 bit values into register pair if
28350         used as return value.
28351         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
28352         function call parameters.  Handle parallels.
28353         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
28354         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
28355         (DWARF_CIE_DATA_ALIGNMENT): New macro.
28356         (s390_expand_setmem): Remove unused variable src_addr.
28357         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
28358         deal with 64 bit registers.
28359         * config/s390/s390.h: Define __zarch__ predefined macro.
28360         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
28361         (UNITS_PER_LONG): New macro.
28362         * libjava/include/s390-signal.h: Define extended ucontext
28363         structure containing the upper halfs of the 64 bit registers.
28364
28365 2010-04-13  Simon Baldwin  <simonb@google.com>
28366
28367         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
28368
28369 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
28370
28371         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
28372         rvalue on the RHS if the LHS is of a non-renamable type.
28373         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
28374
28375 2010-04-13  Matthias Klose  <doko@ubuntu.com>
28376
28377         * gcc.c (cc1_options): Handle -iplugindir before processing
28378         the cc1 spec. Only add -iplugindir once.
28379         (cpp_unique_options): Add -iplugindir option if -fplugin* options
28380         found.
28381         * common.opt (iplugindir): Remove `Separate' property, initialize.
28382         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
28383         option.
28384         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
28385         (distclean): Remove plugin dir.
28386         * doc/invoke.texi: Document -iplugindir.
28387
28388 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
28389
28390         * doc/plugins.texi (Loading Plugins): Document short
28391         -fplugin=foo option.
28392         (Plugin API): Mention default_plugin_dir_name function.
28393
28394         * gcc.c (find_file_spec_function): Add new declaration.
28395         (static_spec_func): Use it for "find-file".
28396         (find_file_spec_function): Add new function.
28397         (cc1_options): Add -iplugindir option if -fplugin* options found.
28398
28399         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
28400
28401         * plugin.c (add_new_plugin): Updated comment, and handle short
28402         plugin name.
28403         (default_plugin_dir_name): Added new function.
28404
28405         * common.opt (iplugindir): New option to set the plugin directory.
28406
28407 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
28408
28409         * config/i386/i386.md (any_rotate): New code iterator.
28410         (rotate_insn): New code attribute.
28411         (rotate): Ditto.
28412         (SWIM124): New mode iterator.
28413         (<rotate_insn>ti3): New expander.
28414         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
28415         any_rotate code iterator.
28416         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
28417         using any_rotate code iterator and SWIM124 mode iterator.
28418         (ix86_rotlti3): New insn_and_split pattern.
28419         (ix86_rotrti3): Ditto.
28420         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
28421         ix86_rotl{di,ti}3 patterns.
28422         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
28423         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
28424         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
28425         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
28426         code iterator and SWI mode iterator.
28427         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
28428         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
28429         code iterator.
28430         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
28431         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
28432         (bswap rotatert splitter): Add splitter.
28433         (bswap splitter): Macroize splitter using any_rotate code iterator.
28434         Add insn predicate to split only for TARGET_USE_XCHGB or when
28435         optimizing function for size.
28436
28437 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28438
28439         * config/pa/pa.c (emit_move_sequence): Remove use of
28440         deleted variable flag_argument_noalias.
28441
28442 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28443
28444         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
28445         configurations.
28446         Add to unsupported targets list.
28447         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
28448         sparc*-sun-solaris2.[567]* from target lists.
28449         * configure: Regenerate.
28450         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
28451         removal.
28452         Remove Solaris 7 patch references.
28453         (Specific, sparc-sun-solaris2.7): Removed.
28454         (sparc-sun-solaris2*): Update Solaris 7 example.
28455         (sparc64-*-solaris2*): Likewise.
28456
28457 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28458
28459         * config.build (alpha*-dec-osf4*): Remove.
28460         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
28461         of obsolete configurations.
28462         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
28463         support.
28464         * config/alpha/t-osf4: Renamed to ...
28465         * config/alpha/t-osf5: ... this.
28466         * config/alpha/osf.h: Renamed to ...
28467         * config/alpha/osf5.h: ... this.
28468         Merged old osf5.h contents.
28469         Update comments.
28470         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
28471         (EXTRA_SPECS): Removed.
28472         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
28473         reflect removal of Tru64 UNIX V4.0/V5.0 support.
28474         Document that.
28475
28476 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28477
28478         * doc/contrib.texi (Contributors, Rainer Orth): Update.
28479
28480 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
28481
28482         PR/43702
28483         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
28484         __thiscall convention.
28485
28486 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28487
28488         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
28489         orig_base.
28490         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
28491
28492 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28493
28494         * function.c (assign_parms_initialize_all): Add unused attribute
28495         to fntype.
28496
28497 2010-04-12  Richard Guenther  <rguenther@suse.de>
28498
28499         * gsstruct.def (GSS_CALL): New.
28500         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
28501         * gimple.h: Include tree-ssa-alias.h.
28502         (struct gimple_statement_call): New.
28503         (union gimple_statement_struct_d): Add gimple_call member.
28504         (gimple_call_reset_alias_info): Declare.
28505         (gimple_call_use_set): New function.
28506         (gimple_call_clobber_set): Likewise.
28507         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
28508         * gimple.c (gimple_call_reset_alias_info): New function.
28509         (gimple_build_call_1): Call it.
28510         * lto-streamer-in.c (input_gimple_stmt): Likewise.
28511         * tree-inline.c (remap_gimple_stmt): Likewise.
28512         (expand_call_inline): Remove callused handling.
28513         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
28514         * tree-dfa.c (dump_variable): Likewise.
28515         * tree-parloops.c (parallelize_loops): Likewise.
28516         * tree-ssa.c (init_tree_ssa): Likewise.
28517         (delete_tree_ssa): Likewise.
28518         * tree-flow-inline.h (is_call_used): Remove.
28519         * tree-flow.h (struct gimple_df): Remove callused member.
28520         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
28521         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
28522         (ref_maybe_used_by_call_p_1): Simplify.
28523         (call_may_clobber_ref_p_1): Likewise.
28524         * tree-ssa-structalias.c (compute_points_to_sets): Set
28525         the call stmt used and clobbered sets.
28526         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
28527         (find_tail_calls): Verify the tail call.
28528
28529 2010-04-12  Richard Guenther  <rguenther@suse.de>
28530
28531         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
28532         single-iteration always-inline inlining.
28533         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
28534         (cgraph_decide_inlining): Do not handle always-inline specially.
28535         (try_inline): Remove always-inline cycle detection special case.
28536         Do not recurse on always-inlines.
28537         (cgraph_early_inlining): Do not iterate if not optimizing.
28538         (cgraph_gate_early_inlining): remove.
28539         (pass_early_inline): Run unconditionally.
28540         (gate_cgraph_decide_inlining): New function.
28541         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
28542         not inlining or optimizing.
28543         (cgraph_decide_inlining_of_small_functions): Also consider
28544         always-inline functions.
28545         (cgraph_default_inline_p): Return true for nodes which should
28546         disregard inline limits.
28547         (estimate_function_body_sizes): Assume zero size and time for
28548         nodes which are marked as disregarding inline limits.
28549         (cgraph_decide_recursive_inlining): Do not perform recursive
28550         inlining on always-inline nodes.
28551
28552 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
28553
28554         PR bootstrap/43699
28555         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
28556         for exprs satisfying handled_component_p.
28557
28558 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
28559
28560         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
28561         non-constant aggregate elements.
28562
28563         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
28564         is a real initialization.
28565
28566 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
28567
28568         PR c/36774
28569         * c-decl.c (start_function): Move forward check for nested function.
28570
28571 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
28572
28573         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
28574         * config/sh/sh.c: Include reload.h.
28575         (sh_legitimize_reload_address): New.
28576         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
28577         sh_legitimize_reload_address.
28578
28579 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
28580
28581         * config/sh/sh.md (*movqi_pop): New insn pattern.
28582         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
28583
28584 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
28585
28586         * config/i386/i386.md (any_shiftrt): New code iterator.
28587         (shiftrt_insn): New code attribute.
28588         (shiftrt): Ditto.
28589         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
28590         using any_shiftrt code iterator.
28591         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
28592         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
28593         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
28594         pattern from corresponding peephole2 patterns.
28595         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
28596         using any_shiftrt code iterator.
28597         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
28598         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
28599         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
28600         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
28601         *{ashr,lshr}<mode>3_cmp_zext.
28602         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
28603
28604 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
28605
28606         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
28607         scratch register.
28608         (*lshr<mode>3_cconly): Ditto.
28609
28610 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
28611
28612         * config/i386/i386.md (lshr<mode>3): Macroize expander from
28613         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28614         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
28615         pattern from *lshr{di,ti}3_1 and corresponding splitters using
28616         DWI mode iterator.
28617         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28618         from corresponding peephole2 patterns.
28619         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
28620         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
28621         and *lshrdi3_1_rex64 using SWI mode iterator.
28622         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
28623         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
28624         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
28625         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
28626         and *lshrdi3_cmp_rex64 using SWI mode iterator.
28627         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
28628         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
28629         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
28630         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
28631         SWI mode iterator.
28632
28633 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
28634
28635         * config/i386/i386.md (ashr<mode>3): Macroize expander from
28636         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28637         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
28638         pattern from *ashr{di,ti}3_1 and corresponding splitters using
28639         DWI mode iterator.
28640         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28641         from corresponding peephole2 patterns.
28642         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
28643         (ashrsi3_cvt): Rename from ashrsi3_31.
28644         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
28645         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
28646         and x86_64_shift_adj_3 using SWI48 mode iterator.
28647         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
28648         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
28649         and *ashrdi3_1_rex64 using SWI mode iterator.
28650         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
28651         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
28652         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
28653         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
28654         and *ashrdi3_cmp_rex64 using SWI mode iterator.
28655         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
28656         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
28657         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
28658         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
28659         SWI mode iterator.
28660         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
28661         * config/i386/i386.c (ix86_split_ashr): Update for renamed
28662         x86_shift<mode>_adj_3 expanders.
28663
28664 2010-04-10  Wei Guozhi  <carrot@google.com>
28665
28666         PR target/42601
28667         * config/arm/arm.c (arm_pic_static_addr): New function.
28668         (legitimize_pic_address): Call arm_pic_static_addr when it detects
28669         a static symbol.
28670         (arm_output_addr_const_extra): Output expression for new pattern.
28671         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
28672
28673 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
28674
28675         * ira-costs.c (record_reg_classes): Ignore alternatives that are
28676         not enabled.
28677
28678         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
28679         * web.c: Include "insn-config.h" and "recog.h".
28680         (union_match_dups): New function.
28681         (web_main): Call it.
28682         (union_defs): Don't try to recognize match_dups.
28683
28684         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
28685         if doing so would replace the entire pattern.
28686
28687 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
28688
28689         PR target/43707
28690         PR target/43709
28691         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
28692         and splitter pattern.  Change splitter operand 1 predicate to
28693         nonmemory_operand.
28694
28695 2010-04-09  Martin Jambor  <mjambor@suse.cz>
28696
28697         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
28698         lattices are addresses of CONST_DECLs with the same initial value.
28699         (ipcp_print_all_lattices): Print values of CONST_DECLs.
28700         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
28701
28702 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
28703             Bernd Schmidt  <bernds@codesourcery.com>
28704
28705         * loop-invariant.c (replace_uses): New static function.
28706         (move_invariant_reg): Use it to ensure we can replace the uses.
28707
28708 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
28709
28710         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
28711         function template.
28712         (picochip_override_options): Enable section anchors only above -O1.
28713         (picochip_reorg): Fixed a couple of build warnings.
28714
28715 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28716
28717         * configure.ac (plugin -rdynamic test): Log result.
28718         * configure: Regenerate.
28719         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
28720         (RDYNAMIC_SPEC): Define.
28721         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
28722
28723 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28724
28725         * configure.ac: Determine Sun ld version numbers.
28726         (comdat_group): Restrict GNU ld version checks to gld.
28727         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
28728         (enable_comdat): Support --enable-comdat.
28729         * configure: Regenerate.
28730         * doc/install.texi (Configuration): Document --enable-comdat.
28731
28732 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28733
28734         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
28735         * config/sol2-gld.h: ... here.
28736         * config.gcc (sparc*-*-solaris2*): Reflect this.
28737         (i[34567]86-*-solaris2*): Use it.
28738
28739 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
28740
28741         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
28742         setup_clocks_p.
28743         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
28744
28745 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28746
28747         PR 42965
28748         * diagnostic.c (diagnostic_initialize): Initialize
28749         some_warnings_are_errors.
28750         (diagnostic_finish): New.
28751         (diagnostic_action_after_output): Call it before exiting.
28752         (diagnostic_report_diagnostic): Do not print message here. Set
28753         some_warnings_are_errors.
28754         * diagnostic.h (diagnostic_context): Delete
28755         issue_warnings_are_errors_message. Add some_warnings_are_errors.
28756         (diagnostic_finish): Declare.
28757         * toplev.c (toplev_main): Call it before exit.
28758
28759 2010-04-09  Jason Merrill  <jason@redhat.com>
28760
28761         PR c++/42623
28762         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
28763         for incomplete type.
28764
28765         PR c++/41788
28766         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
28767         based on a warning flag.
28768
28769 2010-04-09  Richard Guenther  <rguenther@suse.de>
28770
28771         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
28772
28773 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
28774
28775         PR bootstrap/43684
28776         * varasm.c (default_assemble_visibility): Wrap vars that are
28777         set, but unused, by targets without GAS.
28778         * config/rs6000/rs6000.c (paired_emit_vector_compare):
28779         Remove set, but unused, vars.
28780         (rs6000_legitimize_tls_address): Likewise.
28781         (altivec_expand_dst_builtin): Likewise.
28782         * config/darwin.c (machopic_classify_symbol): Likewise.
28783         (machopic_indirection_name): Likewise.
28784
28785 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
28786
28787         * config/i386/i386.md (DWI): New mode iterator.
28788         (S): New mode attribute.
28789         (shift_operand): Ditto.
28790         (shift_immediate_operand): Ditto.
28791         (ashl_input_operand): Ditto.
28792         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
28793         using SDWIM mode iterator.
28794         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
28795         pattern from *ashl{di,ti}3_1 and corresponding splitters using
28796         DWI mode iterator.
28797         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
28798         from corresponding peephole2 patterns.
28799         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
28800         and x86_64_shift_adj_1 using SWI48 mode iterator.
28801         (x86_shift<mode>_adj_2): Ditto.
28802         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
28803         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
28804         using SWI48 mode iterator.
28805         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
28806         *ashldi3_cmp_rex64 using SWI mode iterator.
28807         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
28808         *ashldi3_cconly_rex64 using SWI mode iterator.
28809         * config/i386/i386.c (ix86_split_ashl): Update for renamed
28810         x86_shift<mode>_adj_{1,2}.
28811         (ix86_split_ashr): Ditto.
28812         (ix86_split_lshr): Ditto.
28813
28814 2010-04-09  Richard Guenther  <rguenther@suse.de>
28815
28816         * target.h (builtin_conversion): Pass in input and output types.
28817         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
28818         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
28819         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
28820         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
28821
28822         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
28823         Handle AVX modes.
28824         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
28825
28826 2010-04-09  Richard Guenther  <rguenther@suse.de>
28827
28828         PR target/43152
28829         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
28830
28831 2010-04-09  Richard Guenther  <rguenther@suse.de>
28832
28833         * tree-vectorizer.h (struct _stmt_vec_info): Document
28834         that vectype is the type of the LHS.
28835         (supportable_widening_operation, supportable_narrowing_operation):
28836         Get both input and output vector types as arguments.
28837         (vect_is_simple_use_1): Declare.
28838         (get_same_sized_vectype): Likewise.
28839         * tree-vect-loop.c (vect_determine_vectorization_factor):
28840         Set STMT_VINFO_VECTYPE to the vector type of the def.
28841         (vectorizable_reduction): Adjust.
28842         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
28843         Adjust.  Specify the output vector type.
28844         (vect_pattern_recog_1): Adjust.
28845         * tree-vect-stmts.c (get_same_sized_vectype): New function.
28846         (vectorizable_call): Adjust.
28847         (vectorizable_conversion): Likewise.
28848         (vectorizable_operation): Likewise.
28849         (vectorizable_type_demotion): Likewise.
28850         (vectorizable_type_promotion): Likewise.
28851         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
28852         the def.
28853         (vect_is_simple_use_1): New function.
28854         (supportable_widening_operation): Get both input and output
28855         vector types.
28856         (supportable_narrowing_operation): Likewise.
28857         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
28858
28859 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
28860
28861         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
28862         __thiscall and _thiscall as predefined macros.
28863         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
28864         thiscall attribute handling.
28865         (ix86_comp_type_attributes): Likewise.
28866         (ix86_function_regparm): Likewise.
28867         (ix86_return_pops_args): Likewise.
28868         (init_cumulative_args): Likewise.
28869         (find_drap_reg): Likewise.
28870         (ix86_static_chain): Likewise.
28871         (x86_this_parameter): Likewise.
28872         (x86_output_mi_thunk): Likewise.
28873         (ix86_attribute_table): Add description for thiscall attribute.
28874         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
28875         * doc/extend.texi: Add documentation for thiscall.
28876
28877 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28878
28879         PR c++/28584
28880         * c.opt (Wint-to-pointer-cast): Available in C++.
28881         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
28882
28883 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
28884
28885         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
28886         * calls.c (expand_call): Pass the function type to aggregate_value_p.
28887         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
28888         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
28889         function type instead.  Reorder and simplify checks.
28890
28891         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
28892
28893 2010-04-08  Jing Yu  <jingyu@google.com>
28894             Zdenek Dvorak  <ook@ucw.cz>
28895
28896         PR tree-optimization/42720
28897         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
28898         loop unswitch conditions here from ...
28899         (tree_unswitch_single_loop): ... here.
28900
28901 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
28902
28903         * tree-if-conv.c: Fix comments and simplify logic.
28904
28905 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
28906
28907         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
28908         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
28909         (main_tree_if_conversion): Update call to tree_if_conversion.
28910
28911 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28912
28913         PR 42485
28914         * doc/invoke.texi (-b,-V): Delete.
28915         * doc/tm.texi: Do not mention -b.
28916         * gcc.c (display_help): Delete -b and -V.
28917         (process_command): Delete -b and -V.
28918         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
28919
28920 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
28921             Wolfgang Gellerich  <gellerich@de.ibm.com>
28922
28923         Implement target hook for loop unrolling
28924         * target.h (loop_unroll_adjust): Add a new target hook function.
28925         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
28926         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
28927         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
28928         (s390_loop_unroll_adjust): Implement the new target hook for s390.
28929         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
28930         target hook.
28931         (decide_unroll_stupid): Likewise.
28932
28933 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28934
28935         PR target/43643
28936         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
28937
28938 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28939
28940         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
28941         (Specific, *-*-solaris2*): Likewise.
28942         Don't prefer Sun as over GNU as.
28943
28944 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
28945
28946         * config/s390/s390.c (override_options): Adjust the z10 defaults
28947         for max-unroll-times, max-completely-peeled-insns
28948         and max-completely-peel-times.
28949
28950 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28951
28952         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
28953         instructions for z10.
28954         (s390_expand_setmem): Likewise.
28955         (s390_expand_cmpmem): Likewise.
28956
28957 2010-04-08  Richard Guenther  <rguenther@suse.de>
28958
28959         PR tree-optimization/43679
28960         * tree-ssa-pre.c (eliminate): Only propagate copies.
28961
28962 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
28963
28964         PR bootstrap/43681
28965         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
28966         set but not used variable warning.
28967
28968 2010-04-08  Wei Guozhi  <carrot@google.com>
28969
28970         PR target/41653
28971         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
28972         (arm_size_rtx_costs): Call the new function when optimized for size.
28973
28974 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
28975
28976         PR debug/43670
28977         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
28978         op0 is not a MEM, just return NULL instead of assertion
28979         failure.
28980         (discover_nonconstant_array_refs): Don't walk debug stmts.
28981
28982 2010-04-08  Doug Kwan  <dougkwan@google.com>
28983
28984         * configure.ac: Recognize gold and do not use its version number
28985         to test ld features.
28986         * configure: Regenerate.
28987
28988 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
28989
28990         PR middle-end/40815
28991         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
28992         (negate_value): Move code to push elements to broken_up_substracts ...
28993         (eliminate_plus_minus_pair): ... here.  Push operands that have no
28994         negative pair to plus_negates.
28995         (repropagate_negates, init_reassoc, fini_reassoc): Update.
28996
28997 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28998
28999         * doc/install.texi (Configuration): Move description of
29000         --enable-lto, --with-libelf*, --enable-gold from Java section to
29001         general section.
29002
29003         * doc/generic.texi (Working with declarations)
29004         (Function Properties, C and C++ Trees): Fix typos.
29005         * doc/sourcebuild.texi (Top Level): Likewise.
29006
29007 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
29008
29009         PR c/18624
29010         * tree.h (DECL_READ_P): Define.
29011         (struct tree_decl_common): Add decl_read_flag.
29012         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
29013         a set but not used warning.
29014         (merge_decls): Merge DECL_READ_P flag.
29015         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
29016         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
29017         * c-common.c (handle_used_attribute, handle_unused_attribute):
29018         Likewise.
29019         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
29020         New prototypes.
29021         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
29022         New functions.
29023         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
29024         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
29025         c_parser_binary_expression, c_parser_cast_expression,
29026         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
29027         Call default_function_array_read_conversion instead of
29028         default_function_array_conversion where needed.
29029         (c_parser_unary_expression, c_parser_conditional_expression,
29030         c_parser_postfix_expression_after_primary, c_parser_initelt):
29031         Likewise.  Call mark_exp_read where needed.
29032         (c_parser_statement_after_labels, c_parser_asm_operands,
29033         c_parser_typeof_specifier, c_parser_sizeof_expression,
29034         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
29035         where needed.
29036         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
29037         New.
29038         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
29039         (warn_unused_but_set_parameter): Default to warn_unused
29040         && extra_warnings.
29041         * doc/invoke.texi: Document -Wunused-but-set-variable and
29042         -Wunused-but-set-parameter.
29043
29044         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
29045         used count variable.
29046         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
29047         when operandN variables aren't used in the body of the expander
29048         or splitter.
29049         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
29050         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
29051         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
29052         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
29053         FOR_EACH_IMM_USE_ON_STMT): Likewise.
29054         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
29055         * tree.c (PROCESS_ARG): Likewise.
29056
29057 2010-04-07  Simon Baldwin  <simonb@google.com>
29058
29059         * diagnostic.h (diagnostic_override_option_index): New macro to
29060         set a diagnostic's option_index.
29061         * c-tree.h (c_cpp_error): Add warning reason argument.
29062         * opts.c (_warning_as_error_callback): New.
29063         (register_warning_as_error_callback): Store callback for
29064         warnings enabled via enable_warning_as_error.
29065         (enable_warning_as_error): Call callback, minor code tidy.
29066         * opts.h (register_warning_as_error_callback): Declare.
29067         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
29068         response to -Werror=.
29069         (c_common_init_options): Register warning_as_error_callback in opts.c.
29070         * common.opt: Add -Wno-cpp option.
29071         * c-common.c (struct reason_option_codes_t): Map cpp warning
29072         reason codes to gcc option indexes.
29073         * (c_option_controlling_cpp_error): New function, lookup the gcc
29074         option index for a cpp warning reason code.
29075         * (c_cpp_error): Add warning reason argument, call
29076         c_option_controlling_cpp_error for diagnostic_override_option_index.
29077         * doc/invoke.texi: Document -Wno-cpp.
29078
29079 2010-04-07  Richard Guenther  <rguenther@suse.de>
29080
29081         * ipa-reference.c (mark_load): Use get_base_address.
29082         (mark_store): Likewise.
29083
29084         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
29085         inserting GIMPLE_NOPs into the IL.
29086         * tree-ssa-structalias.c (get_constraint_for_component_ref):
29087         Explicitly strip handled components and indirect references.
29088
29089         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
29090         folding address expressions.
29091         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
29092         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
29093         operand_equal_p to compare decls.
29094         (ptr_deref_may_alias_decl_p): Likewise.
29095         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
29096         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
29097         Handle reversed comparison ops.
29098         * tree-sra.c (asm_visit_addr): Use get_base_address.
29099         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
29100         * ipa-reference.c (mark_address): Use get_base_address.
29101
29102 2010-04-07  Richard Guenther  <rguenther@suse.de>
29103
29104         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
29105         Propagate constants everywhere.
29106
29107 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
29108
29109         PR debug/43516
29110         * tree.c (MAX_INT_CACHED_PREC): Define.
29111         (nonstandard_integer_type_cache): New array.
29112         (build_nonstandard_integer_type): Cache results for precision
29113         <= MAX_INT_CACHED_PREC.
29114
29115 2010-04-07  Richard Guenther  <rguenther@suse.de>
29116
29117         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
29118         -fargument-noalias-global, -fargument-noalias-anything): Remove.
29119         * common.opt: Likewise.
29120         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
29121         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
29122         (nonoverlapping_memrefs_p): Likewise.
29123         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
29124         * opts.c (common_handle_option): Handle OPT_fargument_alias,
29125         OPT_fargument_noalias, OPT_fargument_noalias_anything and
29126         OPT_fargument_noalias_global for backward compatibility.
29127
29128 2010-04-07  Richard Guenther  <rguenther@suse.de>
29129
29130         PR tree-optimization/43270
29131         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
29132         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
29133         * tree-ssa-pre.c (phi_translate_1): Adjust.
29134         (fully_constant_expression): Split out vn_reference handling to ...
29135         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
29136         Fold reads from constant strings.
29137         (vn_reference_lookup): Handle fully constant references.
29138         (vn_reference_lookup_pieces): Likewise.
29139         * Makefile.in (expmed.o-warn): Add -Wno-error.
29140
29141 2010-04-07  Martin Jambor  <mjambor@suse.cz>
29142
29143         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
29144
29145 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
29146
29147         PR driver/41594
29148         * gcc.c: Add -static-libstdc++ to list of recognized options.
29149
29150 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29151
29152         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
29153
29154 2010-04-07  Richard Guenther  <rguenther@suse.de>
29155
29156         PR middle-end/42617
29157         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
29158         bases build simple mem attributes to retain points-to information.
29159
29160 2010-04-07  Richard Guenther  <rguenther@suse.de>
29161
29162         PR middle-end/42617
29163         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
29164         preserve points-to related information.
29165
29166 2010-04-07  Richard Guenther  <rguenther@suse.de>
29167
29168         PR middle-end/42617
29169         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
29170         discard plain indirect references.
29171         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
29172         * tree.c (tree_nop_conversion): Likewise.
29173
29174 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
29175
29176         PR debug/43628
29177         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
29178
29179 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
29180
29181         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
29182         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
29183
29184 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29185
29186         * tree-if-conv.c: Fix indentation and comments.
29187
29188 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29189
29190         * tree-if-conv.c: Sort static functions in topological order.
29191
29192 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29193
29194         * tree-if-conv.c: Fix indentation and comments.
29195
29196 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29197
29198         PR middle-end/43519
29199         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
29200         lang_hooks.types.type_for_size instead of
29201         build_nonstandard_integer_type.
29202         When converting an unsigned type to signed, double its precision.
29203         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
29204         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
29205         (graphite_create_new_loop_guard): When ub + 1 wraps around,
29206         use lb <= ub.
29207
29208 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29209
29210         PR middle-end/43519
29211         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
29212         POINTER_PLUS_EXPR for pointer types.
29213
29214 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29215
29216         PR middle-end/43519
29217         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
29218         * graphite-clast-to-gimple.c: Include langhooks.h.
29219         (max_signed_precision_type): New.
29220         (max_precision_type): Takes two types as arguments.
29221         (precision_for_value): New.
29222         (precision_for_interval): New.
29223         (gcc_type_for_interval): New.
29224         (gcc_type_for_value): New.
29225         (gcc_type_for_clast_term): New.
29226         (gcc_type_for_clast_red): New.
29227         (gcc_type_for_clast_bin): New.
29228         (gcc_type_for_clast_expr): Split up into several functions.
29229         (gcc_type_for_clast_eq): Rewritten.
29230         (compute_bounds_for_level): New.
29231         (compute_type_for_level_1): New.
29232         (compute_type_for_level): New.
29233         (gcc_type_for_cloog_iv): Removed.
29234         (gcc_type_for_iv_of_clast_loop): Rewritten.
29235         (graphite_create_new_loop): Compute the lower and upper bound types
29236         with gcc_type_for_clast_expr.
29237         (graphite_create_new_loop_guard): Same.
29238         (find_cloog_iv_in_expr): Removed.
29239         (compute_cloog_iv_types_1): Removed.
29240         (compute_cloog_iv_types): Removed.
29241         (gloog): Do not call compute_cloog_iv_types.
29242         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
29243         GBB_CLOOG_IV_TYPES.
29244         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
29245         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
29246         (GBB_CLOOG_IV_TYPES): Removed.
29247
29248 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29249
29250         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
29251         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
29252         (detect_commutative_reduction): Same.
29253
29254 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29255
29256         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
29257         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
29258         argument.
29259         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
29260         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
29261         (rewrite_commutative_reductions_out_of_ssa): Same.
29262         * passes.c (execute_function_todo): Call verify_ssa for every pass
29263         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
29264         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
29265         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
29266         with an extra argument.
29267         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
29268         verify_ssa only when the extra argument is true.
29269         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
29270         with an extra argument.
29271         (tree_transform_and_unroll_loop): Same.
29272
29273 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29274
29275         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
29276         for all the passes of the LNO having LOOP_CLOSED_SSA.
29277         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
29278         * tree-loop-distribution.c (pass_loop_distribution): Same.
29279         * tree-pass.h (TODO_verify_loops): Removed.
29280         * tree-ssa-loop.c (pass_tree_loop_init): Same.
29281         (pass_lim): Same.
29282         (pass_tree_unswitch): Same.
29283         (pass_predcom): Same.
29284         (pass_vectorize): Same.
29285         (pass_linear_transform): Same.
29286         (pass_graphite_transforms): Same.
29287         (pass_iv_canon): Same.
29288         (pass_complete_unroll): Same.
29289         (pass_complete_unrolli): Same.
29290         (pass_parallelize_loops): Same.
29291         (pass_loop_prefetch): Same.
29292         (pass_iv_optimize): Same.
29293
29294 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
29295
29296         PR middle-end/32824
29297         * passes.c (init_optimization_passes): Move pass_lim before
29298         pass_copy_prop and pass_dce_loop.
29299
29300 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
29301
29302         PR target/43667
29303         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
29304         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
29305         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
29306         MULTI_* defines for 4 argument vpermil2p* builtins.
29307
29308 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
29309
29310         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
29311         * config/i386/i386.c (x86_maybe_negate_const_int): New.
29312         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
29313         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
29314         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
29315         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
29316         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
29317         Use x86_maybe_negate_const_int to output insn mnemonic.
29318         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
29319         check from instruction predicate.  Update comments.
29320         * config/i386/sync.md (sync_add<mode>): Use
29321         x86_maybe_negate_const_int to output insn mnemonic.
29322
29323 2010-04-06  Jan Hubicka  <jh@suse.cz>
29324
29325         PR tree-optimization/42906
29326         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
29327         IGNORE_SELF argument.  Set visited_control_parents for fully
29328         processed BBs.
29329         (find_obviously_necessary_stmts): Update call of
29330         mark_control_dependent_edges_necessary.
29331         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
29332
29333 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
29334
29335         * config/i386/i386.md: Remove comment about 'e' and 'E'
29336         operand modifier.
29337
29338 2010-04-06  Richard Guenther  <rguenther@suse.de>
29339
29340         PR tree-optimization/43627
29341         * tree-vrp.c (extract_range_from_unary_expr): Widenings
29342         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
29343         not varying.
29344
29345 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
29346
29347         * BASE-VER: Change to 4.6.0.
29348
29349         PR target/43638
29350         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
29351         handling.
29352
29353 2010-04-06  Richard Guenther  <rguenther@suse.de>
29354
29355         PR middle-end/43661
29356         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
29357
29358 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29359
29360         * doc/invoke.texi (Optimize Options): Document that LTO
29361         won't remove object access purely due to incompatible
29362         declarations.
29363
29364 2010-04-04  Matthias Klose  <doko@ubuntu.com>
29365
29366         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
29367         Initialize variable.
29368
29369 2010-04-03  Richard Guenther  <rguenther@suse.de>
29370
29371         PR middle-end/42509
29372         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
29373         require a non-NULL MEM_OFFSET.
29374
29375 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
29376
29377         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
29378         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
29379         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
29380         config/alpha/predicates.md, config/arm/arm.md,
29381         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
29382         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
29383         config/darwin9.h, config/darwin.c, config/darwin.h,
29384         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
29385         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
29386         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
29387         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
29388         config/mips/mips.md, config/mn10300/mn10300.c,
29389         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
29390         config/rs6000/aix.h, config/rs6000/dfp.md,
29391         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
29392         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
29393         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
29394         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
29395         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
29396         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
29397         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
29398         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
29399         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
29400         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
29401         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
29402         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
29403         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
29404         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
29405         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
29406         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
29407         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
29408         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
29409         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
29410         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
29411         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
29412         opt-functions.awk, opth-gen.awk, params.def, passes.c,
29413         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
29414         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
29415         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
29416         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
29417         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
29418         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
29419         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
29420         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
29421         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
29422         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
29423         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
29424         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
29425         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
29426         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
29427
29428 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29429
29430         PR other/43620
29431         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
29432         * aclocal.m4: Regenerate.
29433
29434 2010-04-02  Richard Guenther  <rguenther@suse.de>
29435
29436         PR tree-optimization/43629
29437         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
29438         if we have seen a constant value.
29439
29440 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
29441
29442         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
29443
29444 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
29445
29446         PR target/43469
29447         * arm.c (legitimize_tls_address): Adjust call to
29448         gen_tls_load_dot_plus_four.
29449         (arm_note_pic_base): New function.
29450         (arm_cannot_copy_insn_p): Use it.
29451         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
29452         constraint.
29453
29454 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29455
29456         PR bootstrap/43531
29457
29458         Revert:
29459         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29460
29461         * Makefile.in ($(out_object_file)): Depend on
29462         gt-$(basename $(notdir $(out_file))).h.
29463
29464 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
29465
29466         * config.gcc (lm32-*-rtems*): Add t-lm32.
29467
29468 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
29469
29470         * config.gcc: Add lm32-*-rtems*.
29471         * config/lm32/rtems.h: New file.
29472
29473 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
29474
29475         PR target/42609
29476         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
29477
29478 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
29479
29480         * dwarf2out.c (output_compilation_unit_header): For
29481         -gdwarf-4 use version 4 instead of version 3.
29482         (output_line_info): For version 4 and above emit additional
29483         maximum ops per insn header field.
29484         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
29485
29486         * dwarf2out.c (is_c_family, is_java): Remove.
29487         (lower_bound_default): New function.
29488         (add_bound_info, gen_descr_array_type_die): Use it.
29489
29490 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
29491
29492         PR debug/43325
29493         * dwarf2out.c (gen_variable_die): Allow debug info for variable
29494         re-declaration when it happens in a function.
29495
29496 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
29497
29498         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
29499         (cgraph_remove_function_insertion_hook): Same.
29500         (cgraph_call_function_insertion_hooks): Same.
29501
29502 2010-04-01  Richard Guenther  <rguenther@suse.de>
29503
29504         PR middle-end/43614
29505         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
29506         and TREE_THIS_VOLATILE.
29507         (copy_ref_info): Likewise.
29508         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
29509         * tree.c (build6_stat): Ignore side-effects of all but arg5
29510         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
29511         TARGET_MEM_REF.
29512
29513 2010-04-01  Richard Guenther  <rguenther@suse.de>
29514
29515         PR tree-optimization/43607
29516         * ipa-type-escape.c (check_call): Do not access non-existing
29517         arguments.
29518
29519 2010-04-01  Richard Guenther  <rguenther@suse.de>
29520
29521         PR middle-end/43602
29522         Revert
29523         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
29524                     Jack Howarth  <howarth@bromo.med.uc.edu>
29525
29526         * tree-profile.c (tree_init_ic_make_global_vars): Make static
29527         variables TLS.
29528
29529 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29530
29531         * doc/install.texi (Prerequisites): Document libelf usability on
29532         IRIX 5/6 and Solaris 2.
29533         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
29534         Update GNU as, GNU ld requirements.
29535         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
29536         Document Sun Studio compiler download.
29537         Update and simplify as, ld recommendations.
29538         (Specific, *-*-solaris2.7): Note obsoletion, removal.
29539
29540 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29541
29542         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
29543         with_tune_32 to pentium4.
29544
29545 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
29546
29547         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
29548
29549 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29550
29551         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
29552         obsoletion, removal.
29553         Update IDO URL.
29554         Document GNU as requirement.
29555         Update configure requirements.
29556         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
29557         Recomment IRIX 6.5.18+.
29558         Document IDF/IDL requirement.
29559         Document GNU as requirement.
29560         Document GNU ld bootstrap failure.
29561         Remove freeware.sgi.com reference.
29562
29563 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29564
29565         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
29566         UNIX V4.0, V5.0 obsoletion, removal.
29567         Remove --with-gc=simple reference.
29568         Update VM requirements during bootstrap.
29569         Remove -oldas bootstrap description.
29570         Update binutils reference.
29571         Remove comparison failure note.
29572
29573 2010-03-31  Richard Guenther  <rguenther@suse.de>
29574             Zdenek Dvorak  <ook@ucw.cz>
29575             Sebastian Pop  <sebastian.pop@amd.com>
29576
29577         PR middle-end/43464
29578         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
29579         with multiple arguments.
29580         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
29581
29582 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
29583
29584         * graphite-dependences.c (print_pddr): Call print_pdr with an
29585         extra argument.
29586         * graphite-poly.c (debug_pdr): Add an extra argument for the
29587         verbosity level.
29588         (print_pdr): Same.
29589         (print_pbb_domain): Same.
29590         (print_pbb): Same.
29591         (print_scop_context): Same.
29592         (print_scop): Same.
29593         (print_cloog): Same.
29594         (debug_pbb_domain): Same.
29595         (debug_pbb): Same.
29596         (print_pdrs): Same.
29597         (debug_pdrs): Same.
29598         (debug_scop_context): Same.
29599         (debug_scop): Same.
29600         (debug_cloog): Same.
29601         (print_scop_params): Same.
29602         (debug_scop_params): Same.
29603         (print_iteration_domain): Same.
29604         (print_iteration_domains): Same.
29605         (debug_iteration_domain): Same.
29606         (debug_iteration_domains): Same.
29607         (print_scattering_function): Same.
29608         (print_scattering_functions): Same.
29609         (debug_scattering_function): Same.
29610         (debug_scattering_functions): Same.
29611         * graphite-poly.h (debug_pdr): Update declaration.
29612         (print_pdr): Same.
29613         (print_pbb_domain): Same.
29614         (print_pbb): Same.
29615         (print_scop_context): Same.
29616         (print_scop): Same.
29617         (print_cloog): Same.
29618         (debug_pbb_domain): Same.
29619         (debug_pbb): Same.
29620         (print_pdrs): Same.
29621         (debug_pdrs): Same.
29622         (debug_scop_context): Same.
29623         (debug_scop): Same.
29624         (debug_cloog): Same.
29625         (print_scop_params): Same.
29626         (debug_scop_params): Same.
29627         (print_iteration_domain): Same.
29628         (print_iteration_domains): Same.
29629         (debug_iteration_domain): Same.
29630         (debug_iteration_domains): Same.
29631         (print_scattering_function): Same.
29632         (print_scattering_functions): Same.
29633         (debug_scattering_function): Same.
29634         (debug_scattering_functions): Same.
29635
29636 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
29637
29638         * graphite-poly.c (print_scattering_function_1): New.
29639         (print_scattering_function): Call it.
29640         (print_scop_params): Remove spaces at the end of lines.
29641         (print_cloog): New.
29642         (debug_cloog): New.
29643         * graphite-poly.h (print_cloog): Declared.
29644         (debug_cloog): Declared.
29645
29646 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
29647
29648         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
29649         in loop->header.
29650         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
29651         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
29652         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
29653         to switch between adding the IV bump in loop->latch or in loop->header.
29654
29655 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
29656
29657         * graphite-poly.c (print_scattering_function): Pretty print following
29658         the scoplib format.
29659         (print_pdr): Same.
29660         (print_pbb_domain): Same.
29661         (dump_gbb_cases): Same.
29662         (dump_gbb_conditions): Same.
29663         (print_pdrs): Same.
29664         (print_pbb): Same.
29665         (print_scop_params): Same.
29666         (print_scop_context): Same.
29667         (print_scop): Same.
29668         (print_pbb_body): New.
29669         (lst_indent_to): New.
29670         (print_lst): Start new lines with a #.
29671         * graphite-poly.h (pbb_bb): New.
29672         (pbb_index): Use pbb_bb.
29673         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
29674         disjuncts.
29675         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
29676
29677 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
29678
29679         * dwarf2out.c (size_of_die): For -gdwarf-4 use
29680         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
29681         and 0 instead of 1 for dw_val_class_flag.
29682         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
29683         dw_val_class_range_list, dw_val_class_loc_list,
29684         dw_val_class_lineptr and dw_val_class_macptr, use
29685         DW_FORM_flag_present for dw_val_class_flag and
29686         DW_FORM_exprloc for dw_val_class_loc.
29687         (output_die): For -gdwarf-4 print dw_val_class_loc
29688         size as uleb128 instead of 1 or 2 bytes and don't print
29689         anything for dw_val_class_flag.
29690
29691         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
29692         instead of cselib_lookup following by tweaking locs->setting_insn.
29693
29694         PR bootstrap/43596
29695         * cselib.c (cselib_process_insn): Clear cselib_current_insn
29696         even before returning from label, setjmp call or volatile asm
29697         handling.
29698
29699 2010-03-31  Richard Guenther  <rguenther@suse.de>
29700
29701         PR middle-end/43600
29702         * cgraphunit.c (cgraph_output_in_order): Do not allocate
29703         temporary data on stack.
29704
29705 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29706
29707         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
29708         (PUSHSECTION_ASM_OP): Remove.
29709         (POPSECTION_ASM_OP): Remove.
29710         (PUSHSECTION_FORMAT): Remove.
29711         * config/sol2.h (PUSHSECTION_FORMAT): Define.
29712         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
29713         * config/sol2.c (solaris_output_init_fini): Use it.
29714
29715 2010-03-31  Jie Zhang  <jie@codesourcery.com>
29716
29717         PR 43574
29718         * opt-functions.awk (var_type_struct): Use signed char type
29719         for simple variables.
29720
29721 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29722
29723         * config/sol2.c: Include output.h.
29724         (solaris_assemble_visibility): New function.
29725         * config/t-sol2 (sol2.o): Add output.h dependency.
29726         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
29727         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
29728         Redefine.
29729
29730 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
29731
29732         PR target/43580
29733         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
29734         V2SImode or XFmode on PRE_DEC.
29735
29736         PR debug/43557
29737         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
29738         BLKmode.
29739
29740 2010-03-31  Jie Zhang  <jie@codesourcery.com>
29741
29742         PR 43562
29743         * reload.h (caller_save_initialized_p): Declare.
29744         * toplev.c (backend_init_target): Don't call
29745         init_caller_save but set caller_save_initialized_p to false.
29746         * caller-save.c (caller_save_initialized_p): Define.
29747         (init_caller_save): Check caller_save_initialized_p.
29748         * ira.c (ira): Call init_caller_save if flag_caller_saves.
29749
29750 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29751
29752         PR target/39048
29753         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
29754         and soft-fp/t-softfp to tmake_file.
29755         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
29756         (LIBGCC2_TF_CEXT): Define.
29757         (TF_SIZE): Define.
29758
29759 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
29760
29761         PR debug/42977
29762         * cselib.c (n_useless_values): Document handling of debug locs.
29763         (n_useless_debug_values, n_debug_values): New variables.
29764         (new_elt_loc_list): Don't add to debug values, keep count.
29765         (promote_debug_loc): New.
29766         (cselib_reset_table): Zero new variables.
29767         (entry_and_rtx_equal_p): Promote debug locs.
29768         (discard_useless_locs): Increment n_useless_debug_values for
29769         debug values.
29770         (remove_useless_values): Adjust n_useless_values and n_debug_values
29771         with n_useless_debug_values.
29772         (add_mem_for_addr): Promote debug locs.
29773         (cselib_lookup_mem): Likewise.
29774         (cselib_lookup_addr): Renamed to...
29775         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
29776         (cselib_log_lookup): ... this.  Turn into...
29777         (cselib_lookup_addr): ... new wrapper.
29778         (cselib_lookup_from_insn): New.
29779         (cselib_invalidate_regno): Increment n_useless_debug_values for
29780         debug values.
29781         (cselib_invalidate_mem): Likewise.
29782         (cselib_process_insn): Take n_deleted and n_debug_values into
29783         account to guard remove_useless_value call.
29784         (cselib_finish): Zero n_useless_debug_values.
29785         * cselib.h (cselib_lookup_from_insn): Declare.
29786         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
29787         (sched_analyze_2): Likewise.
29788
29789 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
29790
29791         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
29792         functions.
29793         (adjust_mems): Replace narrowing SUBREG of expression containing
29794         just PLUS, MINUS, MULT and ASHIFT of registers and constants
29795         with operations in the narrower mode.
29796
29797         PR debug/43593
29798         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
29799         regs_invalidated_by_call instead all call_used_reg_set registers.
29800
29801 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
29802
29803         PR middle-end/43430
29804         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
29805         pointer comparisons with types_compatible_p.
29806         * tree-vect-stmts.c (vectorizable_call): Same.
29807         (vectorizable_condition): Same.
29808
29809 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29810
29811         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
29812         stack check if the mask would be zero.
29813
29814 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
29815             Jack Howarth  <howarth@bromo.med.uc.edu>
29816
29817         * tree-profile.c (tree_init_ic_make_global_vars): Make static
29818         variables TLS.
29819
29820 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
29821
29822         PR other/25232
29823         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
29824         and __unordtf2.
29825         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
29826         Include ___unordxf2 and ___unordtf2.
29827         * config/i386/libgcc-glibc.ver: Do not define inheritance from
29828         GCC_4.4.0 here.
29829
29830 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
29831
29832         * config/lm32/t-lm32: New file.
29833         * config.gcc: Use the above file when targetting lm32.
29834
29835 2010-03-28  Duncan Sands  <baldrick@free.fr>
29836
29837         * Makefile.in (PLUGIN_HEADERS): Add except.h.
29838
29839 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
29840
29841         PR middle-end/43431
29842         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
29843         Improve vectorization cost model diagnostic.
29844
29845 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
29846
29847         PR middle-end/43436
29848         * tree-vect-data-refs.c (vect_analyze_data_refs): When
29849         compute_data_dependences_for_loop returns false, early exit
29850         and output an extra diagnostic for the failed data reference
29851         analysis.
29852
29853 2010-03-29  Richard Guenther  <rguenther@suse.de>
29854
29855         PR tree-optimization/43560
29856         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
29857         (can_sm_ref_p): Treat stores to readonly locations as trapping.
29858
29859 2010-03-29  Jie Zhang  <jie@codesourcery.com>
29860
29861         PR 43564
29862         * toplev.c (process_options): Set optimization_default_node
29863         and optimization_current_node.
29864         * opts.c (decode_options): Don't set optimization_default_node
29865         and optimization_current_node.
29866
29867 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
29868
29869         * config/rtems.h: Abandon -qrtems_debug.
29870
29871 2010-03-28  Jan Hubicka  <jh@suse.cz>
29872
29873         PR tree-optimization/43505
29874         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
29875         map should not be copied.
29876
29877 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29878
29879         PR middle-end/41674
29880         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
29881         cdtors, set DECL_PRESERVE_P.
29882         * ipa.c (cgraph_externally_visible_p): Return true if declaration
29883         should be preseved.
29884
29885 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
29886
29887         PR tree-optimization/43528
29888         * stor-layout.c (place_field): Check that constant fits into
29889         unsigned HWI when skipping calculation of MS bitfield layout.
29890
29891 2010-03-27  Jan Hubicka  <jh@suse.cz>
29892
29893         PR middle-end/43391
29894         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
29895         notice_global_symbol work.
29896
29897 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
29898
29899         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
29900         instead of dwarf2out_decl.
29901         (struct var_loc_node): Remove section_label field.
29902         (dwarf2out_function_decl): New function.
29903         (dwarf2out_var_location): Don't set section_label field.
29904         (dwarf2out_begin_function): Don't empty decl_loc_table here.
29905
29906 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
29907
29908         PR tree-optimization/43544
29909         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29910         First argument for builtin vectorized function hook is now a
29911         tree to be able to distinguish between machine specific and
29912         standard builtins.
29913         * targhooks.c (default_builtin_vectorized_function): Ditto.
29914         * targhooks.h (default_builtin_vectorized_function): Ditto.
29915         * target.h (struct gcc_target): Ditto.
29916         * tree-vect-stmts.c (vectorizable_function): Ditto.
29917         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
29918         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
29919         Ditto.
29920
29921 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
29922
29923         PR c/43381
29924         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
29925         nested binding iff it is a FUNCTION_DECL.
29926         (store_parm_decls_newstyle): Pass nested=true to bind for
29927         FUNCTION_DECLs amongst parameters.
29928
29929 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
29930
29931         * var-tracking.c (vt_expand_loc_callback): Don't run
29932         cselib_expand_value_rtx_cb in dummy mode if
29933         cselib_dummy_expand_value_rtx_cb returned false.
29934
29935         * var-tracking.c (emit_note_insn_var_location): For one part
29936         notes with offset 0, don't add EXPR_LIST around the location.
29937         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
29938         add_location_or_const_value_attribute): Adjust for that change.
29939
29940         PR debug/43540
29941         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
29942         into first operand and location into second.
29943         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
29944         dw_cfi_oprnd_loc for DW_CFA_expression.
29945         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
29946         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
29947         assume first argument is regnum and second argument is location.
29948
29949 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
29950
29951         PR target/42113
29952         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
29953         of scratch register to DImode.  Split to DImode comparison operator.
29954         Use SImode subreg of scratch register in the multiplication.
29955         (*cmp_sadd_sidi): Ditto.
29956         (*cmp_ssub_si): Ditto.
29957         (*cmp_ssub_sidi): Ditto.
29958
29959 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
29960
29961         PR target/43524
29962         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
29963         Remove invalid assert and wrong comment.
29964
29965 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
29966
29967         PR debug/43516
29968         * flags.h (final_insns_dump_p): New extern.
29969         * final.c (final_insns_dump_p): New variable.
29970         (rest_of_clean_state): Set it before -fdump-final-insns=
29971         dumping, clear afterwards.
29972         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
29973         MEM_ALIAS_SET on MEMs.
29974
29975 2010-03-26  David S. Miller  <davem@davemloft.net>
29976
29977         * configure.ac: Fix sparc GOTDATA_OP bug check.
29978         * configure: Rebuild.
29979
29980 2010-03-26  Alan Modra  <amodra@gmail.com>
29981
29982         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
29983
29984 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29985
29986         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
29987         TLS_SECTION_ASM_FLAG.
29988
29989 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
29990
29991         PR bootstrap/43511
29992         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
29993         Clear first_function_block_is_cold.
29994
29995         PR c/43385
29996         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
29997         argument if the argument is truth_value_p.
29998
29999 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30000
30001         * config/rs6000/constraints.md: Update copyright year for my changes.
30002
30003         PR target/43484
30004         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
30005         used in reg+reg addressing, swap registers.
30006
30007 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
30008
30009         PR debug/43293
30010         * target.h (struct gcc_target): Add code_end hook.
30011         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
30012         if not yet defined.
30013         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
30014         * toplev.c (compile_file): Call targetm.asm_out.code_end
30015         hook before unwind info/debug info output.
30016         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
30017         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
30018         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30019         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
30020         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30021         * config/i386/i386.c (ix86_file_end): Renamed to...
30022         (ix86_code_end): ... this.  Make static.  Don't call
30023         file_end_indicate_exec_stack.  Emit unwind info using
30024         final_start_function/final_end_function.
30025         (darwin_x86_file_end): Remove.
30026         (TARGET_ASM_CODE_END): Define.
30027         * config/i386/i386.h (TARGET_ASM_FILE_END,
30028         NEED_INDICATE_EXEC_STACK): Don't define.
30029         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
30030         (TARGET_ASM_FILE_END): Define to darwin_file_end.
30031         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
30032         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
30033
30034         PR target/43498
30035         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
30036         at the beginning and final_end_function at the end.
30037         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
30038
30039 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30040
30041         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
30042         and Sun as TLS syntax.
30043         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
30044         * configure: Regenerate.
30045         * config.in: Regenerate.
30046         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
30047         (default_elf_asm_named_section): Use it.
30048         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
30049         (i386_output_dwarf_dtprel): Likewise.
30050         (output_addr_const_extra): Likewise.
30051         (output_pic_addr_const): Lowercase @GOTTPOFF.
30052         (output_addr_const_extra): Likewise.
30053         (output_pic_addr_const): Lowercase @GOTNTPOFF.
30054         (output_addr_const_extra): Likewise.
30055         (output_pic_addr_const): Lowercase @INDNTPOFF.
30056         (output_addr_const_extra): Likewise.
30057         (output_pic_addr_const): Lowercase @NTPOFF.
30058         (output_addr_const_extra): Likewise.
30059         (output_pic_addr_const): Lowercase @TPOFF.
30060         (output_addr_const_extra): Likewise.
30061         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
30062         (*tls_global_dynamic_64): Likewise.
30063         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
30064         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
30065
30066         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
30067         (ASM_OUTPUT_TLS_COMMON): Use it.
30068         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
30069
30070         PR target/38118
30071         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
30072         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
30073         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
30074         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
30075         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30076         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
30077
30078 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30079
30080         * config/i386/i386.c (override_options): Don't accept
30081         -mtls-dialect=sun any longer.
30082         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
30083         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
30084         (*tls_local_dynamic_base_32_sun): Likewise.
30085         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30086
30087 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
30088
30089         PR debug/43508
30090         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30091         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
30092
30093         PR debug/43479
30094         * ira.c (adjust_cleared_regs): New function.
30095         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
30096
30097         PR debug/19192
30098         PR debug/43479
30099         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
30100         from gimple_block.
30101         * expr.c (expand_expr_real): Restore previous
30102         curr_insn_source_location and curr_insn_block after
30103         expand_expr_real_1 call.
30104         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
30105         instead of expand_expr_real_1.
30106
30107 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
30108
30109         PR rtl-optimization/43413
30110         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
30111         hard regs too.
30112
30113 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
30114
30115         PR target/43348
30116         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
30117         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
30118
30119 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
30120
30121         * config/i386/i386.c (ix86_target_string): Add -mfma.
30122         Fix a typo in comment.
30123
30124 2010-03-22  Mike Stump  <mikestump@comcast.net>
30125
30126         PR target/23071
30127         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
30128         Don't overly align based upon packed packed fields.
30129
30130 2010-03-22  Jason Merrill  <jason@redhat.com>
30131
30132         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
30133         Use () rather than [], and move before the element type.
30134
30135 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30136
30137         * doc/configfiles.texi (Configuration Files): Removed
30138         fixinc/Makefile*, intl/Makefile.*.
30139         * doc/makefile.texi: Fixed markup. Abstract from version
30140         control system used.
30141         (Makefile): Removed obsolete java/parse.y example.
30142         * doc/sourcebuild.texi: Likewise.
30143         (Top Level): Added config, gnattools, libdecnumber, libgcc,
30144         libgomp, libssp.  Removed fastjar.
30145         (Miscellaneous Docs): Clarify location.
30146         Added COPYING3, COPYING3.LIB.
30147         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
30148
30149 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30150
30151         PR target/38085
30152         * config/i386/i386.c (x86_function_profiler)
30153         [!NO_PROFILE_COUNTERS]: Fix typo.
30154         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
30155         instead of callq.
30156
30157 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
30158             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30159
30160         * doc/sourcebuild.texi (Test Directives): Split into six
30161         subsections, with most of the current text in new subsections
30162         Directives, Selectors, and Final Actions.
30163         (Directives): Split list of test directives into multiple
30164         subsubsections.
30165         (Selectors): Describe use and syntax of selectors.
30166         (Effective-Target Keywords): Describe all existing keywords.
30167         (Add Options): Describe features for dg-add-options.
30168         (Require Support): Describe variants of dg-require-support.
30169         (Final Actions): Describe commands to use in dg-final.
30170
30171 2010-03-22  Michael Matz  <matz@suse.de>
30172
30173         PR middle-end/43475
30174         * recog.c (validate_replace_rtx_group): Replace also in
30175         REG_EQUAL and REG_EQUIV notes.
30176
30177 2010-03-22  Richard Guenther  <rguenther@suse.de>
30178
30179         PR tree-optimization/43390
30180         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
30181         sure vector extracts are type correct.
30182
30183 2010-03-22  Richard Guenther  <rguenther@suse.de>
30184
30185         PR middle-end/40106
30186         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
30187         x * sqrt (x) even when optimizing for size if the target
30188         has native support for sqrt.
30189
30190 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
30191
30192         * varasm.c (make_decl_rtl_for_debug): Also clear
30193         flag_mudflap for the duration of make_decl_rtl call.
30194
30195         PR debug/43443
30196         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
30197         locs from preserved VALUEs.
30198
30199 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30200
30201         PR middle-end/42718
30202         * pa.md (movmemsi): Set align to one if zero.
30203         (movmemdi): Likewise.
30204
30205 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
30206
30207         PR target/42321
30208         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
30209         with their corresponding prologue pushes.
30210
30211 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
30212
30213         PR target/43156
30214         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
30215         at the begining or end.
30216         (spu_expand_epilogue): Likewise.
30217
30218 2010-03-20  Richard Guenther  <rguenther@suse.de>
30219
30220         PR rtl-optimization/43438
30221         * combine.c (make_extraction): Properly zero-/sign-extend an
30222         extraction of the low part of a CONST_INT.  Also handle
30223         CONST_DOUBLE.
30224
30225 2010-03-19  Mike Stump  <mikestump@comcast.net>
30226
30227         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
30228         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
30229         (override_options): Use SUBTARGET32_DEFAULT_CPU.
30230
30231 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
30232
30233         PR c/43211
30234         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
30235         an error.
30236
30237 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
30238
30239         PR rtl-optimization/42258
30240         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
30241         use that may match DEF.
30242
30243         PR target/40697
30244         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
30245         the cost of loading the constant rather than assuming
30246         COSTS_N_INSNS (1).
30247         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
30248         outer code is AND, do the same tests as the andsi3 expander and
30249         return COSTS_N_INSNS (1) if and is cheap.
30250
30251         * optabs.c (avoid_expensive_constant): Fix formatting.
30252
30253 2010-03-19  Michael Matz  <matz@suse.de>
30254
30255         PR c++/43116
30256         * attribs.c (decl_attributes): When rebuilding a function pointer
30257         type use the same qualifiers as the original pointer type.
30258
30259 2010-03-19  Martin Jambor  <mjambor@suse.cz>
30260
30261         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
30262         and is_gimple_ip_invariant_address.
30263
30264 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30265
30266         Revert
30267         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30268
30269         * config/arm/arm.c (arm_override_options): Turn off
30270         flag_dwarf2_cfi_asm for AAPCS variants.
30271
30272 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30273
30274         PR target/43399
30275         * config/arm/arm.c (emit_multi_reg_push): Update comments.
30276         Use PRE_MODIFY instead of PRE_DEC.
30277         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
30278         (vfp_emit_fstmd): Likewise.
30279
30280 2010-03-19  Michael Matz  <matz@suse.de>
30281
30282         PR target/43305
30283         * builtins.c (expand_builtin_interclass_mathfn,
30284         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
30285         if that fails.
30286
30287 2010-03-19  Richard Guenther  <rguenther@suse.de>
30288
30289         PR tree-optimization/43415
30290         * tree-ssa-pre.c (phi_translate): Split out worker to ...
30291         (phi_translate_1): ... this.
30292         (phi_translate): Move all caching here.  Cache all NARY
30293         and REFERENCE translations.
30294
30295 2010-03-19  David S. Miller  <davem@davemloft.net>
30296
30297         With help from Eric Botcazou.
30298         * config/sparc/sparc.c: Include dwarf2out.h.
30299         (emit_pic_helper): Delete.
30300         (pic_helper_symbol_name): Delete.
30301         (pic_helper_emitted_p): Delete.
30302         (pic_helper_needed): New.
30303         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
30304         (get_pc_thunk_name): New.
30305         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
30306         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
30307         Set pic_helper_needed to true.  Don't call emit_pic_helper.
30308         (sparc_expand_prologue): Update load_pic_register call.
30309         (sparc_output_mi_thunk): Likewise.
30310         (sparc_file_end): Emit a hidden comdat symbol for the PIC
30311         thunk if possible.  Output CFI information as needed.
30312
30313 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
30314             Jack Howarth  <howarth@bromo.med.uc.edu>
30315
30316         PR target/36399
30317         * config/i386/i386.h: Fix ABI on darwin x86-32.
30318
30319 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
30320
30321         * tree.h: Declare make_decl_rtl_for_debug.
30322         * varasm.c (make_decl_rtl_for_debug): New.
30323         * dwarf2out.c (rtl_for_decl_location): Call it.
30324         * cfgexpand.c (expand_debug_expr): Call it.
30325
30326 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
30327
30328         PR bootstrap/43399
30329         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
30330         mem_mode.
30331
30332         PR bootstrap/43403
30333         * var-tracking.c (vt_init_cfa_base): Do nothing if
30334         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
30335
30336 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
30337
30338         PR debug/42873
30339         * var-tracking.c (canonicalize_vars_star): New.
30340         (dataflow_post_merge_adjust): Use it.
30341
30342 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
30343
30344         PR debug/43058
30345         * var-tracking.c (non_suitable_const): New function.
30346         (add_uses): For DEBUG_INSNs with constants, don't record any
30347         value, instead just the constant value itself.
30348         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
30349         is not VAR_LOC_UNKNOWN_P, set var to the constant.
30350         (emit_notes_in_bb): Likewise.
30351         (emit_note_insn_var_location): For onepart variables if
30352         cur_loc is a VOIDmode constant, use DECL_MODE.
30353
30354 2010-03-18  Martin Jambor  <mjambor@suse.cz>
30355
30356         PR middle-end/42450
30357         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
30358         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
30359         all non-clones.  Moved call redirection...
30360         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
30361         (cgraph_materialize_all_clones): Dispose of all
30362         combined_args_to_skip bitmaps.
30363         (verify_cgraph_node): Do not check for edges pointing to wrong
30364         nodes in inline clones.
30365         * tree-inline.c (copy_bb): Call
30366         cgraph_redirect_edge_call_stmt_to_callee.
30367         * ipa.c (cgraph_remove_unreachable_nodes): Call
30368         cgraph_node_remove_callees even when there are used clones.
30369
30370 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
30371
30372         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
30373
30374 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
30375
30376         PR target/43383
30377         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
30378         for 32bit.
30379
30380 2010-03-18  Michael Matz  <matz@suse.de>
30381
30382         PR middle-end/43419
30383         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
30384         into sqrt(x) if we need to preserve signed zeros.
30385
30386 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
30387             Eric Botcazou  <ebotcazou@adacore.com>
30388
30389         PR rtl-optimization/43360
30390         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
30391         note if we don't know its invariant status.
30392
30393 2010-03-18  Michael Matz  <matz@suse.de>
30394
30395         PR tree-optimization/43402
30396         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
30397         PHI chains of ssa names registered for update.
30398
30399 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
30400
30401         PR target/42427
30402         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
30403         non-offsettable and pre_modify update addressing.
30404         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
30405         and "2" alternatives "#".
30406         (*movdd_softfloat32): Make all alternatives "#";
30407         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
30408         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
30409         (*movdf_softfloat32): Make all alternatives "#";
30410         (movdi): Use the new DIFD mode iterator to create a common splitter
30411         for movdi, movdf and movdd patterns.
30412
30413 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
30414
30415         * common.opt (dumpdir): Remove redundant tab.
30416
30417 2010-03-17  Martin Jambor  <mjambor@suse.cz>
30418
30419         PR tree-optimization/43347
30420         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
30421         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
30422
30423 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
30424
30425         PR rtl-optimization/42216
30426         * regrename.c (create_new_chain): New function, broken out from...
30427         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
30428         appending a use to an empty chain.
30429         (build_def_use): Remove previous changes that convert OP_INOUT to
30430         OP_OUT operands; instead detect the case where an OP_INOUT operand
30431         uses a previously untracked register and create an empty chain for it.
30432
30433 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30434
30435         * doc/extend.texi (Function Attributes): Rewrite unfinished
30436         sentence in ms_abi documentation.
30437
30438 2010-03-17  Alan Modra  <amodra@gmail.com>
30439
30440         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
30441         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
30442         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
30443         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
30444
30445 2010-03-16  Richard Henderson  <rth@redhat.com>
30446
30447         PR middle-end/43365
30448         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
30449         (lower_try_finally): Save and restore eh_seq around the expansion
30450         of the try-finally.
30451
30452 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
30453
30454         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
30455         statements before splitting block.
30456
30457 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30458
30459         * doc/sourcebuild.texi (Testsuites): Fix markup.
30460         Use pathnames relative to gcc/testsuite.
30461         (Test Directives): Move description of how timeout is determined.
30462         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
30463         (C Tests): Correct gcc.misc-tests directory.
30464         Framework tests now live in gcc.test-framework.
30465
30466 2010-03-16  Richard Guenther  <rguenther@suse.de>
30467
30468         PR middle-end/43379
30469         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
30470         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
30471
30472 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
30473             Alexandre Oliva  <aoliva@redhat.com>
30474
30475         PR tree-optimization/42917
30476         * lambda-code.c (remove_iv): Skip debug statements.
30477         (lambda_loopnest_to_gcc_loopnest): Likewise.
30478         (not_interesting_stmt): Debug statements are not interesting.
30479
30480 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
30481
30482         PR debug/43051
30483         PR debug/43092
30484         * cselib.c (cselib_preserve_constants,
30485         cfa_base_preserved_val): New static variables.
30486         (preserve_only_constants): New function.
30487         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
30488         clear its REG_VALUES.  If cselib_preserve_constants, don't
30489         empty the whole hash table, but preserve there VALUEs with constants,
30490         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
30491         (cselib_preserve_cfa_base_value): New function.
30492         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
30493         (cselib_init): Change argument to int bitfield.  Set
30494         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
30495         is in it.
30496         (cselib_finish): Clear cselib_preserve_constants and
30497         cfa_base_preserved_val.
30498         * cselib.h (enum cselib_record_what): New enum.
30499         (cselib_init): Change argument to int.
30500         (cselib_preserve_cfa_base_value): New prototype.
30501         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
30502         * dse.c (dse_step1): Likewise.
30503         * cfgcleanup.c (thread_jump): Likewise.
30504         * sched-deps.c (sched_analyze): Likewise.
30505         * gcse.c (local_cprop_pass): Likewise.
30506         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
30507         If FN is non-NULL, call the callback always and whenever it returns
30508         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
30509         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
30510         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
30511         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
30512         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
30513         * var-tracking.c: Include recog.h.
30514         (bb_stack_adjust_offset): Remove.
30515         (vt_stack_adjustments): Don't call it, instead just gather the
30516         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
30517         (adjust_stack_reference): Remove.
30518         (compute_cfa_pointer): New function.
30519         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
30520         (struct adjust_mem_data): New type.
30521         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
30522         functions.
30523         (get_address_mode): New function.
30524         (replace_expr_with_values): Use it.
30525         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
30526         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
30527         (adjust_sets): Remove.
30528         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
30529         Use get_address_mode.
30530         (get_adjusted_src): Remove.
30531         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
30532         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
30533         (add_with_sets): Don't call adjust_sets.
30534         (fp_setter, vt_init_cfa_base): New functions.
30535         (vt_initialize): Change return type to bool.  Move most of pool etc.
30536         initialization to the beginning of the function from end.  Pass
30537         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
30538         If !frame_pointer_needed, call vt_stack_adjustment before mos
30539         vector is filled, call vt_init_cfa_base if argp/framep has been
30540         eliminated to sp.  If frame_pointer_needed and argp/framep has
30541         been eliminated to hard frame pointer, set
30542         hard_frame_pointer_adjustment and call vt_init_cfa_base after
30543         encountering fp setter in the prologue.  For MO_ADJUST, call
30544         log_op_type before pusing the op into mos vector, not afterwards.
30545         Call adjust_insn before cselib_process_insn/add_with_sets,
30546         call cancel_changes (0) afterwards.
30547         (variable_tracking_main_1): Adjust for vt_initialize calling
30548         vt_stack_adjustments and returning whether it succeeded or not.
30549
30550 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
30551
30552         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
30553         debug statements.
30554
30555 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
30556
30557         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
30558         has been set.
30559         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
30560         drap_reg has not been set.
30561
30562 2010-03-15  Michael Matz  <matz@suse.de>
30563
30564         PR middle-end/43300
30565         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
30566         use it to expand block copies.
30567         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
30568         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
30569         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
30570
30571 2010-03-15  Richard Guenther  <rguenther@suse.de>
30572
30573         PR tree-optimization/43367
30574         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
30575         elimination check.
30576
30577 2010-03-15  Richard Guenther  <rguenther@suse.de>
30578
30579         PR tree-optimization/43317
30580         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
30581
30582 2010-03-15  Martin Jambor  <mjambor@suse.cz>
30583
30584         PR tree-optimization/43141
30585         * tree-sra.c (create_abstract_origin): New function.
30586         (modify_function): Call create_abstract_origin.
30587
30588 2010-03-15  Chris Demetriou  <cgd@google.com>
30589
30590         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
30591         wasn't copied.
30592
30593 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30594
30595         PR middle-end/43354
30596         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
30597         call insert_out_of_ssa_copy for default definitions.
30598
30599 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30600
30601         * graphite-clast-to-gimple.c (my_long_long): Defined.
30602         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
30603         * graphite-sese-to-poly.c (my_long_long): Defined.
30604         (scop_ivs_can_be_represented): Use it.
30605
30606 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30607
30608         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
30609         graphite-max-bbs-per-function, and loop-block-tile-size.
30610         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
30611         with "maximum".
30612         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
30613
30614 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30615
30616         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
30617         forward declaration.
30618         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
30619         (add_upper_bounds_from_estimated_nit): New.
30620         (build_loop_iteration_domains): Use it.
30621
30622 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30623
30624         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
30625
30626 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30627
30628         PR middle-end/43306
30629         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
30630         should be an INTEGER_CST.  Also handle CASE_CONVERT.
30631
30632 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30633
30634         * graphite.c (graphite_initialize): To bound the number of bbs per
30635         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
30636         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
30637         * doc/invoke.texi: Document it.
30638
30639 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30640
30641         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
30642         * graphite-sese-to-poly.h (build_poly_scop): Same.
30643
30644 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30645
30646         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
30647         the number of parameters in the scop.  Use as an upper bound
30648         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
30649         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
30650         * doc/invoke.texi: Document it.
30651
30652 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
30653
30654         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
30655         * doc/c-tree.texi: Remove.
30656         * doc/generic.texi: Merge c-tree.texi here.
30657         * doc/gccint.texi (Trees): Remove menu entry.
30658         (c-tree.texi): Remove @include.
30659         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
30660         * doc/languages.texi (Reading RTL): Ditto.
30661
30662 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
30663
30664         PR target/42869
30665         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
30666
30667 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
30668
30669         PR middle-end/42431
30670         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
30671         code added to work around reload clobbering CONST insns.
30672
30673 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
30674
30675         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
30676         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
30677         (cselib_preserve_only_values): Remove retain argument, don't
30678         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
30679         * cselib.h (cselib_preserve_only_values): Remove retain argument.
30680         * var-tracking.c (micro_operation): Move insn field before union.
30681         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
30682         (struct variable_tracking_info_def): Remove n_mos field, change
30683         mos into a vector of micro_operations.
30684         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
30685         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
30686         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
30687         changing into a vector.
30688         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
30689         come before all other uops generated by add_stores.
30690         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
30691         argument removal.
30692         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
30693         a vector.  Run just one pass over the bbs instead of separate counting
30694         and computation phase.
30695         (vt_finalize): Free VTI (bb)->mos vector instead of array.
30696
30697         PR debug/43329
30698         * tree-inline.c (remap_decls): Put old_var rather than origin_var
30699         into *nonlocalized_list vector.
30700         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
30701         even if origin is non-NULL.
30702         (gen_variable_die): Likewise.
30703         (process_scope_var): Don't change origin.
30704         (gen_decl_die): Likewise.
30705         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
30706         before adding new edges instead of after it, fix moving over
30707         debug stmts.
30708
30709 2010-03-11  David S. Miller  <davem@davemloft.net>
30710
30711         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
30712         of four.
30713         * configure: Rebuild.
30714
30715 2010-03-11  Martin Jambor  <mjambor@suse.cz>
30716
30717         PR tree-optimization/43257
30718         * tree.c (assign_assembler_name_if_neeeded): New function.
30719         (free_lang_data_in_cgraph): Assembler name assignment moved to the
30720         above new function.
30721         * tree.h (assign_assembler_name_if_neeeded): Declare.
30722         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
30723         the function if needed.
30724
30725 2010-03-11  Chris Demetriou  <cgd@google.com>
30726
30727         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
30728         include/stdint-gcc.h, and include/stdint.h world-readable.
30729
30730 2010-03-11  Richard Guenther  <rguenther@suse.de>
30731
30732         PR tree-optimization/43255
30733         * tree-vrp.c (process_assert_insertions_for): Do not insert
30734         asserts for trivial conditions.
30735
30736 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30737
30738         PR tree-optimization/43280
30739         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
30740         generation.  Move calculation of size out of the if branch.
30741         (find_bswap): Modify compare number generation.
30742
30743 2010-03-11  Richard Guenther  <rguenther@suse.de>
30744
30745         PR lto/43200
30746         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
30747         (input_gimple_stmt): Fixup handled component types during
30748         operand read.  Also fix up decls in ADDR_EXPRs.
30749
30750 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
30751
30752         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
30753         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
30754
30755 2010-03-10  Jan Hubicka  <jh@suse.cz>
30756
30757         PR c/43288
30758         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
30759         * varasm.c (get_variable_section): Don't do that here...
30760         (make_decl_rtl): ... and here.
30761         (do_assemble_alias): Produce decl RTL.
30762         (assemble_alias): Likewise.
30763
30764 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
30765
30766         PR debug/43290
30767         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
30768         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
30769         of fde->vdrap_reg.
30770         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
30771         (based_loc_descr): Only express drap or vdrap regno based expressions
30772         using DW_OP_fbreg when not optimizing.
30773         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
30774         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
30775         REG_CFA_SET_VDRAP note.
30776
30777 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
30778
30779         PR tree-optimization/43236
30780         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
30781         error in calculation of base address in reverse iteration case.
30782         (generate_builtin): Take number of latch executions if the statement
30783         is in the latch.
30784
30785 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
30786
30787         PR middle-end/42859
30788         * tree-eh.c: Include pointer-set.h.
30789         (lower_eh_dispatch): Filter out duplicate case labels and
30790         remove the unneeded edge when the label is unused.  Return
30791         true when some edges are removed.
30792         (execute_lower_eh_dispatch): When any lowering resulted in
30793         removing an edge, also delete unreachable blocks.
30794
30795 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
30796
30797         PR bootstrap/43287
30798         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30799         UNSPEC_MACHOPIC_OFFSET.
30800
30801 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
30802
30803         PR target/43294
30804         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
30805         (m68k_delegitimize_address): New function.
30806
30807 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
30808
30809         PR debug/43299
30810         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
30811
30812         PR debug/43299
30813         * var-tracking.c (adjust_sets): New function.
30814         (count_with_sets, add_with_sets): Use it.
30815         (get_adjusted_src): New inline function.
30816         (add_stores): Use it.
30817
30818         PR debug/43304
30819         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
30820         call cselib_dummy_expand_value_rtx_cb instead of
30821         cselib_expand_value_rtx_cb.
30822
30823         PR debug/43293
30824         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
30825         * config/i386/i386.c: Include debug.h and dwarf2out.h.
30826         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
30827         and .cfi_endproc around the pic thunks.
30828         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
30829         all queued unwind info register saves are saved before the call.
30830         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
30831         considered as sp-=4 for unwind info and the pop as sp+=4 which
30832         also clobbers dest, but doesn't actually restore it.
30833
30834         PR debug/43290
30835         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
30836         RTX_FRAME_RELATED_P.
30837
30838 2010-03-09  Jie Zhang  <jie@codesourcery.com>
30839
30840         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
30841         whitespaces in output template.
30842
30843 2010-03-09  Jie Zhang  <jie@codesourcery.com>
30844
30845         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
30846         out array boundary.
30847
30848 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
30849
30850         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
30851         builtins.exp in a separate job.
30852
30853 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30854
30855         * graphite-sese-to-poly.c (add_param_constraints): Use
30856         lower_bound_in_type and upper_bound_in_type.
30857
30858 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30859
30860         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
30861         instead of unsigned_type_node.
30862
30863 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30864             Reza Yazdani  <reza.yazdani@amd.com>
30865
30866         PR middle-end/43065
30867         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
30868         on pointer type parameters.
30869
30870 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
30871
30872         PR middle-end/42644
30873         PR middle-end/42130
30874         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
30875         handle conversions from pointer to integers.
30876         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
30877         induction variable, to be able to work with code generated by CLooG.
30878         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
30879         (build_poly_scop): Bail out if we cannot codegen a loop.
30880
30881 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
30882
30883         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
30884         code generation with gloog_error.
30885
30886 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30887
30888         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
30889         Call fold_convert on all the returned values.
30890         (expand_scalar_variables_expr): Pass to
30891         expand_scalar_variables_ssa_name the type of the resulting expression.
30892
30893 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30894
30895         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
30896         ppl_min_for_le_pointset.
30897         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
30898         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
30899
30900 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30901
30902         * graphite-dependences.c (map_into_dep_poly): Removed.
30903         (dependence_polyhedron_1): Use combine_context_id_scat.
30904
30905 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30906
30907         * graphite-poly.h (struct poly_scattering): Add layout documentation.
30908         (struct poly_bb): Same.
30909         (combine_context_id_scat): New.
30910
30911 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30912
30913         PR middle-end/42326
30914         * sese.c (name_defined_in_loop_p): Return false for default
30915         definitions.
30916
30917 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30918
30919         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
30920         and clean up the logic.
30921
30922 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
30923
30924         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
30925         early return.
30926
30927 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
30928
30929         * var-tracking.c (remove_cselib_value_chains): Define only for
30930         ENABLE_CHECKING.
30931         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
30932         delete_slot_part, emit_notes_for_differences_1): Don't call
30933         remove_cselib_value_chains here.
30934         (set_slot_part, emit_notes_for_differences_2): Don't call
30935         add_cselib_value_chains here.
30936         (preserved_values): New vector.
30937         (preserve_value): New function.
30938         (add_uses, add_stores, vt_add_function_parameters): Use it
30939         instead of cselib_preserve_value.
30940         (changed_values_stack): New vector.
30941         (check_changed_vars_0): New function.
30942         (check_changed_vars_1, check_changed_vars_2): Use it.
30943         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
30944         changed_values_stack VALUEs.
30945         (vt_emit_notes): For all preserved_values call
30946         add_cselib_value_chains.  If ENABLE_CHECKING call
30947         remove_cselib_value_chains before verifying value_chains is empty.
30948         Initialize and free changed_values_stack.
30949         (vt_initialize): Initialize preserved_values.
30950         (vt_finalize): Free preserved_values.
30951
30952 2010-03-08  Richard Guenther  <rguenther@suse.de>
30953
30954         PR tree-optimization/43269
30955         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
30956         region detection.
30957
30958 2010-03-08  Martin Jambor  <mjambor@suse.cz>
30959
30960         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
30961         (ipa_is_param_called): Removed.
30962         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
30963         (ipa_print_node_params): Do not print the called flag.
30964         (ipa_write_node_info): Do not stream the called flag.
30965         (ipa_read_node_info): Likewise.
30966
30967 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
30968
30969         PR debug/43176
30970         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
30971         * cselib.c (struct expand_value_data): Add dummy field.
30972         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
30973         dummy to false.
30974         (cselib_dummy_expand_value_rtx_cb): New function.
30975         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
30976         any rtl.
30977         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
30978         * var-tracking.c: Include pointer-set.h.
30979         (variable): Change n_var_parts to char from int.  Add
30980         cur_loc_changed and in_changed_variables fields.
30981         (variable_canonicalize): Remove.
30982         (shared_var_p): New inline function.
30983         (unshare_variable): Maintain cur_loc_changed and
30984         in_changed_variables fields.  If var was in changed_variables,
30985         replace it there with new_var.  Just copy cur_loc instead of
30986         resetting it to something else.
30987         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
30988         (dataflow_set_union): Don't call variable_canonicalize.
30989         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
30990         of their DEBUG_EXPR_TREE_DECLs.
30991         (canonicalize_loc_order_check): Verify that cur_loc is NULL
30992         and in_changed_variables and cur_loc_changed is false.
30993         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
30994         and cur_loc_changed.  Don't update cur_loc here.
30995         (variable_merge_over_src): Don't call variable_canonicalize.
30996         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
30997         removing loc that is equal to cur_loc, clear cur_loc,
30998         set cur_loc_changed and ensure variable_was_changed is called.
30999         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
31000         compare pointers in cur_loc check, if it is equal to loc,
31001         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
31002         (variable_different_p): Remove compare_current_location argument,
31003         don't compare cur_loc.
31004         (dataflow_set_different_1): Adjust variable_different_p caller.
31005         (variable_was_changed): If dv had some var in changed_variables
31006         already, reset in_changed_variables flag for it and propagate
31007         cur_loc_changed over to the new variable.  On empty var
31008         always set cur_loc_changed.  Set in_changed_variables on whatever
31009         var is added to changed_variables.
31010         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
31011         Use shared_var_p.  When removing loc that is equal to cur_loc,
31012         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
31013         end, don't set it to something else, just call variable_was_changed.
31014         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
31015         loc being removed, clear cur_loc and set cur_loc_changed.
31016         Set cur_loc_changed if all locations have been removed.
31017         (struct expand_loc_callback_data): New type.
31018         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
31019         allocated.  Always create SUBREGs if simplify_subreg failed.
31020         Prefer to use cur_loc, when that fails and still in
31021         changed_variables (and seen first time) recompute it.  Set
31022         cur_loc_changed of variables which had to change cur_loc and
31023         compute elcd->cur_loc_changed if any of the subexpressions used
31024         had to change cur_loc.
31025         (vt_expand_loc): Adjust to pass arguments in
31026         expand_loc_callback_data structure.
31027         (vt_expand_loc_dummy): New function.
31028         (emitted_notes): New variable.
31029         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
31030         that weren't used for any other decl in current
31031         emit_notes_for_changes call call vt_expand_loc_dummy to update
31032         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
31033         first loc_chain location if NULL before.  Always use just
31034         cur_loc instead of first loc_chain location.  When cur_loc_changed
31035         is false, when not --enable-checking=rtl just don't emit any note.
31036         When rtl checking, compute the note and assert it is the same
31037         as previous note.  Clear cur_loc_changed and in_changed_variables
31038         at the end before removing from changed_variables.
31039         (check_changed_vars_3): New function.
31040         (emit_notes_for_changes): Traverse changed_vars to call
31041         check_changed_vars_3 on each changed var.
31042         (emit_notes_for_differences_1): Clear cur_loc_changed and
31043         in_changed_variables.  Recompute cur_loc of new_var.
31044         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
31045         (vt_emit_notes): Initialize and destroy emitted_notes.
31046
31047 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
31048
31049         PR rtl-optimization/42220
31050         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
31051         Use verify_reg_tracked to determine if we should use OP_OUT rather
31052         than OP_INOUT.
31053         (build_def_use): If we see an in-out operand for a register that we
31054         know nothing about, treat is an output if possible, fail the block if
31055         not.
31056
31057 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31058
31059         PR debug/42897
31060         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
31061         permanently.
31062
31063 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31064
31065         PR debug/42897
31066         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
31067         uses of relevant DEFs that are dead outside the loop too.
31068
31069 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31070
31071         * var-tracking.c (dataflow_set_merge): Swap src and src2.
31072         Reverted:
31073         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
31074         PR debug/41371
31075         * var-tracking.c (values_to_unmark): New variable.
31076         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31077         values_to_unmark vector.  Moved body to...
31078         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
31079         instead queue it into values_to_unmark vector.
31080         (vt_find_locations): Free values_to_unmark vector.
31081
31082 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
31083
31084         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
31085         (site.exp): Export them when plugins are enabled.
31086
31087 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
31088
31089         PR middle-end/42326
31090         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
31091         that contain scevs.
31092         (chrec_fold_multiply): Same.
31093
31094 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
31095
31096         PR c/43248
31097         * c-decl.c (build_compound_literal): Return early if init is
31098         an error_mark_node.
31099
31100 2010-03-04  Martin Jambor  <mjambor@suse.cz>
31101
31102         PR tree-optimization/43164
31103         PR tree-optimization/43191
31104         * tree-sra.c (type_consists_of_records_p): Reject records with
31105         zero-size bit-fields at the end.
31106
31107 2010-03-04  Mike Stump  <mikestump@comcast.net>
31108
31109         * Makefile.in (TAGS): Remove *.y.
31110
31111 2010-03-04  Richard Guenther  <rguenther@suse.de>
31112
31113         PR tree-optimization/40761
31114         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
31115         in reverse order.
31116         (my_rev_post_order_compute): New function.
31117         (init_pre): Call it.
31118
31119 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
31120
31121         PR middle-end/43209
31122         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
31123         decrease the cost of an IV candidate when the cost is infinite.
31124
31125 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31126
31127         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
31128         Use '3DNow!' for the extension of that name, ensure normal space
31129         after the string.
31130         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
31131
31132 2010-03-03  Jeff Law  <law@redhat.com>
31133
31134         * PR middle-end/32693
31135         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
31136         than gen_rtx_SUBREG.
31137         (extract_bit_field_1): Likewise.
31138
31139 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
31140
31141         * doc/sourcebuild.texi (Test directives): Document that arguments
31142         include-opts and exclude-opts are now optional for dg-skip-if,
31143         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
31144
31145 2010-03-03  Jason Merrill  <jason@redhat.com>
31146
31147         PR c++/12909
31148         * cgraph.h (varpool_node): Add extra_name field.
31149         * varpool.c (varpool_extra_name_alias): New.
31150         (varpool_assemble_decl): Emit extra name aliases.
31151         (varpool_mark_needed_node): Look past an extra name alias.
31152         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
31153         * lto-streamer-in.c (lto_input_tree): Read it.
31154         * lto-streamer-out.c (output_unreferenced_globals): Write it.
31155
31156 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31157
31158         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
31159         (sparc*-*-solaris2*): ...this.
31160
31161 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
31162
31163         PR debug/43229
31164         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
31165         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
31166         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
31167         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
31168
31169         PR debug/43237
31170         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
31171         fallthrough to default handling, just with want_address 0 instead of 2.
31172         For single element lists, add_AT_loc directly, otherwise create an
31173         artificial variable DIE and stick location list to it.
31174
31175         PR debug/43177
31176         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
31177         (VAL_EXPR_HAS_REVERSE): Define.
31178         (reverse_op): New function.
31179         (add_stores): For reversible operations add an extra MO_VAL_USE.
31180
31181 2010-03-02  Jason Merrill  <jason@redhat.com>
31182
31183         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
31184
31185 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
31186
31187         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
31188         (sparc64-*-linux*): Likewise.
31189         (sparc64-*-solaris2*): Include assembler files before linker ones.
31190         (sparc-*-solaris2*): Simplify and reorder to match previous case.
31191         * config/sparc/gas.h: Delete.
31192         * config/sparc/sol2-64.h: Add copyright notice.
31193         * config/sparc/sol2-gas-bi.h: Likewise.
31194         * config/sparc/sol2-gld.h: Likewise.
31195         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
31196         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
31197         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
31198         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
31199         (sparc_elf_asm_named_section): Rename into...
31200         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
31201
31202 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
31203
31204         * config/alpha/alpha.c (override_options): Fix -mtune error message.
31205
31206 2010-03-02  Jeff Law  <law@redhat.com>
31207
31208         PR middle-end/42431
31209         * reload1.c (rtx_p, substitute_stack): Declare.
31210         (substitute): Record addresses of changed rtxs.
31211         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
31212         Restore the original rtx when complete.
31213         (reload): Free subsitute_stack when complete.
31214
31215 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
31216
31217         * doc/gccint.texi (menu): Add Testsuites as a chapter.
31218         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
31219         new chapter.
31220         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
31221         LTO Testing, gcov Testing, profopt Testing, compat Testing,
31222         Torture Tests): Change from subsection to section.
31223
31224 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
31225             Steven Bosscher  <steven@gcc.gnu.org>
31226
31227         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
31228         instead of bb.
31229
31230 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
31231
31232         PR middle-end/42640
31233         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
31234         the assignment from the new induction variable to the assignment
31235         of the value from the original loop PHI function.
31236
31237 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
31238             Daniel Jacobowitz  <dan@codesourcery.com>
31239
31240         * doc/sourcebuild.texi (Test directives): Clarify options to
31241         dg-skip-if.
31242
31243 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31244
31245         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
31246         Disable cfi directives unless GCC and gas agree on using read-only
31247         .eh_frame sections for 64-bit.
31248         * configure: Regenerate.
31249
31250 2010-03-01  Richard Guenther  <rguenther@suse.de>
31251
31252         PR tree-optimization/43220
31253         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
31254         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
31255
31256 2010-03-01  Richard Guenther  <rguenther@suse.de>
31257             Martin Jambor  <mjambor@suse.cz>
31258
31259         PR middle-end/41250
31260         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
31261         gimplified parameters.
31262
31263 2010-03-01  Christian Bruel  <christian.bruel@st.com>
31264
31265         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
31266
31267 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
31268
31269         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
31270
31271 2010-03-01  Richard Guenther  <rguenther@suse.de>
31272
31273         PR middle-end/43213
31274         * expr.c (expand_assignment): Use the alias-oracle to tell
31275         if the rhs aliases the result decl.
31276
31277 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31278
31279         PR pch/14940
31280         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
31281         to sol_gt_pch_get_address.
31282         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
31283         64-bit, SPARC and x86.
31284         (sol_gt_pch_get_address): New function.
31285
31286 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
31287
31288         * toplev.h (inform_n, error_n): Declare.
31289         * diagnostic.c (inform_n, error_n): New function.
31290
31291 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
31292
31293         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
31294         has no rtl yet when processing local_decls, queue it and recheck
31295         if deferred stack allocation hasn't assigned it rtl.
31296
31297 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
31298
31299         * config/sh/sh.c (unspec_bbr_uid): New.
31300         (gen_block_redirect): Use it instead of INSN_UID.
31301         (gen_far_branch): Likewise.
31302
31303 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31304
31305         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
31306         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
31307
31308 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31309
31310         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
31311         (Warning Options): -Wno-conversion-null is valid for
31312         Objective-C++ as well.
31313         * doc/tm.texi (Named Address Spaces): Likewise.
31314         * doc/plugins.texi (Plugins): Replace TABs with spaces.
31315         * doc/tree-ssa.texi (Tree SSA): Likewise.
31316
31317 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31318
31319         PR bootstrap/43202
31320         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
31321         by default.  Don't set the default arch for
31322         i[34567]86-*-darwin*|x86_64-*-darwin*.
31323
31324 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31325
31326         PR bootstrap/43202
31327         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
31328         default.  Set the default 32bit/64bit archs with $with_arch
31329         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
31330
31331 2010-02-27  Richard Guenther  <rguenther@suse.de>
31332
31333         PR tree-optimization/43186
31334         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
31335         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
31336         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
31337         unroller iterations.
31338
31339 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31340
31341         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
31342         required and i[34567]86-*-* targets don't support 64bit ISA.
31343
31344 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
31345
31346         PR ada/43096
31347         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31348         the same alias set.
31349
31350 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
31351
31352         * config.gcc: Set the default arch at least to Prescott for
31353         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
31354         if SSE math is enabled.
31355
31356 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31357
31358         * diagnostic.c (diagnostic_initialize): Update.
31359         (diagnostic_report_diagnostic): Test inhibit_notes_p for
31360         informative notes.
31361         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
31362         (diagnostic_inhibit_notes): New.
31363         * toplev.c (process_options): inhibit notes with -fcompare-debug.
31364
31365 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31366
31367         PR c/20631
31368         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
31369         * doc/standards.texi: Likewise.
31370         * doc/extend.texi: Likewise.
31371         * doc/trouble.texi: Likewise.
31372         * doc/cppopts.texi: Likewise.
31373         * doc/install.texi: Likewise.
31374         * c.opt (std=c90,std=gnu90): New options.
31375         * c-opts.c (c_common_handle_option): Handle them.
31376
31377 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31378
31379         PR c/24577
31380         * c-decl.c (undeclared_variable): Use an informative note.
31381
31382 2010-02-26  Richard Guenther  <rguenther@suse.de>
31383
31384         PR tree-optimization/43186
31385         * gimple.h (gimple_fold): Remove.
31386         * gimple.c (gimple_fold): Remove.  Inline into single user ...
31387         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
31388         Try harder for conditions.
31389
31390 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
31391
31392         PR debug/43190
31393         * function.c (used_types_insert): Don't skip through named pointer
31394         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
31395         and it is different from the main variant's type.
31396
31397 2010-02-26  Nick Clifton  <nickc@redhat.com>
31398
31399         * config/rx/rx.md (sminsi3): Remove bogus alternative.
31400
31401 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
31402
31403         * config.gcc: Support --with-fpmath=sse for x86.
31404
31405         * config/i386/ssemath.h: New.
31406
31407         * doc/install.texi (--with-fpmath=sse): Documented.
31408
31409 2010-02-26  Richard Guenther  <rguenther@suse.de>
31410
31411         PR tree-optimization/43188
31412         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
31413         vector types of over-aligned element type.
31414
31415 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
31416
31417         PR target/43175
31418         * config/i386/i386.c (expand_vec_perm_blend): Use correct
31419         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
31420
31421 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
31422
31423         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
31424
31425 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
31426
31427         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
31428         * var-tracking.c: Include diagnostic.h.
31429         (debug_dv): New function.
31430         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
31431
31432         PR debug/43160
31433         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
31434         (add_value_chain, add_value_chains, remove_value_chain,
31435         remove_value_chains): Handle DEBUG_EXPRs.
31436         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
31437
31438         PR debug/43161
31439         * regcprop.c (struct queued_debug_insn_change): New type.
31440         (struct value_data_entry): Add debug_insn_changes field.
31441         (struct value_data): Add n_debug_insn_changes field.
31442         (debug_insn_changes_pool): New variable.
31443         (free_debug_insn_changes, apply_debug_insn_changes,
31444         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
31445         (kill_value_one_regno): Call free_debug_insn_changes if needed.
31446         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
31447         fields.
31448         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
31449         changes for them.
31450         (copyprop_hardreg_forward_1): Don't call apply_change_group for
31451         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
31452         changes, call cprop_find_used_regs via note_stores.
31453         (copyprop_hardreg_forward): When copying vd from predecessor
31454         which has any queued DEBUG_INSN changes, make sure the pointers are
31455         cleared.  At the end call df_analyze and then if there are any
31456         DEBUG_INSN changes queued at the end of some basic block for still
31457         live registers, apply them.
31458         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
31459
31460 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
31461
31462         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
31463         (arm*-*-*): Ditto.
31464
31465 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
31466
31467         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
31468         targets.  Set the default with_cpu/with_arch from arch/cpu.
31469         Allow x86-64 and native for with_cpu/with_arch.
31470
31471 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
31472
31473         * ebitmap.c: Change calls to verify_popcount with calls to
31474         sbitmap_verify_popcount.
31475         (ebitmap_clear_bit): Fixed map->cacheindex test and
31476         map>cache update when bit clearing results in an empty
31477         element.
31478
31479 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
31480
31481         PR target/43154
31482         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
31483         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
31484         and support both V2DF and V2DI modes.
31485         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
31486         support both V2DF and V2DI modes.
31487         (general): Delete trailing whitespace from a few patterns.
31488
31489         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31490         V2DF/V2DI interleave high/low builtins.
31491
31492         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
31493         new VSX builtins.
31494
31495         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
31496         interleave high/low functions.
31497
31498 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
31499
31500         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
31501         #pragma extern_prefix.
31502
31503 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
31504
31505         PR debug/43166
31506         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
31507         BLKmode, assert op0 is a MEM and just adjust its mode.
31508
31509         PR debug/43165
31510         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
31511         if bitpos isn't multiple of mode's bitsize.
31512
31513 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31514
31515         * c.opt (-ftemplate-depth=): New.
31516         (-ftemplate-depth-): Deprecate.
31517         * optc-gen.awk: Handle -ftemplate-depth=.
31518         * opth-gen.awk: Likewise.
31519         * c-opts.c (c_common_handle_option): Likewise.
31520         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
31521
31522 2010-02-24  Jason Merrill  <jason@redhat.com>
31523
31524         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
31525
31526 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31527
31528         * cfg.c (alloc_aux_for_block): Remove inline.
31529         (alloc_aux_for_edge): Likewise.
31530
31531 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31532
31533         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
31534
31535 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31536
31537         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
31538         * config/i386/sol2-gas.h: New file.
31539         * config.gcc (i[34567]86-*-solaris2*): Use it.
31540
31541 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31542
31543         PR c/43128
31544         * c-typeck.c (ep_convert_and_check): New.
31545         (build_conditional_expr): Use it.
31546         (build_binary_op): Likewise.
31547
31548 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
31549
31550         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
31551
31552         PR debug/43150
31553         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
31554         bounds even for -O+.
31555         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
31556         expr needs to have DECL_NAME set.
31557
31558 2010-02-24  Nick Clifton  <nickc@redhat.com>
31559
31560         * config/mep/mep.c: Include gimple.h.
31561         (mep_function_uses_sp): Delete unused function.
31562         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
31563         parameters.  Use unsigned integers to count args.  Return a
31564         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
31565
31566 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
31567
31568         PR target/43107
31569         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
31570         greater or equal to nelt instead of 2 * nelt.
31571         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
31572         with nelt - 1.
31573
31574 2010-02-23  Jason Merrill  <jason@redhat.com>
31575
31576         PR debug/42800
31577         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
31578         in cfun->local_decls even if they have register types.
31579
31580         PR c++/42837
31581         * stor-layout.c (place_field): Don't warn about unnecessary
31582         DECL_PACKED if the type is packed.
31583
31584 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
31585
31586         PR target/43139
31587         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
31588         GOTOFF relocs, even when the base reg isn't pic pointer.
31589
31590 2010-02-23  Michael Matz  <matz@suse.de>
31591
31592         PR debug/43077
31593         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
31594         (expand_gimple_basic_block): Generate and use debug temps if there
31595         are debug uses left after the last real use of TERed ssa names.
31596         Unlink debug immediate uses when they are expanded.
31597
31598 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31599
31600         PR 43123
31601         * config/i386/i386.c (override_options): Reorganise to provide
31602         better error messages.
31603
31604 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31605
31606         PR middle-end/43083
31607         * graphite-scop-detection.c (create_single_exit_edge): Move
31608         the call to find_single_exit_edge to....
31609         (create_sese_edges): ...here.  Don't handle multiple edges
31610         exiting the function.
31611         (build_graphite_scops): Don't handle multiple edges
31612         exiting the function.
31613
31614 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31615
31616         PR middle-end/43097
31617         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
31618         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
31619
31620 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31621
31622         PR middle-end/43026
31623         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
31624
31625 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31626
31627         PR c++/43126
31628         * c-typeck.c (convert_arguments): Print declaration location.
31629         * c-common.c (validate_nargs): Rename as
31630         builtin_function_validate_nargs.
31631         (check_builtin_function_arguments): Update.
31632
31633 2010-02-22  Richard Guenther  <rguenther@suse.de>
31634
31635         PR lto/43045
31636         * tree-inline.c (declare_return_variable): Use the type of
31637         the call stmt lhs if available.
31638
31639 2010-02-22  Duncan Sands  <baldrick@free.fr>
31640
31641         * passes.c (register_pass): Always consider all pass lists when
31642         ref_pass_instance_number is zero.
31643
31644 2010-02-22  Richard Guenther  <rguenther@suse.de>
31645
31646         PR tree-optimization/42749
31647         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
31648         parameter.  Do arithmetic in the original type.
31649         (update_accumulator_with_ops): Likewise.
31650         (adjust_accumulator_values): Adjust.
31651
31652 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31653
31654         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
31655         (QI to BLKmode splitter): New splitter.
31656
31657 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
31658
31659         * config/i386/i386.c (initial_ix86_tune_features): Turn on
31660         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
31661
31662 2010-02-22  Richard Guenther  <rguenther@suse.de>
31663
31664         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
31665
31666 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
31667
31668         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
31669         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
31670         ($(T)crti.o, $(T)crtn.o): Remove rules.
31671
31672 2010-02-21  Tobias Burnus  <burnus@net-b.de>
31673
31674         PR fortran/35259
31675         * doc/invoke.texi (-fassociative-math): Document that this
31676         option is automatically enabled for Fortran.
31677
31678 2010-02-20  David S. Miller  <davem@davemloft.net>
31679
31680         * configure.ac: Test if linker and assembler properly support
31681         GOTDATA_OP relocations.
31682         * configure: Rebuild.
31683         * config.in: Likewise.
31684         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
31685         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
31686         (movsi_high_pic): Likewise.
31687         (movdi_lo_sum_pic): Likewise.
31688         (movdi_high_pic): Likewise.
31689         (movsi_pic_gotdata_op): New pattern.
31690         (movdi_pic_gotdata_op): Likewise.
31691         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
31692         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
31693
31694 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
31695
31696         PR target/43067
31697         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
31698         attribute to ssemul.
31699         (xop_mulv2div2di3_high): Ditto.
31700
31701 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31702
31703         PR c++/35669
31704         * c.opt (Wconversion-null): New option.
31705         * doc/invoke.texi (Wconversion-null): Document.
31706
31707 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31708
31709         * common.opt (Wlarger-than-): Add Undocumented.
31710
31711 2010-02-19  Mike Stump  <mikestump@comcast.net>
31712
31713         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
31714
31715 2010-02-19  Jason Merrill  <jason@redhat.com>
31716
31717         PR target/40332
31718         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
31719         * configure: Likewise.
31720
31721 2010-02-20  Alan Modra  <amodra@gmail.com>
31722
31723         PR middle-end/42344
31724         * cgraph.h (cgraph_make_decl_local): Declare.
31725         * cgraph.c (cgraph_make_decl_local): New function.
31726         (cgraph_make_node_local): Use it.
31727         * cgraphunit.c (cgraph_function_versioning): Likewise.
31728         * ipa.c (function_and_variable_visibility): Likewise.
31729
31730 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
31731
31732         PR bootstrap/43121
31733         * except.c (sjlj_emit_function_enter): Don't call
31734         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
31735         directly.
31736         * rtl.h (add_reg_br_prob_note): Remove prototype.
31737
31738 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31739
31740         PR 41779
31741         * c-common.c (conversion_warning): Remove widening conversions
31742         before checking the conversion of integers to reals.
31743
31744 2010-02-19  Mike Stump  <mikestump@comcast.net>
31745
31746         PR middle-end/43125
31747         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
31748
31749         PR objc/43061
31750         * cgraphunit.c (process_function_and_variable_attributes): Check
31751         DECL_PRESERVE_P instead of looking up attribute "used".
31752         * ipa-pure-const.c (check_decl): Likewise.
31753         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
31754         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
31755         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
31756         instead of attribute "used".
31757         * config/sol2-c.c (solaris_pragma_init): Likewise.
31758         (solaris_pragma_fini): Likewise.
31759
31760 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
31761
31762         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
31763         Use XCNEW instead of xcalloc.
31764         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
31765         XNEW instead of xmalloc.
31766         (get_fields): Use XNEWVEC instead of xmalloc.
31767
31768         PR debug/43084
31769         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
31770         populate vars array.
31771         (create_new_general_access): For debug stmts just reset value.
31772         (get_stmt_accesses): For accesses within debug stmts just record them
31773         using add_access_to_acc_sites instead of preventing the peeling or
31774         counting them as accesses.
31775
31776         PR middle-end/42233
31777         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
31778
31779 2010-02-19  Richard Guenther  <rguenther@suse.de>
31780
31781         PR tree-optimization/42916
31782         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
31783         instructions.
31784
31785 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
31786
31787         * configure.ac: Replace all uses of changequote in macro arguments
31788         with proper quoting.
31789
31790 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
31791
31792         PR middle-end/42233
31793         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
31794
31795 2010-02-19  Richard Guenther  <rguenther@suse.de>
31796
31797         PR tree-optimization/42944
31798         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
31799         test for aliasing with errno.
31800
31801 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
31802
31803         PR middle-end/42233
31804         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
31805         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
31806         * dojump.c: Include output.h.
31807         (inv): New inline function.
31808         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
31809         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
31810         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
31811         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
31812         argument, pass it down to other calls.
31813         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
31814         add REG_BR_PROB note to the conditional jump.
31815         * cfgexpand.c (add_reg_br_prob_note): Removed.
31816         (expand_gimple_cond): Don't call it, add the probability
31817         as last argument to jumpif_1/jumpifnot_1.
31818         * Makefile.in (dojump.o): Depend on output.h.
31819         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
31820         callers.
31821         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
31822         * stmt.c (do_jump_if_equal): Likewise.
31823         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
31824         * loop-unswitch.c (compare_and_jump_seq): Likewise.
31825         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
31826         Likewise.
31827         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
31828         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
31829         jumpifnot_1 callers.
31830         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
31831         callers.
31832         (store_expr): Adjust jumpifnot caller.
31833         (store_constructor): Adjust jumpif caller.
31834
31835         PR middle-end/42233
31836         * gimplify.c (gimple_boolify): For __builtin_expect call
31837         gimple_boolify also on its first argument.
31838
31839 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
31840
31841         * configure.ac (gnu-unique-object): Wrap regexps using [] in
31842         changequote block.
31843         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
31844         * configure: Regenerated.
31845
31846 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31847
31848         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
31849         lang_hooks.types_compatible_p instead of comptypes.
31850
31851 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31852
31853         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
31854         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
31855         if __prefer_thumb__ is defined.
31856
31857 2010-02-18  Martin Jambor  <mjambor@suse.cz>
31858
31859         PR tree-optimization/43066
31860         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
31861         array with zero-sized element type.
31862
31863 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
31864
31865         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
31866         rtx, allocate struct var_loc_node here and return it to the
31867         caller, and only if it is actually needed.
31868         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
31869         move it earlier and return immediately if it returns NULL.
31870
31871 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
31872
31873         * config/sparc/gas.h: New file.  Restore
31874         TARGET_ASM_NAMED_SECTION to its ELF default.
31875         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
31876         check !HAVE_GNU_AS.
31877         * config/sparc/sparc.c (sparc_elf_asm_named_section):
31878         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
31879         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
31880         after sparc/sysv4.h.
31881
31882 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
31883
31884         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
31885
31886 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
31887
31888         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
31889         patterns from predicated pattern.
31890
31891 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
31892
31893         PR target/43103
31894         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
31895         for insn mnemonic suffix.
31896
31897 2010-02-17  Richard Guenther  <rguenther@suse.de>
31898
31899         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
31900         to loop PHI nodes.
31901
31902 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
31903
31904         PR debug/42918
31905         * caller-save.c (save_call_clobbered_regs): If BB ends with
31906         a DEBUG_INSN, move any notes in between last real insn and the last
31907         DEBUG_INSN after the last DEBUG_INSN.
31908
31909 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
31910
31911         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
31912         Fix return type.  Fix argument type.  Explain meaning of return value.
31913
31914 2010-02-16  Richard Guenther  <rguenther@suse.de>
31915
31916         PR tree-optimization/41043
31917         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
31918         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
31919         statements ...
31920         (vrp_visit_phi_node): ... but only for loop PHI nodes.
31921
31922 2010-02-16  Ira Rosen  <irar@il.ibm.com>
31923
31924         PR tree-optimization/43074
31925         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
31926         * tree-vect-loop.c (vect_analyze_loop_operations): Add
31927         vectorizable cycles in hybrid SLP check.
31928         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
31929
31930 2010-02-16  Richard Guenther  <rguenther@suse.de>
31931
31932         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
31933         (true_dependence): If memrefs_conflict_p computes must-alias
31934         trust it.  Move TBAA check after offset-based disambiguation.
31935         (canon_true_dependence): Likewise.
31936
31937 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
31938
31939         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
31940         * doc/invoke.texi: Document it.
31941         * var-tracking.c: Include toplev.h and params.h.
31942         (vt_find_locations): Return bool indicating success.  Compute
31943         hash sizes unconditionally.  Check new parameter, report.
31944         (variable_tracking_main_1): Check vt_find_locations results and
31945         retry.  Renamed from...
31946         (variable_tracking_main): ... this.  New wrapper to preserve
31947         flag_var_tracking_assignments.
31948         * Makefile.in (var-tracking.o): Adjust dependencies.
31949
31950 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
31951             Jakub Jelinek  <jakub@redhat.com>
31952
31953         PR target/42854
31954         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
31955         if weak_import attribute is present.
31956         * config/darwin.c (machopic_select_section): Likewise.
31957
31958 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
31959
31960         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
31961         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
31962         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
31963         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
31964
31965         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
31966         types.
31967
31968         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31969         Fix argument types.
31970
31971         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
31972         Rewrite text to refer to the names.
31973
31974 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
31975
31976         * config/i386/i386-builtin-types.def
31977         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
31978         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
31979         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
31980         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
31981         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
31982         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
31983         IX86_BUILTIN_VPERMIL2PS256.
31984         (MULTI_ARG_4_DF2_DI_I): Defined.
31985         (MULTI_ARG_4_DF2_DI_I1): Defined.
31986         (MULTI_ARG_4_SF2_SI_I): Defined.
31987         (MULTI_ARG_4_SF2_SI_I1): Defined.
31988         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
31989         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
31990         __builtin_ia32_vpermil2ps256.
31991         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31992         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31993         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
31994         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31995         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31996         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
31997         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
31998         CODE_FOR_xop_vpermil2v8sf3.
31999         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
32000         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
32001         * config/i386/xopintrin.h (_mm_permute2_pd): New.
32002         (_mm256_permute2_pd): New.
32003         (_mm_permute2_ps): New.
32004         (_mm256_permute2_ps): New.
32005
32006 2010-02-15  Nick Clifton  <nickc@redhat.com>
32007
32008         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
32009         boolean parameters.  Use emit_jump_insn when emitting a pop
32010         instruction containing a return insn.
32011         (push): Use 'true' rather than '1' as second parameter to F.
32012         (h8300_expand_prologue): Likewise.
32013         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
32014         (h8300_expand_epilogue): Likewise.
32015
32016 2010-02-15  Richard Guenther  <rguenther@suse.de>
32017
32018         PR middle-end/43068
32019         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
32020         if that is zero.
32021
32022 2010-02-15  Nick Clifton  <nickc@redhat.com>
32023
32024         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
32025         delta.
32026
32027 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
32028
32029         * intl.c (fake_ngettext): New function.
32030         * intl.h (fake_ngettext): Declare.
32031         (ngettext): Define macro.
32032         * collect2.c (notice_translated): New function.
32033         (main): Use notice_translated and ngettext.
32034         * collect2.h (notice_translated): Declare.
32035
32036 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
32037
32038         * reorg.c (delete_computation): Comment fixes.
32039         * caller-save.c (setup_save_areas): Idem.
32040         * sel-sched-dump.c (dump_lv_set): Idem.
32041         * rtl.def: Idem.
32042
32043 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32044
32045         * config/s390/s390.c (s390_sched_init): New function.
32046         (TARGET_SCHED_INIT): Target hook defined.
32047
32048 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
32049             Jack Howarth  <howarth@bromo.med.uc.edu>
32050             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
32051
32052         PR target/42982
32053         Partial revert of unintended change in fix for PR41605.
32054         * config/darwin.h: Fix typo.
32055         * config/darwin9.h: Same.
32056
32057 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
32058
32059         * c-pch.c (pch_init): Clear v.
32060
32061 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32062
32063         PR middle-end/42930
32064         * graphite-scop-detection.c (graphite_can_represent_scev): Call
32065         graphite_can_represent_init for MULT_EXPR.
32066
32067 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32068
32069         PR middle-end/42914
32070         PR middle-end/42530
32071         * graphite-sese-to-poly.c (remove_phi): New.
32072         (translate_scalar_reduction_to_array): Call remove_phi.
32073
32074 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32075
32076         PR middle-end/42771
32077         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
32078         * graphite-clast-to-gimple.h (gloog): Update declaration.
32079         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
32080         * graphite-poly.h (struct poly_bb): Add missing comments.
32081         (struct scop): Add poly_scop_p field.
32082         (POLY_SCOP_P): New.
32083         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
32084         * graphite.c (graphite_transform_loops): Build the polyhedral
32085         representation for each scop before code generation.
32086         * sese.c (rename_variables_in_operand): Removed.
32087         (rename_variables_in_expr): Return the renamed expression.
32088         (rename_sese_parameters): New.
32089         * sese.h (rename_sese_parameters): Declared.
32090
32091 2010-02-11  Richard Guenther  <rguenther@suse.de>
32092
32093         PR tree-optimization/42998
32094         * tree-ssa-pre.c (create_expression_by_pieces): Treat
32095         POINTER_PLUS_EXPR properly.
32096
32097 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32098             Changpeng Fang  <changpeng.fang@amd.com>
32099
32100         PR middle-end/40886
32101         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
32102         the cost of an IV candidate when the IV is used in a test against zero.
32103
32104         * gcc.dg/tree-ssa/ivopts-3.c: New.
32105
32106 2010-02-11  Richard Guenther  <rguenther@suse.de>
32107
32108         PR lto/41664
32109         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
32110         pointer-vs-decl case by swapping refs.  Handle some cases
32111         of pointer-vs-decl disambiguations more conservatively.
32112         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
32113         to false after expanding.
32114
32115 2010-02-11  Richard Guenther  <rguenther@suse.de>
32116
32117         PR driver/43021
32118         * gcc.c (process_command): Handle LTO file@offset case more
32119         appropriately.
32120
32121 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
32122
32123         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
32124         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
32125         of DEBUG_INSNs.
32126         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
32127
32128         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
32129         if MEM's mode size isn't DWARF2_ADDR_SIZE.
32130         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
32131         Optimize eq/ne comparisons when both arguments are known to be
32132         zero-extended.
32133         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
32134         Don't mask operands unnecessarily if they are known to be already
32135         zero-extended.
32136
32137 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
32138
32139         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
32140         instead of loop.
32141
32142 2010-02-10  Richard Guenther  <rguenther@suse.de>
32143
32144         PR tree-optimization/43017
32145         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
32146         for wrapping signed arithmetic.
32147
32148 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
32149
32150         PR debug/43010
32151         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
32152         if no debug info should be emitted for it.
32153
32154 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
32155
32156         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
32157         note when flag_exceptions is set.
32158
32159 2010-02-10  Duncan Sands  <baldrick@free.fr>
32160
32161         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
32162
32163 2010-02-10  Richard Guenther  <rguenther@suse.de>
32164
32165         PR c/43007
32166         * tree.c (get_unwidened): Handle constants.
32167         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
32168
32169 2010-02-10  Martin Jambor  <mjambor@suse.cz>
32170
32171         PR lto/42985
32172         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
32173         check for variable argument counts independently.
32174
32175 2010-02-10  Christian Bruel  <christian.bruel@st.com>
32176
32177         PR target/42841
32178         * config/sh/sh.c (find_barrier): Increase length for non delayed
32179         conditional branches.
32180
32181 2010-02-10  Christian Bruel  <christian.bruel@st.com>
32182
32183         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
32184
32185 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
32186
32187         * builtins.c (set_builtin_user_assembler_name): Also handle
32188         ffs if int is smaller than word.
32189
32190 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
32191
32192         PR middle-end/42973
32193         * ira-conflicts.c (get_dup): Remove.
32194         (process_reg_shuffles): Add new parameter.  Use it as an
32195         additional guard for copy generation.
32196         (add_insn_allocno_copies): Rewrite.
32197
32198 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
32199
32200         * common.opt (fsched2-use-traces): Preserved for backward
32201         compatibility.
32202         * doc/invoke.texi: Remove the documentation about option
32203         -fsched2-use-traces.
32204         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
32205         flag_sched2_use_traces.
32206         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
32207         the backward compatibility flag section.
32208
32209 2010-02-09  Richard Guenther  <rguenther@suse.de>
32210
32211         PR tree-optimization/43008
32212         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
32213         make HEAP variables initialized from global memory if they
32214         are not known builtin functions.
32215         (find_func_aliases): Adjust.
32216
32217 2010-02-09  Richard Guenther  <rguenther@suse.de>
32218
32219         PR tree-optimization/43000
32220         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
32221         arithmetic manually.
32222
32223 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
32224
32225         PR tree-optimization/42931
32226         * tree-loop-linear.c (try_interchange_loops): Don't call
32227         double_int_mul if estimated_loop_iterations failed.
32228
32229 2010-02-08  Martin Jambor  <mjambor@suse.cz>
32230
32231         PR middle-end/42898
32232         * tree-sra.c (build_accesses_from_assign): Do not mark in
32233         should_scalarize_away_bitmap if stmt has volatile ops.
32234         (sra_modify_assign): Do not process assigns piecemeal if if stmt
32235         has volatile ops.
32236
32237 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
32238
32239         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
32240
32241 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
32242
32243         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
32244         before the pattern.
32245
32246 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
32247
32248         PR middle-end/42946
32249         * df-core.c (df_finish_pass): Change type of saved_flags to int.
32250
32251 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
32252
32253         PR middle-end/42988
32254         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
32255         to unknown_dependence.
32256         (graphite_legal_transform_dr): Handle the unknown_dependence.
32257         (graphite_carried_dependence_level_k): Same.
32258
32259 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
32260
32261         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
32262
32263 2010-02-07  Richard Guenther  <rguenther@suse.de>
32264
32265         PR middle-end/42991
32266         * expr.c (get_inner_reference): Always initialize *pbitsize.
32267
32268 2010-02-07  Richard Guenther  <rguenther@suse.de>
32269
32270         PR middle-end/42956
32271         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
32272         new ARRAY_REFs on variable size element or minimal index arrays.
32273         Complete.
32274         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
32275         gimple_fold_indirect_ref.
32276
32277 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
32278
32279         PR target/42957
32280         * arm.c (arm_override_options): Just return if the user has specified
32281         an invalid fpu name.
32282
32283 2010-02-03  Jason Merrill  <jason@redhat.com>
32284
32285         PR c++/42870
32286         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
32287         i386_pe_maybe_record_exported_symbol.
32288
32289 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
32290
32291         PR target/42924
32292         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32293         (pa_delegitimize_address): New function.
32294
32295 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
32296
32297         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
32298         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
32299
32300 2010-02-05  Richard Guenther  <rguenther@suse.de>
32301
32302         PR lto/42762
32303         * lto-streamer-in.c (get_resolution): Deal with references
32304         to undefined functions.
32305
32306 2010-02-05  Richard Guenther  <rguenther@suse.de>
32307
32308         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
32309         (fold_const_aggregate_ref): Likewise.
32310         (ccp_fold_stmt): Substitute loads.
32311         (maybe_fold_reference): Verify types before substituting.
32312         Unshare properly.
32313         (fold_gimple_assign): Unshare properly.
32314         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
32315
32316 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
32317
32318         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
32319         for rs6000_gen_cell_microcode.
32320
32321 2010-02-04  Richard Guenther  <rguenther@suse.de>
32322
32323         PR rtl-optimization/42952
32324         * dse.c (const_or_frame_p): Remove MEM handling.
32325
32326 2010-02-04  Nick Clifton  <nickc@redhat.com>
32327
32328         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
32329         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32330         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
32331         (mn10300_asm_output_mi_thunk): New function.
32332         (mn10300_can_output_mu_thunk): New function.
32333         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
32334         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
32335         (FUNCTION_ARG): Delete incorrect comment.
32336
32337 2010-02-03  Jason Merrill  <jason@redhat.com>
32338
32339         PR c++/40138
32340         * fold-const.c (operand_equal_p): Handle erroneous types.
32341
32342 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
32343
32344         * config/h8300/h8300.md (can_delay): Fix attibute condition.
32345
32346 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
32347
32348         PR rtl-optimization/42941
32349         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
32350         of xmalloc.
32351
32352 2010-02-03  Jason Merrill  <jason@redhat.com>
32353
32354         PR c++/35652
32355         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
32356
32357 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
32358
32359         PR debug/42896
32360         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
32361         (cselib_reset_table): Renamed from...
32362         (cselib_reset_table_with_next_value): ... this.
32363         (cselib_get_next_uid): Renamed from...
32364         (cselib_get_next_unknown_value): ... this.
32365         * cselib.c (next_uid): Renamed from...
32366         (next_unknown_value): ... this.
32367         (cselib_clear_table): Adjust.
32368         (cselib_reset_table): Adjust.  Renamed from...
32369         (cselib_reset_table_with_next_value): ... this.
32370         (cselib_get_next_uid): Adjust.  Renamed from...
32371         (cselib_get_next_unknown_value): ... this.
32372         (get_value_hash): Use hash.
32373         (cselib_hash_rtx): Likewise.
32374         (new_cselib_val): Adjust.  Set and dump uid.
32375         (cselib_lookup_mem): Pass next_uid as hash.
32376         (cselib_subst_to_values): Likewise.
32377         (cselib_log_lookup): Dump uid.
32378         (cselib_lookup): Pass next_uid as hash.  Adjust.
32379         (cselib_process_insn): Adjust.
32380         (cselib_init): Initialize next_uid.
32381         (cselib_finish): Adjust.
32382         (dump_cselib_table): Likewise.
32383         * dse.c (canon_address): Dump value uid.
32384         * print-rtl.c (print_rtx): Print value uid.
32385         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
32386         (dvuid): New type.
32387         (dv_uid): New function, sort of renamed from...
32388         (dv_htab_hash): ... this, reimplemented in terms of it and...
32389         (dv_uid2hash): ... this.  New.
32390         (variable_htab_eq): Drop excess assertions.
32391         (tie_break_pointers): Removed.
32392         (canon_value_cmp): Compare uids.
32393         (variable_post_merge_New_vals): Print uids.
32394         (vt_add_function_parameters): Adjust.
32395         (vt_initialize): Reset table.  Adjust.
32396
32397 2010-02-03  Richard Guenther  <rguenther@suse.de>
32398
32399         PR tree-optimization/42944
32400         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
32401         (call_may_clobber_ref_p_1): Likewise.  Properly handle
32402         malloc and calloc clobbering errno.
32403
32404 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
32405
32406         * doc/invoke.texi: Fix name of sched1 dump.
32407
32408         * opts.c (decode_options): Set flag_tree_switch_conversion
32409         only conditionally on optimize >= 2.
32410
32411         * gcse.c: Assorted comment fixes in pass description.
32412
32413 2010-02-03  Anthony Green  <green@moxielogic.com>
32414
32415         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
32416         nop padding in order to maintain alignment of storage location of
32417         target function address.
32418         (moxie_trampoline_init): Store target function address at newly
32419         aligned location.
32420         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
32421         to 32.
32422         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
32423
32424 2010-02-03  Richard Guenther  <rguenther@suse.de>
32425
32426         PR middle-end/42927
32427         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
32428
32429 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32430
32431         * config.gcc: Reenable check for obsolete targets.
32432         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
32433         mips-sgi-irix6.[0-4]*.
32434
32435 2010-02-02  Nick Clifton  <nickc@redhat.com>
32436
32437         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
32438         constant size of 4 as being the same as 0.
32439         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
32440         can take values in the range 0..4.
32441
32442 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
32443
32444         PR java/41991
32445         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
32446         as _darwin10_Unwind_FindEnclosingFunction().
32447         * libgcc-libsystem.ver: New.
32448
32449 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
32450
32451         PR target/41399
32452         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
32453         implicitly set registers.
32454
32455 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
32456
32457         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
32458         (arm_override_options): Allow automatic selection of the thread
32459         pointer register if thumb2.
32460         (legitimize_pic_address): Improve code sequences for Thumb2.
32461         (arm_call_tls_get_addr): Likewise.
32462         (legitimize_tls_address): Likewise.
32463         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
32464         (pic_load_addr_32bit): ... this.  New named pattern.
32465         * thumb2.md (pic_load_addr_thumb2): Delete.
32466         (pic_load_dot_plus_four): Delete.
32467         (tls_load_dot_plus_four): New named pattern.
32468
32469 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32470
32471         PR libgomp/29986
32472         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
32473         Document fix for TLS bug.
32474
32475 2010-01-31  Richard Guenther  <rguenther@suse.de>
32476
32477         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
32478         conservatively correct.
32479
32480 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32481
32482         PR target/42850
32483         Revert:
32484         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32485
32486         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
32487
32488 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32489
32490         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
32491
32492 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
32493
32494         * config.gcc: Adjust order of makefile fragments for mingw targets.
32495
32496 2010-01-31  Richard Guenther  <rguenther@suse.de>
32497
32498         PR middle-end/42898
32499         * gimplify.c (gimplify_init_constructor): For volatile LHS
32500         initialize a temporary.
32501
32502 2010-01-31  Matthias Klose  <doko@ubuntu.com>
32503
32504         * configure.ac: Fix __stack_chk_fail check for cross builds configured
32505         --with-headers
32506         * configure: Regenerate.
32507
32508 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
32509
32510         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32511         the same alias set and their sizes different constantness.
32512         (aliasing_component_refs_p): Revert 2009-10-24 change.
32513
32514 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32515
32516         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
32517         unused.
32518
32519 2010-01-29  Richard Guenther  <rguenther@suse.de>
32520
32521         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
32522         Assert we successfully updated the call.
32523
32524 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
32525
32526         PR rtl-optimization/42889
32527         * df.h (df_set_bb_dirty_nonlr): New prototype.
32528         * df-core.c (df_set_bb_dirty_nonlr): New function.
32529         * df-scan.c (df_insn_rescan): Call it instead of
32530         df_set_bb_dirty for DEBUG_INSNs.
32531
32532 2010-01-29  Richard Guenther  <rguenther@suse.de>
32533
32534         PR middle-end/37448
32535         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
32536         quadratic behavior in most cases.
32537
32538 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
32539
32540         PR target/42891
32541         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
32542         in the call to gen_x86_movsicc_0_m1.
32543
32544 2010-01-28  Richard Guenther  <rguenther@suse.de>
32545
32546         PR tree-optimization/42871
32547         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
32548
32549 2010-01-28  Richard Guenther  <rguenther@suse.de>
32550
32551         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
32552         into call arguments.
32553
32554 2010-01-28  Richard Guenther  <rguenther@suse.de>
32555
32556         PR middle-end/42883
32557         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
32558         the forwarder if the destination is an EH landing pad.
32559
32560 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
32561
32562         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
32563         block list passed to gimple_duplicate_sese_tail.
32564         (parallelize_loops): Avoid parallelization when the function
32565         has_nonlocal_label.
32566         Avoid parallelization when the preheader is IRREDUCIBLE.
32567         Try to optimize when estimated_loop_iterations_int is unresolved.
32568         Add the loop's location to the dump file.
32569         * tree-cfg.c (add_phi_args_after_redirect): Remove.
32570         (gimple_duplicate_sese_tail): Remove the check for the latch.
32571         Redirect nexits to the exit block.
32572         Remove handling of the incoming edges to the latch.
32573         Redirect the backedge from the copied latch to the exit bb.
32574
32575 2010-01-28  Michael Matz  <matz@suse.de>
32576
32577         PR target/42881
32578         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
32579         Wrap force_reg into a sequence, emit it before user.
32580
32581 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
32582
32583         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
32584         (arm_rev): New.
32585         (arm_legacy_rev): Likewise.
32586         (thumb_legacy_rev): Likewise.
32587
32588 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
32589
32590         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
32591         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
32592         on MEM's address failed, try avoid_constant_pool_reference and
32593         recurse if it returned something different.
32594         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
32595         address, try avoid_constant_pool_reference and recurse if it
32596         returned something different.
32597         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
32598         address and avoid_constant_pool_reference returned something
32599         different, don't set have_address.
32600
32601 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
32602
32603         PR debug/42861
32604         * var-tracking.c (val_store): Add modified argument, obey it.
32605         Adjust callers.
32606         (count_uses): Move down logging of main.
32607         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
32608         don't need resolution.
32609         (emit_notes_in_bb): Likewise.
32610
32611 2010-01-27  Richard Guenther  <rguenther@suse.de>
32612
32613         PR middle-end/42878
32614         * tree-inline.c (remap_decl): Delay remapping of SSA name
32615         default definitions until we need them.
32616
32617 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
32618
32619         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32620         (rs6000_delegitimize_address): New function.
32621
32622         * config/s390/s390.c (s390_delegitimize_address): Call
32623         delegitimize_mem_from_attrs.
32624
32625         PR middle-end/42874
32626         * tree-inline.c (cannot_copy_type_1): Removed.
32627         (copy_forbidden): Don't forbid copying of functions containing
32628         records/unions with variable length fields.
32629
32630 2010-01-27  Christian Bruel  <christian.bruel@st.com>
32631
32632         Revert:
32633         PR target/42841
32634         * config/sh/sh.c (find_barrier): Increase length for non delayed
32635         conditional branches.
32636
32637 2010-01-27  Matthias Klose  <doko@ubuntu.com>
32638
32639         * configure.ac (gnu-unique-object): Fix ldd version check.
32640         * configure: Regenerate.
32641
32642 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32643
32644         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
32645         HAVE_GNU_AS value.
32646         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
32647         Test for HAVE_GNU_AS value.
32648
32649 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32650
32651         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
32652         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
32653         INT64_TYPE): Define.
32654         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
32655         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
32656         INT_LEAST64_TYPE): Define.
32657         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
32658         UINT_LEAST64_TYPE): Define.
32659         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
32660         INT_FAST64_TYPE): Define.
32661         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
32662         UINT_FAST64_TYPE): Define.
32663         (INTMAX_TYPE, UINTMAX_TYPE): Define.
32664         (INTPTR_TYPE, UINTPTR_TYPE): Define.
32665         (SIG_ATOMIC_TYPE): Define.
32666
32667 2010-01-26  Richard Guenther  <rguenther@suse.de>
32668
32669         * df-scan.c (df_scan_set_bb_info): Remove assert.
32670         (df_insn_rescan_debug_internal): Merge asserts.
32671         (df_install_ref): Likewise.
32672         (df_mark_reg): Use bitmap_set_range.
32673         (df_hard_reg_used_p): Remove assert.
32674         (df_hard_reg_used_count): Likewise.
32675
32676 2010-01-26  Richard Guenther  <rguenther@suse.de>
32677
32678         PR rtl-optimization/42685
32679         * web.c (web_main): Ignore DEBUG_INSNs.
32680
32681 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
32682
32683         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
32684
32685         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
32686         Fix types of fndecl and arglist parameters.
32687
32688 2010-01-26  Richard Guenther  <rguenther@suse.de>
32689
32690         PR middle-end/42806
32691         * tree-eh.c (unsplit_eh): Skip debug insns.
32692
32693 2010-01-26  Richard Guenther  <rguenther@suse.de>
32694
32695         PR tree-optimization/42250
32696         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
32697
32698 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
32699
32700         PR fortran/42866
32701         * omp-low.c (expand_omp_sections): Only use single_pred if
32702         l2_bb is single_pred_p.
32703
32704 2010-01-25  Christian Bruel  <christian.bruel@st.com>
32705
32706         PR target/42841
32707         * config/sh/sh.c (find_barrier): Increase length for non delayed
32708         conditional branches.
32709         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
32710
32711 2010-01-24  David S. Miller  <davem@davemloft.net>
32712
32713         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
32714         define if not using GAS.
32715         * config/sparc/sparc.c (sparc_elf_asm_named_section):
32716         Likewise.  Delete SECTION_MERGE code, which is only applicable
32717         when using GAS.
32718
32719 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
32720
32721         PR c++/42748
32722         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
32723         mangling of va_list in system headers.
32724
32725 2010-01-23  Toon Moene  <toon@moene.org>
32726
32727         * tree-predcom.c (combine_chains): Return NULL, not false.
32728
32729 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
32730
32731         * tree-loop-distribution.c (distribute_loop): Fix declaration and
32732         initialization of variable res to agree with return type.
32733
32734 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
32735
32736         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
32737         * tree-sra.c: Add include of expr.h.
32738
32739 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
32740
32741         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
32742         insert the debug stmt on the single non-EH edge from the stmt.
32743
32744 2010-01-22  Richard Henderson  <rth@redhat.com>
32745
32746         PR tree-opt/42833
32747         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
32748         the RHS until after generate_subtree_copies has insertted its
32749         code before the current statement.
32750
32751 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
32752
32753         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
32754
32755         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
32756
32757 2010-01-21  Martin Jambor  <mjambor@suse.cz>
32758
32759         PR tree-optimization/42585
32760         * tree-sra.c (struct access): New field grp_total_scalarization.
32761         (dump_access): Dump the new field.
32762         (should_scalarize_away_bitmap): New variable.
32763         (cannot_scalarize_away_bitmap): Likewise.
32764         (sra_initialize): Allocate new bitmaps.
32765         (sra_deinitialize): Free new bitmaps.
32766         (create_access_1): New function.
32767         (create_access): Parts moved to create_access_1.
32768         (type_consists_of_records_p): New function.
32769         (completely_scalarize_record): Likewise.
32770         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
32771         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
32772         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
32773         access.
32774         (analyze_all_variable_accesses): Completely scalarize small eligible
32775         records.
32776
32777 2010-01-21  Martin Jambor  <mjambor@suse.cz>
32778
32779         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
32780
32781 2010-01-21  Andrew Haley  <aph@redhat.com>
32782
32783         * gcc.c (process_command): Move lang_specific_driver before
32784         setting cc_libexec_prefix.
32785
32786 2010-01-21  Richard Guenther  <rguenther@suse.de>
32787
32788         PR middle-end/19988
32789         * fold-const.c (negate_expr_p): Pretend only negative
32790         real constants are easily negatable.
32791
32792 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
32793             Jason Merrill  <jason@redhat.com>
32794
32795         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
32796         (TYPE_TRANSPARENT_AGGR): this, for union and record.
32797         * calls.c (initialize argument_information): Handle it.
32798         * c-common.c (handle_transparent_union_attribute): Use new name.
32799         * c-decl.c (finish_struct): Ditto.
32800         * c-typeck.c (type_lists_compatible_p): Ditto.
32801         (convert_for_assignment): Use new name and also handle record.
32802         * function.c (aggregate_value_p): Handle it.
32803         (pass_by_reference): Ditto.
32804         (assign_parm_data_types): Ditto.
32805         * print-tree.c (print_node): Ditto.
32806         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
32807         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
32808         * tree.c (first_field): New fn.
32809
32810 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
32811
32812         PR target/42818
32813         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
32814         even when linking statically, for now.
32815
32816 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
32817
32818         PR debug/42715
32819         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
32820         without a cselib val.
32821         (count_uses): Accept MO_VAL_SET with no val on stores.
32822         (add_stores): Likewise.
32823
32824 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
32825
32826         * var-tracking.c (check_value_val): Add a compile time assertion.
32827         (dv_is_decl_p): Simplify.
32828         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
32829         gcc_assert if ENABLE_CHECKING.
32830
32831 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
32832
32833         PR debug/42782
32834         * var-tracking.c: Include tree-flow.h.
32835         (mem_dies_at_call): New.
32836         (dataflow_set_preserve_mem_locs): Use it.
32837         (dataflow_set_remove_mem_locs): Likewise.
32838         (dump_var): Renamed from dump_variable.  Adjust all callers.
32839         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
32840         * Makefile.in (var-tracking.o): Adjust deps.
32841
32842 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
32843
32844         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
32845
32846 2010-01-20  Richard Guenther  <rguenther@suse.de>
32847
32848         PR tree-optimization/42717
32849         * tree-ssa-dce.c (get_live_post_dom): Remove.
32850         (forward_edge_to_pdom): Take an arbitrary edge to copy
32851         degenerate PHI args from.
32852         (remove_dead_stmt): Use the first post-dominator even if it
32853         does not contain live statements as redirection destination.
32854
32855 2010-01-20  Richard Guenther  <rguenther@suse.de>
32856
32857         * tree-inline.c (estimate_num_insns): Handle EH builtins.
32858
32859 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
32860
32861         * sel-sched.c (create_speculation_check): Remove set but not used
32862         variable twin.
32863         (try_transformation_cache): Remove set but not used variable ds.
32864         (calculate_privileged_insns): Remove set but not used variables
32865         cur_insn and min_spec_insn.
32866         (find_best_expr): Remove set but not used variable avail_n.
32867         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
32868         variable e.
32869         * cgraphunit.c (assemble_thunk): Remove set but not used variable
32870         false_label.
32871         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
32872         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
32873         new_scop_exit_edge.
32874
32875 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
32876
32877         PR bootstrap/42786
32878         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
32879         cpu types.  Add support for *-sse3 cpu types.
32880         (x86_64-*-*): Ditto.
32881
32882 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
32883
32884         PR middle-end/42803
32885         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
32886         argument, call initializer_constant_valid_p_1 instead of
32887         initializer_constant_valid_p, pass CACHE to it, return NULL
32888         immediately if first call returns NULL.
32889         (initializer_constant_valid_p_1): New function.
32890         (initializer_constant_valid_p): Use it.
32891
32892 2010-01-20  Thomas Quinot  <quinot@adacore.com>
32893
32894         * tree.def (PLACEHOLDER_EXPR): Fix comment.
32895
32896 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
32897
32898         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
32899         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
32900         (loc_list_from_tree): Don't handle unsigned division.  Handle
32901         signed modulo using DW_OP_{over,over,div,mul,minus}.
32902         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
32903         modulo instead of signed.
32904
32905 2010-01-20  DJ Delorie  <dj@redhat.com>
32906
32907         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
32908         (Fpa): Pass it
32909         (h8300_emit_stack_adjustment): Propogate it.
32910         (push): Pass it.
32911         (h8300_expand_prologue): Likewise.
32912         (h8300_expand_epilogue): Likewise.
32913
32914 2010-01-19  Michael Matz  <matz@suse.de>
32915
32916         PR tree-optimization/41783
32917         * tree-data-ref.c (toplevel): Include flags.h.
32918         (dump_data_dependence_relation):  Also dump the inputs if the
32919         result will be unknown.
32920         (split_constant_offset_1): Look through some conversions.
32921         * tree-predcom.c (determine_roots_comp): Restart a new chain if
32922         the offset from last element is too large.
32923         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
32924         (reassociate_to_the_same_stmt): Handle vector registers.
32925         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
32926         (e.g. conversions).
32927         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
32928         wide_prolog_niters argument, emit widening instructions.
32929         (vect_do_peeling_for_alignment): Adjust caller, use widened
32930         variant of the iteration cound.
32931         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
32932
32933 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32934
32935         PR target/38697
32936         * config/arm/neon-testgen.m (emit_automatics): New parameter
32937         features. Adjust for Fixed_return_reg feature.
32938         (test_intrinsic): Call emit_automatics with new feature.
32939         * config/arm/neon.ml: Update copyright years.
32940         (features): New Fixed_return_reg feature.
32941         (ops): Update feature for Vget_low.
32942
32943 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
32944
32945         PR tree-optimization/42719
32946         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
32947         stmt uses.
32948
32949         PR debug/42728
32950         * fwprop.c (all_uses_available_at): Return false if def_set dest
32951         is a REG that is used in def_insn.
32952
32953 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
32954
32955         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
32956
32957         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
32958         Add argument names.
32959
32960         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
32961
32962         * target.h (struct gcc_target) <secondary_reload>: Change type
32963         of last argument to secondary_reload_info *.
32964
32965 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
32966
32967         PR target/42774
32968         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
32969         memory references with unaligned offsets.  Remove CQImode handling.
32970         (unaligned_memory_operand): Return 1 for memory references with
32971         unaligned offsets.  Remove CQImode handling.
32972
32973 2010-01-18  Richard Guenther  <rguenther@suse.de>
32974
32975         PR middle-end/39954
32976         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
32977         builtin calls.
32978
32979 2010-01-18  Richard Guenther  <rguenther@suse.de>
32980
32981         PR tree-optimization/42781
32982         * tree-ssa-structalias.c (find_what_var_points_to): Skip
32983         restrict processing only if the original variable was artificial.
32984
32985 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
32986
32987         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
32988         find number of popped argument bytes.
32989
32990         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
32991         Fix the text that describes the return value for invalid insns.
32992
32993         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
32994
32995         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
32996         Clarify what 'cost of the -dependence' is.  Fix quoting.
32997
32998         * toplev.c (default_get_pch_validity): Rename argument to "sz".
32999         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
33000
33001 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
33002
33003         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
33004         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
33005
33006 2010-01-17  Richard Guenther  <rguenther@suse.de>
33007
33008         PR middle-end/42248
33009         * function.c (split_complex_args): Take a VEC to modify.
33010         (assign_parms_augmented_arg_list): Build a VEC instead of
33011         a chain of PARM_DECLs.
33012         (assign_parms_unsplit_complex): Take a VEC of arguments.
33013         Do not fixup unmodified parms.
33014         (assign_parms): Deal with the VEC.
33015         (gimplify_parameters): Likewise.
33016
33017 2010-01-17  Richard Guenther  <rguenther@suse.de>
33018
33019         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
33020         node existence check.
33021         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
33022         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
33023         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
33024         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
33025         (gimple_execute_on_growing_pred): Likewise.
33026
33027 2010-01-17  Richard Guenther  <rguenther@suse.de>
33028
33029         PR tree-optimization/42773
33030         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
33031         (compute_antic_aux): Likewise.
33032         (compute_partial_antic_aux): Likewise.
33033
33034 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
33035
33036         PR debug/42767
33037         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
33038         and US_TRUNCATE.
33039
33040 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
33041
33042         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
33043         appearance.
33044
33045         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
33046         Fix markup for strict argument.
33047
33048         (TARGET_SCHED_REORDER2): Fix argument types.
33049
33050         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
33051         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
33052
33053         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
33054         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
33055
33056         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
33057         Add argument name.
33058
33059         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
33060         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
33061         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
33062         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
33063         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
33064
33065         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
33066
33067         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
33068
33069         (TARGET_ASM_RELOC_RW_MASK): Add return type.
33070         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
33071
33072         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
33073
33074         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
33075         Use prototype.
33076
33077         (TARGET_ASM_NAMED_SECTION): Fix argument list.
33078
33079         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
33080         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
33081
33082         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
33083
33084         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
33085
33086         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
33087         referring to it.  Fix language.
33088
33089         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
33090
33091         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
33092
33093         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
33094
33095         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
33096
33097         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
33098         '@var{stream}.  Remove stray 'and'.
33099
33100         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
33101
33102         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
33103
33104         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
33105
33106         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
33107         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
33108
33109         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
33110         Fix description of return value.
33111         Rename argument "sz" to "len."
33112
33113         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
33114         Clarify meaning of 'true' return value.
33115
33116         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
33117
33118         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
33119         rep_mode versus mode_rep.
33120
33121         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
33122
33123         (TARGET_BUILTIN_DECL): Fix name.
33124
33125         (TARGET_COMMUTATIVE_P): Fix type of first argument.
33126
33127         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
33128
33129         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
33130
33131         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
33132
33133         (TARGET_RELAXED_ORDERING): Use @deftypevr.
33134
33135         (TARGET_GET_DRAP_RTX): Note that this is a hook.
33136         Clarify language.
33137
33138         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
33139         Rename argument tm_fn to md_fn.
33140
33141         (TARGET_OPTION_PRINT): Fix argument list.
33142
33143 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
33144
33145         PR target/42664
33146         * config/i386/i386.c (ix86_fixup_binary_operands):
33147         Revert FMA4 fixup of operands.
33148
33149 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33150
33151         PR other/42525
33152         * Makefile.in (write_entries_to_file, install-plugin):
33153         Use \012 instead of \n with tr.
33154
33155 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
33156
33157         * configure.ac (HAVE_AS_REF): New C macro.
33158         * configure: Regenerate.
33159         * config.in: Likewise.
33160         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
33161         if HAVE_AS_REF.
33162         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
33163         if HAVE_AS_REF.
33164
33165 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
33166
33167         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
33168
33169         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
33170
33171         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
33172
33173         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
33174
33175         (TARGET_IN_SMALL_DATA_P): Fix argument type.
33176
33177         (TARGET_BINDS_LOCAL_P): Fix argument type.
33178
33179         (TARGET_ASM_FILE_END): Use prototype.
33180
33181         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
33182
33183         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
33184
33185         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
33186
33187         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
33188
33189         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
33190         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
33191
33192         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
33193         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
33194
33195         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
33196         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
33197         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
33198         (TARGET_ADDR_SPACE_CONVERT): Likewise.
33199
33200         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
33201
33202         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
33203
33204         (TARGET_INIT_BUILTINS): Use prototype.
33205
33206         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
33207         Put 'const char *' in braces.  Fix parameter types.
33208         (TARGET_INVALID_CONVERSION): Fix parameter types.
33209         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
33210         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
33211
33212         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
33213         Fix argument type.
33214
33215         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
33216
33217         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
33218
33219 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
33220
33221         * doc/tm.texi (TARGET_HELP): Fix return type.
33222
33223         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
33224         in braces.  Fix argument types.
33225
33226         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
33227
33228         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
33229
33230         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
33231
33232         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
33233         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
33234
33235         (TARGET_MANGLE_TYPE): Fix argument types.
33236
33237         (TARGET_IRA_COVER_CLASSES): Use prototype.
33238
33239         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
33240
33241         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
33242
33243         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
33244
33245         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
33246
33247         (TARGET_CALLEE_COPIES): Fix argument types.
33248
33249         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
33250
33251         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
33252
33253         (TARGET_FUNCTION_VALUE): Fix argument types.
33254
33255         (TARGET_RETURN_IN_MSB): Fix argument type.
33256
33257         (TARGET_RETURN_IN_MEMORY): Fix argument types.
33258
33259         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
33260
33261         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
33262
33263         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
33264         agree with return type.
33265
33266         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
33267
33268 2010-01-15  Jing Yu  <jingyu@google.com>
33269
33270         PR rtl-optimization/42691
33271         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
33272         a pseudo to a constant and are merged, and adjust comments.
33273
33274 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
33275
33276         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
33277
33278 2010-01-15  Richard Guenther  <rguenther@suse.de>
33279
33280         PR middle-end/42739
33281         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
33282         labels of computed or non-local gotos to the destination.
33283         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
33284         landing pad label is the first label.
33285
33286 2010-01-15  Richard Guenther  <rguenther@suse.de>
33287
33288         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
33289
33290 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
33291
33292         PR target/42747
33293         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
33294         to allow generation of the xssqrtdp instruction on power7.
33295         (sqrtdf2_fpr): Ditto.
33296
33297 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33298
33299         PR middle-end/42674
33300         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
33301         functions with noreturn attribute.
33302
33303         PR c++/42608
33304         * varasm.c (declare_weak): Add weak attribute to decl if it
33305         doesn't have one already.
33306         (assemble_external): Only add decls to weak_decls if they also
33307         have weak attribute.
33308
33309 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
33310
33311         * var-tracking.c (var_reg_delete): Don't delete the association
33312         between REGs and values or one-part variables if the register
33313         isn't clobbered.
33314
33315 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33316
33317         PR debug/42657
33318         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
33319         because its first operand is a non-localized variable.
33320
33321 2010-01-14  Martin Jambor  <mjambor@suse.cz>
33322
33323         PR tree-optimization/42706
33324         * tree-sra.c (encountered_recursive_call): New variable.
33325         (encountered_unchangable_recursive_call): Likewise.
33326         (sra_initialize): Initialize both new variables.
33327         (callsite_has_enough_arguments_p): New function.
33328         (scan_function): Call decl and flags check only for IPA-SRA, check
33329         whether there is a recursive call and whether it has enough arguments.
33330         (all_callers_have_enough_arguments_p): New function.
33331         (convert_callers): Look for recursive calls only when
33332         encountered_recursive_call is set.
33333         (ipa_early_sra): Bail out either if
33334         !all_callers_have_enough_arguments_p or
33335         encountered_unchangable_recursive_call.
33336
33337 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33338
33339         * sel-sched.c: Add 2010 to copyright years.
33340         * sel-sched-ir.c: Likewise.
33341         * sel-sched-ir.h: Likewise.
33342
33343 2010-01-14  Martin Jambor  <mjambor@suse.cz>
33344
33345         PR tree-optimization/42714
33346         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
33347         constructors specially.
33348
33349 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33350
33351         * config/i386/drivers-i386.c (detect_caches_intel):
33352         Add l2sizekb parameter and fill in.
33353         (host_detect_local_cpu): Add l2sizekb, fill in.
33354         Add Atom small cache heuristic.
33355
33356 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33357
33358         * config/i386/drivers-i386.c (detect_caches_cpuid4):
33359         Add level3 parameter and fill in.
33360         (detect_caches_intel): Handle level3 cache.
33361
33362 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33363
33364         * config/i386/drivers-i386.c (host_detect_local_cpu):
33365         Fix core duo detection.
33366
33367 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33368
33369         * config/i386/drivers-i386.c (host_detect_local_cpu):
33370         Fix Atom detection.
33371
33372 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33373
33374         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
33375         (rs6000_variable_issue_1): this.  Use...
33376         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
33377
33378 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33379
33380         * sel-sched-ir.c (sel_restore_other_notes): Rename to
33381         sel_restore_notes.  Update all callers.  Call reemit_notes
33382         for all insns.
33383
33384 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33385
33386         PR rtl-optimization/42246
33387         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
33388         loops.
33389
33390 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33391
33392         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
33393         all successors is the same as number of successors in current region.
33394
33395 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33396
33397         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
33398         to rename is not separable.  Otherwise check that its LHS is not NULL.
33399
33400 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33401
33402         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
33403
33404 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33405
33406         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
33407         available registers when failed to discover LHS register class.
33408         Fix indentation.  Update comment.
33409
33410 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33411             Alexander Monakov  <amonakov@ispras.ru>
33412
33413         PR rtl-optimization/42389
33414         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
33415         to can_issue_more.
33416         (advance_state_on_fence): Likewise.
33417         (sel_target_adjust_priority): Print debug output only when
33418         sched_verbose >= 4, not 2.
33419         (get_expr_cost): Do not issue all unique insns on the next cycle.
33420         (fill_insns): Initialize can_issue_more from the value saved
33421         with the fence.
33422         * sel-sched-ir.c (flist_add): New parameter issue_more.
33423         Init FENCE_ISSUE_MORE with it.
33424         (merge_fences): Likewise.
33425         (init_fences): Update call to flist_add.
33426         (add_to_fences, add_clean_fence_to_fences)
33427         (add_dirty_fence_to_fences): Likewise.
33428         (move_fence_to_fences): Update call to merge_fences.
33429         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
33430         sched groups.
33431         * sel-sched-ir.h (struct _fence): New field issue_more.
33432         (FENCE_ISSUE_MORE): New accessor macro.
33433
33434 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33435
33436         PR rtl-optimization/42388
33437         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
33438         that have no predecessors nor successors.  Do not call move_bb_info
33439         for empty blocks outside of current region.
33440
33441 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33442
33443         PR rtl-optimization/42294
33444         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
33445         * sel-sched.c (move_exprs_to_boundary): Transitively add all
33446         originators' originators.
33447
33448 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33449
33450         PR rtl-optimization/39453
33451         PR rtl-optimization/42246
33452         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
33453         for pipelining_p.
33454         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
33455
33456 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33457             Alexander Monakov  <amonakov@ispras.ru>
33458
33459         PR middle-end/42245
33460         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
33461         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
33462         argument.  Update all callers.
33463         (tidy_control_flow): ... and here.  Recompute topological order
33464         of basic blocks in region if necessary.
33465         (sel_redirect_edge_and_branch): Change return type.  Return true
33466         if topological order might have been invalidated.
33467         (purge_empty_blocks): Export and move from...
33468         * sel-sched.c (purge_empty_blocks): ... here.
33469         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
33470         (maybe_tidy_empty_bb): Delete prototype.
33471         (purge_empty_blocks): Declare.
33472
33473 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33474
33475         PR rtl-optimization/42249
33476         * sel-sched.c (try_replace_dest_reg): When chosen register
33477         and original register is the same, do not bail out early, but
33478         still check all original insns for validity of replacing destination
33479         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
33480         in this case.
33481
33482 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33483
33484         PR c/42721
33485         Port from no-undefined-overflow branch:
33486         2009-03-09  Richard Guenther  <rguenther@suse.de>
33487
33488         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
33489
33490 2010-01-14  Richard Guenther  <rguenther@suse.de>
33491
33492         PR lto/42665
33493         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
33494
33495 2010-01-14  Ira Rosen  <irar@il.ibm.com>
33496
33497         PR tree-optimization/42709
33498         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
33499         as scalar type in creation of constant vector operand.
33500
33501 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33502
33503         PR testsuite/42414
33504         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
33505         (check-parallel-%): Match `testsuite' directory component only
33506         at the end.
33507
33508 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
33509
33510         PR translation/39521
33511         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
33512         strings with _().
33513
33514 2010-01-13  Richard Guenther  <rguenther@suse.de>
33515
33516         PR tree-optimization/42730
33517         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
33518         offset zero.
33519
33520 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
33521
33522         PR target/pr42542
33523         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
33524         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
33525         them signed.
33526
33527 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
33528
33529         * config/bfin/libgcc-bfin.ver: Regenerate based on current
33530         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
33531         ___umulsi3_highpart.
33532
33533         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
33534         rather than schedule_insns if the pass is enabled.
33535
33536 2010-01-13  Martin Jambor  <mjambor@suse.cz>
33537
33538         PR tree-optimization/42704
33539         * tree-sra.c (sra_modify_assign): Do not delete assignments to
33540         SSA_NAMEs.
33541
33542 2010-01-13  Martin Jambor  <mjambor@suse.cz>
33543
33544         PR tree-optimization/42703
33545         * tree-sra.c (analyze_access_subtree): Check that we can build a
33546         reference to the original data within the aggregate.
33547
33548 2010-01-13  Richard Guenther  <rguenther@suse.de>
33549
33550         PR tree-optimization/42705
33551         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
33552
33553 2010-01-13  Richard Guenther  <rguenther@suse.de>
33554
33555         PR middle-end/42716
33556         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
33557
33558 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
33559
33560         PR debug/41371
33561         * var-tracking.c (values_to_unmark): New variable.
33562         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33563         values_to_unmark vector.  Moved body to...
33564         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
33565         instead queue it into values_to_unmark vector.
33566         (vt_find_locations): Free values_to_unmark vector.
33567
33568 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
33569
33570         * config/s390/s390.c (override_options): Set
33571         default of max-pending-list-length to 256
33572
33573 2010-01-13  Richard Guenther  <rguenther@suse.de>
33574
33575         PR lto/42678
33576         * tree-pass.h (PROP_gimple_lcx): New.
33577         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
33578         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
33579         before the final cleanup_eh.
33580         (dump_properties): Dump PROP_gimple_lcx.
33581         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
33582         (tree_lower_complex_O0): Remove.
33583         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
33584         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
33585         tree_lower_complex, schedule TODO_update_ssa.
33586         * lto-streamer-out.c (output_function): Stream the functions
33587         properties.
33588         * lto-streamer-in.c (input_function): Likewise.
33589         (lto_read_body): Do not override them here.
33590
33591 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
33592
33593         PR c/42708
33594         * c-typeck.c (build_c_cast): Fold value cast to union type before
33595         wrapping it in a CONSTRUCTOR.
33596
33597 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
33598
33599         PR rtl-optimization/42699
33600         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
33601         involved.
33602
33603 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33604
33605         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33606         SUBTARGET_WARN_UNUSED_SPEC): Move ...
33607         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33608         SUBTARGET_WARN_UNUSED_SPEC): ... here
33609         * config/mips/iris5.h (LIBGCC_SPEC): Define.
33610
33611 2010-01-12  Julian Brown  <julian@codesourcery.com>
33612
33613         * config/arm/neon-schedgen.ml (Utils): Don't try to
33614         open missing module.
33615         (find_with_result): New.
33616
33617 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
33618
33619         PR debug/42662
33620         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
33621         sharing when canonicalizing ({lt,ge}u (plus a b) b).
33622
33623         PR tree-optimization/42645
33624         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
33625         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
33626         decl_map, set processing_debug_stmt to -1 and return name without
33627         any remapping.
33628
33629 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
33630
33631         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
33632         binutils version, and reword target configuration description.
33633
33634 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
33635
33636         * config/avr/avr.h (LINKER_NAME): Remove.
33637
33638 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
33639
33640         PR target/42416
33641         * config/rs6000/rs6000.c (rs6000_override_options): On targets
33642         that support VSX, warn for -mno-altivec if vsx is not disabled,
33643         and disable vsx.
33644
33645 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
33646             Shujing Zhao  <pearly.zhao@oracle.com>
33647
33648         PR translation/42469
33649         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
33650         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
33651         character between option name and help text.
33652         * c.opt (imultilib): Likewise.
33653
33654 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
33655
33656         * lto-streamer-out.c (output_unreferenced_globals): Output static
33657         variables.
33658
33659 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
33660
33661         PR rtl-optimization/42621
33662         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
33663         optimizing for size.
33664         (duplicate_computed_gotos): Remove now-redundant check.
33665
33666 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
33667
33668         PR target/37454
33669         * configure.ac: Save and restore LDFLAGS and LIBS
33670         * configure: Regenerate.
33671
33672 2010-01-10  Richard Guenther  <rguenther@suse.de>
33673
33674         PR middle-end/42667
33675         * builtins.c (fold_builtin_strlen): Add type argument and
33676         convert the resulting length to it.
33677         (fold_builtin_1): Adjust.
33678
33679 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
33680
33681         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
33682         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
33683         1 insn.
33684         (num_insns_constant_wide): Adjust for that change.
33685
33686 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33687
33688         PR debug/42631
33689         * web.c (union_defs): Add used argument, to combine uses of
33690         uninitialized regs.
33691         (entry_register): Adjust type and tests of used argument.
33692         (web_main): Widen used for new use.  Pass it to union_defs.
33693         * df.h (union_defs): Adjust prototype.
33694
33695 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33696
33697         PR debug/42630
33698         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
33699         uses in new incoming argument.  Free body.
33700         (reset_debug_uses_in_loop): New.
33701         (analyze_insn_to_expand_var): Call the latter if the former found
33702         anything.  Fix whitespace.  Reject invalid dest overlaps before
33703         going through all insns in the loop.
33704
33705 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33706
33707         PR debug/42629
33708         * haifa-sched.c (dying_use_p): Debug insns don't count.
33709
33710 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33711
33712         PR middle-end/42363
33713         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
33714         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
33715         (verify_gimple_call): Reject LHS in noreturn calls.
33716
33717 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33718
33719         PR debug/42604
33720         PR debug/42395
33721         * tree-vect-loop-manip.c (adjust_info): New type.
33722         (adjust_vec): New pointer to vector.
33723         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
33724         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
33725         (slpeel_update_phis_for_duplicate_loop): Use them.
33726         (slpeel_update_phi_nodes_for_guard1): Likewise.
33727         (slpeel_update_phi_nodes_for_guard2): Likewise.
33728         (slpeel_tree_peel_loop_to_edge): Likewise.
33729         (vect_update_ivs_after_vectorizer): Likewise.
33730
33731 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33732
33733         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
33734         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
33735
33736 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33737
33738         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
33739         bogus uninitialized warning.
33740
33741 2010-01-09  Richard Guenther  <rguenther@suse.de>
33742
33743         PR middle-end/42512
33744         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
33745         the evolution is compatible with the initial condition.
33746
33747 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
33748
33749         * gcc.c (process_command): Update copyright notice dates.
33750         * gcov.c (print_version): Likewise.
33751         * gcov-dump.c (print_version): Likewise.
33752         * mips-tfile.c (main): Likewise.
33753         * mips-tdump.c (main): Likewise.
33754
33755 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
33756
33757         PR target/41885
33758         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
33759         (rotlhi3): Delete.
33760         (rotlhi3_8): Delete.
33761         (rotlsi3): Delete.
33762         (rotlsi3_8): Delete.
33763         (rotlsi3_16): Delete.
33764         (rotlsi3_24): Delete.
33765         (rotl<mode>3): New.
33766         (*rotw<mode>3): New.
33767         (*rotb<mode>3): New.
33768         * config/avr/avr.c (avr_rotate_bytes): New function.
33769         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
33770
33771 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
33772
33773         PR target/37454
33774         * configure.ac: Modify -rdynamic check.
33775         * configure: Regenerate.
33776
33777 2010-01-08  DJ Delorie  <dj@redhat.com>
33778
33779         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
33780         register popping order.
33781
33782 2010-01-08  Richard Guenther  <rguenther@suse.de>
33783
33784         PR lto/42528
33785         * c.opt (fsigned-char): Also let LTO handle this option.
33786         (funsigned-char): Likewise.
33787
33788 2010-01-07  Richard Guenther  <rguenther@suse.de>
33789
33790         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
33791         (gimple_op): Likewise.
33792         (gimple_op_ptr): Likewise.
33793         (gimple_assign_set_lhs): Remove gcc_assert.
33794         (gimple_assign_set_rhs1): Likewise.
33795         (gimple_assign_set_rhs2): Likewise.
33796         (gimple_call_set_lhs): Likewise.
33797         (gimple_call_set_fn): Likewise.
33798         (gimple_call_set_fndecl): Likewise.
33799         (gimple_call_fndecl): Likewise.
33800         (gimple_call_return_type): Likewise.
33801         (gimple_call_set_chain): Likewise.
33802         (gimple_call_num_args): Likewise.
33803         (gimple_call_set_arg): Likewise.
33804         (gimple_cond_set_code): Likewise.
33805         (gimple_cond_set_lhs): Likewise.
33806         (gimple_cond_set_rhs): Likewise.
33807         (gimple_cond_set_true_label): Likewise.
33808         (gimple_cond_set_false_label): Likewise.
33809         (gimple_label_set_label): Likewise.
33810         (gimple_goto_set_dest): Likewise.
33811         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
33812         (gimple_debug_bind_get_value): Likewise.
33813         (gimple_debug_bind_get_value_ptr): Likewise.
33814         (gimple_debug_bind_set_var): Likewise.
33815         (gimple_debug_bind_set_value): Likewise.
33816         (gimple_debug_bind_reset_value): Likewise.
33817         (gimple_debug_bind_has_value_p): Likewise.
33818         (gimple_return_retval_ptr): Remove gcc_assert.
33819         (gimple_return_retval): Likewise.
33820         (gimple_return_set_retval): Likewise.
33821         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
33822         (safe_referenced_var_iterator): Remove.
33823         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
33824         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
33825         (fill_referenced_var_vec): Remove.
33826         (first_readonly_imm_use): Remove redundant gcc_assert.
33827         (phi_arg_index_from_use): Combine gcc_asserts.
33828         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
33829         (first_imm_use_stmt): Remove redundant gcc_assert.
33830         * tree-cfg.c (verify_gimple_call): Verify function and chain
33831         operands.  Verify arguments.
33832         (verify_types_in_gimple_stmt): Verify condition code and labels.
33833
33834 2010-01-07  Richard Guenther  <rguenther@suse.de>
33835
33836         PR tree-optimization/42641
33837         * sese.c (rename_map_elt_info): Use the SSA name version, do
33838         not hash pointers.
33839
33840 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
33841
33842         PR tree-optimization/42625
33843         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
33844         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
33845
33846 2010-01-07  Duncan Sands  <baldrick@free.fr>
33847
33848         * Makefile.in (PLUGIN_HEADERS): Add version.h.
33849
33850 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
33851
33852         PR target/42511
33853         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
33854         note itself is not function_invariant_p.
33855
33856 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
33857
33858         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
33859         Do not add the DF_NOTE problem.
33860         * store-motion.c (execute_rtl_store_motion): Likewise.
33861
33862 2010-01-07  Martin Jambor  <mjambor@suse.cz>
33863
33864         PR tree-optimization/42157
33865         * tree-sra.c (compare_access_positions): Stabilize sort if both
33866         accesses have integer types, return zero immediately if they are the
33867         same.
33868
33869 2010-01-06  Richard Henderson  <rth@redhat.com>
33870
33871         PR middle-end/41883
33872         * haifa-sched.c (add_to_note_list): Merge into ...
33873         (concat_note_lists): ... here, and ...
33874         (unlink_other_notes, rm_other_notes): Merge into...
33875         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
33876         NOTE_INSN_EPILOGUE_BEG.
33877
33878 2010-01-06  Richard Guenther  <rguenther@suse.de>
33879
33880         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
33881         not inline regular functions into always-inline functions.
33882
33883 2010-01-06  Nick Clifton  <nickc@redhat.com>
33884
33885         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
33886         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
33887         used together.
33888         (OVERRIDE_OPTIONS): Delete.
33889         (OPTIMIZATION_OPTIONS): Define.
33890         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
33891         * config/rx/rx.c (rx_handle_option): Issue an error message if
33892         -mcpu=rx200 and -fpu are used together.
33893         (rx_set_optimization_options): New function.  Issue an error
33894         message if an optimization attribute attempts to reset the FPU/
33895         math optimization pairing.
33896         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
33897         * config/rx/rx.opt: Set the default to 32-bit doubles.
33898         * config/rx/t-rx: Add multilibs for -nofpu option.
33899         * doc/invoke.texi: Update documentation of RX options.
33900
33901 2010-01-06  Richard Guenther  <rguenther@suse.de>
33902
33903         * tree-ssa-pre.c (name_to_id): New global.
33904         (alloc_expression_id): Simplify SSA name handling.
33905         (lookup_expression_id): Likewise.
33906         (init_pre): Zero name_to_id.
33907         (fini_pre): Free it.
33908
33909 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
33910
33911         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
33912
33913 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
33914
33915         PR target/42542
33916         * config/i386/sse.md (smaxv2di3): New.
33917         (umaxv2di3): Likewise.
33918         (sminv2di3): Likewise.
33919         (uminv2di3): Likewise.
33920
33921 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
33922
33923         PR target/42564
33924         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
33925         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
33926         (legitimize_tls_address): Likewise.
33927         (sparc_tls_referenced_p): Likewise.
33928         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
33929         and adjust calls to legitimize_pic_address.
33930         (legitimate_constant_p) Use sparc_tls_referenced_p.
33931         (legitimate_pic_operand_p): Likewise.
33932         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
33933         (sparc_tls_symbol_ref_1): Delete.
33934         (sparc_tls_referenced_p): Make static, recognize specific patterns.
33935         (legitimize_tls_address): Make static, handle CONST patterns.
33936         (legitimize_pic_address): Make static, remove unused parameter and
33937         adjust recursive calls.
33938         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
33939         and adjust call to legitimize_pic_address.
33940         (sparc_output_mi_thunk): Likewise.
33941
33942 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
33943             H.J. Lu  <hongjiu.lu@intel.com>
33944
33945         PR target/42542
33946         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
33947         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
33948         operands to make them signed.
33949
33950         Revert:
33951         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
33952
33953         PR target/42542
33954         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33955         GTU to GT for V4SI and V2DI.
33956
33957         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33958         (umin<mode>3): Removed.
33959         (uminv8hi3): New.
33960         (uminv4si3): Likewise.
33961
33962 2010-01-05  Martin Jambor  <mjambor@suse.cz>
33963
33964         PR tree-optimization/42462
33965         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
33966         current_function_decl to helper functions and macros.
33967
33968 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33969
33970         PR bootstrap/41771
33971         * flags.h: Don't include real.h.
33972         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
33973         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
33974         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
33975         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
33976         * dominance.c: Update copyright.
33977         * gimple.c (walk_gimple_op): Remove inline.
33978         * tree-ssa-reassoc.c: Include real.h.
33979         * Makefile.in (FLAGS_H): Remove $(REAL_H).
33980         (tree-ssa-reassoc.o): Depend on $(REAL_H).
33981
33982 2010-01-05  Nick Clifton  <nickc@redhat.com>
33983
33984         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
33985         register to push into the stack frame when the accumulator has to
33986         be saved during interrupts.
33987
33988 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
33989
33990         * doc/invoke.texi: Remove the documentation about option
33991         -Wunreachable-code.
33992         * common.opt (Wunreachable-code):  Preserved for backward
33993         compatibility.
33994         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
33995         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
33996         the backward compatibility flag section.
33997
33998 2010-01-05  Richard Guenther  <rguenther@suse.de>
33999
34000         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
34001
34002 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
34003
34004         PR other/42611
34005         * cfgexpand.c (expand_one_var): Diagnose too large variables.
34006
34007         PR tree-optimization/42508
34008         * tree-sra.c (convert_callers): Check for recursive call
34009         by comparing cgraph nodes instead of decls.
34010         (modify_function): Call ipa_modify_formal_parameters also
34011         on all same_body aliases.
34012
34013         * cgraphunit.c (cgraph_materialize_all_clones): Compare
34014         cgraph nodes when checking for same_body aliases.
34015
34016 2010-01-05  Richard Guenther  <rguenther@suse.de>
34017
34018         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
34019         allocation and lookup.
34020         (get_or_alloc_expr_for_constant): Likewise.
34021         (phi_translate): Sink allocation.
34022
34023 2010-01-04  Richard Guenther  <rguenther@suse.de>
34024
34025         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
34026         a new entry only if needed.
34027         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
34028         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
34029         hashtable lookup.
34030         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
34031         the result array.
34032         (phi_translate): Handle CONSTANTs early.
34033
34034 2010-01-04  Martin Jambor  <mjambor@suse.cz>
34035
34036         PR tree-optimization/42398
34037         * tree-sra.c (struct access): Removed flag grp_different_types.
34038         (dump_access): Do not dump the removed flag.
34039         (sort_and_splice_var_accesses): Do not set the removed flag.
34040         (sra_modify_expr): Check for type compatibility directly.
34041
34042 2010-01-04  Martin Jambor  <mjambor@suse.cz>
34043
34044         PR tree-optimization/42366
34045         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
34046         edges with variable number of parameters.
34047         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
34048         flag instead of asserting it.
34049         (ipa_read_node_info): Read uses_analysis_done flag.
34050
34051 2010-01-04  Richard Guenther  <rguenther@suse.de>
34052
34053         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
34054         iterative_hash_* as intended.
34055         (vn_reference_compute_hash): Likewise.  Simplify hashing
34056         SSA names.
34057         (vn_reference_lookup_2): Likewise.
34058         (vn_nary_op_compute_hash): Likewise.
34059         (vn_phi_compute_hash): Likewise.
34060         (expressions_equal_p): Remove strange code.
34061         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
34062         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
34063         (bitmap_insert_into_set_1): Take value-id as parameter.
34064         (add_to_value): Pass it.
34065         (bitmap_insert_into_set): Likewise.
34066         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
34067
34068 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
34069
34070         PR driver/42442
34071         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
34072         (do_self_spec): For switches with SWITCH_IGNORE set set also
34073         SWITCH_IGNORE_PERMANENTLY.
34074         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
34075         of SWITCH_IGNORE.
34076
34077 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
34078
34079         * lto-streamer-out.c (output_unreferenced_globals): Output the full
34080         tree of an unreferenced global var.
34081
34082 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34083
34084         PR target/42542
34085         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34086         GTU to GT for V4SI and V2DI.
34087
34088         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34089         (umin<mode>3): Removed.
34090         (uminv8hi3): New.
34091         (uminv4si3): Likewise.
34092
34093 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34094
34095         PR lto/42581
34096         * collect2.c (main): Turn on trace in collect2 if -v is passed
34097         to gcc with LTO.
34098
34099 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
34100
34101         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
34102         description of expression operand.
34103
34104 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
34105
34106         * configure.ac: Add install-html to target_list for Make-hooks.
34107         * configure: Regenerate.
34108         * fortran/Make-lang.in (F95_HTMLFILES): New.
34109         (fortran.html): Use it.
34110         (fortran.install-html): New.
34111         * Makefile.in (install-html): Add lang.install-html.
34112         * java/Make-lang.in (JAVA_HTMLFILES): New.
34113         (java.html): Use it.
34114         (java.install-html): New.
34115         * objc/Make-lang.in (objc.install-html): New.
34116         * objcp/Make-lang.in (obj-c++.install-html): New.
34117         * cp/Make-lang.in (c++.install-html): New.
34118         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
34119         * lto/Make-lang.in (lto.install-html): New.
34120
34121 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
34122
34123         PR lto/42520
34124         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
34125
34126 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
34127
34128         PR rtl-optimization/41862
34129         * store-motion.c (store_killed_in_insn, compute_store_table,
34130         remove_reachable_equiv_notes, replace_store_insn,
34131         build_store_vectors): Ignore all DEBUG_INSNs.
34132
34133 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
34134
34135         PR lto/41564
34136         * common.opt: Add dumpdir.
34137
34138         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
34139         isn't specified.
34140         (option_map): Add --dumpdir.
34141
34142         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
34143
34144         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
34145
34146         * opts.c (decode_options): Try dump_dir_name first if
34147         dump_base_name isn't an absolute path.
34148         (common_handle_option): Handle OPT_dumpdir.
34149
34150         * toplev.c (dump_dir_name): New.
34151         (print_switch_values): Also ignore -dumpdir.
34152
34153         * toplev.h (dump_dir_name): New.
34154
34155 2010-01-03  Richard Guenther  <rguenther@suse.de>
34156
34157         PR tree-optimization/42589
34158         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
34159         double-word expansion of bswap32.
34160
34161 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
34162
34163         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
34164         with BLOCK_FOR_INSN.
34165         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
34166         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
34167         noce_process_if_block): Likewise.
34168         * gcse.c (compute_local_properties, insert_expr_in_table,
34169         insert_set_in_table, canon_list_insert, find_avail_set,
34170         pre_insert_copy_insn): Likewise.
34171
34172         * basic-block.h (BLOCK_NUM): Move from here...
34173         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
34174
34175 2010-01-03  Richard Guenther  <rguenther@suse.de>
34176
34177         PR tree-optimization/42438
34178         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
34179         contains_may_not_return_call flag.
34180         (BB_MAY_NOTRETURN): New.
34181         (valid_in_sets): Trapping nary operations are not valid
34182         in blocks that may not return.
34183         (insert_into_preds_of_block): Remove check for trapping expressions.
34184         (compute_avail): Compute also BB_MAY_NOTRETURN.
34185
34186 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
34187
34188         * doc/invoke.texi: Add 2010 to copyright years.
34189
34190 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
34191
34192         * config/sparc/sparc.c: Fix formatting nits.
34193
34194 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
34195             Alexander Monakov  <amonakov@ispras.ru>
34196
34197         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
34198
34199 2010-01-02  Richard Guenther  <rguenther@suse.de>
34200
34201         PR middle-end/42577
34202         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
34203         (simplify_switch_using_ranges): Mark to be removed edges
34204         as non-executable.
34205
34206 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34207
34208         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34209
34210         * collect2.c (scan_libraries): Add missing argument in call to
34211         scan_prog_file.
34212
34213 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
34214
34215         PR target/42448
34216         * config/alpha/predicates.md (aligned_memory_operand): Return false
34217         for CQImode.
34218         (unaligned_memory_operand): Return true for CQImode.
34219         * config/alpha/alpha.c (get_aligned_mem): Assert that location
34220         doesn not cross aligned SImode word boundary.
34221
34222 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
34223
34224         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
34225         Remove.
34226         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
34227         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
34228
34229 2010-01-02  Richard Guenther  <rguenther@suse.de>
34230
34231         PR lto/41597
34232         * toplev.c (compile_file): Emit LTO marker properly.  Change
34233         it to __gnu_lto_v1.
34234         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
34235
34236 2010-01-01  Richard Guenther  <rguenther@suse.de>
34237
34238         PR debug/42455
34239         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
34240
34241 2010-01-01  Richard Guenther  <rguenther@suse.de>
34242
34243         PR c/42570
34244         * c-decl.c (grokdeclarator): For zero-size arrays force
34245         structural equality checks as layout_type does.
34246
34247 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
34248
34249         * builtins.c: Update copyright to 2010.
34250
34251 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
34252
34253         PR lto/42531
34254         * lto-streamer-out.c (produce_asm): Revert the last change.
34255         (copy_function): Likewise.
34256
34257         * lto-streamer.c (lto_get_section_name): Skip any leading
34258         asterisk in name.
34259
34260 2010-01-01  Richard Guenther  <rguenther@suse.de>
34261
34262         PR middle-end/42559
34263         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
34264         for LABEL_DECLs.
34265
34266 \f
34267 Copyright (C) 2010 Free Software Foundation, Inc.
34268
34269 Copying and distribution of this file, with or without modification,
34270 are permitted in any medium without royalty provided the copyright
34271 notice and this notice are preserved.