OSDN Git Service

* bitmap.c: Delete unnecessary includes.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2
3         * bitmap.c: Delete unnecessary includes.
4         * ebitmap.c: Likewise.
5         * et-forest.c: Likewise.
6         * sreal.c: Likewise.
7         * statistics.c: Likewise.
8         * stringpool.c: Likewise.
9         * double-int.c: Add comment for inclusion of tm.h.
10
11 2010-11-16  Richard Guenther  <rguenther@suse.de>
12
13         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
14         (visit_nary_op): ... this.
15         (visit_binary_op): Remove.
16         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
17
18 2010-11-16  Richard Guenther  <rguenther@suse.de>
19
20         PR middle-end/45172
21         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate
22         edges.
23
24 2010-11-16  Nick Clifton  <nickc@redhat.com>
25
26         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
27         record is packed.
28
29 2010-11-15  Richard Henderson  <rth@redhat.com>
30
31         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
32         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR,
33         DOT_PROD_EXPR.
34
35 2010-11-15  Richard Henderson  <rth@redhat.com>
36
37         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
38         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
39         fma rtx_code.
40
41 2010-11-15  Richard Henderson  <rth@redhat.com>
42
43         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
44         and *mulsubsf4 respectively.  Use fma rtx_code.
45
46 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
47
48         * gcc.c: Include "vec.h".
49         (argbuf): Make into a VEC.
50         (argbuf_length, argbuf_index): Remove.
51         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
52         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
53         compare_debug_dump_opt_spec_function: Use VEC interfaces on
54         argbuf.
55         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
56         (gcc.o): Depend on $(VEC_H).
57
58 2010-11-15  Richard Henderson  <rth@redhat.com>
59
60         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
61         via FMA if unsafe math.
62         (insert_var_expansion_initialization): Handle FMA.
63         (combine_var_copies_in_loop_exit): Likewise.
64
65 2010-11-15  Richard Henderson  <rth@redhat.com>
66
67         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
68         * config/ia64/ia64.opt: Remove mfused-madd.
69         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
70         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
71         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
72         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
73         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
74         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
75         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
76         (fmav2sf4): Rename from fpma; use FMA code.
77         (fmsv2sf4): Rename from fpms; use FMA code.
78         (fnmav2sf4): Rename from *fpnma; use FMA code.
79         * config/ia64/ia64.md (MODE_SDF): New iterator.
80         (suffix): New mode attribute.
81         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
82         (fmssf4): Rename from *fmssf4.
83         (fnmasf4): Rename from *nfmasf4.
84         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
85         (*nmadddf4, *nmadddf4_truncsf): Remove.
86         (fmsdf4): Rename from *fmsdf4.
87         (fnmadf4): Rename from *nfmadf4.
88         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
89         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
90         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
91         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
92         (fmsxf4): Rename from *fmsxf4.
93         (fnmaxf4): Rename from *nfmaxf4.
94         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
95         (*fnmaxf_trunc_<MODE_SDF>): New.
96
97 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
98
99         PR tree-optimization/46461
100         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
101         a gimple val.
102
103 2010-11-15  Ian Lance Taylor  <iant@google.com>
104
105         * godump.c: New file.
106         * common.opt (fdump-go-spec=): New option.
107         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
108         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
109         (TYPE_SYMTAB_IS_DIE): Define.
110         (struct tree_type): Change GTY for symtab field to use
111         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
112         to pick the union field.
113         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
114         (dump_go_spec_init): Declare.
115         * toplev.c (process_options): Handle flag_dump_go_spec.
116         * debug.c: Include "tree.h".
117         (do_nothing_debug_hooks): Set tree_type_symtab_field.
118         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
119         * dbxout.c (dbx_debug_hooks): Likewise.
120         (xcoff_debug_hooks): Likewise.
121         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
122         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
123         SDB_DEBUGGING_INFO is not defined.
124         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
125         (Overall Options): Document -fdump-go-spec.
126         * Makefile.in (OBJS-common): Add godump.o.
127         (debug.o): Add dependency on $(TREE_H).
128         (godump.o): New target.
129         (GTFILES): Add $(srcdir)/godump.c.
130
131 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
132
133         PR debug/46095
134         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
135         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
136         style < 0, add REG_FRAME_RELATED_EXPR.
137
138         PR debug/46387
139         * rtl.h (vt_equate_reg_base_value): New prototype.
140         * alias.c (vt_equate_reg_base_value): New function.
141         * var-tracking.c (vt_init_cfa_base): Use it.
142
143 2010-11-15  Jan Hubicka  <jh@suse.cz>
144             Diego Novillo  <dnovillo@google.com>
145
146         PR lto/41528
147         * doc/lto.texi: Add.
148         * doc/gccint.texi: Add reference to lto.texi.
149         * doc/invoke.texi: Update user documentation for LTO.
150         Move internal flags to lto.texi
151
152 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
153
154         * c-typeck.c (build_unary_op): Use
155         objc_build_incr_expr_for_property_ref to build the pre/post
156         increment/decrement of an Objective-C property ref, and skip the
157         lvalue_or_else check in that case.
158
159 2010-11-15  Martin Jambor  <mjambor@suse.cz>
160
161         PR tree-optimization/46349
162         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
163         (contains_vce_or_bfcref_p): Likewise.
164         (sra_modify_assign): Use them.
165
166 2010-11-15  Richard Guenther  <rguenther@suse.de>
167
168         PR tree-optimization/46467
169         * tree-ssa-structalias.c (do_structure_copy): Properly treat
170         variables without subvars.
171
172 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
173
174         * config/picochip/picochip.c (file header): Picochip name change.
175         * config/picochip/picochip.md (file header): Likewise.
176         * config/picochip/predicates.md (file header): Likewise.
177         * config/picochip/dfa_space.md (file header): Likewise.
178         * config/picochip/dfa_speed.md (file header): Likewise.
179         * config/picochip/picochip.h(file header): Likewise.
180         * config/picochip/constraints.md (file header): Likewise.
181         * config/picochip/picochip-protos.h (file header): Likewise.
182         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
183         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
184         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
185         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
186         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
187         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
188         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
189         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
190         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
191         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
192         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
193         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
194         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
195         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
196
197 2010-11-15  Richard Guenther  <rguenther@suse.de>
198
199         PR bootstrap/46474
200         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
201
202 2010-11-15  Nick Clifton  <nickc@redhat.com>
203
204         * config/stormy16/stormy16.c (direct_return): Do not generate a
205         direct return for interrupt handlers.
206
207 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
208
209         * Makefile.in (tm.texi): Replace with rule for:
210         ($(srcdir)/doc/tm.texi).
211         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
212         $(srcdir)/doc/tm.texi .
213         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
214         tm.texi .
215
216         PR target/46427
217         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
218
219         PR bootstrap/45444
220         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
221         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
222
223         PR target/46432
224         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
225
226 2010-11-15  Richard Guenther  <rguenther@suse.de>
227
228         PR lto/44150
229         * lto-opts.c (lto_write_options): Write -fexceptions even if
230         not set by the user.
231
232 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
233
234         PR c/46462
235         * c-decl.c (declspecs_add_type): Make variables with error types
236         integers.
237         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
238         do not start a declaration before an Objective-C foreach.
239         (c_parser_declaration_or_fndef): Improve recovery after unknown
240         type name.
241         (c_parser_for_statement): Hoist entrance of "foreach context"
242         before ifs, add corresponding reset where it was missing.  Do
243         not set objc_could_be_foreach_context for C.
244
245 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
246
247         PR tree-optimization/45722
248         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
249         this is a reference to a component.
250         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
251         (ipa_note_param_call): Adjust comment.
252
253 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
254
255         * config/mips/mips.c (machine_function): Remove
256         initialized_mips16_gp_pseudo_p.
257         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
258         detect whether a pseudo has already been created.  Unconditionally
259         create a new one if not.
260         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
261         expanding to rtl.  Create a new pseudo otherwise, if allowed.
262
263 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
264
265         PR target/43440
266         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
267         * tm.texi: Regenerated.
268         * output.h (decode_reg_name_and_count): Declare.
269         * varasm.c (decode_reg_name_and_count): New function.
270         (decode_reg_name): Reimplement using decode_reg_name_and_count.
271         * reginfo.c (fix_register): Use decode_reg_name_and_count and
272         iterate over all regs used.
273         * stmt.c (expand_asm_operands): Likewise.
274         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
275         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
276         multiple machine registers.
277
278 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
279
280         * stor-layout.c (place_union_field): Do not put location information
281         on offset expressions.
282         (place_field): Likewise.
283         (finalize_record_size): Likewise on size expressions.
284         (finalize_type_size): Likewise.
285         (layout_type): Likewise.
286
287 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
288
289         PR debug/42889
290         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
291         * df-core.c (df_set_bb_dirty_nonrl): Remove.
292         * df.h (df_set_bb_dirty_nonlr): Likewise.
293
294 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
295
296         * config/mips/mips.md (call_internal): Pass curr_insn to
297         mips_split_call.
298         (call_internal_direct): Ditto.
299         (call_value_internal): Ditto.
300         (call_value_internal_direct): Ditto.
301         (call_value_multiple_internal): Ditto.
302         * config/mips/mips.c (mips_split_call): Do not copy
303         CALL_INSN_FUNCTION_USAGE here.
304
305 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
306
307         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
308         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
309         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
310         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
311         (TUNE_LOONGSON_3A): Define.
312         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
313         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
314         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
315         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
316         (mips_rtx_cost_data): Add Loongson-3A.
317
318 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
319
320         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
321         switches.
322
323 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
324
325         * dwarf2out.c (macinfo_entry): New struct.
326         (output_comp_unit): Emit the section start label here and flag that we
327         will emit an info section.
328         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
329         emitting directly.
330         (dwarf2out_end_source_file): Likewise.
331         (dwarf2out_define): Likewise.
332         (dwarf2out_undef): Likewise.
333         (output_macinfo): New.
334         (dwarf2out_init): Do not emit debug section switches here, allocate a
335         vec for macinfo, when required.
336         (dwarf2out_finish): First switch to debug_abbrev_section here.
337         debug_line_section,  debug_macinfo_section, Likewise.  
338         Check that the pubtypes table has at least one unpruned entry before
339         trying to emit it.
340
341 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
342
343         PR c/20385
344         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
345         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
346         token lookahead.
347         (c_parser_compound_statement_nostart, c_parser_label,
348         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
349         (c_parser_declaration_or_fndef): Detect the case now matched by
350         c_parser_next_tokens_start_declaration, give error and correct it.
351
352 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
353
354         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
355         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
356         with typespec_kind.
357         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
358         (shadow_tag_warned, check_compound_literal_type): Adjust
359         uses of tag_defined_p.
360         (declspecs_add_type): Set typespec_kind.
361         * c-parser.c (c_parser_declaration_or_fndef,
362         c_parser_declspecs, c_parser_struct_declaration,
363         c_parser_parameter_declaration, c_parser_type_name,
364         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
365         of type_seen_p.
366         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
367         tag_defined_p, pass ctsk_firstref through.
368
369 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
370
371         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
372         (struct format_wanted_type): Replace field "name" with "kind", add
373         "format_start" and "format_length".
374         (check_format_info_main): Fill in new fields.  Fill in
375         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
376         after the final NUL outside the while loop.  Do not include
377         width and precision modifiers in the format_start/format_length
378         of the main format.
379         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
380         arguments.  Compute WANTED_TYPE first so that format_type_warning
381         can be called for missing arguments.  Adjust calls to
382         format_type_warning.
383         (format_type_warning): Fetch as much information as possible
384         from format_wanted_type.  Adjust printing now that every
385         warning has a "descr", as well as for missing argument warnings
386         and to include % sign for format specifiers.
387
388 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
389
390         PR rtl-optimization/46204
391         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
392         Update all callers.  Do not recompute topological order.  Adjust
393         fallthrough edges following a degenerate conditional jump.
394
395 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
396
397         * opts-common.c (control_warning_option): New.
398         * opts.c (set_default_handlers): New.
399         (decode_options): Use set_default_handlers and
400         control_warning_option.
401         (common_handle_option): Update call to enable_warning_as_error.
402         (enable_warning_as_error): Take gcc_options parameters.  Use
403         control_warning_option.
404         * opts.h (set_default_handlers, control_warning_option): Declare.
405
406 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
407
408         * Makefile.in (OPTS_H): Define.
409         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
410         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
411         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
412         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
413         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
414         * gcc.c (driver_handle_option): Take location_t parameter.
415         (process_command, do_self_spec): Update calls to
416         read_cmdline_option.
417         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
418         * langhooks.c (lhd_handle_option): Take location_t parameter.
419         * langhooks.h (handle_option): Take location_t parameter.
420         * lto-opts.c (lto_reissue_options): Update call to set_option.
421         * opts-common.c (handle_option): Make static.  Take location_t
422         parameter and pass it to other functions.
423         (handle_generated_option): Take location_t parameter and pass it
424         to other functions.
425         (read_cmdline_option): Take location_t parameter and pass it to
426         other functions.  Use warning_at and error_at.
427         (set_option): Take location_t parameter and pass it to other
428         functions.
429         * opts.c (common_handle_option): Take location_t parameter and
430         pass it to other functions.
431         (enable_warning_as_error): Make static.  Take location_t parameter
432         and pass it to other functions.
433         (lang_handle_option): Take location_t parameter and pass it to
434         other functions.
435         (target_handle_option): Take location_t parameter.
436         (read_cmdline_options, maybe_default_option,
437         maybe_default_options, default_options_optimization,
438         decode_options): Take location_t parameter and pass it to other
439         functions.
440         * opts.h: Include input.h.
441         (struct cl_option_handler_func, decode_options, set_option,
442         handle_generated_option, read_cmdline_option): Take location_t
443         parameters.
444         (handle_option, enable_warning_as_error): Remove.
445         * toplev.c (toplev_main): Update call to decode_options.
446
447 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
448
449         * graphite-cloog-util.c (oppose_constraint,
450         cloog_matrix_to_ppl_constraint,
451         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
452         CLooG isl uses unsigned integers.  This triggered a warning.
453
454 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
455
456         PR target/46438
457         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
458         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
459         (xtensa_function_arg_1): De-constify cum.
460         (xtensa_expand_prologue): Use add_reg_note.
461
462         PR target/46435
463         * config/cris/cris.c (saved_regs_mentioned): Delete.
464         (cris_reload_address_legitimized): Cast itype to enum reload_type.
465         Remove unused variable op0p.
466         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
467         (cris_emit_movem_store): Use add_reg_note.
468
469         PR bootstrap/46456
470         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
471
472 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
473
474         * function.c (expand_function_end): Set the locator of the prologue on
475         the stack checking insns.
476
477 2010-11-12  Richard Henderson  <rth@redhat.com>
478
479         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
480         * config/xtensa/xtensa.opt (mfused-madd): Remove.
481         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
482         MASK_FUSED_MADD.
483         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
484         (fnmasf4): Rename from mulsubsf3; use fma.
485
486 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
487             Richard Henderson  <rth@redhat.com>
488
489         PR target/46428
490         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
491         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
492         comparison.
493
494 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
495
496         * opts-common.c (decode_cmdline_option): Initialize separate_args.
497
498 2010-11-12  Jan Hubicka  <jh@suse.cz>
499
500         * doc/invoke.texi (early-inlining-insns): Update default.
501         * params.def (early-inlining-insns): Default to 10.
502
503 2010-11-12  Olivier Hainque  <hainque@adacore.com>
504
505         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
506
507 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
508
509         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
510         (SUPPORTS_INIT_PRIORITY): Define.
511
512 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
513
514         PR target/46430
515         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
516         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
517         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
518         (avr_device_to_devicelib): Likewise.
519         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
520         into block.
521         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
522         (zero_extendhidi2, zero_extendsidi2): Likewise.
523         * config/avr/avr.c (avr_num_arg_regs): Constify type.
524         (avr_return_addr_rtx): De-constify tem.
525         (avr_rotate_bytes): Move declarations to start of block.
526         Don't use variable length array.
527         Put nested if/else into block.
528
529         PR rtl-optimization/46433
530         * var-tracking.c: Include tm_p.h .
531
532         PR bootstrap/44756
533         PR build/44767
534         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
535         should be unsigned.
536         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
537         * doc/tm.texi: Regenerate.
538
539         PR target/46412
540         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
541         * config/bfin/bfin.c: Include sel-sched.h .
542         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
543         (expand_interrupt_handler_prologue): Remove unused variable insn.
544         (bfin_load_pic_reg): Likewise.
545         (bfin_rtx_costs): Make code / outer_code variables of type
546         enum rtx_code, copied from re-named parameters.
547         (bfin_local_alignment): Change align argument and return type
548         to unsigned.
549         (bfin_adjust_cost): Remove unused variable insn_type.
550         Declare variables at start of block.
551         (struct loop_info): Rename to...
552         (struct loop_info_d).
553         (workaround_rts_anomaly): Change type of icode to int.
554         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
555         with int-typed variable.
556         (note_np_check_stores): Likewise.
557         (trapping_loads_p): Remove unused variable pat.
558         (bfin_expand_binop_builtin): Use expand_normal.
559         (bfin_expand_unop_builtin): Likewise.
560         (bfin_expand_builtin): Likewise.
561         Set tmode before use.
562
563         PR middle-end/44769
564         * final.c (split_double): Don't use BITS_PER_WORD directly in
565         shift count.
566
567         PR target/46431
568         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
569         assignment.
570
571         PR target/46450
572         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
573         Use add_reg_note.
574         (xstormy16_function_arg): Dereference cum.
575         (xstormy16_expand_builtin): Use expand_normal.
576         Change type of omode to enum machine_mode.
577         (combine_bnp): Rename and to and_insn.
578
579         PR target/46437
580         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
581         localreg.
582
583 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
584
585         PR debug/46375
586         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
587
588 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
589
590         PR lto/46376
591         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
592
593 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
594
595         PR c/44782
596         * common.opt (fmax-errors=): New option.
597         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
598         * diagnostic.h (struct diagnostic_context): Add max_errors field.
599         * diagnostic.c (diagnostic_initialize): Initialize it.
600         (diagnostic_action_after_output): Exit if more than max_errors
601         have been output.
602         * doc/invoke.texi (Warning Options): Add -fmax-errors.
603         (-fmax-errors): Document.
604
605 2010-11-11  Richard Henderson  <rth@redhat.com>
606
607         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
608
609 2010-11-11  Richard Henderson  <rth@redhat.com>
610
611         * config/fused-madd.opt: New file.
612         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
613         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
614         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
615         * config/i386/i386.opt (mfused-madd): Remove.
616         * config/i386/sse.md (split_fma): Remove.
617         (split_fms, split_fnma, split_fnms): Remove.
618
619 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
620
621         PR target/46088
622         * config/i386/i386.md (*ashl<mode>3_cconly,
623         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
624         change nonimmediate_operand predicate to register_operand.
625
626 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
627
628         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
629
630 2010-11-11  Jan Hubicka  <jh@suse.cz>
631
632         * opts.c (finish_options): Do not error on -flto-partition alone.
633
634         * doc/invoke.texi (-fwhopr): Merge into -flto section.
635         (-flto-partition): Document none.
636         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
637         * lto-wrapper.c: Update comment.
638         (run_gcc): Update LTO option parsing.
639         * opts.c (finish_options): add support -flto-partition=none
640         (common_handle_option): Remove fwhopr.
641         * common.opt: Turn fwhopr into flto.
642         * collect2.c (main): Update option handling.
643         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
644         * ipa-split.c (execute_split_functions): Remove flag_whopr.
645         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
646         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
647         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
648
649 2010-11-11  Jan Hubicka  <jh@suse.cz>
650
651         PR tree-optimize/40436
652         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
653         (eliminated_by_inlining_prob): ... this one; return 50% probability for
654         SRA.
655         (estimate_function_body_sizes): Update use of eliminated_by_inlining_prob;
656         estimate static function size for 2 instructions.
657
658 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
659
660         PR target/44749
661         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
662         declare.  Change type of argument four to type int.
663         (mep_secondary_input_reload_class): Returns enum reg_class.
664         (mep_secondary_output_reload_class): Likewise.
665         (mep_function_value): Change types of arguments to cont_tree.
666         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
667         argument four to type int.
668         (mep_secondary_input_reload_class): Returns enum reg_class.
669         (mep_secondary_output_reload_class): Likewise.
670         (mep_function_value): Change types of arguments to cont_tree.
671         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
672         mep_regno_reg_class to enum reg_class.
673
674 2010-11-11  Richard Henderson  <rth@redhat.com>
675
676         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
677         that the target has the exact fma operation that we matched.
678
679 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
680
681         * reginfo.c (fix_register): Avoid inserting English word in
682         diagnostic sentence.  Use %qs for quoting and %'.
683
684 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
685
686         * config/i386/driver-i386.c (host_detect_local_cpu): Support
687         Intel processor family 6, model 0x2c.
688
689 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
690
691         * opts.c (warning_as_error_callback,
692         register_warning_as_error_callback): Remove.
693         (enable_warning_as_error): Don't use warning_as_error_callback.
694         * opts.h (register_warning_as_error_callback): Remove.
695
696 2010-11-11  Richard Henderson  <rth@redhat.com>
697
698         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
699         in between the MULT and the PLUS/MINUS.
700
701 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
702
703         PR middle-end/46388
704         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
705         BLKmode mode for it.
706         (expand_expr_real_1): Similarly for op0.
707
708 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
709
710         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
711         Document optional target selector.
712
713 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
714
715         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
716         assembling high and low parts of size if not using 32-bit HWINT; else
717         use DECL_SIZE_UNITS, not DECL_SIZE.
718
719 2010-11-11  Martin Jambor  <mjambor@suse.cz>
720
721         PR tree-optimization/46383
722         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
723         offsets.
724         (compute_complex_ancestor_jump_func): Likewise.
725         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
726
727 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
728
729         PR debug/46150
730         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
731         true if expr1->hash != expr2->hash.
732
733 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
734
735         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
736         diagnostics with lowercase letters.
737         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
738         lowercase letters.
739         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
740         diagnostic.
741         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
742         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
743         lowercase letters.
744         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
745         Remove trailing ' ' from diagnostic.
746         * config/avr/avr.c (print_operand_address): Start diagnostic with
747         a lowercase letter and remove trailing '.'.
748         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
749         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
750         with lowercase letters.  Use %' in diagnostics.  Remove trailing
751         '.' from diagnostics.
752         (bfin_handle_longcall_attribute): Use %' in diagnostic.
753         * config/cris/cris.c (cris_split_movdx,
754         cris_expand_pic_call_address): Start diagnostics with lowercase
755         letters.
756         (cris_asm_output_label_ref): Use %' in diagnostic.
757         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
758         letter.
759         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
760         lowercase letter.
761         * config/darwin-c.c (version_as_macro): Start diagnostic with a
762         lowercase letter.
763         * config/darwin-driver.c (darwin_default_min_version): Use %' in
764         diagnostic.
765         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
766         diagnostic.
767         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
768         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
769         diagnostics.
770         * config/i386/i386.c (ix86_option_override_internal): Write
771         diagnostic as a single sentence without trailing '.'.  Use %' in
772         diagnostics.
773         (ix86_function_sseregparm, classify_argument): Start diagnostics
774         with lowercase letters.
775         (ix86_expand_prologue): Use %' in diagnostic.
776         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
777         diagnostic.
778         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
779         lowercase letter.
780         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
781         diagnostic.
782         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
783         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
784         '`' in help text.
785         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
786         lowercase letter.
787         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
788         lowercase letters.
789         * config/microblaze/microblaze.c (microblaze_handle_option):
790         Remove trailing '.' from diagnostic.
791         (print_operand): Start diagnostic with a lowercase letter.
792         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
793         lowercase letters.  Avoid '`' in diagnostics.
794         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
795         lowercase letters.  Avoid '`' in diagnostics.
796         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
797         lowercase letters.  Avoid '`' in diagnostics.
798         * config/picochip/picochip.c (picochip_option_override,
799         picochip_emit_save_register, picochip_function_arg,
800         picochip_output_label, picochip_output_internal_label,
801         picochip_asm_output_opcode, picochip_output_cbranch,
802         picochip_output_compare, picochip_output_branch,
803         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
804         diagnostics. Start diagnostics with lowercase letters.  Use %' in
805         diagnostics.
806         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
807         "SPE" capitalization.  Start diagnostic with a lowercase letter.
808         (rs6000_handle_option): Start diagnostics with lowercase letters.
809         (def_builtin): Remove trailing '.' from diagnostic.
810         (rs6000_savres_routine_name): Start diagnostic with a lowercase
811         letter.
812         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
813         diagnostic.
814         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
815         lowercase letter.
816         * config/s390/s390.c (s390_option_override) Start diagnostics with
817         lowercase letters.  Use %' in diagnostic.
818         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
819         lowercase letters.
820         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
821         diagnostic.
822         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
823         diagnostic.
824         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
825         diagnostic.
826         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
827         * config/spu/spu.c (spu_option_override): Start diagnostics with
828         lowercase letters.  Use %qs for quoting in diagnostics.
829         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
830         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
831         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
832         from diagnostic.
833         * convert.c (convert_to_integer, convert_to_vector): Use %' in
834         diagnostics.
835         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
836         letter and use "cannot" spelling.
837         * expmed.c (extract_fixed_bit_field): Start diagnostic with
838         lowercase letter and format as a single sentence without '.'.
839         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
840         Use %' in diagnostics.
841         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
842         Use %' in diagnostics.
843         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
844         Use %' in diagnostics.
845         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
846         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
847         with lowercase letters and remove tailing '.' and '\n'.
848         * lto-cgraph.c (input_profile_summary): Start diagnostic with
849         lowercase letter and remove trailing '.'.
850         (input_cgraph): Start diagnostics with lowercase letters and
851         remove trailing '\n'.
852         * opts.c (finish_options, common_handle_option): Start diagnostics
853         with lowercase letters and remove trailing '.'.  Fix typo in
854         diagnostic.
855         * passes.c (position_pass): Start diagnostic with lowercase
856         letter. 
857         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
858         register_callback, try_init_one_plugin): Start diagnostics with
859         lowercase letters.
860         * reload1.c (spill_failure): Use %' in diagnostic.
861         (gen_reload): Start diagnostic with a lowercase letter.
862         * stor-layout.c (place_field): Start diagnostic with a lowercase
863         letter.
864         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
865         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
866         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
867         Start diagnostics with lowercase letters, remove trailing '.' and
868         use %' in diagnostics.
869         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
870         (verify_ssa): Don't split diagnostic across two error calls.
871         Spell out "number" and use %' in diagnostic.
872         * value-prof.c (visit_hist, check_counter): Start diagnostics with
873         lowercase letters.
874
875 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
876
877         PR middle-end/46419
878         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
879         (_mm_cvtpu16_ps): Ditto.
880
881 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
882
883         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
884         warn_larger_than, larger_than_size, warn_frame_larger_than,
885         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
886         default_visibility, flag_tls_default): New Variable declarations.
887         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
888         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
889         (v): Declare as Common and document here.
890         * flags.h (default_visibility, flag_generate_lto,
891         warn_larger_than, larger_than_size, warn_frame_larger_than,
892         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
893         flag_shlib, flag_excess_precision_cmdline): Remove.
894         (set_Wstrict_aliasing): Update prototype.
895         * gcc.c (verbose_flag): Remove.
896         (driver_handle_option): Add diagnostic_context parameter.  Don't
897         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
898         incrementing it.
899         * opts-common.c (handle_option): Pass dc to handler.
900         * opts.c (warn_larger_than, larger_than_size,
901         warn_frame_larger_than, frame_larger_than_size,
902         default_visibility): Remove.
903         (common_handle_option): Add diagnostic_context parameter.
904         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
905         gcc_options parameters.
906         (lang_handle_option, target_handle_option, read_cmdline_options,
907         decode_options): Add diagnostic_context parameters.
908         (finish_options): Access option state through opts pointer where
909         possible.
910         (common_handle_option): Access option state through opts pointer
911         where possible.  Do not set local static variable verbose.  Do not
912         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
913         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
914         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
915         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
916         OPT_fwhopr_.  Do not explicitly set .opt file variables for
917         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
918         (set_Wstrict_aliasing): Add gcc_options parameter.
919         * opts.h (struct cl_option_handler_func): Add diagnostic_context
920         parameter to handler.
921         (decode_options): Add diagnostic_context parameter.
922         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
923         asm_file_name, flag_generate_lto, flag_gen_aux_info,
924         aux_info_file_name, flag_shlib, flag_tls_default,
925         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
926         (toplev_main): Pass global_dc to decode_options.
927         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
928         aux_info_file_name, asm_file_name): Remove.
929         * tree.h (flag_tls_default): Remove.
930
931 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
932
933         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
934         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
935
936 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
937
938         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
939         (x86_64-*-*): Likewise.
940         * config/i386/cpuid.h: Define TBM bit.
941         * config/i386/driver-i386.c (host_detect_local_cpu): Define
942         and set has_tbm.
943         * config/i386/i386-c.c (ix86_target_macros_internal): Check
944         isa_flag for TBM.
945         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
946         (OPTION_MASK_ISA_TBM_UNSET): New.
947         (ix86_handle_option): Handle -mtbm.
948         (isa_opts): Add -mtbm.
949         (enum pta_flags): Add PTA_TBM.
950         (ix86_option_override_internal): Add TBM support.
951         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
952         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
953         (IX86_BUILTIN_BEXTRI64): Likewise.
954         (bdesc_args): Add TBM intrinsics.
955         (ix86_expand_builtin): Add TBM specific case.
956         * config/i386/i386.h (TARGET_TBM): New for TBM.
957         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
958         (tbm_bextri_<mode>): Likewise.
959         (*tbm_blcfill_<mode>): Likewise.
960         (*tbm_blci_<mode>): Likewise.
961         (*tbm_blcic_<mode>): Likewise.
962         (*tbm_blcmsk_<mode>): Likewise.
963         (*tbm_blcs_<mode>): Likewise.
964         (*tbm_blsfill_<mode>): Likewise.
965         (*tbm_blsic_<mode>): Likewise.
966         (*tbm_t1mskc_<mode>): Likewise.
967         (*tbm_tzmsk_<mode>): Likewise.
968         * config/i386/i386.opt: Add -mtbm.
969         * config/i386/tbmintrin.h (__bextri_u32): New.
970         (__blcfill_u32): Likewise.
971         (__blci_u32): Likewise.
972         (__blcic_u32): Likewise.
973         (__blcmsk_u32): Likewise.
974         (__blcs_u32): Likewise.
975         (__blsfill_u32): Likewise.
976         (__blsic_u32): Likewise.
977         (__t1mskc_u32): Likewise.
978         (__tzmsk_u32): Likewise.
979         (__bextri_u64): Likewise.
980         (__blcfill_u64): Likewise.
981         (__blci_u64): Likewise.
982         (__blcic_u64): Likewise.
983         (__blcmsk_u64): Likewise.
984         (__blcs_u64): Likewise.
985         (__blsfill_u64): Likewise.
986         (__blsic_u64): Likewise.
987         (__t1mskc_u64): Likewise.
988         (__tzmsk_u64): Likewise.
989         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
990         * doc/invoke.texi: Document -mtbm.
991         * doc/extend.texi: Document TBM built-in functions.
992
993 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
994
995         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
996         (x86_64-*-*): Likewise.
997         * config/i386/cpuid.h: Define BMI bit.
998         * config/i386/driver-i386.c (host_detect_local_cpu): Define
999         and set has_bmi.
1000         * config/i386/i386-c.c (ix86_target_macros_internal): Check
1001         isa_flag for BMI.
1002         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
1003         (OPTION_MASK_ISA_BMI_UNSET): New.
1004         (ix86_handle_option): Handle -mbmi.
1005         (isa_opts): Add -mbmi.
1006         (enum pta_flags): Add PTA_BMI.
1007         (ix86_option_override_internal): Add BMI support.
1008         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
1009         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
1010         (IX86_BUILTIN_BEXTR64): Likewise.
1011         (IX86_BUILTIN_CTZS): Likewise.
1012         (bdesc_args): Add BMI intrinsics.
1013         (ix86_expand_args_builtin): Add BMI specific cases.
1014         * config/i386/i386.h (TARGET_BMI): New for BMI.
1015         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
1016         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
1017         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
1018         (UNSPEC_TZCNT): Likewise.
1019         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
1020         (bmi_andn_<mode>): New for BMI.
1021         (bmi_bextr_<mode>): Likewise.
1022         (bmi_blsi_<mode>): Likewise.
1023         (bmi_blsmsk_<mode>): Likewise.
1024         (bmi_blsr_<mode>): Likewise.
1025         * config/i386/i386.opt: Add -mbmi.
1026         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
1027         * config/i386/bmiintrin.h (__lzcnt_u16): New.
1028         (__tzcnt_u16): Likewise.
1029         (__andn_u32): Likewise.
1030         (__bextr_u32): Likewise.
1031         (__blsi_u32): Likewise.
1032         (__blsmsk_u32): Likewise.
1033         (__blsr_u32): Likewise.
1034         (__lzcnt_u32): Likewise.
1035         (__tzcnt_u32): Likewise.
1036         (__andn_u64): Likewise.
1037         (__bextr_u64): Likewise.
1038         (__blsi_u64): Likewise.
1039         (__blsmsk_u64): Likewise.
1040         (__blsr_u64): Likewise.
1041         (__lzcnt_u64): Likewise.
1042         (__tzcnt_u64): Likewise.
1043         * doc/invoke.texi: Document -mbmi and -mno-bmi.
1044         * doc/extend.texi: Document BMI built-in functions.
1045
1046 2010-11-10  Jan Hubicka  <jh@suse.cz>
1047
1048         PR tree-optimize/46228
1049         * doc/invoke.texi (comdat-sharing-probability): Document.
1050         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
1051         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
1052
1053 2010-11-10  Jan Hubicka  <jh@suse.cz>
1054
1055         PR tree-optimize/46228
1056         * cgraph.c (cgraph_propagate_frequency): Fix typo.
1057
1058 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
1059
1060         PR tree-optimization/46414
1061         * tree-inline.c (estimate_move_cost): Check preferred vector
1062         mode for vector type.
1063
1064 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1065
1066         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
1067
1068 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
1069
1070         PR tree-optimization/45971
1071         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
1072         for phi nodes analyzable by scev.
1073
1074 2010-11-10  Richard Guenther  <rguenther@suse.de>
1075
1076         PR tree-optimization/44964
1077         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
1078
1079 2010-11-10  Martin Jambor  <mjambor@suse.cz>
1080
1081         PR tree-optimization/46351
1082         PR tree-optimization/46377
1083         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
1084         aggregate bit-fields.
1085
1086 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
1087
1088         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1089         * doc/tm.texi: Regenerate.
1090         * opts-common.c (tm.h): Don't include.
1091         (target_option_translations): Remove.
1092         (decode_cmdline_options_to_array): Don't handle translating options.
1093         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
1094         * config/darwin-driver.c: Don't condition includes on
1095         CROSS_DIRECTORY_STRUCTURE.
1096         (darwin_default_min_version): Make static.
1097         (darwin_driver_init): New.  Call darwin_default_min_version if not
1098         CROSS_DIRECTORY_STRUCTURE.
1099         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1100         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
1101         (ASM_SPEC): Add %{static}.
1102         (darwin_default_min_version): Don't declare.
1103         (darwin_driver_init): Declare.
1104         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
1105         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
1106         * config/darwin.opt (all_load, allowable_client,
1107         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
1108         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
1109         exported_symbols_list, filelist, findirect-virtual-calls,
1110         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
1111         framework, fterminated-vtables, gfull, gused, image_base, init,
1112         install_name, multi_module, multiply_defined,
1113         multiply_defined_unused, no_dead_strip_inits_and_terms,
1114         seg_addr_table, seg_addr_table_filename, segaddr,
1115         segs_read_only_addr, segs_read_write_addr, single_module,
1116         umbrella, unexported_symbols_list, weak_reference_mismatches,
1117         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
1118         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
1119         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
1120         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
1121         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
1122         (ASM_SPEC): Add %{static}.
1123         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
1124         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1125         (DRIVER_SELF_SPECS): Handle options formerly in
1126         TARGET_OPTION_TRANSLATE_TABLE.
1127         * config/mep/mep.opt (mfar): New.
1128         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1129         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
1130         TARGET_OPTION_TRANSLATE_TABLE.
1131         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
1132         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
1133         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
1134         ffix-and-continue, findirect-data): New.
1135         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
1136         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
1137         (mnofpu): Define mask and use Report here.
1138
1139 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1140
1141         * config/s390/s390.c (s390_emit_prologue): Report the stack
1142         size if -fstack-usage is used.
1143
1144 2010-11-10  Richard Guenther  <rguenther@suse.de>
1145
1146         PR tree-optimization/46398
1147         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
1148
1149 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
1150
1151         PR target/44760
1152         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
1153         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
1154         GP_REG_OR_PSEUDO_STRICT_P.
1155         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
1156         unexpected alternative.
1157         (*movsf_internal): Likewise.
1158         (indirect_jump): Replace call to non-existant function with call to
1159         internal_error.
1160         (tablejump): Likewise.
1161         * config/iq2000/iq2000.c: Include df.h .
1162         (iq2000_function_arg_advance): Use CONST_CAST2.
1163         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
1164         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
1165         a non-zero function address.
1166         (iq2000_initial_elimination_offset): Add gcc_unreachable for
1167         unexpected value of FROM.
1168         (symbolic_expression_p): Delete.
1169         (iq2000_function_value): Constify func.
1170         (expand_one_builtin): Use expand_normal.
1171         (iq2000_print_operand): Don't print VALUE if calculating it failed.
1172
1173         PR rtl-optimization/44764
1174         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
1175
1176         PR target/46407
1177         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
1178         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
1179         with ATTRIBUTE_UNUSED.
1180         (valid_psw_flag): Constify parameter which.
1181         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
1182
1183         PR target/46415
1184         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
1185         (mmix_dbx_register_number): Likewise.
1186         * config/mmix/mmix.c: Include df.h .
1187         (mmix_local_alignment): Change argument basic_align and return type
1188         to unsigned.
1189         (mmix_dbx_register_number): Change argument and return type to
1190         unsigned.
1191         (mmix_expand_prologue): Use add_reg_note.
1192
1193         PR target/46417
1194         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
1195         (spu_split_store): Use aform.
1196         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
1197
1198 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1199
1200         PR/46268
1201         * doc/gty.texi (GTY Options): Clarify that variable_size produces
1202         allocators taking size in bytes, compare with length option.  Add
1203         size calculation example.
1204         (Invoking the garbage collector): Ensure that sentences are
1205         followed by two spaces.  Describe that pointer fields must be
1206         initialized at ggc_collect call.
1207         (Troubleshooting): New section.
1208
1209 2010-11-09  Jan Hubicka  <jh@suse.cz>
1210
1211         PR tree-optimization/40436
1212         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
1213         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
1214         normal instructions; be sure bultin is not implemented in this file;
1215         compute non-zero return cost.
1216         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
1217         * tree-inline.h (eni_weights_d): Add return cost.
1218
1219 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
1220
1221         * c-parser.c (c_parser_struct_declaration): Handle declaration
1222         specifiers followed by CPP_CLOSE_BRACE.
1223
1224 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
1225
1226         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
1227         split occurs before reload, and we allocate memory at the time of
1228         the split, not during expansion.  Add attributes.
1229         (floatsi<mode>2_lfiwax_mem): Ditto.
1230         (floatunssi<mode>2_lfiwzx): Ditto.
1231         (floatunssi<mode>2_lfiwzx_mem): Ditto.
1232         (floatsidf2): Ditto.
1233         (floatunssisf2): Ditto.
1234         (floatunssidf2): Ditto.
1235         (fix_trunc<mode>si2): Ditto.
1236         (fix_trunc<mode>si2_stfiwx): Ditto.
1237         (fix_trunc<mode>si2_internal): Ditto.
1238         (fix_trunc<mode>si2): Ditto.
1239         (fix_trunc<mode>di2): Ditto.
1240         (fixuns_trunc<mode>si2_stfiwx): Ditto.
1241         (floatsisf2): Ditto.
1242         (floatdidf2_mem): Ditto.
1243         (floatunsdidf2_mem): Ditto.
1244         (floatunsdidf2): Ditto.
1245         (floatdisf2_internal1): Ditto.
1246         (floatdisf2_mem): Ditto.
1247         (floatunsdisf2_mem): Ditto.
1248         (floatsi<mode>2_lfiwax_mem2): Delete.
1249         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
1250         (fix_trunc<mode>si2_mem): Ditto.
1251         (fixuns_trunc<mode>si2_mem): Ditto.
1252         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
1253         type operations to reduce copying the values to multiple memory slots.
1254         (roundu32<mode>2_fprs): Ditto.
1255
1256         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
1257         PRE_INC, PRE_DEC, PRE_MODIFY.
1258         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
1259
1260         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
1261         Delete prototype.
1262
1263 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1264
1265         PR target/43808
1266         * cfgexpand.c (partition_stack_vars): Call
1267         update_alias_info_with_stack_vars unconditionally.
1268         (update_alias_info_with_stack_vars): Allow unused
1269         unreferenced vars when not optimizing.
1270
1271 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
1272
1273         PR tree-optimization/46036
1274         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
1275         add_to_dst_predicate_list.
1276
1277 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1278
1279         PR debug/46171
1280         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
1281         earlier.
1282         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
1283         argument, call dead_debug_reset when adding REG_UNUSED note.
1284         (dead_debug_reset): New function.
1285         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
1286         df_create_unused_note callers.
1287
1288 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
1289
1290         * config/fr30/fr30.c: Include "df.h".
1291
1292 2010-11-09  Richard Guenther  <rguenther@suse.de>
1293
1294         PR tree-optimization/46355
1295         * tree-loop-distribution.c (tree_loop_distribution): Do not
1296         distribute loops without a single exit.
1297
1298 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1299
1300         PR rtl-optimization/46237
1301         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
1302         saved hard regs if they might get partially clobbered.
1303
1304 2010-11-09  Paul Koning  <ni1d@arrl.net>
1305
1306         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
1307
1308 2010-11-09  Richard Guenther  <rguenther@suse.de>
1309
1310         PR tree-optimization/46177
1311         * tree-loop-distribution.c (prop_phis): Remove.
1312         (generate_builtin): Re-use the old loop exit edge to avoid
1313         needing to update PHI nodes.
1314
1315 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
1316
1317         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
1318         type of args_size to unsigned HOST_WIDE_INT.
1319
1320         PR target/44755
1321         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
1322         * config/t-pnt16-warn: New file.
1323         * config/picochip/picochip.c (picochip_emit_stack_allocate):
1324         Use add_reg_note.
1325         (picochip_emit_save_register): Likewise.
1326         (picochip_emit_restore_register): Remove variable insn.
1327         (picochip_legitimize_address): Don't use C++ style comments.
1328         (picochip_legitimize_reload_address): Likewise.
1329         (reorder_var_tracking_notes): Remove variable vliw_start.
1330         (picochip_reorg): Cast first arguemnt to emit_note_after to
1331         enum insn_note.
1332         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
1333         (picochip_expand_builtin_3op): Likewise.
1334         (picochip_expand_builtin_2opvoid): Likewise.
1335         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
1336         (picochip_expand_array_testport): Likewise.
1337         (picochip_init_builtins): Remove unused variables.
1338         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
1339         to unsigned long, and output it as such.
1340         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
1341         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
1342         (schedType): Cast result of picochip_schedule_type to
1343         enum attr_schedType.
1344
1345         PR target/44759
1346         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
1347         conditional to type of S.
1348         (mn10300_function_arg): Remove unused variable align.
1349         (mn10300_arg_partial_bytes): Likewise.
1350         * config/mn10300/mn10300.md (attribute cpu): Cast value to
1351         enum attr_cpu.
1352
1353 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1354
1355         PR bootstrap/46392
1356         * gengtype-parse.c (type): Call get_input_file_name to get file name.
1357
1358 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
1359
1360         * tree.h (contains_placeholder_p): Fix comment.
1361         (type_contains_placeholder_p): Adjust comment.
1362         * tree.c (contains_placeholder_p): Fix comment.
1363         (type_contains_placeholder_1): Do not recurse on pointed-to types and
1364         adjust comment.
1365         (type_contains_placeholder_p): Add comment.
1366
1367 2010-11-09  Paul Koning  <ni1d@arrl.net>
1368
1369         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
1370         output of byte values.
1371
1372 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
1373
1374         PR middle-end/46360
1375         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
1376         not in SSA mode.
1377
1378 2010-11-09  Richard Guenther  <rguenther@suse.de>
1379
1380         PR middle-end/46221
1381         * varasm.c (compute_visible_aliases): New function.
1382         (remove_unreachable_alias_pairs): Aliases make a target available
1383         even though we reclaimed the cgraph node.
1384         (finish_aliases_1): Likewise.
1385         * Makefile.in (varasm.o): Add pointer-set.h dependency.
1386
1387 2010-11-09  Nick Clifton  <nickc@redhat.com>
1388
1389         * config/mn10300/mn10300-modes.def: New file.
1390
1391 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
1392             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1393
1394         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
1395         (plugin_files, get_file_basename, get_file_realbasename)
1396         (get_file_langdir, error_at_line, gt_files, this_file)
1397         (system_h_file, read_input_list, create_field_all)
1398         (get_file_srcdir_relative_path, get_file_basename)
1399         (get_file_langdir, get_file_gtfilename)
1400         (get_output_file_with_visibility, get_output_file_name)
1401         (struct flist, put_mangled_filename, walk_type)
1402         (put_mangled_filename, finish_root_table, write_roots): Use
1403         input_file-s.
1404         (lang_dir_names, num_lang_dirs): Remove static.
1405         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
1406         (main): Use input_file-s.
1407
1408         * gengtype.h: (struct input_file_st, input_file): New type.
1409         (struct fileloc): Use it.
1410         (gt_files, num_gt_files, this_file, system_h_file)
1411         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
1412         (get_input_file_name): New function.
1413         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
1414         use input_file.
1415         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
1416         (get_output_file_name): Ditto.
1417
1418         * gengtype-lex.l (yybegin): Use input_file.
1419
1420         * gengtype-parse.c (parse_error): Use input_file.
1421
1422 2010-11-08  Xinliang David Li  <davidxl@google.com>
1423
1424         PR tree-optimization/46316
1425         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
1426         * double-int.h (double_int_mul_with_sign): New function.
1427         * double-int.c (double_int_mul_with_sign): New function.
1428
1429 2010-11-08  Paul Koning  <ni1d@arrl.net>
1430
1431         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
1432
1433 2010-11-08  Paul Koning  <ni1d@arrl.net>
1434
1435         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
1436
1437 2010-11-08  Paul Koning  <ni1d@arrl.net>
1438
1439         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
1440         to 8 bits.
1441
1442 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1443
1444         PR target/46378
1445         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1446         turn on ISA 2.04 rounding instructions for power5.
1447
1448         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
1449         not ISA 2.02.
1450
1451         PR target/45585
1452         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
1453         in FPR registers.
1454         (movdi_low_st): Ditto.
1455
1456 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
1457             Richard Henderson  <rth@redhat.com>
1458
1459         PR target/44758
1460         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
1461         (attribute acc_group): Cast value to enum attr_acc_group.
1462         (*movdi_nodouble+6): Use gen_int_mode.
1463         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
1464         if RTX_CODE is defined or not.
1465         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
1466         struct frv_io.
1467         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
1468         (frv_frame_access, frv_expand_prologue): Remove unused variables.
1469         (frv_expand_block_clear): Likewise.
1470         (frv_trampoline_init): Use LCT_NORMAL.
1471         (struct frv_packet_group): New struct, broken out of type of
1472         frv_packet.
1473         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
1474         use cast in loop counter increment.
1475         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
1476         assigning to io->type.
1477         (bdesc_set): Use rtx_code UNKNOWN in initializer.
1478         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
1479         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
1480         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
1481         (frv_read_argument): Use expand_normal.
1482
1483         PR target/44757
1484         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
1485         lm32_legitimate_constant_p.
1486         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
1487         * config/lm32/lm32.c (gen_int_relational): Make new block for
1488         LE / LT / LEU / LTU case.  Declare variables at start of block.
1489         (lm32_block_move_inline): Use XALLOCAVEC.
1490
1491 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1492
1493         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
1494
1495 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
1496
1497         * gengtype (get_output_file_for_structure): Ensure type is union
1498         or struct.
1499         (write_splay_tree_allocator_def): Use
1500         get_output_file_with_visibility.
1501
1502 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1503
1504         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
1505         to defined values in case of an error.
1506         (s390_option_override): Skip further processing if the -march
1507         parameter wasn't recognized.
1508
1509 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
1510
1511         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
1512         assert that REG is a hard register number before using it as an index.
1513
1514         PR bootstrap/46358
1515         * config/i386/i386.c (ix86_expand_split_stack_prologue):
1516         Avoid warnings when HOST_WIDE_INT is 32 bit.
1517
1518 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
1519
1520         PR target/46208
1521         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
1522         (sparc_promote_prototypes): Likewise.
1523         (sparc_promote_function_mode): Promote in 32-bit mode as well.
1524         (sparc_return_in_memory): Remove superfluous parentheses.
1525         (sparc_struct_value_rtx): Fix long lines.
1526         (sparc_function_value_1): Promote in 32-bit mode as well.
1527
1528 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
1529
1530         PR rtl-optimization/45352
1531         * sel-sched.c (find_best_expr): Do not set pneed_stall when
1532         the variable_issue hook is not implemented.
1533         (fill_insns): Remove dead variable stall_iterations.
1534         (init_seqno_1): Force EBB start for resetting sched cycles on any
1535         successor blocks of the rescheduled region.
1536         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
1537         (reset_sched_cycles_in_current_ebb): Add debug printing.
1538         New variable issued_insns.  Advance state when we have issued
1539         issue_rate insns.
1540
1541 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
1542
1543         * gengtype (main): Get here's position using POS_HERE macro for
1544         do*typedef calls.
1545
1546 2010-11-07  Ian Lance Taylor  <iant@google.com>
1547
1548         PR target/46089
1549         * config/i386/i386.c (split_stack_fn_large): New static variable.
1550         (ix86_expand_split_stack_prologue): Handle large model.
1551
1552 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
1553
1554         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
1555         all possible addressing modes.
1556
1557 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
1558
1559         PR tree-optimization/46346
1560         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
1561
1562 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
1563
1564         * config/mips/mips.c: Revert previous patch.
1565         * config/mips/mips.md: Likewise.
1566
1567 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
1568
1569         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
1570         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
1571         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
1572         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
1573         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
1574         to use FMA.
1575         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
1576         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
1577         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
1578         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
1579
1580 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
1581
1582         PR c/43384
1583         * c-decl.c (lookup_label): Labels can only be referenced in a
1584         function's scope.
1585         (store_parm_decls_oldstyle): Skip erroneous parameters.
1586
1587 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
1588
1589         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1590         LIBCALL_VALUE): Remove macros.
1591         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1592         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1593         (fr30_function_value_regno_p, fr30_function_value,
1594         fr30_libcall_value): New functions.
1595
1596 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
1597
1598         PR middle-end/46314
1599         * target.def (generate_internal_label): New asm_out hook.
1600         * output.h (default_generate_internal_label): Declare.
1601         * varasm.c (default_generate_internal_label): Define.
1602
1603 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
1604
1605         PR target/44981
1606         * doc/extend.tex (format): Document NSString extension.
1607         (format_arg): Likewise.
1608         (Darwin Format Checks): New section.
1609         * doc/tm.texi: Document string object hooks (generated).
1610         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
1611         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
1612         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
1613         * target.def (objc_construct_string_object): Rename, amend
1614         documentation.
1615         (string_object_ref_type_p): New hook.
1616         (check_string_object_format_arg): New hook.
1617         * c-parser.c (c_parser_attributes): Allow objective-c class names as
1618         attribute identifiers.
1619         * config/darwin-c.c (darwin_cfstring_ref_p): New.
1620         (darwin_check_cfstring_format_arg): New.
1621         (darwin_additional_format_types): New.
1622         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
1623         (darwin_check_cfstring_format_arg): New.
1624         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
1625         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
1626         (TARGET_N_FORMAT_TYPES): New.
1627         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
1628
1629 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
1630             Pascal Obry  <obry@adacore.com>
1631
1632         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
1633         in 64-bit mode and 17 otherwise.
1634
1635 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1636
1637         PR debug/45939
1638         * var-tracking.c (emit_note_insn_var_location): Make sure that
1639         call related var location notes come before the normal ones.
1640
1641 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1642
1643         PR target/46326
1644         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
1645         in the last change.
1646
1647 2010-11-05  Ian Lance Taylor  <iant@google.com>
1648
1649         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
1650
1651 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1652
1653         PR c/44772
1654         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
1655         pointer_set_contains if DECL_NAME is NULL.
1656
1657 2010-11-05  Ian Lance Taylor  <iant@google.com>
1658
1659         PR target/46084
1660         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
1661         request enough additional space for alignment, and force alignment.
1662
1663 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
1664
1665         * config/i386/i386.c (legitimate_pic_address_disp_p):
1666         Handle UNSPEC_PCREL.
1667         (ix86_legitimate_address_p): Likewise.
1668         (legitimize_pic_address): Likewise.
1669         (output_pic_addr_const): Likewise.
1670         (ix86_delegitimize_address): Likewise.
1671         (ix86_find_base_term): Likewise.
1672         (memory_address_length): Likewise.
1673         (x86_output_mi_thunk): Handle special case x64
1674         for non local binding.
1675         * config/i386/i386.md (UNSPEC_PCREL): New.
1676         * config/i386/winnt.c (i386_pe_binds_local_p):
1677         Allow weak symbol for x64 windows with non-local binding.
1678
1679 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1680
1681         PR target/45670
1682         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
1683         instead of EXPAND_NORMAL for base expansion.
1684
1685 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
1686
1687         * config.gcc: Support --with-fpmath=avx for x86.
1688         * config/i386/avxmath.h: New.
1689         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
1690
1691 2010-11-05  Ian Lance Taylor  <iant@google.com>
1692
1693         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
1694         * gengtype.c (walk_type): Don't recognize descbits option.
1695
1696 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
1697
1698         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
1699         WORD_SWITCH_TAKES_ARG): Remove.
1700         * doc/options.texi (Args): Document.
1701         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
1702         * doc/tm.texi: Regenerate.
1703         * opt-functions.awk (switch_flags): Handle Args.
1704         * opts-common.c: Update comment on tm.h include.
1705         (decode_cmdline_option): Handle options with multiple arguments.
1706         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
1707         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
1708         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1709         CL_COMMON): Update values.
1710         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
1711         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
1712         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
1713         sectobjectsymbols, sectorder, segcreate, segprot): New.
1714
1715 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
1716             Uros Bizjak  <ubizjak@gmail.com>
1717
1718         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
1719         256bit AVX register is used.
1720         (ix86_expand_vector_move_misalign): Likewise.
1721         (ix86_expand_vector_move): Replace use_avx256_p with
1722         VALID_AVX256_REG_MODE.
1723
1724 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
1725
1726          PR target/44750
1727         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
1728         change.  Set $@-warn.o to -Wno-error.
1729
1730         PR bootstrap/44756
1731         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
1732         comparing it to a signed value.
1733
1734         PR middle-end/44766
1735         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
1736         PR bootstrap/44770
1737         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
1738         to i.
1739
1740         PR target/44754
1741         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
1742         (m32c_function_arg).  Add comma between arguments two and three.
1743         (m32c_promote_prototypes): Remove declaration.
1744         (current_function_special_page_vector): Likewise.
1745         (m32c_regno_reg_class): Change return type to enum reg_class.
1746         (m32c_pushm_popm): Use add_reg_note.
1747         (m32c_push_rounding): Change return type to unsigned int.
1748         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
1749         enum reload_type.
1750         (m32c_insert_attributes): Constify variable name.
1751         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
1752         (m32c_prepare_shift): Remove variable lref.
1753         (m32c_expand_movcc): Remove variable cmp.
1754         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
1755         (m32c_compare_redundant): Remove variable op2.
1756         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
1757         (m32c_pragma_memregs): Assign the number to target_memregs.
1758         (m32c_pragma_address): Remove variable var_str.
1759         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
1760         enum reg_class.
1761         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
1762         * config/m32c/bitops.md (andsi3): Add default case to switch.
1763         (iorsi3, xorsi3): Likewise.
1764         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
1765         * config/m32c/jump.md (call, call_value): Likewise.
1766         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
1767         (m32c_regno_reg_class): Likewise.
1768         (current_function_special_page_vector): Declare.
1769
1770 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1771
1772         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
1773
1774         PR tree-optimization/46099
1775         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
1776         if it is NULL and uid wasn't found in the hash table.  Just fold the
1777         result if it is NULL otherwise.  Insert other potentially needed
1778         stmts right before current stmt instead of on the entry edge.
1779         (struct elv_data): Add gsi and reset fields.
1780         (eliminate_local_variables_1): Adjust caller.  If take_address_of
1781         failed for debug stmt, set dta->reset and return.
1782         (eliminate_local_variables_stmt): Change STMT argument for GSI,
1783         pass GSI through to the callback, handle resetting of debug stmts.
1784         (eliminate_local_variables): Adjust caller.  Process debug stmts
1785         in second phase.
1786
1787         PR middle-end/43690
1788         * gimplify.c (gimplify_asm_expr): If a "m" input is a
1789         {pre,post}{in,de}crement, fail.
1790
1791         PR debug/46307
1792         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
1793         * tree-pretty-print.c (dump_generic_node): Likewise.
1794         (op_code_prio): Likewise.
1795         * cfgexpand.c (expand_debug_expr): Likewise.
1796
1797 2010-11-04  Paul Koning  <ni1d@arrl.net>
1798
1799         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
1800         constraints.
1801
1802 2010-11-04  Chao-ying Fu  <fu@mips.com>
1803
1804         * configure.ac: Test assembler support for DSP Rev1 mult.
1805         * configure: Regenerate.
1806         * config.in: Regenerate.
1807         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
1808         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
1809         (CODE_FOR_mips_multu): New define.
1810         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
1811         dspr2_32 to dsp_32.
1812         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
1813         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
1814         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
1815         New define_expand patterns.
1816         * config/mips/constraints.md (ka): Update the constraint to test
1817         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
1818         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
1819         mips_multu): Delete.
1820         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
1821         Change target constraint to "ka".
1822         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
1823         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
1824         Emit the accumulator destination when ISA_HAS_DSP_MULT.
1825         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
1826         Emit the accumulator destination when ISA_HAS_DSP_MULT.
1827         (<u>maddsidi4): Likewise.
1828         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
1829         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
1830
1831 2010-11-04  Paul Koning  <ni1d@arrl.net>
1832
1833         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
1834
1835 2010-11-04  Paul Koning  <ni1d@arrl.net>
1836
1837         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
1838
1839 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
1840
1841         Fixed using the Objective-C 2.0 dot-syntax with class names.
1842         * c-parser.c (c_parser_next_token_starts_declspecs): In
1843         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
1844         (c_parser_next_token_starts_declaration): Same.
1845         (c_parser_postfix_expression): Parse the Objective-C 2.0
1846         dot-syntax with a class name.
1847
1848 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
1849
1850         * final.c (compute_alignments): Compute/free loop info all the time.
1851         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
1852         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
1853         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
1854         * config/rs6000/rs6000.c (cfgloop.h): Include.
1855         (can_override_loop_align): New.
1856         (rs6000_option_override_internal): Set it.
1857         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
1858         (rs6000_loop_align): New function.
1859         (rs6000_loop_align_max_skip): Likewise.
1860
1861 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1862
1863         PR driver/45703
1864         * collect2.c (main): Print --help output to stdout.  Do not
1865         exit right away, so ld --help is appended.  Add empty lines
1866         to separate output suitably.
1867
1868 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
1869
1870         PR tree-optimization/46233
1871         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
1872         after calling analyze_function, not before.
1873
1874         PR target/46234
1875         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
1876         instead of build_va_arg_indirect_ref.
1877         * config/spu/spu.c (spu_va_start): Likewise.
1878         * config/s390/s390.c (s390_va_start): Likewise.
1879
1880 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
1881
1882         PR middle-end/46292
1883         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
1884         if the innermode is not vector mode, determine the mode of a subreg
1885         by using mode_for_size of inner_size.
1886
1887 2010-11-04  Richard Guenther  <rguenther@suse.de>
1888
1889         PR rtl-optimization/46183
1890         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
1891         (execute_rtl_pre): Likewise.
1892         (execute_rtl_hoist): Likewise.
1893
1894 2010-11-04  Richard Guenther  <rguenther@suse.de>
1895
1896         PR tree-optimization/46068
1897         * ipa-split.c (consider_split): Remove gcc_unreachable.
1898
1899 2010-11-04  Richard Guenther  <rguenther@suse.de>
1900
1901         * tree-nested.c (build_addr): Use build_fold_addr_expr.
1902
1903 2010-11-04  Richard Guenther  <rguenther@suse.de>
1904
1905         PR tree-optimization/45991
1906         * gimplify.c (force_gimple_operand_1): Use the provded test
1907         function in the initial test.
1908
1909 2010-11-04  Jeff Law  <law@redhat.com>
1910
1911         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
1912         of readonly memory equivalances for const/pure calls.
1913
1914 2010-11-04  Richard Guenther  <rguenther@suse.de>
1915
1916         PR tree-optimization/45733
1917         * tree-vect-stmts.c (reverse_vec_elements): Honor the
1918         permute builtins function return type.
1919
1920 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
1921
1922         PR middle-end/44765
1923         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
1924         as an index, check it is not INVALID_REGNUM.
1925
1926         PR bootstrap/44756
1927         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
1928         unsignedp.
1929         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
1930
1931         PR bootstrap/44756
1932         * function.c (thread_prologue_and_epilogue_insns): Add
1933         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
1934
1935         PR bootstrap/44756
1936         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
1937
1938         PR target/44750
1939         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
1940         (pdp11_preferred_reload_class): Rename class to rclass.
1941         (pdp11_preferred_output_reload_class): Likewise.
1942         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
1943         ALL_COMPILERFLAGS .
1944         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
1945
1946         PR bootstrap/44756
1947         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
1948         iteration variables to enum machine_mode.
1949
1950         PR target/44751
1951         * config/h8300/h8300.c: Include df.h.
1952         (push, pop): Use add_reg_note.
1953         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
1954         (compute_a_shift_cc): Likewise.
1955         (expand_a_shift): Argument code has type enum rtx_code.
1956         (struct shift_insn): Member cc_valid has type enum attr_cc.
1957         (struct shift_info) <cc_inline, cc_special>: Likewise.
1958         enum attr_cc.
1959         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
1960         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
1961
1962 2010-11-04  Ira Rosen  <irar@il.ibm.com>
1963
1964         PR tree-optimization/46213
1965         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
1966         MINUS_EXPR only if the first operand is reduction operand.
1967
1968 2010-11-04  Richard Guenther  <rguenther@suse.de>
1969             Richard Henderson  <rth@redhat.com>
1970
1971         * tree.def (FMA_EXPR): New tree code.
1972         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
1973         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
1974         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
1975         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
1976         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1977         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
1978         (execute_optimize_widening_mul): Call it.  Reorganize to allow
1979         dead stmt removal.  Move TODO flags ...
1980         (pass_optimize_widening_mul): ... here.
1981         * flag-types.h (enum fp_contract_mode): New enum.
1982         * common.opt (flag_fp_contract_mode): New variable.
1983         (-ffp-contract): New option.
1984         * opts.c (common_handle_option): Handle it.
1985         * doc/invoke.texi (-ffp-contract): Document.
1986         * tree.h (fold_fma): Declare.
1987         * builtins.c (fold_fma): New function.
1988         (fold_builtin_fma): Likewise.
1989         (fold_builtin_3): Call it for fma.
1990         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
1991         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
1992         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
1993         New expanders.
1994         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
1995         named patterns.
1996         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
1997         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
1998         (fms_optab, fnma_optab, fnms_optab): New defines.
1999         * gimplify.c (gimplify_expr): Handle binary truth expressions
2000         explicitly.  Handle FMA_EXPR.
2001         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
2002         operations.
2003
2004 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
2005             Richard Guenther  <rguenther@suse.de>
2006
2007         * passes.c (init_optimization_passes): Move veclower after SSA.
2008         * tree-vect-generic.c (uniform_vector_p): New function.
2009         (expand_vector_operations_1): Handle conversion.
2010         (pass_lower_vector): Update SSA form.
2011
2012 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
2013
2014         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
2015         plugin capabilities.
2016         * configure: Regenerate.
2017
2018 2010-11-03  Xinliang David Li  <davidxl@google.com>
2019
2020         PR target/46200
2021         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
2022         Adjust cbase if the use stmt is after iv update.
2023
2024 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2025
2026         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
2027
2028 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2029
2030         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
2031         comment.  Pass true to the last argument of output_stack_adjust.
2032
2033 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
2034
2035         PR target/46295
2036         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
2037         if 256bit AVX register is used.
2038
2039 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
2040
2041         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
2042         xsmindp/xsmaxdp on VSX for single precision min/max.
2043         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
2044         (vsx_sminsf3): Ditto.
2045
2046 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2047
2048         * combine.c (try_combine): Fix formatting issues, improve comments and
2049         fix a pasto.
2050
2051 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
2052
2053         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
2054         of the result before building binary expressions.
2055
2056 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
2057
2058         PR rtl-optimization/45865
2059         * Makefile.in (df-problems.o): Revert revision 164552.
2060         * basic-block.h (enum bb_flags): Likewise.
2061         * cfgcleanup.c (block_was_dirty): Likewise.
2062         (try_forward_edges): Likewise.
2063         (try_crossjump_bb): Likewise.
2064         (try_head_merge_bb): Likewise.
2065         (try_optimize_cfg): Likewise.
2066         (cleanup_cfg): Likewise.
2067         * df-core.c (df_set_bb_dirty): Likewise.
2068         * df-problems.c: Likewise.
2069         (df_simulate_find_uses): Likewise.
2070         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
2071         (find_memory, find_memory_store): Likewise.
2072         (can_move_insns_across): Likewise.
2073         * df.h (can_move_insns_across): Likewise.
2074         * ifcvt.c (find_memory): Likewise.
2075         (dead_or_predicable): Likewise.
2076
2077 2010-11-03  Richard Guenther  <rguenther@suse.de>
2078
2079         PR middle-end/46288
2080         * predict.c (strip_predict_hints): Simply DCE builtin expect if
2081         the result is unused.
2082
2083 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
2084
2085         PR tree-optimization/46009
2086         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
2087         cond_if_else_store_replacement if bb1 and bb2 have the same
2088         single successor.
2089         (cond_store_replacement): Use gimple_assign_single_p, don't
2090         check if rhs is SSA_NAME or invariant.  Call release_defs for
2091         assign.
2092         (cond_if_else_store_replacement): New function.
2093
2094 2010-11-03  Richard Guenther  <rguenther@suse.de>
2095
2096         * opts.c (finish_options): Properly check for all WHOPR
2097         flags before complaining about -flto-partition.
2098
2099 2010-11-04  Alan Modra  <amodra@gmail.com>
2100
2101         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
2102         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
2103         TARGET_SECURE_PLT.
2104         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
2105         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
2106         on input, "r" on output.
2107
2108 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
2109
2110         Implemented -fobjc-std=objc1 flag.
2111         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
2112         option.
2113         * doc/standards.texi (Standards): Updated the section on
2114         Objective-C; mention support for Objective-C 2.0 features and the
2115         new -fstd-objc=objc1 flag to disable them.
2116
2117 2010-11-03  Richard Guenther  <rguenther@suse.de>
2118
2119         PR middle-end/46241
2120         * dwarf2out.c (scope_die_for): Properly detect global scope.
2121
2122 2010-11-03  Richard Guenther  <rguenther@suse.de>
2123
2124         PR tree-optimization/46190
2125         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2126         Properly compute peel iterations.
2127
2128 2010-11-03  Richard Guenther  <rguenther@suse.de>
2129
2130         PR tree-optimization/46286
2131         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
2132         re-allocated vector data.
2133
2134 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
2135
2136         PR target/46285
2137         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
2138         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
2139         is completed.
2140
2141 2010-11-03  Richard Guenther  <rguenther@suse.de>
2142
2143         PR tree-optimization/46217
2144         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
2145         flag matches.
2146         (execute_update_addresses_taken): Likewise.
2147
2148 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
2149
2150         PR bootstrap/44335
2151         * targhooks.c (targhook_words_big_endian): New function.
2152         (targhook_float_words_big_endian): Likewise.
2153         * targhooks.h (targhook_words_big_endian): Declare.
2154         (targhook_float_words_big_endian): Likewise.
2155         * target.def (words_big_endian, float_words_big_endian): New hooks.
2156
2157 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
2158
2159         PR tree-optimization/46165
2160         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
2161         a normal call into noreturn call.
2162
2163 2010-11-03  Richard Guenther  <rguenther@suse.de>
2164
2165         PR middle-end/46251
2166         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
2167         not INDIRECT_REFs.
2168
2169 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
2170
2171         PR tree-optimization/46107
2172         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
2173         if cfg_hook_duplicate_loop_to_header_edge failed.
2174
2175 2010-11-03  Ian Lance Taylor  <iant@google.com>
2176
2177         PR lto/46273
2178         * config.gcc: Don't set lto_binary_reader.
2179         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
2180         (Configuration): Mention --disable-lto.  Remove --with-libelf
2181         paragraph.
2182
2183 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
2184
2185         PR debug/46252
2186         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
2187         prev_real_insn.
2188         * gcse.c (insert_insn_end_basic_block): Likewise.
2189
2190         PR rtl-optimization/46034
2191         PR rtl-optimization/46212
2192         PR rtl-optimization/46248
2193         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
2194         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
2195         before i0dest -> i0src substitution and pass 1 instead of 0 as last
2196         argument to subst on i2pat.
2197
2198 2010-11-02  Ian Lance Taylor  <iant@google.com>
2199
2200         * configure.ac: Use AC_SYS_LARGEFILE.
2201         * configure: Rebuild.
2202         * config.in: Rebuild.
2203
2204 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
2205
2206         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
2207         fold_convert.
2208         * c-typeck.c (build_function_call_vec): Likewise.
2209         * cfgexpand.c (expand_debug_expr): Likewise.
2210         * cgraphunit.c (assemble_thunk): Likewise.
2211         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
2212         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
2213         (fold_binary_loc, fold_ternary_loc): Likewise.
2214         * gimple-fold.c (get_symbol_constant_value): Likewise.
2215         * gimple-low.c (lower_builtin_setjmp): Likewise.
2216         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
2217         * gimplify.c (gimplify_init_constructor): Likewise.
2218         * lambda.h (build_linear_expr): Likewise.
2219         * omp-low.c (omp_reduction_init): Likewise.
2220         * tree-inline.c (remap_ssa_name): Likewise.
2221         * tree-object-size.c (compute_object_sizes): Likewise.
2222         * tree-sra.c (init_subtree_with_zero): Likewise.
2223         (sra_ipa_modify_assign): Likewise.
2224         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
2225         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
2226         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
2227         (undistribute_ops_list): Likewise.
2228         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
2229         * tree-vect-stmts.c (vectorizable_call): Likewise.
2230         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
2231         (build_zero_cst): Handle more cases directly.  Update comment.
2232
2233 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2234
2235         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
2236         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
2237
2238         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
2239         and call ix86_split_call_vzeroupper instead of
2240         ix86_split_call_pop_vzeroupper.
2241         (*call_pop_1_vzeroupper): Likewise.
2242         (*sibcall_pop_1_vzeroupper): Likewise.
2243         (*call_value_pop_0_vzeroupper): Likewise.
2244         (*call_value_pop_1_vzeroupper): Likewise.
2245         (*sibcall_value_pop_1_vzeroupper): Likewise.
2246
2247 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2248
2249         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
2250
2251 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2252
2253         * basic-block.h (insert_insn_end_bb_new): Delete.
2254         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
2255
2256 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
2257             H.J. Lu  <hongjiu.lu@intel.com>
2258
2259         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
2260         (ix86_split_call_pop_vzeroupper): Likewise.
2261
2262         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
2263         (ix86_expand_call): Conditionally decorate calls with
2264         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
2265         (ix86_split_call_vzeroupper): New.
2266         (ix86_split_call_pop_vzeroupper): Likewise.
2267
2268         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
2269         (*call_pop_0_vzeroupper): New insn_and_split pattern.
2270         (*call_pop_1_vzeroupper): Likewise.
2271         (*sibcall_pop_1_vzeroupper): Likewise.
2272         (*call_0_vzeroupper): Likewise.
2273         (*call_1_vzeroupper): Likewise.
2274         (*sibcall_1_vzeroupper): Likewise.
2275         (*call_1_rex64_vzeroupper): Likewise.
2276         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
2277         (*call_1_rex64_large_vzeroupper): Likewise.
2278         (*sibcall_1_rex64_vzeroupper): Likewise.
2279         (*call_value_pop_0_vzeroupper): Likewise.
2280         (*call_value_pop_1_vzeroupper): Likewise.
2281         (*sibcall_value_pop_1_vzeroupper): Likewise.
2282         (*call_value_0_vzeroupper): Likewise.
2283         (*call_value_0_rex64_vzeroupper): Likewise.
2284         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
2285         (*call_value_1_vzeroupper): Likewise.
2286         (*sibcall_value_1_vzeroupper): Likewise.
2287         (*call_value_1_rex64_vzeroupper): Likewise.
2288         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
2289         (*call_value_1_rex64_large_vzeroupper): Likewise.
2290         (*sibcall_value_1_rex64_vzeroupper): Likewise.
2291
2292 2010-11-02  Ian Lance Taylor  <iant@google.com>
2293
2294         PR lto/46273
2295         * config.gcc: Revert last patch: set lto_binary_reader.
2296
2297 2010-11-02  Richard Guenther  <rguenther@suse.de>
2298
2299         PR tree-optimization/46149
2300         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
2301         non-indirect MEM_REF variants.
2302
2303 2010-11-02  Richard Guenther  <rguenther@suse.de>
2304
2305         PR tree-optimization/46216
2306         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2307         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
2308
2309 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2310
2311         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
2312         (*-*-osf*): Likewise.
2313         * configure: Regenerate.
2314
2315 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
2316
2317         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
2318         for Intel Core 2 and Core i7.
2319
2320 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
2321
2322         Model decoder of Core 2/i7 for multipass scheduling.
2323
2324         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
2325         New type to hold target-specific data for multipass scheduling.
2326         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
2327         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
2328         Core 2/i7.
2329         (core2i7_secondary_decoder_max_insn_size,)
2330         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
2331         New static variables.
2332         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
2333         ([_]ix86_first_cycle_multipass_data): New static variable.
2334         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
2335         Implement targetm.sched hooks.
2336         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
2337         of ...
2338         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
2339         Implement new targetm.sched hooks.
2340         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
2341         targetm.sched hook to install multipass scheduling hooks on demand.
2342
2343         * doc/tm.texi.in: Document new targetm.sched hooks.
2344         * doc/tm.texi: Regenerate.
2345
2346         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
2347         (first_cycle_multipass_data_t): New typedef.
2348         (struct choice_entry: target_data): New field.
2349         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
2350         to allow target model restrictions not represented in DFA.
2351         (choose_ready, schedule_block): Update.
2352         (sched_extend_ready_list, sched_finish_ready_list): Call new target
2353         hooks to initialize target-specific data for multipass scheduling.
2354         * sched-int.h (max_issue): Update declaration.
2355         * sel-sched.c (choose_best_insn): Update.
2356         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
2357         (first_cycle_multipass_{init, fini}): Define and document new
2358         targetm.sched hooks.
2359
2360 2010-11-02  Richard Guenther  <rguenther@suse.de>
2361
2362         PR tree-optimization/46184
2363         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
2364         input vector type from the reduction operand as well.
2365
2366 2010-11-02  Richard Guenther  <rguenther@suse.de>
2367
2368         PR tree-optimization/46177
2369         * tree-loop-distribution.c (prop_phis): Use
2370         mark_virtual_phi_result_for_renaming.
2371
2372 2010-11-02  Martin Jambor  <mjambor@suse.cz>
2373
2374         PR middle-end/46120
2375         * tree.c (get_binfo_at_offset): Bail out on artificial
2376         fields.  Identify primary bases according to their offsets.
2377
2378 2010-11-02  Martin Jambor  <mjambor@suse.cz>
2379
2380         PR tree-optimization/45875
2381         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
2382         (gimple_get_relevant_ref_binfo): Detect primary bases according to
2383         their field offset.
2384
2385 2010-11-02  Ian Lance Taylor  <iant@google.com>
2386
2387         * doc/install.texi (Configuration): Note in two places that Java
2388         is not enabled by default.
2389
2390 2010-11-02  Ian Lance Taylor  <iant@google.com>
2391
2392         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
2393         (Configuration): Mention --disable-lto.  Remove --with-libelf
2394         paragraph.
2395
2396 2010-11-02  Ian Lance Taylor  <iant@google.com>
2397
2398         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
2399         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
2400         LIBELFINC.  Remove HAVE_libelf.
2401         * config.gcc: Don't set lto_binary_reader.
2402         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
2403         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
2404         (LIBS): Remove $(LIBELFLIBS).
2405         (INCLUDES): Remove $(LIBELFINC).
2406         * configure: Rebuild.
2407         * config.in: Rebuild.
2408
2409 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
2410
2411         * config/microblaze/microblaze-protos.h (function_arg): Delete.
2412         (function_arg_advance): Delete.
2413         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
2414         (FUNCTION_ARG): Delete.
2415         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
2416         (microblaze_function_arg_advance): ...this.  Make static.  Take a
2417         const_tree and a bool.
2418         (function-arg): Rename to...
2419         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
2420         and a bool.
2421         (microblaze_expand_prologue): Call targetm.calls.function_arg and
2422         targetm.calls.function_arg_advance.
2423         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2424
2425 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
2426
2427         Merge from FSF "apple/trunk" branch.
2428
2429         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
2430         * config/darwin.opt: .. to here.
2431         (matt-stubs): New option.
2432         * config/i386/darwin.opt: Delete.
2433         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
2434         (MACHO_DYNAMIC_NO_PIC_P): New.
2435         (MACHOPIC_INDIRECT): New.
2436         (MACHOPIC_PURE): New.
2437         * config/i386/darwin.h (DARWIN_X86) Define to 1.
2438         (MACHOPIC_ATT_STUB): New.
2439         (CC1_SPEC): Do not remove mdynamic-no-pic.
2440         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
2441         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
2442         (FUNCTION_PROFILER): Correct over-length line.
2443         (SUBTARGET_OVERRIDE_OPTIONS): New.
2444         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
2445         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
2446         (legitimate_constant_p): Handle mdynamic-no-pic.
2447         (ix86_legitimate_address_p): Likewise.
2448         (ix86_legitimize_address): Likewise.
2449         (ix86_expand_move): Likewise.
2450         (machopic_output_stub): Update for ATT-style stubs and
2451         mdynamic-no-pic.
2452         * config/darwin-protos.h (machopic_symbol_defined_p): New.
2453         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
2454         TARGET_DYNAMIC_NO_PIC: Remove.
2455         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
2456         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
2457         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
2458         Remove handling of mdynamic-no-pic.
2459         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
2460         Define if required.
2461         (machopic_symbol_defined_p): Do not try to use current_function_decl
2462         when generating _get_pc thunks within stubs.
2463         (machopic_indirect_data_reference): Rework for direct conditionals
2464         rather than #ifdefs, add x86 mdynamic-no-pic
2465         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
2466         defined value.
2467         (darwin_override_options): Handle mdynamic-no-pic here.
2468         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
2469         (machopic_lazy_symbol_ptr3_section): New.
2470         (machopic_picsymbol_stub2_section): New.
2471         (machopic_picsymbol_stub3_section): New.
2472         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
2473         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
2474         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2475         Moved common definition from x86 and rs6000.
2476         (MACHO_DYNAMIC_NO_PIC_P): Override value.
2477         (MACHOPIC_INDIRECT): Likewise.
2478         (MACHOPIC_PURE): Likewise.
2479         * config.gcc (x86-darwin-*): Remove darwin.opt.
2480
2481 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
2482
2483         PR debug/46255
2484         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
2485         instead of gsi_last_bb.
2486
2487 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2488             Maxim Kuvyrkov  <maxim@codesourcery.com>
2489
2490         * config/i386/i386.c (cpu_names): Add "corei7".
2491         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
2492
2493 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2494             Maxim Kuvyrkov  <maxim@codesourcery.com>
2495
2496         Tune alignment for Intel Core i7
2497
2498         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
2499         (enum processor_type): Update comment.  Add entries for Core i7.
2500         * config/i386-c.c (ix86_target_macros_internal): Update.
2501         * config/i386.c (m_COREI7{_32,_64}): New macros.
2502         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
2503         (processor_target_table): Tune alignment for Core i7.
2504         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
2505
2506         * doc/invoke.texi: Document "corei7" option value.
2507
2508 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
2509             Maxim Kuvyrkov  <maxim@codesourcery.com>
2510             H.J. Lu  <hjl.tools@gmail.com>
2511
2512         Basic support for Intel Core i7
2513
2514         * i386.c (ix86_option_override_internal): Add entry for corei7, use
2515         generic tuning.  Use generic32 when compiling for 32-bit ABI.
2516
2517 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
2518
2519         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
2520         sections and call darwin_asm_dwarf_section() to handle them.
2521         (darwin_asm_dwarf_section): New.
2522         (darwin_file_start): Remove code emitting dwarf section symbols.
2523
2524 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
2525
2526         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
2527         explicitly disable stack protection when building libgcc.
2528         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
2529
2530 2010-11-01  Jason Merrill  <jason@redhat.com>
2531
2532         * fold-const.c (fold_indirect_ref_1): Handle folding
2533         POINTER_PLUS_EXPR to ARRAY_REF.
2534
2535 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
2536
2537         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
2538         (sh_delegitimize_address): New function.
2539
2540 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
2541
2542         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
2543         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
2544         (CC1_SPEC): Don't handle -target.
2545         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
2546         options.
2547         * config/darwin.opt (Zallowable_client, Zbundle_loader,
2548         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
2549         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
2550         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
2551         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
2552         Zweak_reference_mismatches, client_name, compatibility_version,
2553         current_version, dylinker_install_name, pagezero_size,
2554         read_only_relocs, seg1addr, segs_read_only_addr,
2555         segs_read_write_addr, sub_library, sub_umbrella): New.
2556         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
2557         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
2558         * config/freebsd.opt: New.
2559         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
2560         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
2561         * config/rpath.opt: New.
2562         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
2563         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
2564         Use rpath.opt.
2565
2566 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
2567
2568         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
2569         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
2570         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
2571         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
2572         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
2573         Document that options in .opt files do not need to be included.
2574         * doc/tm.texi: Regenerate.
2575         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
2576         * opts-common.c: Update comment on tm.h include.
2577         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
2578         * system.h (SWITCH_TAKES_ARG): Poison.
2579         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
2580         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
2581         in darwin.opt.
2582         (LINK_COMMAND_SPEC_A): Don't include %{x}.
2583         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2584         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
2585         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
2586         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2587         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
2588         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
2589         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
2590         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
2591         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2592         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
2593         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
2594         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
2595         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
2596         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
2597         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
2598         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
2599         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
2600         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
2601         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
2602         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
2603         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
2604         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
2605         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
2606
2607 2010-11-01  Paul Koning  <ni1d@arrl.net>
2608
2609         * config/pdp11/pdp11.md: Use iterators.
2610         (addqi3, subqi3, iorsi3, xorsi3): Delete.
2611
2612 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
2613
2614         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
2615         GCC_INSN_FLAGS_H.
2616         * libgcov.c (__gcov_indirect_call_profiler): Set
2617         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
2618         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
2619
2620 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
2621
2622         PR tree-optimization/46259
2623
2624         Revert:
2625         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2626         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
2627         build_vector_from_val.
2628
2629 2010-11-01  DJ Delorie  <dj@redhat.com>
2630
2631         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
2632         as well as an assertion.
2633
2634 2010-11-01  Paul Koning  <ni1d@arrl.net>
2635
2636         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
2637         complex modes in memory.
2638
2639 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
2640
2641         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
2642
2643 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
2644
2645         PR target/45250
2646         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
2647         (cfa_base_offset): New variable.
2648         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
2649         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
2650         is NULL.
2651         (vt_init_cfa_base): Initialize cfa_base_offset.
2652
2653 2010-11-01  Alan Modra  <amodra@gmail.com>
2654
2655         PR target/46030
2656         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
2657         and savres_strategy.
2658         (stack_info): New file scope var.
2659         (rs6000_init_machine_status): Init stack_info.
2660         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
2661         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
2662         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
2663         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
2664         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
2665         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
2666         (rs6000_savres_strategy): Rewrite.
2667         (rs6000_stack_info): Use "stack_info" in place of local "info".
2668         Return cached stack info when reload_completed unless ENABLE_CHECKING
2669         in which case confirm newly calculated stack info matches old info.
2670         Delay calculation of lr_save_p, set it for out of line gp save/restore
2671         as well as fp.  Call rs6000_savres_strategy from here..
2672         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
2673         (rs6000_output_function_prologue): Use info->savres_strategy to
2674         determine whether fp save/restore externs need to be emitted.
2675
2676 2010-10-31  Jason Merrill  <jason@redhat.com>
2677
2678         * tree.h (EXPR_LOC_OR_HERE): New macro.
2679         * builtins.c (c_strlen): Use it.
2680         * c-decl.c (build_enumerator): Likewise.
2681         * gimplify.c (internal_get_tmp_var): Likewise.
2682         (shortcut_cond_expr): Likewise.
2683         (gimplify_one_sizepos): Likewise.
2684
2685 2010-10-31  Richard Henderson  <rth@redhat.com>
2686
2687         * config/i386/cygming.h (TARGET_SEH): New.
2688         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
2689         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
2690         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
2691         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
2692         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
2693         (ASM_DECLARE_FUNCTION_SIZE): New.
2694         * config/i386/i386-protos.h: Update.
2695         * config/i386/i386.c (ix86_option_override_internal): Enable
2696         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
2697         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
2698         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
2699         (ix86_compute_frame_layout): For SEH, disable
2700         use_fast_prologue_epilogue, move frame pointer to the end of
2701         the frame.  Initialize hfp_save_offset.
2702         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
2703         at end of prologue for SEH.
2704         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
2705         emit blockage at beginning of epilogue.
2706         (ix86_expand_binary_operator): After reload, emit LEA if needed.
2707         (ix86_output_call_insn): New.
2708         * config/i386/i386.h (TARGET_SEH): New.
2709         (struct machine_function): Add member seh.
2710         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
2711         * config/i386/winnt.c (struct seh_frame_state): New.
2712         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
2713         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
2714         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
2715         i386_pe_start_function, i386_pe_end_function): New.
2716
2717         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
2718         as CFA_STORE in rules 12 and 13.
2719
2720 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
2721
2722         PR tree-optimization/46142
2723         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
2724         accommodate third function argument.
2725
2726 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2727
2728         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
2729
2730 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2731
2732         * fold-const.c (build_zero_vector): Use build_vector_from_val.
2733         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
2734         (get_initial_def_for_reduction): Likewise.
2735         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2736         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2737         * tree.c (build_one_cst): Likewise.
2738         (build_vector_from_val): Use types_compatible_p for assert.
2739
2740 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2741
2742         * emit-rtl.c (mark_used_flags): New function.
2743         (set_used_flags, reset_used_flags): Call it.
2744
2745 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
2746
2747         PR middle-end/44569
2748         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
2749         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
2750
2751 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2752
2753         PR target/46195
2754         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
2755         (ix86_compat_aligned_value_p): This.
2756         (ix86_old_function_arg_boundary): Renamed to ...
2757         (ix86_compat_function_arg_boundary): This.  Updated.
2758         (ix86_contains_aligned_value_p): New.
2759         (ix86_function_arg_boundary): Align long double parameters on
2760         stack to 4byte in 32bit.
2761
2762 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2763
2764         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2765         * c-parser.c (c_parser_objc_at_property_declaration): Removed
2766         parsing of RID_COPIES and RID_IVAR.  Updated call to
2767         objc_add_property_declaration.
2768         * c-typecheck.c (build_component_ref): Call
2769         objc_maybe_build_component_ref instead of objc_build_setter_call.
2770         Use objc_is_property_ref to improve Objective-C checks.
2771         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
2772         of objc_build_getter_call.
2773
2774 2010-10-29  Paul Koning  <ni1d@arrl.net>
2775
2776         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
2777         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
2778         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
2779         (REG_OK_STRICT): Move description.
2780
2781 2010-10-29  Paul Koning  <ni1d@arrl.net>
2782
2783         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
2784
2785 2010-10-29  Paul Koning  <ni1d@arrl.net>
2786
2787         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
2788
2789 2010-10-29  Paul Koning  <ni1d@arrl.net>
2790
2791         PR/41822
2792         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
2793
2794 2010-10-29  Richard Henderson  <rth@redhat.com>
2795
2796         PR rtl-opt/46226
2797         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
2798         for asm goto.
2799
2800 2010-10-29  Paul Koning  <ni1d@arrl.net>
2801
2802         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
2803         register to register move.
2804
2805 2010-10-29  Paul Koning  <ni1d@arrl.net>
2806
2807         * config/pdp11/pdp11.c (print_operand_address): Correct handling
2808         of integer constant addresses, delete vax-only logic.
2809
2810 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
2811
2812         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
2813         a conditional expression.
2814
2815 2010-10-29  Paul Koning  <ni1d@arrl.net>
2816
2817         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
2818         instruction encoding.
2819
2820 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
2821             Andrew Pinski  <pinskia@gmail.com>
2822
2823         * tree.h (build_vector_from_val): Declare.
2824         * tree.c (build_vector_from_val): New function.
2825         * c-typeck.c (build_binary_op): Handle vector shifting.
2826         * doc/extend.texi: Description of the vector shifting operation.
2827
2828 2010-10-29  Paul Koning  <pkoning@equallogic.com>
2829
2830         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
2831         pdp11_secondary_memory_needed): Declare.
2832         * config/pdp11/predicates.md (float_operand): New predicate.
2833         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
2834         (cbranchdf4, movdf): Change predicate.
2835         (movsf): Handle FPU register case.
2836         (truncdfsf2, extendsfdf2): Add FPU register case.
2837         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
2838         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
2839         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2840         (pdp11_register_move_cost): Update cost matrix.
2841         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
2842         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
2843         pdp11_secondary_memory_needed): New function.
2844         (pdp11_return_in_memory): Add other float types.
2845         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
2846         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
2847         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
2848         REGISTER_MOVE_COST): Delete.
2849         (BASE_RETURN_VALUE_REG): Add other float types.
2850
2851 2010-10-29  Nick Clifton  <nickc@redhat.com>
2852
2853         * doc/invoke.texi: Document -mam34 and -mtune options.
2854         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
2855         (mn10300_tune_cpu): New variable.
2856         (mn10300_handle_option): Handle -mam34 and -mtune options.
2857         (mn10300_option_override): Convert tune string into tune cpu variable.
2858         (mn10300_legitimate_constant_p): Delete unused local variable.
2859         (is_load_insn): New function.
2860         (is_store_insn): New function.
2861         (mn10300_adjust_schedule_cost): New function.
2862         (TARGET_SCHED_ADJUST_COST): Define.
2863         * config/mn10300/mn10300.opt (mam34): New option.
2864         (mtune): New option.
2865         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
2866         (enum processor_type): Add AM34.
2867         (TARGET_AM34): Define.
2868         * config/mn10300/mn10300.md (attr cpu): Add am34.
2869         Add pipeline description.
2870         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
2871         Remove unneeded alternatives.  Add timing attribute.
2872         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
2873         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
2874         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
2875         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
2876         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
2877         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
2878         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
2879         float_conditional_branch, jump, indirect_jump, tablejump,
2880         call_internal, call_value_internal, zero_extendqisi2_am33,
2881         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
2882         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
2883         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
2884         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
2885         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
2886         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
2887         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
2888         return_internal_regs, store_movm, return, call_next_insn):
2889         Add timing attribute.
2890         (am33_subsi3): Add missing clobber of CC_REG.
2891         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
2892         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
2893         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
2894         extendqisi2): Fix predicates.
2895         (call_internal, call_internal_value): Separate alternatives.
2896         * config/mn10300/t-mn10300: Add AM34 multilib.
2897
2898 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
2899
2900         * config/sh/sh.c (sh_promote_function_mode): Use
2901         default_promote_function_mode if !sh_promote_prototypes.
2902
2903 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
2904
2905         * recog.c (split_all_insns): Remove dead code.
2906
2907 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2908
2909         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2910
2911 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2912
2913         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
2914         (FUNCTION_ARG_ADVANCE): Delete.
2915         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
2916         functions.
2917         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
2918         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2919         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2920
2921 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2922
2923         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
2924         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2925         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
2926         Take a const_tree and a bool.
2927         (mcore_function_arg_advance): New function.
2928         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2929
2930 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2931
2932         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
2933         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2934         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
2935         Take a const_tree and a bool.
2936         (mcore_function_arg_advance): New function.
2937         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2938
2939 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2940
2941         * config/h8300/h8300-protos.h (function_arg): Delete.
2942         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2943         * config/h8300/h8300.c (function_arg): Rename to...
2944         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
2945         a bool.
2946         (h8300_function_arg_advance): New function.
2947         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2948
2949 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2950
2951         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
2952         to...
2953         * config/arc/arc.c (arc_function_arg): ...here and...
2954         (arc_function_arg_advance): ...here.  New functions.
2955         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2956
2957 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2958
2959         * config/crx/crx-protos.h (crx_function_arg): Delete.
2960         (crx_function_arg_advance): Delete.
2961         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2962         * config/crx/crx.c (crx_function_arg): Make static.  Take a
2963         const_tree and a bool.
2964         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
2965         (enough_regs_for_param): Take a const_tree.
2966         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2967
2968 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2969
2970         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
2971         (m68hc11_function_arg_advance): Delete.
2972         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
2973         (FUNCTION_ARG_ADVANCE): Delete.
2974         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
2975         Take a const_tree and a bool.
2976         (m68hc11_function_arg_advance): Likewise.
2977         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2978
2979 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2980
2981         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
2982         (xstormy16_function_arg_advance): Delete.
2983         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
2984         (FUNCTION_ARG_ADVANCE): Delete.
2985         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
2986         Take a const_tree and a bool.
2987         (xstormy16_function_arg_advance): Likewise.  Return void, updating
2988         the CUM parameter instead.
2989         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2990
2991 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2992
2993         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
2994         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2995         (MOXIE_FUNCTION_ARG_SIZE): Move to...
2996         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
2997         (moxie_function_arg): Make static.  Take a const_tree and a bool.
2998         (moxie_function_arg_advance): New function.
2999         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3000
3001 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3002
3003         * config/mn10300/mn10300-protos.h (function_arg): Delete.
3004         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
3005         (FUNCTION_ARG_ADVANCE): Delete.
3006         * config/mn10300/mn10300.c (function_arg): Rename to...
3007         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
3008         and a bool.
3009         (mn10300_function_arg_advance): New function.
3010         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3011
3012 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3013
3014         * config/iq2000/iq2000-protos.h (function_arg): Delete.
3015         (function_arg_advance): Delete.
3016         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3017         * config/iq2000/iq2000.c (function_arg): Rename to...
3018         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
3019         a bool.
3020         (function_arg_advance): Rename to...
3021         (iq2000_function_arg_advance): ...this.  Make static.  Take a
3022         const_tree and a bool.
3023         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
3024         iq2000_function_arg.
3025         (iq2000_pass_by_reference): Call iq2000_function_arg).
3026         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3027
3028 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3029
3030         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
3031         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3032         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
3033         const_tree.
3034         (fr30_function_arg): New function.
3035         (fr30_function_arg_advance): New function.
3036         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3037
3038 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
3039
3040         * config/frv/frv-protos.h (frv_function_arg): Delete.
3041         (frv_function_arg_advance): Delete.
3042         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3043         * config/frv/frv.c (frv_function_arg): Rename to...
3044         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
3045         (frv_function_arg, frv_function_incoming_arg): New functions.
3046         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
3047         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3048         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3049
3050 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
3051
3052         PR target/46153
3053         * config/i386/sse.md (sse_movhlps_exp): Use destination
3054         returned from ix86_fixup_binary_operands to expand insn.
3055         (sse_movlhps_exp): Ditto.
3056         (sse_loadhps_exp): Ditto.
3057         (sse_loadlps_exp): Ditto.
3058         (sse2_loadhpd_exp): Ditto.
3059         (sse2_loadlpd_exp): Ditto.
3060
3061 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
3062
3063         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
3064         constants in thumb2.
3065
3066 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
3067
3068         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
3069         arithmetics in masking operations.
3070         (contains_muldiv): Likewise.
3071         (try_combine): Likewise.
3072         (find_split_point): Likewise.
3073         (combine_simplify_rtx): Likewise.
3074         (simplify_if_then_else): Likewise.
3075         (simplify_set): Likewise.
3076         (expand_compound_operation): Likewise.
3077         (expand_field_assignment): Likewise.
3078         (make_extraction): Likewise.
3079         (extract_left_shift): Likewise.
3080         (make_compound_operation): Likewise.
3081         (force_to_mode): Likewise.
3082         (make_field_assignment): Likewise.
3083         (reg_nonzero_bits_for_combine): Likewise.
3084         (simplify_shift_const_1): Likewise.
3085         (simplify_comparison): Likewise.
3086
3087 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
3088
3089         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
3090         (ia64_function_arg_advance): Delete.
3091         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
3092         (FUNCTION_ARG_ADVANCE): Delete.
3093         * config/ia64/ia64.c (ia64_function_arg): Rename to...
3094         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
3095         bool arguments.
3096         (ia64_function_arg, ia64_function_incoming_arg): New functions.
3097         (ia64_function_arg_advance): Make static.  Take a const_tree and
3098         a bool.
3099         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3100         (TARGET_FUNCTION_ARG_ADVANCE): Define.
3101
3102 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
3103
3104         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
3105         (TARGET_GET_RAW_ARG_MODE): New.
3106         * doc/tm.texi: Regenerate.
3107         * target.def (get_raw_result_mode): New.
3108         (get_raw_arg_mode): New.
3109         * targhooks.c (default_get_reg_raw_mode): New.
3110         * targhooks.h (default_get_reg_raw_mode): New.
3111         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
3112         (apply_result_size): Ditto.
3113         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
3114         (TARGET_GET_RAW_RESULT_MODE): Define.
3115         (TARGET_GET_RAW_ARG_MODE): Ditto.
3116
3117 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3118
3119         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
3120         for newer Solaris 10 release.
3121         (sparc_fallback_frame_state): Likewise.
3122
3123 2010-10-27  Jason Merrill  <jason@redhat.com>
3124
3125         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
3126         variables sooner.
3127
3128 2010-10-27  Jie Zhang  <jie@codesourcery.com>
3129             Maxim Kuvyrkov  <maxim@codesourcery.com>
3130
3131         * haifa-sched.c (ISSUE_POINTS): Remove.
3132         (max_issue): Don't issue more than issue_rate instructions.
3133
3134 2010-10-27  Ian Lance Taylor  <iant@google.com>
3135
3136         PR target/46197
3137         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
3138         (split_stack_return): Replace UNSPEC_STACK_CHECK with
3139         UNSPECV_SPLIT_STACK_RETURN.
3140
3141 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
3142
3143         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
3144
3145         * config/i386/i386.c (block_info): New.
3146         (BLOCK_INFO): Likewise.
3147         (call_avx256_state): Likewise.
3148         (check_avx256_stores): Likewise.
3149         (move_or_delete_vzeroupper_2): Likewise.
3150         (move_or_delete_vzeroupper_1): Likewise.
3151         (move_or_delete_vzeroupper): Likewise.
3152         (use_avx256_p): Likewise.
3153         (function_pass_avx256_p): Likewise.
3154         (flag_opts): Add -mvzeroupper.
3155         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
3156         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
3157         is disabled.
3158         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
3159         generate vzeroupper.
3160         (init_cumulative_args): Add an int to indicate caller.  Set
3161         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
3162         based on return type.
3163         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
3164         caller_pass_avx256_p based on argument type.
3165         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
3166         is used, but not returned by caller.
3167         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
3168         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
3169         is used.
3170         (ix86_minimum_alignment): Likewise.
3171         (ix86_expand_special_args_builtin): Set target to
3172         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
3173         (ix86_reorg): Run the vzeroupper optimization if needed.
3174
3175         * config/i386/i386.h (ix86_args): Add caller.
3176         (INIT_CUMULATIVE_ARGS): Updated.
3177         (machine_function): Add use_vzeroupper_p, use_avx256_p,
3178         caller_pass_avx256_p, caller_return_avx256_p,
3179         callee_pass_avx256_p and callee_return_avx256_p.
3180
3181         * config/i386/i386.opt (-mvzeroupper): New.
3182
3183         * config/i386/predicates.md (vzeroupper_operation): Removed.
3184
3185         * config/i386/sse.md (avx_vzeroupper): Removed.
3186         (*avx_vzeroupper): Removed.
3187         (avx_vzeroupper): New.
3188
3189         * doc/invoke.texi: Document -mvzeroupper.
3190
3191 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3192
3193         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
3194         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
3195         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
3196
3197 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
3198             Olivier Hainque  <hainque@adacore.com>
3199
3200         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
3201         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
3202         fs->signal_frame instead.
3203
3204 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3205
3206         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
3207         parsing of RID_COPIES and RID_IVAR.
3208
3209 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3210
3211         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
3212         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
3213         Do not use objc_set_property_attr, but use local variables
3214         instead.  Detect repeated usage of setter, getter and ivar
3215         attributes.  Improved error processing when a setter name does not
3216         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
3217         that the token is a keyword.  Updated call to
3218         objc_add_property_declaration.
3219
3220 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
3221
3222         * c-parser.c (c_parser_objc_at_property): Renamed to
3223         c_parser_objc_at_property_declaration.  Updated calls to
3224         objc_add_property_variable, now objc_add_property_declaration.
3225         Code rewritten to be much more robust in recovering from syntax
3226         errors.  Added comments.
3227         (c_parser_objc_property_attrlist): Removed.
3228         (c_parser_external_declaration): Updated calls to
3229         c_parser_objc_at_property, now
3230         c_parser_objc_at_property_declaration.
3231         (c_parser_objc_methodprotolist): Same change.
3232
3233 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3234
3235         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
3236
3237 2010-10-26  Jan Hubicka  <jh@suse.cz>
3238
3239         * ipa.c (process_references): Enqueue all referenced nodes;
3240         mark as reachable only non-external nodes.
3241         (cgraph_remove_unreachable_nodes): All referenced nodes should
3242         be enqueued; remove bogues node->needed check.
3243
3244 2010-10-26  Jan Hubicka  <jh@suse.cz>
3245
3246         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
3247         to represent OMP.
3248
3249 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3250
3251         * config/i386/i386.md (split_stack_return): Replace
3252         unspec_volatile with unspec.
3253
3254 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
3255
3256         * doc/install.texi: Fix typo in --with-sysroot description.
3257
3258 2010-10-26  Jan Hubicka  <jh@suse.cz>
3259
3260         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3261         Use info provided by linker plugin.
3262
3263 2010-10-26  Jason Merrill  <jason@redhat.com>
3264
3265         * varasm.c (constructor_static_from_elts_p): Don't require a
3266         CONSTRUCTOR to have elements to be suitable for static
3267         initialization.  Allow ARRAY_TYPE as well.
3268
3269 2010-10-26  Jan Hubicka  <jh@suse.cz>
3270
3271         PR middle-end/45736
3272         * cgraph.c (cgraph_set_readonly_flag): Rename to...
3273         (cgraph_set_const_flags) ... this one; get also looping argument;
3274         clear constructor/destructor flags.
3275         (cgraph_set_pure_flag): Likewise.
3276         (cgraph_set_looping_const_or_pure_flag): Remove.
3277         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
3278         to optimize away static ctors/dtors; it does not work on inline clones;
3279         external functions can always be rmeoved.
3280         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
3281         inline clones; in LTO external functions always can go.
3282         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
3283         (cgraph_mark_address_taken_node): Assert that we are not taking
3284         address of inline clone.
3285         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
3286         external functions.
3287         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
3288         address taken.
3289         (ipcp_initialize_node_lattices): Only local functions can be
3290         handled without cloning.
3291         * cgraph.h (cgraph_set_readonly_flag,
3292         cgraph_set_looping_const_or_pure_flag): Remove.
3293         (cgraph_set_const_flag): Declare.
3294         (cgraph_set_pure_flag): Update.
3295         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
3296         flags setting code.
3297         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
3298         look at inline clones; fix handling of external definitions.
3299         (cgraph_postorder): Do not look at inline clones in the first pass.
3300         (function_and_variable_visibility): Drop constructors/destructor
3301         flags at pure and const functions.
3302         * tree-profile.c (tree_profiling): Update.
3303         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
3304         address taken; external functions do not account to whole program size.
3305         (cgraph_decide_inlining): Likewise; do not try to inline
3306         functions already inlined.
3307
3308 2010-10-26  Jie Zhang  <jie@codesourcery.com>
3309
3310         * doc/invoke.texi: Improve documentation of
3311         -fstrict-volatile-bitfields.
3312
3313 2010-10-26  Ira Rosen  <irar@il.ibm.com>
3314
3315         PR tree-optimization/46167
3316         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
3317         is basic block for the statement.
3318
3319 2010-10-26  Paul Koning  <ni1d@arrl.net>
3320
3321         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
3322         current definition of struct_real_format.
3323
3324 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
3325
3326         PR target/44948
3327         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
3328         (ix86_function_arg_boundary): Always align parameters on stack
3329         in 64bit and align parameters with alignment >= 16byte on stack
3330         in 32bit.  Warn alignment change.
3331
3332 2010-10-26  Ian Lance Taylor  <iant@google.com>
3333
3334         PR middle-end/45687
3335         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
3336         offset.
3337
3338 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
3339
3340         Implement opaque-enum-specifiesr for C++0x
3341         * tree.h (ENUM_IS_OPAQUE): New.
3342         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
3343
3344 2010-10-26  Jie Zhang  <jie@codesourcery.com>
3345
3346         * stor-layout.c (layout_decl): Use the field's type to
3347         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
3348         * config/arm/arm.c (arm_override_options): Default to
3349         -fstrict-volatile-bitfields.
3350
3351 2010-10-25  Paul Koning  <ni1d@arrl.net>
3352
3353         * config/pdp11/pdp11.md: Add define_constants for register
3354         numbers, branch offset limits.
3355         * config/pdp11/pdp11.c: Use named constants instead of numbers.
3356         * config/pdp11.pdp11.h: Ditto.
3357
3358 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3359
3360         * configure.ac: Use $cpu_type instead of $target to define the nop.
3361         * configure: Regenerate.
3362
3363 2010-10-25  Jie Zhang  <jie@codesourcery.com>
3364
3365         * combine.c (try_combine): If insns need to be kept around, check that
3366         they can be copied in the merged instruction.
3367
3368 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3369
3370         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
3371         has been modified.
3372         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
3373         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
3374         it has been modified.
3375
3376 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3377
3378         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
3379
3380 2010-10-24  Paul Koning  <ni1d@arrl.net>
3381
3382         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
3383         * config/pdp11/pdp11.c (output_jump): Ditto.
3384
3385 2010-10-24  Ian Lance Taylor  <iant@google.com>
3386
3387         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
3388
3389 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
3390
3391         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
3392         least one insn with a locus corresponding to an edge's goto_locus,
3393         disregard non-fallthru edges to the exit block and merge the blocks
3394         created for the same goto_locus.
3395
3396 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
3397
3398         * gcc.c (n_switches_alloc_debug_check): New.
3399         (set_option_handlers): New.
3400         (process_command): Use set_option_handlers.
3401         (do_self_spec): Pass spec-generated options through option handlers.
3402         (main): Also save and restore n_switches_alloc when swapping
3403         switch arrays.
3404
3405 2010-10-23  Richard Henderson  <rth@redhat.com>
3406
3407         PR target/46144
3408         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
3409         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
3410         Honor matching operands when splitting to XOR.
3411
3412 2010-10-23  Ian Lance Taylor  <iant@google.com>
3413
3414         * tree-vrp.c (extract_range_from_binary_expr): If
3415         flag_non_call_exceptions don't eliminate division by zero.
3416         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3417
3418 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
3419
3420         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
3421         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
3422         __ORDER_PDP_ENDIAN__.
3423         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3424         (struct DWstruct): Define based on __BYTE_ORDER__.
3425         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3426         (struct INTstruct): Define based on __BYTE_ORDER__.
3427         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3428         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
3429         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
3430         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3431         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3432         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3433         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3434         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3435         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3436         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3437         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3438         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3439         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3440         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3441         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3442         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3443         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3444         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3445         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
3446         * doc/tm.texi: Regenerate.
3447         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
3448         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
3449
3450 2010-10-23  Jie Zhang  <jie@codesourcery.com>
3451
3452         PR rtl-optimization/37360
3453         * config/mips/mips.c (cached_can_issue_more): New local variable.
3454         (mips_sched_reorder_1): New.
3455         (mips_sched_reorder): Use mips_sched_reorder_1.
3456         (mips_sched_reorder2): New.
3457         (mips_variable_issue): Set cached_can_issue_more.
3458         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
3459         instead of mips_sched_reorder.
3460
3461         Revert:
3462         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
3463         PR rtl-optimization/37360
3464         * haifa-sched.c (max_issue): Do not assert that we never issue more
3465         insns than issue_rate.  Add comment.
3466
3467 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
3468
3469         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
3470         location info of the expression.
3471
3472 2010-10-22  DJ Delorie  <dj@redhat.com>
3473
3474         * doc/extend.texi (Named Address Spaces): Document the M32C named
3475         address space.
3476
3477         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
3478         __far address space.
3479         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
3480         "__far" address space for R8C and M16C processor variants.
3481         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
3482         (far_addr_space_p): New.
3483         (encode_pattern_1): Add sign and zero extend support.
3484         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
3485         (m32c_extra_constraint_p2): Add SF constraint.
3486         (m32c_legitimate_address_p): Support __far addresses.
3487         (m32c_addr_space_pointer_mode): New.
3488         (m32c_addr_space_address_mode): New.
3489         (m32c_addr_space_legitimate_address_p): New.
3490         (m32c_addr_space_legitimize_address): New.
3491         (m32c_addr_space_subset_p): New.
3492         (m32c_addr_space_convert): New.
3493         (conversions): Add __far operand patterns.
3494         (m32c_prepare_move): Force constants into registers for __far moves.
3495         (m32c_split_move): __far moves are always split.
3496         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
3497         * config/m32c/mov.md (mov<mode>_far_op1): New.
3498         (mov<mode>_far_op2): New.
3499         (movqi_op): Add __far (SF) support.
3500         (movhi_op): Likewise.
3501         (movsi_splittable): Split A1A0 also.
3502
3503 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
3504             Andrew Pinski  <pinskia@gmail.com>
3505
3506         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
3507         * doc/extend.texi: New paragraph
3508
3509 2010-10-22  Paul Koning  <ni1d@arrl.net>
3510
3511         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
3512
3513 2010-10-22  DJ Delorie  <dj@redhat.com>
3514
3515         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
3516
3517 2010-10-22  Paul Koning  <ni1d@arrl.net>
3518
3519         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
3520
3521 2010-10-22  Richard Henderson  <rth@redhat.com>
3522
3523         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
3524         cases for __builtin_fma and __builtin_fmaf.
3525
3526 2010-10-22  Richard Henderson  <rth@redhat.com>
3527
3528         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
3529         NEG+USE for vectors as well.
3530         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
3531         and splitter.
3532
3533 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
3534
3535         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
3536         SWITCH_CURTAILS_COMPILATION): Remove.
3537         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
3538         * doc/tm.texi: Regenerate.
3539         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
3540
3541 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
3542
3543         * config/i386/bdver1.md: New file.
3544         * config/i386/i386.md (include "bdver1.md"): Invoke the
3545         pipeline description for bdver1.
3546         (x86_sahf_1): Add "bdver1_decode" attribute.
3547         (*cmpfp_i_mixed): Likewise.
3548         (*cmpfp_i_sse): Likewise.
3549         (*cmpfp_i_i387): Likewise.
3550         (*cmpfp_iu_mixed): Likewise.
3551         (*cmpfp_iu_sse): Likewise.
3552         (*cmpfp_iu_387): Likewise.
3553         (*swap<mode>,*swap<mode>_1): Likewise.
3554         (fixuns_trunc<mode>hi2): Likewise.
3555         (fix_trunc<mode>si_sse): Likewise.
3556         (x86_fnstcw_1): Likewise.
3557         (x86_fldcw_1): Likewise.
3558         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
3559         (*floatsi<mode>2_vector_mixed): Likewise.
3560         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
3561         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
3562         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
3563         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
3564         (*floatsi<mode>2_vector_sse): Likewise.
3565         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
3566         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
3567         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
3568         (*mul<mode>3_1): Likewise.
3569         (*mulsi3_1_zext): Likewise.
3570         (*mulhi3_1): Likewise.
3571         (*mulqi3_1): Likewise.
3572         (*<u>mul<mode><dwi>3_1): Likewise.
3573         (*<u>mulqihi3_1): Likewise.
3574         (*<s>muldi3_highpart_1): Likewise.
3575         (*<s>mulsi3_highpart_1): Likewise.
3576         (*<s>mulsi3_highpart_zext): Likewise.
3577         (x86_64_shld): Likewise.
3578         (x86_shld): Likewise.
3579         (x86_64_shrd): Likewise.
3580         (x86_shrd): Likewise.
3581         (sqrtxf2): Likewise.
3582         (sqrt_extend<mode>xf2_i387): Likewise.
3583         (*sqrt<mode>2_sse): Likewise.
3584         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
3585         (sse_cvtsi2ssq): Likewise.
3586         (sse_cvtss2si): Likewise.
3587         (sse_cvtss2si_2): Likewise.
3588         (sse_cvtss2siq): Likewise.
3589         (sse_cvtss2siq_2): Likewise.
3590         (sse_cvttss2si): Likewise.
3591         (sse_cvttss2siq): Likewise.
3592         (sse2_cvtpi2pd): Likewise.
3593         (sse2_cvttpd2pi): Likewise.
3594         (sse2_cvtsi2sd): Likewise.
3595         (sse2_cvtsi2sdq): Likewise.
3596         (sse2_cvtsd2si): Likewise.
3597         (sse2_cvtsd2si_2): Likewise.
3598         (sse2_cvtsd2siq): Likewise.
3599         (sse2_cvtsd2siq_2): Likewise.
3600         (sse2_cvttsd2si): Likewise.
3601         (sse2_cvttsd2siq): Likewise.
3602         (*sse2_cvtpd2dq): Likewise.
3603         (*sse2_cvttpd2dq): Likewise.
3604         (sse2_cvtsd2ss): Likewise.
3605         (sse2_cvtss2sd): Likewise.
3606         (*sse2_cvtpd2ps): Likewise.
3607         (sse2_cvtps2pd): Likewise.
3608
3609 2010-10-22  Richard Guenther  <rguenther@suse.de>
3610
3611         PR middle-end/46137
3612         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
3613         remove the virtual operands if they are not needed.
3614
3615 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
3616
3617         * config/i386/i386.c (processor_costs bdver1_cost): Update
3618         insn costs and architectural parameters for bdver1.
3619
3620 2010-10-22  Richard Guenther  <rguenther@suse.de>
3621
3622         * gimple.h (gimple_register_canonical_type): Declare.
3623         * gimple.c (gimple_canonical_types): New global hashtable.
3624         (struct gimple_type_leader_entry_s): New type.
3625         (gimple_type_leader): New global cache.
3626         (gimple_lookup_type_leader): New function.
3627         (gtc_visit): Query the proper cache.
3628         (gimple_types_compatible_p): Likewise.
3629         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
3630         (gimple_canonical_type_eq): New function.
3631         (gimple_register_canonical_type): Likewise.
3632         (print_gimple_types_stats): Adjust for gimple_canonical_types.
3633         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
3634         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
3635         gimple_types_compatible_p for LTO.
3636
3637 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
3638
3639         PR target/46098
3640         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
3641         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
3642         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
3643         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
3644         (<sse>_movu<ssemodesuffix>): New expander.
3645         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
3646         (avx_movdqu<avxmodesuffix>): New expander.
3647         (*sse2_movdqu): Rename from sse2_movdqu.
3648         (sse2_movdqu): New expander.
3649
3650 2010-10-22  Richard Guenther  <rguenther@suse.de>
3651
3652         PR tree-optimization/45720
3653         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
3654         Handle negative step.
3655         (vect_enhance_data_refs_alignment): Likewise.
3656         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
3657         (vect_create_cond_for_align_checks): Likewise.
3658         (vect_create_cond_for_alias_checks): Likewise.
3659
3660 2010-10-22  Ira Rosen  <irar@il.ibm.com>
3661
3662         PR tree-optimization/46126
3663         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
3664         vectorizable_shift in case of basic block vectorization.
3665
3666 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
3667
3668         * target.h (enum opt_levels, struct default_options): New.
3669         * target.def (handle_ofast): Remove hook.
3670         (target_option.optimization): Change to
3671         target_option.optimization_table.
3672         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
3673         TARGET_OPTION_OPTIMIZATION_TABLE.
3674         (CAN_DEBUG_WITHOUT_FP): Remove.
3675         * doc/tm.texi: Regenerate.
3676         * opts.c (maybe_default_option, maybe_default_options,
3677         default_options_table): New.
3678         (default_options_optimization): Take extra parameters.  Don't
3679         assert that global_options and global_options_set are in use.  Use
3680         maybe_default_options.
3681         (decode_options): Pass extra parameters to
3682         default_options_optimization.
3683         * common.opt (falign-loops): Use value 0 with Var.
3684         (frerun-cse-after-loop, ftree-ter): Remove Init.
3685         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
3686         TARGET_OPTION_OPTIMIZATION): Remove.
3687         * targhooks.c (empty_optimization_table): New.
3688         * targhooks.h (empty_optimization_table): Declare.
3689         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
3690         * config/alpha/alpha.c (alpha_option_optimization_table,
3691         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3692         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
3693         * config/arm/arm.c (arm_option_optimization: Change to
3694         arm_option_optimization_table.
3695         (TARGET_OPTION_OPTIMIZATION): Change to
3696         TARGET_OPTION_OPTIMIZATION_TABLE.
3697         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
3698         * config/avr/avr.c (avr_option_optimization_table,
3699         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3700         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
3701         * config/cris/cris.c (cris_option_optimization): Change to
3702         cris_option_optimization_table.
3703         (TARGET_OPTION_OPTIMIZATION): Change to
3704         TARGET_OPTION_OPTIMIZATION_TABLE.
3705         * config/crx/crx.c (crx_option_optimization): Change to
3706         crx_option_optimization_table.
3707         (TARGET_OPTION_OPTIMIZATION): Change to
3708         TARGET_OPTION_OPTIMIZATION_TABLE.
3709         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
3710         * config/fr30/fr30.c (fr30_option_optimization_table,
3711         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3712         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
3713         * config/frv/frv.c (frv_option_optimization_table,
3714         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3715         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
3716         * config/h8300/h8300.c (h8300_option_optimization): Change to
3717         h8300_option_optimization_table.
3718         (TARGET_OPTION_OPTIMIZATION): Change to
3719         TARGET_OPTION_OPTIMIZATION_TABLE.
3720         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
3721         * config/i386/i386.c (ix86_option_optimization): Change to
3722         ix86_option_optimization_table.
3723         (TARGET_OPTION_OPTIMIZATION): Change to
3724         TARGET_OPTION_OPTIMIZATION_TABLE.
3725         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
3726         as initializer.
3727         * config/ia64/ia64.c (ia64_option_optimization): Change to
3728         ia64_option_optimization_table.
3729         (TARGET_OPTION_OPTIMIZATION): Change to
3730         TARGET_OPTION_OPTIMIZATION_TABLE.
3731         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
3732         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
3733         initializer.
3734         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
3735         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3736         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
3737         * config/lm32/lm32.c (lm32_option_optimization_table,
3738         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3739         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
3740         * config/m32r/m32r.c (m32r_option_optimization): Change to
3741         m32r_option_optimization_table.
3742         (TARGET_OPTION_OPTIMIZATION): Change to
3743         TARGET_OPTION_OPTIMIZATION_TABLE.
3744         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
3745         CAN_DEBUG_WITHOUT_FP): Remove.
3746         * config/mcore/mcore.c (mcore_option_optimization): Change to
3747         mcore_option_optimization_table.
3748         (TARGET_OPTION_OPTIMIZATION): Change to
3749         TARGET_OPTION_OPTIMIZATION_TABLE.
3750         * config/mep/mep.c (mep_option_optimization): Change to
3751         mep_option_optimization_table.
3752         (TARGET_OPTION_OPTIMIZATION): Change to
3753         TARGET_OPTION_OPTIMIZATION_TABLE.
3754         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
3755         * config/microblaze/microblaze.c
3756         (microblaze_option_optimization_table,
3757         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3758         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
3759         * config/mips/mips.c (mips_option_optimization_table,
3760         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3761         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
3762         * config/mmix/mmix.c (mmix_option_optimization): Change to
3763         mmix_option_optimization_table.
3764         (TARGET_OPTION_OPTIMIZATION): Change to
3765         TARGET_OPTION_OPTIMIZATION_TABLE.
3766         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
3767         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
3768         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3769         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
3770         * config/pa/pa.c (pa_option_optimization_table,
3771         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3772         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
3773         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
3774         pdp11_option_optimization_table.
3775         (TARGET_OPTION_OPTIMIZATION): Change to
3776         TARGET_OPTION_OPTIMIZATION_TABLE.
3777         * config/picochip/picochip.c (picochip_option_optimization_table,
3778         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3779         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
3780         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
3781         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3782         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
3783         * config/rx/rx.c (rx_option_optimization_table,
3784         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3785         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
3786         * config/s390/s390.c (s390_option_optimization): Change to
3787         s390_option_optimization_table.
3788         (s390_option_override): Update comment.
3789         (TARGET_OPTION_OPTIMIZATION): Change to
3790         TARGET_OPTION_OPTIMIZATION_TABLE.
3791         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
3792         * config/score/score.c (score_option_optimization_table,
3793         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3794         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
3795         * config/sh/sh.c (sh_option_optimization): Change to
3796         sh_option_optimization_table.
3797         (TARGET_OPTION_OPTIMIZATION): Change to
3798         TARGET_OPTION_OPTIMIZATION_TABLE.
3799         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
3800         (sh_option_override, expand_block_move, multcosts, find_barrier,
3801         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
3802         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
3803         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
3804         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
3805         instead of TARGET_SMALLCODE.
3806         * config/sh/sh.opt (mspace): Make into an alias for -Os.
3807         * config/sparc/sparc.c (sparc_option_optimization_table,
3808         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3809         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
3810         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
3811         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3812         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
3813         * config/v850/v850.c (v850_option_optimization): Change to
3814         v850_option_optimization_table.
3815         (TARGET_OPTION_OPTIMIZATION): Change to
3816         TARGET_OPTION_OPTIMIZATION_TABLE.
3817         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
3818         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
3819         xtensa_option_optimization_table.
3820         (TARGET_OPTION_OPTIMIZATION): Change to
3821         TARGET_OPTION_OPTIMIZATION_TABLE.
3822         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
3823
3824 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
3825
3826         Based on the CFString implementation in FSF apple/trunk branch.
3827
3828         * target.def (objc_construct_string): New Hook.
3829         * doc/tm.texi (objc_construct_string): Document.
3830         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
3831         * config/t-darwin: Amend build rules for darwin.o.
3832         * config/darwin.opt: Add cfstrings flags.
3833         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
3834         (darwin_objc_construct_string): New.
3835         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
3836         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
3837         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
3838         (darwin_fold_builtin): Likewise.
3839         (darwin_build_constant_cfstring): Likewise.
3840         (darwin_objc_construct_string): Likewise.
3841         (darwin_cfstring_p): Likewise.
3842         (darwin_enter_string_into_cfstring_table): Likewise.
3843         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
3844         * config/darwin.c (darwin_running_cxx): New var.
3845         (machopic_select_section): Return cfstring_constant_object_section.
3846         (darwin_override_options): Set darwin_running_cxx.
3847         (add_builtin_field_decl): New.
3848         (darwin_init_cfstring_builtins): New.
3849         (darwin_build_constant_cfstring): New.
3850         (darwin_fold_builtin): New.
3851         (cfstring_hash): New.
3852         (cfstring_eq): New.
3853         (darwin_enter_string_into_cfstring_table): New.
3854         * config/darwin-sections.def (cfstring_constant_object_section): New.
3855         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
3856         (TARGET_OBJC_CONSTRUCT_STRING): Define.
3857
3858 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3859
3860         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
3861         TYPE_STUB_DECL instead of TREE_CHAIN.
3862         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
3863         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
3864         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
3865         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
3866         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
3867         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
3868         Likewise.
3869         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
3870
3871 2010-10-22  Jie Zhang  <jie@codesourcery.com>
3872
3873         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
3874         (copy_blkmode_from_reg): Likewise.
3875         (read_complex_part): Likewise.
3876         (expand_expr_real_1): Calculate packedp and pass it to
3877         extract_bit_field.
3878         * expr.h (extract_bit_field): Update declaration.
3879         * calls.c (store_unaligned_arguments_into_pseudos): Update call
3880         to extract_bit_field.
3881         * expmed.c (extract_fixed_bit_field): Update calls to
3882         extract_fixed_bit_field.
3883         (store_split_bit_field): Likewise.
3884         (extract_bit_field_1): Add new argument packedp.
3885         (extract_bit_field): Add new argument packedp.
3886         (extract_fixed_bit_field): Add new argument packedp and let
3887         packed attribute override volatile.
3888         * stmt.c (expand_return): Update call to extract_bit_field.
3889
3890 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3891
3892         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
3893
3894 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3895
3896         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
3897         of gcc_checking_assert.
3898         * sel-sched.c (code_motion_process_successors): Likewise.
3899
3900 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
3901
3902         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
3903         when stopping because of a different locus on edge or insn.
3904         (try_optimize_cfg): Add comment.
3905         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
3906         block is a forwarder block, propagate locus on the edge.
3907         (cfg_layout_merge_blocks): Likewise.
3908
3909 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
3910
3911         PR target/45946
3912         * config/i386/i386.md (*pushti2): New insn pattern.
3913         (pushti2 splitter): New insn splitter.
3914         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
3915         DWI mode iterator.
3916
3917 2010-10-21  Paul Koning  <ni1d@arrl.net>
3918
3919         * config/pdp11/pdp11-protos.md (arith_operand,
3920         const_immediate_operand, expand_shift_operand,
3921         immediate15_operand): Delete
3922         * config/pdp11/pdp11.c: Ditto.
3923         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
3924         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
3925         EXTRA_CONSTRAINT): Delete.
3926         * config/pdp11/pdp11.md (various): Use standard constraints
3927         instead of removed ones.
3928         * config/pdp11/constraints.md: New file.
3929         * config/pdp11/predicates.md: New file.
3930
3931 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
3932
3933         PR c/45834
3934         * alias.c (true_dependence_1): Remove obsolete check for QImode.
3935         (may_alias_p): Ditto.
3936
3937 2010-10-21  Martin Jambor  <mjambor@suse.cz>
3938
3939         PR tree-optimization/45875
3940         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
3941
3942 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3943
3944         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
3945         variables.
3946         (create_new_def_for): Likewise.
3947
3948 2010-10-21  Nick Clifton  <nickc@redhat.com>
3949
3950         * config/mn10300/mn10300.c: Fold code to 80-character width.
3951         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3952         MEM, CONST_INT and CONST_DOUBLE.
3953         (targetm): Move initialization to end of file.
3954         (print_operand): Rename to mn10300_print_operand.
3955         (print_operand_address): Rename to mn10300_print_operand_address.
3956         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
3957         (expand_prologue): Rename to mn10300_expand_prologue.
3958         (expand_epilogue): Rename to mn10300_expand_epilogue.
3959         (initial_offset): Rename to mn10300_initial_offset.
3960         (function_arg): Rename to mn10300_function_arg.
3961         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
3962         (symbolic_operand): Rename to mn10300_symbolic_operand.
3963         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
3964         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
3965         * config/mn10300/mn10300-protos.h: Update prototypes.
3966         * config/mn10300/mn10300.h: Fold code to 80-character width.
3967         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3968         MEM, CONST_INT and CONST_DOUBLE.
3969         (CPP_SPEC): Move to...
3970         (TARGET_CPU_CPP_BUILTINS): ... here.
3971         * config/mn10300/mn10300.md: Fold code to 80-character width.
3972         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3973         MEM, CONST_INT and CONST_DOUBLE.
3974
3975 2010-10-21  Ira Rosen  <irar@il.ibm.com>
3976
3977         PR tree-optimization/46049
3978         PR tree-optimization/46052
3979         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
3980         (vect_get_slp_defs): Add arguments.
3981         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
3982         operands to vect_get_slp_defs.
3983         (vectorizable_reduction): Fix comment, pass scalar operands to
3984         vect_get_slp_defs.
3985         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
3986         type to determine number of units in the created vector.
3987         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
3988         (vectorizable_conversion): Fix comment.
3989         (vectorizable_shift): New function.
3990         (vectorizable_operation): Move code that handles shifts to
3991         vectorizable_shift.
3992         (vectorizable_type_demotion): Fix comment, pass scalar operands to
3993         vect_get_slp_defs.
3994         (vectorizable_type_promotion, vectorizable_store): Likewise.
3995         (vectorizable_condition): Fix comment.
3996         (vect_analyze_stmt): Call vectorizable_shift.
3997         (vect_transform_stmt): Likewise.
3998         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
3999         Use it as the operand to create vectors for, except reduction
4000         initial definition and store.  Use operands type.
4001         (vect_get_slp_defs): Add new arguments.  Pass them to
4002          vect_get_constant_vectors.
4003
4004 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
4005
4006         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
4007         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
4008         * cfghooks.c (fixup_reorder_chain): Likewise.
4009         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
4010         * cgraph.c (cgraph_add_thunk): Likewise.
4011         (cgraph_create_edge_1): Likewise.
4012         (cgraph_create_virtual_clone): Likewise.
4013         * ddg.c (add_cross_iteration_register_deps): Likewise.
4014         * dwarf2out.c (modified_type_die): Likewise.
4015         * emit-rtl.c (set_mem_alias_set): Likewise.
4016         * ggc-zone.c (zone_allocate_marks): Likewise.
4017         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
4018         * gimple.c (iterative_hash_gimple_type): Likewise.
4019         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
4020         (create_single_exit_edge): Likewise.
4021         * haifa-sched.c (choose_ready): Likewise.
4022         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4023         * passes.c (execute_todo): Likewise.
4024         * sched-ebb.c (begin_schedule_ready): Likewise.
4025         * sel-sched.c (code_motion_process_successors): Likewise.
4026         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
4027         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
4028         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
4029         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
4030         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
4031         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
4032         (ssa_conflicts_add): Likewise.
4033         * tree-ssa-copy.c (replace_exp): Likewise.
4034         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
4035         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
4036         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
4037         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
4038         (compute_antic): Likewise.
4039         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
4040         (add_dependence): Likewise.
4041         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
4042         * tree-vrp.c (supports_overflow_infinity): Likewise.
4043         (make_overflow_infinity, negative_overflow_infinity): Likewise.
4044         (avoid_overflow_infinity, register_new_assert_for): Likewise.
4045         (process_assert_insertions_for): Likewise.
4046         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
4047         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
4048         (intersect_loc_chains, variable_merge_over_cur): Likewise.
4049
4050 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
4051
4052         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
4053         * reload1.c (has_nonexceptional_receiver): Likewise.
4054         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
4055         (create_new_def_for): Likewise.
4056         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
4057         (merge_phi_nodes): Likewise.
4058         (has_abnormal_incoming_edge_p): Delete.
4059
4060 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
4061
4062         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
4063
4064 2010-10-21  Richard Guenther  <rguenther@suse.de>
4065             Michael Matz  <matz@suse.de>
4066
4067         PR tree-optimization/45764
4068         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4069         Adjust initial misalignment for negative DR_STEP.
4070         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
4071         do not have the same alignment over the whole iteration domain.
4072
4073 2010-10-21  Richard Guenther  <rguenther@suse.de>
4074
4075         PR tree-optimization/46111
4076         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
4077
4078 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4079
4080         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
4081
4082 2010-10-21  Tristan Gingold  <gingold@adacore.com>
4083
4084         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
4085         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
4086
4087 2010-10-21  Tristan Gingold  <gingold@adacore.com>
4088
4089         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
4090         signal_frame.
4091         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
4092
4093 2010-10-21  Tristan Gingold  <gingold@adacore.com>
4094
4095         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
4096         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
4097
4098 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
4099
4100         * basic-block.h (find_fallthru_edge): Define.
4101         * cfgcleanup.c (merge_blocks_move): Use it.
4102         (try_crossjump_bb): Likewise.
4103         * cfglayout.c (fixup_reorder_chains): Likewise.
4104         (fixup_fallthru_exit_predecessor): Likewise.
4105         * cfgrtl.c (rtl_split_edge): Likewise.
4106         (rtl_verify_flow_info): Likewise.
4107         * function.c (thread_prologue_and_epilogue_insns): Likewise.
4108         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
4109         * ifcvt.c (block_fallthru): Likewise.
4110         * reload1.c (fixup_abnormal_edges): Likewise.
4111         * sched-ebb.c (being_schedule_ready): Likewise.
4112         (schedule_ebb): Likwise.
4113         * sched-rgn.c (find_single_block_region): Likewise.
4114         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
4115         * tree-complex.c (expand_complex_move): Likewise.
4116         * sched-int.h (find_fallthru_edge): Rename to...
4117         (find_fallthru_edge_from): ...this.
4118         * haifa-sched.c (find_fallthru_edge): Rename to...
4119         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
4120         (init_before_recovery): Call find_fallthru_edge_from.
4121         * sel-sched-ir.c (merge_fences): Likewise.
4122         * sel-sched.c (in_fallthru_bb_p): Likewise.
4123         (move_cond_jump): Likewise.
4124
4125 2010-10-20  Paul Koning  <ni1d@arrl.net>
4126
4127         * config/pdp11/pdp11.md (various): Fix conditions on a number of
4128         insn to check for target 11/40 or higher.
4129
4130 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4131
4132         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
4133         bool instead of a tree.
4134         (c_parser_objc_method_decl): Added bool argument.  Updated call to
4135         objc_build_method_signature.
4136         (c_parser_objc_method_definition): Do not call
4137         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
4138         c_parser_objc_method_decl and objc_start_method_definition.
4139         (c_parser_objc_methodproto): Do not call objc_set_method_type.
4140         Updated calls to c_parser_objc_method_type,
4141         c_parser_objc_method_decl and objc_add_method_declaration.
4142
4143 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
4144
4145         PR tree-optimization/45919
4146         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
4147         array members.
4148
4149         PR tree-optimization/46066
4150         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
4151         instead of gsi_last_bb.
4152
4153 2010-10-20  DJ Delorie  <dj@redhat.com>
4154
4155         * config/m32c/m32c.c (m32c_option_override): Always disable
4156         function-cse in 16-bit mode.  Indirect calls are always worse than
4157         direct calls as there is no 16-bit indirect call opcode.
4158         (m32c_override_options_after_change): New, likewise.
4159
4160 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
4161
4162         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
4163         emitting the conditional move in the inner mode of the SUBREG.
4164
4165 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
4166
4167         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
4168         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
4169         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
4170         (ia64_preferred_reload_class): Make static.  Change rclass argument
4171         and result types from enum reg_class to reg_class_t.
4172
4173 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
4174
4175         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
4176         call for single operand expression.
4177
4178 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4179
4180         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
4181         if there is a call statement to pure or const function in the block.
4182
4183 2010-10-20  Paul Koning  <pkoning@equallogic.com>
4184
4185         Fix several build errors for pdp11 target.
4186         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
4187         (cbranchdf4): Conditional on TARGET_FPU.
4188         (movdf): Ditto; correct alternatives check.
4189         (movmemhi): Fix predicate and constraint.
4190         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
4191
4192 2010-10-20  Richard Guenther  <rguenther@suse.de>
4193
4194         PR lto/45667
4195         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
4196         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
4197         (verify_gimple_assign_single): Disable ADDR_EXPR type check
4198         when in LTO.
4199
4200 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
4201
4202         PR fortran/42169
4203         * ira-emit.c (store_can_be_removed_p): Return false instead of
4204         gcc_unreachable.
4205
4206 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
4207
4208         * fold-const.c (fold_binary_loc): New transformation.
4209
4210 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
4211
4212         PR target/46085
4213         * config/i386/sse.md (reduc_splus_v8sf): Updated.
4214         (reduc_splus_v4df): Likewise.
4215
4216 2010-10-20  Richard Guenther  <rguenther@suse.de>
4217
4218         PR tree-optimization/45860
4219         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
4220         conditional store replacement for non-register type stores.
4221
4222 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
4223
4224         * stor-layout.c (skip_simple_constant_arithmetic): New function.
4225         (self_referential_size): Use it instead of skip_simple_arithmetic.
4226
4227 2010-10-20  Olivier Hainque  <hainque@adacore.com>
4228
4229         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
4230         If the current function calls eh_return, claim live all registers
4231         that we need to check for liveness otherwise.
4232
4233 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
4234
4235         * c-decl.c (c_write_global_declarations): Call
4236         objc_write_global_declarations when compiling Objective-C.
4237         * c-lang.c (finish_file): Removed.
4238
4239 2010-10-19  DJ Delorie  <dj@redhat.com>
4240
4241         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
4242         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
4243         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4244         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4245         * doc/tm.texi: Regenerate.
4246         * targhooks.h (default_label_align_after_barrier_max_skip,
4247         default_loop_align_max_skip, default_label_align_max_skip,
4248         default_jump_align_max_skip): Declare.
4249         * target.def (label_align_after_barrier_max_skip): New.
4250         (loop_align_max_skip): New.
4251         (label_align_max_skip): New.
4252         (jump_align_max_skip): New.
4253         * system.h (poison): Add those macros to the list.
4254         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
4255         (LOOP_ALIGN_MAX_SKIP): Remove.
4256         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
4257         (JUMP_ALIGN_MAX_SKIP): Remove.
4258         (default_label_align_after_barrier_max_skip): New.
4259         (default_loop_align_max_skip): New.
4260         (default_label_align_max_skip): New.
4261         (default_jump_align_max_skip): New.
4262         (compute_alignments): Use the new hooks.
4263         (shorten_branches): Likewise.
4264
4265 2010-10-19  Richard Henderson  <rth@redhat.com>
4266
4267         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
4268         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
4269         (fma4i_fmadd_<mode>): New.
4270         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
4271         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
4272         standard fma patterns.
4273         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
4274         enable for FMA.
4275         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
4276         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
4277         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
4278
4279 2010-10-19  Paul Koning  <pkoning@equallogic.com>
4280
4281         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
4282         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
4283
4284 2010-10-19  Richard Henderson  <rth@redhat.com>
4285
4286         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
4287         (fmadf4, *fmsdf4, *nfmadf4): New.
4288         (fmaxf4, *fmsxf4, *nfmaxf4): New.
4289
4290 2010-10-19  Michael Eager  <eager@eagercon.com>
4291
4292         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
4293         Use sjlj unwind info for exceptions.
4294
4295 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
4296
4297         PR fortran/43414
4298         * dwarf2out.c (add_calling_convention_attribute): Flag main
4299         Fortran subroutine with DW_AT_main_subprogram.
4300
4301 2010-10-19  Nick Clifton  <nickc@redhat.com>
4302
4303         * config/rx/rx.c (rx_function_value): Small integer types are
4304         promoted to SImode.
4305         (rx_promote_function_mode): New function.
4306         (TARGET_PROMOTE_FUNCTION_MODE): Define.
4307
4308 2010-10-19  Nick Clifton  <nickc@redhat.com>
4309
4310         * config/mep/mep.c (mep_print_operand): Use
4311         targetm.strip_name_encoding.
4312         (mep_output_aligned_common): Likewise.
4313
4314 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
4315
4316         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
4317
4318 2010-10-18  Richard Henderson  <rth@redhat.com>
4319
4320         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
4321         (fma (neg a) (neg b) c) and (fma a (neg b) c).
4322
4323 2010-10-18  Richard Henderson  <rth@redhat.com>
4324
4325         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
4326         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
4327         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
4328         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
4329         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
4330         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
4331         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
4332         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
4333         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
4334         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
4335         (bdesc_multi_arg): Remove the corresponding builtins.
4336         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
4337         (UNSPEC_FMA4_FMSUBADD): Remove.
4338         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
4339         * config/i386/sse.md (FMA4MODEF4): Remove.
4340         (FMAMODE): Add.
4341         (fma<mode>4): New expander.
4342         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
4343         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
4344         (*fma4i_fmsub_<mode>): Similarly.
4345         (*fma4i_fnmadd_<mode>): Similarly.
4346         (*fma4i_fnmsub_<mode>): Similarly.
4347         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
4348         with the first operand.
4349         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
4350         of explicit arithmetic.  Macroize with AVXMODEF2P.
4351         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
4352         (xop_frcz<mode>2): Macroize with FMAMODE.
4353         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
4354         the first operand.
4355         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
4356         extra negations.
4357         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
4358         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
4359         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
4360         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
4361         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
4362         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
4363         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
4364         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
4365
4366 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
4367
4368         PR rtl-optimization/45966
4369         * combine.c (try_combine): If added_sets_2, deal with the case
4370         where i0 feeds i1 and i1 feeds i2.
4371
4372 2010-10-18  Jan Hubicka  <jh@suse.cz>
4373
4374         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
4375         preserve flags before trying to guess on visibility.
4376         (varpool_externally_visible_p): New function.
4377         (function_and_variable_visibility): Use it.
4378
4379 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4380
4381         Implemented parsing @synthesize and @dynamic for Objective-C.
4382         * c-parser.c (c_parser_external_declaration): Recognize
4383         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4384         (c_parser_objc_at_synthesize_declaration): New.
4385         (c_parser_objc_at_dynamic_declaration): New.
4386
4387 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4388
4389         * c-parser.c (c_parser_objc_class_declaration): After finding an
4390         error, parse the whole declaration then reset parser->error.
4391
4392 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4393
4394         PR target/46041
4395         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
4396         * builtins.c (mode_has_fma): Ditto.
4397
4398 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
4399
4400         PR target/36898
4401         PR middle-end/43760
4402         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
4403
4404 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
4405
4406         * config/i386/i386.c (ix86_option_override_internal): Define and
4407         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
4408         default.
4409         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
4410         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
4411
4412 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4413
4414         Merge from 'apple/trunk' branch on FSF servers.
4415         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
4416         following Objective-C change:
4417
4418         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
4419
4420         Radar 4301047
4421         * c-parse.in (objc_quals): Build objc qualifier list same way
4422         as gcc-3.3
4423
4424 2010-10-18  Jan Hubicka  <jh@suse.cz>
4425
4426         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
4427         function_and_variable_visibility): Revert accidental commit.
4428
4429 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
4430
4431         Merge from 'apple/trunk' branch on FSF servers.
4432         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
4433         the following Objective-C change:
4434
4435         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
4436
4437         Radar 4204796
4438         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
4439         'volatilized' type used in a typeof operator.
4440
4441 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
4442
4443         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
4444         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
4445         rewrite modelled on gimple_purge_dead_eh_edges.
4446         (gimple_purge_all_dead_abnormal_call_edges): New function.
4447         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
4448         directly instead of through gimple_purge_dead_abnormal_call_edges.
4449         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
4450         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
4451         removed AB side-effects from one of its statements.
4452         (init_pre): Initialize need_ab_cleanup.
4453         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
4454         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
4455
4456 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
4457
4458         PR c/46015
4459         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
4460         on computed goto argument.
4461
4462 2010-10-18  Richard Guenther  <rguenther@suse.de>
4463
4464         PR tree-optimization/45967
4465         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
4466         (could_have_pointers): Likewise.
4467         (handle_rhs_call, handle_const_call, handle_pure_call,
4468         find_func_aliases, intra_create_variable_infos): Remove calls to them.
4469         (struct fieldoff): Add must_have_pointers field.
4470         (type_must_have_pointers): New function.
4471         (field_must_have_pointers): Likewise.
4472         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
4473         Adjust field merging.
4474         (create_function_info_for): May-have-pointers of varinfo is
4475         almost always true.
4476         (create_variable_info_for_1): Likewise.
4477
4478 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
4479
4480         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
4481         of operands to vec_concat.
4482
4483 2010-10-18  Richard Guenther  <rguenther@suse.de>
4484
4485         PR lto/44950
4486         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
4487         also clear references to entries of it.
4488
4489 2010-10-18  Andi Kleen  <ak@linux.intel.com>
4490
4491         PR other/43448
4492         * gccbug.in: Remove.
4493         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
4494         (doc, distclean, install-common): Remove reference to gccbug.
4495         * configure: Regenerate.
4496         * configure.ac (all_outputs): Remove gccbug.
4497         * doc/configfiles.texi: Remove references to gccbug.
4498         * doc/sourcebuild.texi: Dito.
4499
4500 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
4501
4502         PR middle-end/46019
4503         * fold-const.c (fold_binary_loc): If integer_pow2p has
4504         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
4505
4506 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
4507             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4508
4509         * gengtype.c (verbosity_level): Add variable.
4510         (set_gc_used): Count variables for verbosity.
4511         (close_output_files): Backing up files, counting written ones
4512         verbosily.
4513         (write_types): Count emitted functions for verbosity. Added
4514         debug messages.
4515         (write_enum_defn): Count structures for verbosity. Added debug
4516         messages.
4517         (gengtype_long_options): Add "verbose" & "backupdir".
4518         (print_usage): Ditto.
4519         (main): Verbose display of parsed files.
4520
4521         * gengtype.h (verbosity_level): Add declaration.
4522
4523 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
4524
4525         * gengtype.c (parse_program_options): Add allocation of
4526         plugin_files, and correct test on nb_plugin_files.
4527
4528 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4529
4530         Merge from 'apple/trunk' branch on FSF servers.
4531
4532         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
4533
4534         Radar 4133425
4535         * c-decl.c (undeclared_variable): Issue diagnostic on
4536         private 'ivar' access.
4537
4538 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
4539
4540         PR target/46051
4541         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
4542         generated sequence to match *avx_vperm2f128<mode>_nozero.
4543         (vec_interleave_lowv4df): Ditto.
4544         (vec_interleave_highv8sf): Ditto.
4545         (vec_interleave_lowv8sf): Ditto.
4546
4547 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
4548
4549         * libgcov.c (create_file_directory): Enable it for win32 case.
4550         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
4551         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
4552         (GCOV_PREFIX_SKIP): Likewise.
4553
4554 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4555
4556         * doc/objc.texi (GNU Objective-C runtime API): New section.
4557         (Modern GNU Objective-C runtime API): New section.
4558         (Traditional GNU Objective-C runtime API): New section.
4559         (Executing code before main): Mention that this section is
4560         specific to the GNU Objective-C runtime.
4561         (Garbage Collection): Same.
4562
4563 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
4564
4565         * c-parser.c (c_parser_for_statement): Move initialization of
4566         cond and incr before if.
4567
4568 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
4569
4570         * target.def (preferred_output_reload_class): New hook.
4571         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
4572         * doc/tm.texi: Regenerate.
4573         * targhooks.c (default_preferred_output_reload_class): New function.
4574         * targhooks.h (default_preferred_output_reload_class): Declare.
4575         * reload.c (find_dummy_reload): Change rclass argument type from
4576         enum reg_class to reg_class_t. Change this_alternative array type
4577         from enum reg_class to reg_class_t.
4578         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
4579         (push_reload): Change preferred_class variable type to reg_class_t.
4580         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
4581         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
4582         argument type from enum reg_class to reg_class_t. Use
4583         HARD_REGISTER_NUM_P predicate.
4584         * recog.h (reg_fits_class_p): Update prototype.
4585
4586         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4587         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
4588         Remove.
4589         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
4590         static. Change regclass argument and result types from enum reg_class
4591         to reg_class_t.
4592         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4593
4594 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
4595
4596         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
4597         visibility enum, and handle @package.
4598
4599 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
4600
4601         * doc/objc.texi (What you can and what you cannot do in +load):
4602         Document that sending messages to constant string objects in +load
4603         is not guaranteed to work.
4604
4605 2010-10-16  Jan Hubicka  <jh@suse.cz>
4606
4607         PR middle-end/44206
4608         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
4609         existence of refrences before removing the function.
4610
4611 2010-10-16  Jan Hubicka  <jh@suse.cz>
4612
4613         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
4614         only_called_at_startup and only_called_at_exit.
4615         (cgraph_propagate_frequency): Compute only_called_at_startup and
4616         only_called_at_exit.
4617         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
4618         only_called_at_exit.
4619         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
4620         flags.
4621         * predict.c (compute_function_frequency): Initialize the new flags.
4622
4623 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
4624
4625         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
4626         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
4627         on the bounds of its domain.
4628         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
4629
4630 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
4631
4632         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
4633         * config/avr/avr-protos.h (preferred_reload_class): Remove.
4634         * config/avr/avr.c (preferred_reload_class): Remove.
4635         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
4636         * config/pa/pa.c (emit_move_sequence): Update comment
4637         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
4638         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
4639         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
4640         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
4641         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
4642         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
4643         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
4644         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
4645         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
4646         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
4647         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
4648         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
4649         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
4650
4651 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
4652
4653         * opts.c (set_fast_math_flags,
4654         set_unsafe_math_optimizations_flags): Make static.
4655         * toplev.h (set_fast_math_flags,
4656         set_unsafe_math_optimizations_flags): Remove prototypes.
4657
4658 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
4659
4660         * config/arm/arm.c (arm_option_optimization): Set
4661         flag_section_anchors to 1 not 2.
4662         * config/i386/i386.c (ix86_option_override_internal): Check
4663         global_options_set.x_flag_zee and
4664         global_options_set.x_flag_omit_frame_pointer.
4665         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
4666         flag_zee to 2.
4667         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4668         global_options_set.x_flag_omit_frame_pointer.
4669         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
4670         opts->x_flag_section_anchors to 1 not 2.
4671         * config/sh/sh.c (sh_option_optimization): Don't set
4672         flag_schedule_insns to 2.
4673         (sh_option_override): Check
4674         global_options_set.x_flag_schedule_insns.
4675         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
4676
4677 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
4678
4679         * configure.ac: Make sure inhibit_libc remains false for mingw targets
4680         as cross.
4681         * configure: Regenerated.
4682
4683 2010-10-15  Xinliang David Li  <davidxl@google.com>
4684
4685         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
4686         function.
4687         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
4688         into a recursive function.
4689
4690 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
4691
4692         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
4693         (*movdfcc_1): ditto.
4694
4695 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4696
4697         * target.def (target_option.init_struct): New hook.
4698         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
4699         * doc/tm.texi: Regenerate.
4700         * hooks.c (hook_void_gcc_optionsp): New.
4701         * hooks.h (hook_void_gcc_optionsp): Declare.
4702         * langhooks-def.h (lhd_init_options_struct): Remove.
4703         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
4704         * langhooks.c (lhd_init_options_struct): Remove.
4705         * opts.c (init_options_struct): Also call
4706         targetm.target_option.init_struct.
4707         * config/i386/i386.c (ix86_option_init_struct,
4708         TARGET_OPTION_INIT_STRUCT): New.
4709         (ix86_option_optimization): Move some settings to
4710         ix86_option_init_struct.
4711         * config/pdp11/pdp11.c (pdp11_option_init_struct,
4712         TARGET_OPTION_INIT_STRUCT): New.
4713         (pdp11_option_optimization): Move some settings to
4714         pdp11_option_init_struct.
4715         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
4716         rs6000_option_init_struct.  Use options structure pointer.
4717         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
4718         * config/s390/s390.c (s390_option_init_struct,
4719         TARGET_OPTION_INIT_STRUCT): New.
4720         (s390_option_optimization): Don't set
4721         flag_asynchronous_unwind_tables here.
4722         * config/sh/sh.c (sh_option_init_struct,
4723         TARGET_OPTION_INIT_STRUCT): New.
4724         (sh_option_optimization): Don't set flag_finite_math_only here.
4725         * config/spu/spu.c (spu_option_optimization): Replace by
4726         spu_option_optimization.  Use options structure pointer.
4727         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
4728
4729 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4730
4731         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
4732
4733         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
4734         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
4735         (Standard names): Document fma.
4736
4737         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
4738         __FP_FAST_FMAF, __FP_FAST_FMAL.
4739
4740         * builitns.c (expand_builtin_mathfn_ternary): New function for
4741         expanding ternary math functions, like fma.
4742         (expand_builtin): Call it for the fma builtins.
4743
4744         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
4745         ops at present.
4746
4747         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
4748         vectorizable functions to support vectorizing fma.
4749
4750         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
4751         Handle fma builtins.
4752
4753         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
4754         (UNSPEC_VSX_MSUB): Ditto.
4755         (UNSPEC_VSX_NMADD): Ditto.
4756         (UNSPEC_VSX_NMSUB): Ditto.
4757         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
4758         of UNSPEC. Renumber combiner patterns.
4759         (vsx_fmsub<mode>4*): Ditto.
4760         (vsx_fnmadd<mode>4*): Ditto.
4761         (vsx_fnmsub<mode>4*): Ditto.
4762
4763         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
4764         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
4765         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
4766         (altivec_vmaddfp_1): Ditto.
4767         (altivec_vmaddfp_2): Ditto.
4768         (atlivec_mulv4sf3): Ditto.
4769         (altivec_vnmsubfp): Ditto.
4770         (altivec_vnmsubfp_1): Ditto.
4771         (altivec_vnmsubfp_2): Ditto.
4772         (altivec_vnmsubfp_3): Delete.
4773
4774         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
4775         (fmasf4_fpr): Ditto.
4776         (fmssf4_fpr): Ditto.
4777         (fnmasf4_fpr): Ditto.
4778         (fnmssf4_fpr): Ditto.
4779         (fmadf4): Ditto.
4780         (fmadf4_fpr): Ditto.
4781         (fmsdf4_fpr): Ditto.
4782         (fnmadf4_fpr): Ditto.
4783         (fnmsdf4_fpr): Ditto.
4784
4785         * optabs.h (OTI_fma): Add fma optab.
4786         (fma_optab): Ditto.
4787
4788         * genopinit.c (optabs): Set fma optab.
4789
4790         * rtl.def (FMA): Add FMA rtl.
4791
4792         * tree.h (mode_has_fma): New function to return if MODE supports a
4793         fast multiply and add instruction.
4794         * builtins.c (mode_has_fma): Ditto.
4795
4796 2010-10-15  Jan Hubicka  <jh@suse.cz>
4797
4798         * lto-streamer-out.c (write_symbol): Use pointer set of seen
4799         objects instead of bitmap.
4800         (produce_symtab): Likewise; output defined symbols first.
4801
4802 2010-10-15  Jie Zhang  <jie@codesourcery.com>
4803
4804         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
4805         Option Summary and Index.
4806
4807 2010-10-15  Richard Guenther  <rguenther@suse.de>
4808
4809         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
4810         for automatic variables again.
4811
4812 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4813
4814         * doc/extend.texi (Variable Length): Don't refer to VLAs not
4815         conforming to C99.
4816
4817 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4818
4819         * config/rx/rx.c (rx_option_optimization): Change to
4820         rx_override_options_after_change.  Don't change
4821         flag_lto_compression_level.  Don't check for changes to whether
4822         FPU instructions can be used.  Check and set only
4823         flag_finite_math_only, not other fast-math flags.
4824         (rx_option_override): Call rx_override_options_after_change.
4825         (TARGET_OPTION_OPTIMIZATION): Remove.
4826         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4827
4828 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4829
4830         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
4831         disable section anchors for lang_hooks.name[4] != 'O'.
4832
4833 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4834
4835         * config/frv/frv.c (frv_option_optimization,
4836         TARGET_OPTION_OPTIMIZATION): Remove.
4837         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
4838
4839 2010-10-15  Michael Matz  <matz@suse.de>
4840
4841         * cgraphunit.c (clone_of_p): Define unconditionally.
4842
4843 2010-10-15  Richard Guenther  <rguenther@suse.de>
4844
4845         PR lto/45957
4846         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
4847
4848 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
4849
4850         * ifcvt.c (find_active_insn_before): New function.
4851         (find_active_insn_after): New function.
4852         (cond_exec_process_if_block): Use new functions to replace
4853         prev_active_insn() and next_active_insn().
4854
4855 2010-10-14  Yao Qi  <yao@codesourcery.com>
4856
4857         PR target/45447
4858         * config/arm/arm.c (arm_build_builtin_va_list): Assign
4859         va_list_name to TYPE_STUB_DECL (va_list_type).
4860
4861 2010-10-14  Jan Hubicka  <jh@suse.cz>
4862
4863         PR middle-end/45621
4864         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
4865         redirected to clone, be happy.
4866         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
4867         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
4868         former_clone_of unconditionally.
4869
4870 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4871
4872         Merge from FSF apple 'trunk' branch.
4873         2006 Fariborz Jahanian  <fjahanian@apple.com>
4874
4875         Radars 4436866, 4505126, 4506903, 4517826
4876         * c-parser.c (c_parser, objc_property_attr_context) New flag.
4877         (c_lex_one_token): Handle property attributes.
4878         (c_parser_external_declaration): Handle @property.
4879         (c_parser_declaration_or_fndef): Warn on invalid attributes before
4880         @alias, @class, @end and @property objc keywords.
4881         (c_parser_objc_methodprotolist): Handle @property.
4882         (c_parser_objc_property_attrlist): New.
4883         (c_parser_objc_at_property): New.
4884         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
4885         (build_modify_expr): Likewise.
4886
4887 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
4888
4889         PR tree-optimization/46008
4890         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
4891
4892 2010-10-14  Richard Guenther  <rguenther@suse.de>
4893
4894         PR tree-optimization/44913
4895         * tree-data-ref.c (disjoint_objects_p): Remove.
4896         (dr_may_alias_p): Simplify.  Only hand the base object to
4897         the alias-oracle.
4898         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4899         some more trees, bail out instead of asserting.
4900         (ptr_derefs_may_alias_p): Likewise.  Export.
4901         (refs_may_alias_p_1): Handle STRING_CSTs.
4902         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
4903
4904 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
4905
4906         PR c/45969
4907         * c-typeck.c (build_binary_op): Don't try to compute a semantic
4908         type with excess precision for boolean operations.
4909
4910 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
4911             Basile Starynkevitch  <basile@starynkevitch.net>
4912
4913         * gengtype.c:  Include getopt.h and version.h.
4914
4915         (lang_bitmap, struct outf, outf_p)
4916         (get_output_file_with_visibility, oprintf): Definitions moved to
4917         gengtype.h
4918         (output_files, header_file, srcdir, srcdir_len, this_file)
4919         (do_dump): No more static variables.
4920         (do_debug): New.
4921         (dbgprint_count_type_at): Added new function.
4922         (gengtype_long_options): New.
4923         (print_usage, print_version, parse_program_options): New.
4924         (main): Call parse_program_options, and removed old option
4925         handling code.  Added some debug output.
4926
4927         * gengtype.h:  Updated copyright year.
4928         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
4929         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
4930         Moved from gengtype.c to here.
4931         (do_debug, read_state_filename, write_state_filename): New variables.
4932         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
4933
4934         * Makefile.in:
4935         (REVISION): Always defined.
4936         (version.o): Removed ifdef REVISION_c.
4937         (s-gtype): Pass arguments to build/gengtype program.
4938         (build/version.o): Added building rule.
4939         (build/gengtype$(build_exeext)): Added build/version.o.
4940
4941 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4942
4943         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
4944         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
4945         __strong macros.
4946
4947 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
4948
4949         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
4950         may_trap_or_fault_p instead of may_trap_p predicate.
4951         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
4952         (substitute_placeholder_in_expr): Likewise.
4953         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
4954         flag on MEM_REF nodes.
4955         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
4956         flags on INDIRECT_REF nodes.
4957
4958 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
4959
4960         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
4961         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
4962         (arm*-*-eabi*) <tm_file>: Likewise.
4963         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
4964         (frv-*-*linux*) <tm_file>: Likewise.
4965         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
4966         and associated helper macros.
4967         * config/frv/frv-abi.h: Delete.
4968
4969 2010-10-14  Richard Guenther  <rguenther@suse.de>
4970
4971         PR lto/44561
4972         * tree.def (NULLPTR_TYPE): New tree code.
4973         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
4974         * dwarf2out.c (is_base_type): Likewise.
4975         (gen_type_die_with_usage): Likewise.
4976         * sdbout.c (plain_type_1): Likewise.
4977         * tree.c (build_int_cst_wide): Likewise.
4978         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
4979
4980 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
4981
4982         * params.c (params_finished): New.
4983         (add_params): Assert !params_finished.
4984         (finish_params): New.
4985         (set_param_value_internal): Take params and params_set
4986         parameters.  Assert params_finished.
4987         (set_param_value, maybe_set_param_value): Take params and
4988         params_set parameters.  Update calls to set_param_value_internal.
4989         (set_default_param_value): Assert !params_finished.  Don't use
4990         set_param_value_internal.
4991         (default_param_value, init_param_values): New.
4992         * params.h (struct param_info): Change value to default_value.
4993         Remove set.
4994         (set_param_value, maybe_set_param_value): Add params and
4995         params_set parameters.
4996         (PARAM_VALUE): Get parameters from global_options.
4997         (PARAM_SET_P): Remove.
4998         (finish_params, default_param_value, init_param_values): New.
4999         * common.opt (param_values): New Variable.
5000         * config/arm/arm.c (arm_option_override): Pass extra arguments to
5001         maybe_set_param_value.
5002         * config/i386/i386.c (ix86_option_override_internal): Pass extra
5003         arguments to maybe_set_param_value.
5004         * config/picochip/picochip.c (picochip_option_override): Pass
5005         extra arguments to maybe_set_param_value.
5006         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
5007         extra arguments to maybe_set_param_value.
5008         * config/s390/s390.c (s390_option_override): Use
5009         maybe_set_param_value instead of set_param_value.  Pass extra
5010         arguments to maybe_set_param_value.
5011         * config/sparc/sparc.c (sparc_option_override): Pass extra
5012         arguments to maybe_set_param_value.
5013         * config/spu/spu.c (spu_option_override): Pass extra arguments to
5014         maybe_set_param_value.
5015         * opts.c (handle_param): Take opts and opts_set parameters.
5016         Update call to set_param_value.
5017         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
5018         initial_loop_invariant_max_bbs_in_loop): Remove.
5019         (init_options_once): Don't set them.
5020         (init_options_struct): Initialize parameters structures.
5021         (default_options_optimization): Use default_param_value when
5022         restoring defaults.  Update calls to maybe_set_param_value.
5023         (finish_options): Update calls to maybe_set_param_value.
5024         (common_handle_option): Update calls to handle_param and
5025         set_param_value.
5026         * toplev.c (DEFPARAM): Update definition for changes to param_info.
5027         (general_init): Call finish_params.
5028
5029 2010-10-14  Nick Clifton  <nickc@redhat.com>
5030
5031         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
5032         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
5033         (FIRST_PSEUDO_REGISTER): Increase by one.
5034         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
5035         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
5036         (MODES_TIEABLE): Call mn10300_modes_tieable.
5037         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
5038         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
5039         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
5040         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
5041         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
5042         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
5043         (mn10300_cc_status_mdep): Delete.
5044         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
5045         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
5046         the combine-stack-adjust pass.
5047         (print_operand): Use the mode of the comparison operation to
5048         select the comparison suffix.
5049         (notice_update_cc): Delete.
5050         (mn10300_secondary_reload_class): Remove test for stack pointer
5051         based arithmetic.
5052         (output_tst): Rename to mn10300_output_cmp.
5053         (impossible_plus_operand): Move into predicates.md.
5054         (mn10300_legitimize_address): Make static.
5055         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
5056         constant pic operands.
5057         (mn10300_legitimate_constant_p): New function.
5058         (mn10300_case_values_threshold): Make static.
5059         (mn10300_hard_regno_mode_ok): New function.
5060         (mn10300_modes_tieable): New function.
5061         (mn10300_select_cc_mode): New function.
5062         * config/mn10300/predicates.md (impossible_plus_operand): Define.
5063         * config/mn10300/mn10300-protos.h: Tidy.
5064         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
5065         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
5066         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
5067         with clobbers or sets of CC_REG.
5068         (CC_REG): Define.
5069         (mov*): Remove use of CLR instruction.
5070         (cbranch_si4_<code>): New pattern/split.
5071         (integer_conditional_branch): New pattern.
5072         (cbranch_sf4_<code>): New pattern/split.
5073         (float_conditional_branch): New pattern.
5074         (casesi): Use addsi3 pattern instead of movsi pattern to add and
5075         move a value at the same time.
5076         (cc0 peepholes): Remove.
5077
5078 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
5079
5080         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
5081         on RTX_FRAME_RELATED_P insns and the insn to which
5082         NOTE_INSN_EPILOGUE_BEG is attached.
5083         * sched-vis.c (print_value): Allow NULL value.
5084
5085 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
5086
5087         PR rtl-optimization/45570
5088         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
5089         assert that we are pipelining outer loops.  Allow returning
5090         zero predecessors.
5091
5092 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
5093
5094         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
5095         (tidy_control_flow): Tidy vertical space.
5096         (sel_remove_bb): New variable idx.  Use it to remember the basic
5097         block index before deleting the block.
5098         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
5099         (sel_merge_blocks): ... here.
5100         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
5101
5102 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
5103
5104         * cse.c (is_dead_reg): Change into inline function that is not
5105         called through for_each_rtx.
5106         (set_live_p): Adjust caller.
5107         (insn_live_p): Don't reset DEBUG_INSNs here.
5108         (struct dead_debug_insn_data): New data.
5109         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
5110         (delete_trivially_dead_insns): If there is just one setter for the
5111         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
5112         and add DEBUG_INSN for it right before the removed setter and
5113         use the DEBUG_EXPR instead of the dead pseudo.
5114
5115 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
5116
5117         * et-forest.c (et_nca): Return NULL immediately when
5118         the dominance forest has disjoint components.
5119
5120 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
5121
5122         * ira.c (setup_class_hard_regs): Fix typo in indexing
5123         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
5124
5125 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
5126
5127         * graph.c (inbb): New variable.
5128         (start_bb): Set inbb to 1 if output is inside of a building block.
5129         (end_bb): Check if output is inside of a building block.
5130
5131 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5132
5133         PR rtl-optimization/45912
5134         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
5135         regno of registers instead of their index to compute the alignment.
5136
5137 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
5138
5139         * config/i386/i386.c (ix86_build_const_vector): Check vector
5140         mode instead of scalar mode.
5141         (ix86_build_signbit_mask): Likewise.
5142         (ix86_expand_fp_absneg_operator): Updated.
5143         (ix86_expand_copysign): Likewise.
5144         (ix86_expand_int_vcond): Likewise.
5145         (ix86_emit_swdivsf): Likewise.
5146         (ix86_sse_copysign_to_positive): Likewise.
5147         (ix86_expand_sse_fabs): Likewise.
5148         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
5149         * config/i386/sse.md (copysign<mode>3): Likewise.
5150         (sse2_cvtudq2ps): Likewise.
5151         (vec_unpacku_float_hi_v4si): Likewise.
5152         (vec_unpacku_float_lo_v4si): Likewise.
5153
5154         * config/i386/i386.c (ix86_builtins): Add
5155         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
5156         (bdesc_args): Likewise.
5157         (ix86_builtin_vectorized_function): Support
5158         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
5159         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
5160         and IX86_BUILTIN_CVTPS2DQ256.
5161         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
5162
5163         * config/i386/sse.md (STORENT_MODE): New.
5164         (VEC_FLOAT_MODE): Likewise.
5165         (VEC_EXTRACT_MODE): Likewise.
5166         (*avx_cvtdq2pd256_2): Likewise.
5167         (vec_pack_trunc_v4df): Likewise.
5168         (vec_interleave_highv8sf): Likewise.
5169         (vec_interleave_lowv8sf): Likewise.
5170         (storent<mode>): Macroized.
5171         (<code><mode>2: absneg): Likewise.
5172         (copysign<mode>3): Likewise.
5173         (vec_extract<mode>): Likewise.
5174
5175         PR target/44180
5176         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
5177         for V8SFmode.
5178
5179 2010-10-13  Richard Guenther  <rguenther@suse.de>
5180             H.J. Lu  <hongjiu.lu@intel.com>
5181
5182         * config/i386/sse.md (reduc_splus_v8sf): Add.
5183         (reduc_splus_v4df): Likewise.
5184         (vec_unpacks_hi_v8sf): Likewise.
5185         (vec_unpacks_lo_v8sf): Likewise.
5186         (*avx_cvtps2pd256_2): Likewise.
5187         (vec_unpacks_float_hi_v8si): Likewise.
5188         (vec_unpacks_float_lo_v8si): Likewise.
5189         (vec_interleave_highv4df): Likewise.
5190         (vec_interleave_lowv4df): Likewise.
5191
5192 2010-10-13  Richard Guenther  <rguenther@suse.de>
5193
5194         PR objc/45878
5195         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
5196         alone if there are no virtual methods.
5197
5198 2010-10-13  Richard Henderson  <rth@redhat.com>
5199
5200         * expr.c (build_personality_function): Take parameter LANG instead
5201         of parameter NAME.  Build the name based on the lang prefix and the
5202         unwind method in use.
5203         * tree.c (lhd_gcc_personality): Update call to
5204         build_personality_function.
5205
5206 2010-10-13  Richard Guenther  <rguenther@suse.de>
5207
5208         PR objc/45878
5209         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
5210
5211 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
5212
5213         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
5214         Canonicalize input operands of ASM_OPERANDS insns.
5215
5216 2010-10-13  Richard Guenther  <rguenther@suse.de>
5217
5218         PR tree-optimization/45788
5219         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
5220         EH update until fixup-cfg.
5221
5222 2010-10-13  Julian Brown  <julian@codesourcery.com>
5223
5224         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
5225         from CORE_REGS and GENERAL_REGS classes.
5226         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
5227         final constraint for register preferencing.
5228
5229 2010-10-13  Richard Guenther  <rguenther@suse.de>
5230
5231         PR tree-optimization/45970
5232         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
5233         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
5234         (stmt_kills_ref_p): Likewise.
5235         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
5236
5237 2010-10-13  Richard Guenther  <rguenther@suse.de>
5238
5239         PR tree-optimization/45982
5240         * tree-ssa-structalias.c (make_constraints_to): New function.
5241         (make_constraint_to): Implement in terms of make_constraints_to.
5242         (find_func_aliases): Properly make return values of pure/const
5243         functions escape if they assign to sth that is not a pointer.
5244
5245 2010-10-13  Richard Guenther  <rguenther@suse.de>
5246
5247         PR middle-end/45874
5248         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
5249         Fixup the CFG when EH was fixed up.
5250
5251 2010-10-13  Ira Rosen  <irar@il.ibm.com>
5252
5253         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
5254         Use operand's type for POINTER_PLUS_EXPR.
5255
5256 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
5257
5258         * c-parser.c (c_parser_for_statement): Initialize incr.
5259
5260 2010-10-12  Xinliang David Li  <davidxl@google.com>
5261
5262         PR tree-optimization/45972
5263         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
5264         with too many arguments.
5265
5266 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
5267
5268         PR fortran/45636
5269         * tree-ssa-forwprop.c: Include expr.h.
5270         (constant_pointer_difference, simplify_builtin_call): New functions.
5271         (tree_ssa_forward_propagate_single_use_vars): Call
5272         simplify_builtin_call on builtin calls.
5273
5274 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
5275
5276         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
5277         (*adddi3_extend_sp32): Likewise.
5278         (*subdi3_insn_sp32): Likewise.
5279         (*subdi3_extend_sp32): Likewise.
5280         (*negdi2_sp32): Use negative test for consistency.
5281
5282 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
5283
5284         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
5285         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5286         * config/fixed-bit.h: Likewise.
5287         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5288         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
5289         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
5290         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
5291         (DF_SIZE): Likewise.
5292         * doc/tm.texi: Regenerate.
5293
5294 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
5295
5296         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
5297         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
5298         (*isel_reversed_unsigned_<mode>): New.
5299         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
5300         as valid comparisons and adjust operands and output appropriately.
5301         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
5302
5303 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
5304
5305         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
5306         DATA_ALIGNMENT and add COND parameter. Update comments above.
5307         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
5308         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
5309
5310 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
5311
5312         PR bootstrap/45958
5313         * exec-tool.in: Support '-plugin' as the second option to the linker.
5314
5315 2010-10-12  Richard Henderson  <rth@redhat.com>
5316
5317         PR middle-end/45962
5318         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
5319         (expand_stack_vars): Assert large base allocated when used.
5320
5321 2010-10-12  Richard Guenther  <rguenther@suse.de>
5322
5323         * tree-ssa-structalias.c (get_constraint_for_1): Constants
5324         only point to nonlocal, not anything.
5325
5326 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5327
5328         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
5329         unwind info for exceptions.
5330
5331 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5332
5333         PR testsuite/45851
5334         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
5335         Document optional target selector.
5336
5337 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
5338
5339         * flag-types.h: New.
5340         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
5341         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
5342         options.h.
5343         (OPTIONS_H): Define.
5344         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
5345         of options.h.
5346         * configure.ac (tm_include_list): Include options.h not flags.h.
5347         * configure: Regenerate.
5348         * flags.h: Include flag-types.h.  Include options.h at top of file
5349         again.
5350         (enum debug_info_type, enum debug_info_level, enum
5351         debug_info_usage, enum symbol_visibility, struct visibility_flags,
5352         enum ira_algorithm, enum ira_region, enum excess_precision, enum
5353         graph_dump_types, enum stack_check_type,
5354         enum warn_strict_overflow_code): Move to flag-types.h
5355         * opth-gen.awk: Include flag-types.h in options.h.
5356
5357 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
5358
5359         * expr.c (store_expr): Share code for STRING_CST and
5360         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
5361         check if target is a MEM.
5362
5363         * rtl.h: Include hashtab.h.
5364         (iterative_hash_rtx): New prototype.
5365         * rtl.c (iterative_hash_rtx): New function.
5366         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
5367         (output_loc_list): Return immediately if emitted is set, set it.
5368         (hash_loc_operands, hash_locs, hash_loc_list,
5369         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
5370         optimize_location_lists_1, optimize_location_lists): New function.
5371         (dwarf2out_finish): Call optimize_location_lists.
5372         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
5373
5374 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5375
5376         PR testsuite/45974
5377         Revert:
5378         * Makefile.in ($(lang_checks_parallel))
5379         ($(lang_checks_parallelized)): Use single quotes for
5380         $(RUNTESTFLAGS), to allow passing quoted content.
5381
5382 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5383
5384         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
5385         actual_oldval.  Use __builtin_expect.
5386         (SUBWORD_VAL_CAS): Likewise.
5387
5388 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
5389
5390         * recog.c (nonmemory_operand): Call immediate_operand for
5391         CONSTANT_P operands.
5392
5393 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
5394
5395         * config/i386/i386.md (movmem<mode>): Macroize expander from
5396         movmem{si,di} using SWI48 mode iterator.
5397         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
5398         *strmovsi_rex_1 using P mode iterator.
5399         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
5400         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
5401         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
5402         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
5403         (setmem<mode>): Macroize expander from setmem{si,di} using
5404         SWI48 mode iterator.
5405         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
5406         *strsetsi_rex_1 using P mode iterator.
5407         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
5408         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
5409         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
5410         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
5411         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
5412         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
5413         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
5414         mode iterator.
5415         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
5416         *strlenqi_rex_1 using P mode iterator.
5417
5418 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
5419
5420         PR bootstrap/45445
5421         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
5422         static functions.
5423         (mark_ref_live, mark_ref_dead): Use them.
5424         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
5425         Save the original reg, and use the new functions.
5426         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
5427         changed.
5428         (check_and_make_def_conflict): Save the original reg.
5429
5430 2010-10-11  Martin Jambor  <mjambor@suse.cz>
5431
5432         PR middle-end/45699
5433         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
5434         thunks.
5435
5436 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5437
5438         * Makefile.in ($(lang_checks_parallel))
5439         ($(lang_checks_parallelized)): Use single quotes for
5440         $(RUNTESTFLAGS), to allow passing quoted content.
5441
5442         PR bootstrap/35855
5443         * opt-functions.awk (BEGIN): New section.
5444         (lower, upper, digit, alnum): New variables.
5445         (static_var, opt_sanitized_name): Use alnum instead of character
5446         classes, for non-C locale.
5447         * optc-gen.awk: Likewise.
5448         * opth-gen.awk: Likewise.
5449
5450 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
5451
5452         * target.def (preferred_reload_class): New hook.
5453         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
5454         * doc/tm.texi: Regenerate.
5455         * targhooks.c (default_preferred_reload_class): New function.
5456         * targhooks.h (default_preferred_reload_class): Declare.
5457         * reload.c (find_dummy_reload): Change preferred_class variable type
5458         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
5459         target hook.
5460         (find_reloads): Change goal_alternative array type from int to
5461         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
5462         (push_reload, find_reloads_address_part): Use
5463         TARGET_PREFERRED_RELOAD_CLASS target hook.
5464         * reload1.c (emit_input_reload_insns): Ditto.
5465         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
5466         hook. Change rclass argument and secondary_class variable types from
5467         'enum reg_class' to reg_class_t.
5468
5469         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
5470         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
5471         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
5472         Change regclass argument and result types from enum reg_class to
5473         reg_class_t.
5474         (TARGET_PREFERRED_RELOAD_CLASS): Define.
5475
5476 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
5477
5478         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
5479         in masking operations.
5480         (simplify_const_unary_operation): Likewise.
5481         (simplify_binary_operation_1): Likewise.
5482         (simplify_const_binary_operation): Likewise.
5483         (simplify_const_relational_operation): Likewise.
5484         (simplify_ternary_operation): Likewise.
5485         (simplify_immed_subreg): Likewise.
5486
5487 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5488
5489         PR middle-end/45862
5490         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
5491         (TARGET_SUPPORTS_WEAK): New.
5492         * doc/tm.texi: Regenerate.
5493         * defaults.h (SUPPORTS_WEAK): Update comment.
5494         (TARGET_SUPPORTS_WEAK): New.
5495         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
5496         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
5497         SUPPORTS_WEAK.
5498         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
5499         make_decl_one_only): Likewise.
5500         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
5501         TARGET_SUPPORTS_WEAK.
5502         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
5503         instead of SUPPORTS_WEAK.
5504
5505 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5506
5507         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
5508
5509 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
5510
5511         * vec.h (VEC_qsort): Define.
5512         * dbxout.c (output_used_types): Use it.
5513         * df-scan.c (df_sort_and_compress_refs): Likewise.
5514         (df_sort_and_compress_mws): Likewise.
5515         * genautomata.c (uniq_sort_alt_states): Likewise.
5516         (evaluate_equiv_classes): Likewise.
5517         (output_trans_table): Likewise.
5518         (output_state): Likewise.
5519         * gimplify.c (compare_case_labels): Likewise.
5520         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
5521         * ipa.c (build_cdtor_fns): Likewise.
5522         * lto.c (lto_wpa_write_files): Likewise.
5523         * sel-sched.c (fill_vec_av_set): Likewise.
5524         * tree-predcom.c (determine_roots_comp): Likewise.
5525         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
5526         (splice_param_accesses): Likewise.
5527         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
5528         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
5529         (reassociate_bb): Likewise.
5530         * tree-ssa-sccvn.c (sort_scc): Likewise.
5531         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
5532
5533 2010-10-11  Ian Lance Taylor  <iant@google.com>
5534
5535         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
5536         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
5537         TREE_THIS_NOTRAP when appropriate.
5538         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
5539         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
5540         newly created MEM_REF.
5541
5542 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5543
5544         Nathan Froyds patch to hooks FUNCTION_ARG etc.
5545         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
5546         (picochip_incoming_function_arg): Delete.
5547         (picochip_arg_advance): Delete.
5548         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
5549         (FUNCTION_INCOMING_ARG): Delete.
5550         (FUNCTION_ARG_ADVANCE): Delete.
5551         * config/picochip/picochip.c (picochip_function_arg): Take a
5552         const_tree and a bool.
5553         (picochip_incoming_function_arg): Likewise.
5554         (picochip_arg_advance): Likewise.
5555         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5556         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5557
5558 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5559
5560         PR middle-end/45955
5561         * ipa.c (build_cdtor): Delete endless loop.
5562
5563 2010-10-07  Andi Kleen  <ak@linux.intel.com>
5564
5565         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
5566         checksum-options.
5567         (checksum-options): Add.
5568         (cc1-dummy): Remove.
5569         (cc1-checksum): Change to run checksum over object files
5570         and options only.
5571         * dummy-checksum.c: Remove.
5572         * genchecksum.c: Update copyright.
5573         (usage): Allow multiple arguments.
5574         (BLOCKSIZE): Add.
5575         (dosum): Change for incremental checksum. Remove C output.
5576         (main): Iterate over all argument files. Add C output.
5577
5578 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
5579
5580         * params.c (set_param_value_internal): New.
5581         (set_param_value): Use set_param_value_internal.
5582         (maybe_set_param_value, set_default_param_value): New.
5583         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
5584         (maybe_set_param_value, set_default_param_value): Declare.
5585         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
5586         * config/i386/i386.c (ix86_option_override_internal): Use
5587         maybe_set_param_value.
5588         * config/ia64/ia64.c (ia64_option_default_params,
5589         TARGET_OPTION_DEFAULT_PARAMS): New.
5590         (ia64_option_optimization): Move some code to
5591         ia64_option_default_params.
5592         * config/picochip/picochip.c (picochip_option_override): Use
5593         maybe_set_param_value.
5594         * config/rs6000/rs6000.c (rs6000_option_default_params,
5595         TARGET_OPTION_DEFAULT_PARAMS): New.
5596         (rs6000_option_override_internal): Use maybe_set_param_value.
5597         (rs6000_option_optimization): Move some code to
5598         rs6000_option_default_params.
5599         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
5600         * config/sh/sh.c (sh_option_default_params,
5601         TARGET_OPTION_DEFAULT_PARAMS): New.
5602         (sh_option_optimization): Move some code to sh_option_default_params.
5603         * config/sparc/sparc.c (sparc_option_override): Use
5604         maybe_set_param_value.
5605         * config/spu/spu.c (spu_option_default_params,
5606         TARGET_OPTION_DEFAULT_PARAMS): New.
5607         (spu_option_optimization): Move some code to spu_option_default_params.
5608         (spu_option_override): Use maybe_set_param_value.
5609         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
5610         * doc/tm.texi: Regenerate.
5611         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
5612         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
5613         compiler_params.
5614         (default_options_optimization): Use maybe_set_param_value.
5615         (finish_options): Use maybe_set_param_value.
5616         * target.def (target_option.default_params): New hook.
5617         * toplev.c (general_init): Call targetm.target_option.default_params.
5618
5619 2010-10-11  Ira Rosen  <irar@il.ibm.com>
5620
5621         PR tree-optimization/45902
5622         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
5623         vector type for constants, unless it's a pointer.
5624
5625 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5626
5627         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
5628
5629 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
5630
5631         PR target/45870
5632         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
5633         (ix86_delegitimize_address): Use it.
5634
5635 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
5636
5637         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
5638
5639 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
5640
5641         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
5642         to cum struct in the call to function_arg_advance.
5643         (alpha_function_arg_advance): Mark named as unused.
5644
5645 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
5646
5647         * config/mips/mips.c (mips_handle_option): Make "value" with
5648         ATTRIBUTE_UNUSED.
5649
5650 2010-10-09  Richard Henderson  <rth@redhat.com>
5651
5652         PR rtl-opt/33721
5653         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
5654         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
5655         required_align, tidy the code a bit.  Emit split_stack code in the
5656         right place.  Mark the return value with the alignment properly.
5657         * expr.h (allocate_dynamic_stack_space): Update decl.
5658         * builtins.c (expand_builtin_apply): Update call to
5659         allocate_dynamic_stack_space.
5660         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
5661         * calls.c (initialize_argument_information): Update call to
5662         allocate_dynamic_stack_space.
5663         (expand_call): Likewise.
5664
5665         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
5666         Don't update_stack_alignment here.
5667         (alloc_stack_frame_space): Make ALIGN unsigned.
5668         (stack_var_cmp): Sort by alignment too.
5669         (partition_stack_vars): Don't merge large and small alignment vars.
5670         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
5671         Take care when BASE is not virtual_stack_vars_rtx.
5672         (expand_stack_vars): Allocate dynamic stack space for large
5673         alignment variables.
5674         (expand_one_stack_var): Update all to expand_one_stack_var_at.
5675         (defer_stack_allocation): True for large alignment vars.
5676         (update_stack_alignment): Merge into ...
5677         (expand_one_var): ... here.
5678         (gimple_expand_cfg): Place code from expand_stack_vars.
5679
5680 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5681
5682         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5683         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
5684         (pdp11_function_arg_advance): New function.
5685         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5686
5687 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5688
5689         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
5690         * libgcc2.c: Likewise.
5691
5692 2010-10-09  Richard Guenther  <rguenther@suse.de>
5693
5694         PR lto/45956
5695         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
5696         Properly check if a decl is an automatic var.
5697
5698 2010-10-09  Richard Guenther  <rguenther@suse.de>
5699
5700         PR lto/45947
5701         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
5702
5703 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5704
5705         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
5706         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5707         * config/mmix/mmix.c (mmix_function_arg): Rename to...
5708         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
5709         bool arguments.
5710         (mmix_function_arg): New function.
5711         (mmix_function_incoming_arg): New function.
5712         (mmix_function_arg_advance): New function.
5713         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5714         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5715
5716 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5717
5718         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5719         * config/vax/vax.c (vax_function_arg): New function.
5720         (vax_function_arg_advance): New function.
5721         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5722
5723 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5724
5725         * config/pa/pa-protos.h (function_arg): Delete.
5726         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5727         * config/pa/pa.c (function_arg): Rename to...
5728         (pa_function_arg): ...this.  Make static.  Take a const_tree and
5729         a bool.
5730         (pa_function_arg_advance): New function.
5731         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5732
5733 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5734
5735         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5736         * config/m68k/m68k.c (m68k_function_arg): New function.
5737         (m68k_function_arg_advance): New function.
5738         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5739
5740 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5741
5742         * config/avr/avr-protos.h (function_arg): Delete.
5743         (function_arg_advance): Delete.
5744         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5745         * config/avr/avr.c (function_arg): Rename to...
5746         (avr_function_arg): ...this.  Make static.  Take a const_tree and
5747         a bool.
5748         (function_arg_advance): Rename to...
5749         (avr_function_arg_advance): ...this.  Make static.  Take a
5750         const_tree and a bool.
5751         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5752
5753 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5754
5755         * config/alpha/alpha-protos.h (function_arg): Delete.
5756         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5757         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
5758         * config/alpha/alpha.c (function_arg): Rename to...
5759         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
5760         a bool.  Delete TARGET_ABI_UNICOSMK code.
5761         (alpha_function_arg_advance): New function.
5762         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5763
5764 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5765
5766         * config/mep/mep-protos.h (mep_function_arg): Delete.
5767         (mep_function_arg_advance): Delete.
5768         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5769         * config/mep/mep.c (mep_function_arg): Make static.  Take a
5770         const_tree and a bool.
5771         (mep_function_arg_advance): Likewise.
5772         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5773
5774 2010-10-09  Richard Guenther  <rguenther@suse.de>
5775
5776         PR tree-optimization/45945
5777         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
5778
5779 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
5780
5781         PR tree-optimization/45612
5782         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
5783         Test LABEL_DECLs as well.  Fix formatting issues.
5784         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
5785         whose label is present in NON_SSA_VARS.
5786         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
5787         as well.  Fix formatting issues.
5788         (visit_bb): Fix typos and formatting issue.
5789
5790 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5791
5792         PR tree-optimization/45950
5793         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
5794         before initializing vno->op.
5795
5796 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
5797
5798         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
5799         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
5800
5801 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
5802
5803         PR target/45913
5804         * config/i386/i386.c (ix86_binary_operator_ok): Support
5805         "andhi/andsi/anddi" as a zero-extending move.
5806
5807 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5808
5809         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
5810         into a temporary array.
5811
5812 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
5813
5814         PR tree-optimization/45903
5815         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
5816         of {A,L}SHIFTRT of MEM.
5817
5818 2010-10-08  Richard Guenther  <rguenther@suse.de>
5819
5820         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
5821         Re-construct BLOCK_VARS.
5822         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
5823         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
5824         * tree.c (free_lang_data_in_block): Remove.
5825         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
5826         Do not touch the BLOCK tree.
5827         * expr.c (expand_expr_real_1): Allow externals.
5828
5829 2010-10-08  Richard Guenther  <rguenther@suse.de>
5830
5831         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
5832         Do not output BLOCK_SUBBLOCKS.
5833         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
5834         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
5835         Re-construct BLOCK_SUBBLOCKS of parent block.
5836         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
5837         for BINFO_BASE_ACCESSES.
5838
5839 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
5840
5841         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
5842         (TREE_H): Include $(FLAGS_H) instead of options.h.
5843         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
5844         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
5845         * common.opt (flag_complex_method, flag_evaluation_order,
5846         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
5847         Variable declarations.
5848         * configure.ac (tm_include_list): Include flags.h instead of options.h.
5849         * configure: Regenerate.
5850         * flags.h: Condition out contents for target libraries.  Include
5851         options.h at end of file.
5852         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
5853         flag_evaluation_order, flag_warn_unused_result): Remove.
5854         * gcc.c (main): Intialize global_options with global_options_init.
5855         * langhooks-def.h (lhd_init_options_struct): Declare.
5856         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
5857         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
5858         * langhooks.c (lhd_init_options_struct): New.
5859         * langhooks.h (struct lang_hooks): Add init_options_struct.
5860         Update comment on init_options.
5861         * optc-gen.awk: Generate initializer for global_options_init, not
5862         global_options.
5863         * opth-gen.awk: Condition out structure declarations for target
5864         libraries.  Declare global_options_init.
5865         * opts-common.c: Include flags.h instead of options.h.
5866         * opts.c (flag_warn_unused_result): Remove.
5867         (read_cmdline_options): Take gcc_options parameters.  Pass them to
5868         read_cmdline_option.
5869         (initial_lang_mask, initial_min_crossjump_insns,
5870         initial_max_fields_for_field_sensitive,
5871         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
5872         (init_options_once): New.  Split out of decode_options.
5873         (init_options_struct): New.  Split out of decode_options.
5874         (decode_cmdline_options_to_array_default_mask): New.
5875         (default_options_optimization): New.  Split out of decode_options.
5876         (decode_options): Move most code to other functions.  Update call
5877         to read_cmdline_options.
5878         (finish_options): New.  Split out of decode_options.
5879         * opts.h (decode_options): Add gcc_options parameters.
5880         (init_options_once, init_options_struct,
5881         decode_cmdline_options_to_array_default_mask): New.
5882         * toplev.c (flag_complex_method, flag_ira_algorithm,
5883         flag_ira_region, flag_evaluation_order): Remove.
5884         (general_init): Use global_options_init for initial flag values
5885         for global_dc.
5886         (toplev_main): Call init_options_once, init_options_struct,
5887         lang_hooks.init_options_struct,
5888         decode_cmdline_options_to_array_default_mask and
5889         lang_hooks.init_option before decode_options.  Update arguments to
5890         decode_options.
5891         * tree.h: Include flags.h instead of options.h.
5892
5893 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5894
5895         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5896
5897 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5898
5899         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
5900         Delete.
5901         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
5902         (FUNCTION_INCOMING_ARG): Delete.
5903         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
5904         (function_arg_slotno): Likewise.  Take bool arguments.
5905         (sparc_arg_partial_bytes): Update call to it.
5906         (function_arg): Rename to...
5907         (sparc_function_arg_1): ...this.  Take bool arguments.
5908         (sparc_function_arg, sparc_function_incoming_arg): New functions.
5909         (function_arg_advance): Rename to...
5910         (sparc_function_arg_advance): ...this.  Take bool argument.
5911         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
5912         (TARGET_FUNCTION_INCOMING_ARG): Define.
5913
5914 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5915
5916         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
5917         Delete.
5918         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5919         * config/bfin/bfin.c (function_arg_advance): Rename to...
5920         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
5921         and bool arguments.
5922         (function_arg): Rename to...
5923         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
5924         arguments.
5925         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5926
5927 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5928
5929         * config/score/score-protos.h (score_function_arg): Delete.
5930         (score_function_arg_advance): Delete.
5931         * config/score/score3.h (score3_function_arg_advance): Take a
5932         const_tree and a bool.
5933         (score3_function_arg): Likewise.
5934         * config/score/score7.h (score7_function_arg_advance): Likewise.
5935         (score7_function_arg): Likewise.
5936         * config/score/score3.c (score3_classify_arg): Likewise.
5937         (score3_function_arg_advance, score3_function_arg): Likewise.
5938         * config/score/score7.c (score7_classify_arg): Likewise.
5939         (score7_function_arg_advance, score7_function_arg): Likewise.
5940         * config/score/score.c (score_function_arg_advance): Likewise.
5941         (score_function_arg): Likewise.  De-const-ify `cum' argument.
5942         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5943
5944 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5945
5946         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
5947         (s390_function_arg): Delete.
5948         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5949         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
5950         (s390_function_arg_integer): Likewise.
5951         (s390_function_arg_advance): Make static.  Take a const_tree and
5952         a bool.
5953         (s390_function_arg): Likewise.
5954         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5955
5956 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5957
5958         * config/spu/spu-protos.h (spu_function_arg): Delete.
5959         * config/spu/spu.h (FUNCTION_ARG): Delete.
5960         (FUNCTION_ARG_ADVANCE): Move code to ...
5961         * config/spu/spu.c (spu_function_arg_advance): New function.
5962         (spu_function_arg): Make static.  Take a const_tree and a bool.
5963         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
5964         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5965
5966 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5967
5968         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5969
5970 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5971
5972         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
5973         (init_vn_nary_op_from_op): New function.
5974         (init_vn_nary_op_from_stmt): New function.
5975         (vn_nary_op_lookup_1): New function.
5976         (sizeof_vn_nary_op): New function.
5977         (alloc_vn_nary_op_noinit): New function.
5978         (alloc_vn_nary_op): New function.
5979         (vn_nary_op_insert_into): New function.
5980         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
5981         (vn_nary_op_lookup): Likewise.
5982         (vn_nary_op_lookup_stmt): Likewise.
5983         (vn_nary_op_insert_pieces): Likewise.
5984         (vn_nary_op_insert): Likewise.
5985         (vn_nary_op_insert_stmt): Likewise.
5986         (copy_nary): Likewise.
5987         (set_value_id_for_result): New function.
5988         (set_hashtable_value_ids): Call it.
5989
5990 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5991
5992         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5993         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
5994
5995 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5996
5997         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
5998         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5999
6000 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
6001
6002         PR debug/45656
6003         * cse.c (cse_extended_basic_block): Preserve cc0 info across
6004         debug isnsn.  Skip them when searching for cc0 setter.
6005         (set_live_p): Skip debug insns when searching for cc0 user.
6006
6007 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
6008
6009         PR debug/45673
6010         PR debug/45604
6011         PR debug/45419
6012         PR debug/45408
6013         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
6014         type of MEM_REFs to INTEGER_CSTs.
6015
6016 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
6017
6018         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
6019         m68hc11_print_operand_address.
6020
6021 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
6022
6023         * builtins.c (rewrite_call_expr): Move code to...
6024         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
6025         (rewrite_call_expr_array): New function.
6026         (fold_builtin_sprintf_chk_1): New function.
6027         (fold_builtin_sprintf_chk): Call it.
6028         (gimple_fold_builtin_sprintf_chk): Likewise.
6029         (fold_builtin_snprintf_chk_1): New function.
6030         (fold_builtin_snprintf_chk): Call it.
6031         (gimple_fold_builtin_snprintf_chk): Likewise.
6032         (gimple_rewrite_call_expr): Delete.
6033
6034 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
6035
6036         * config.host: Update copyright year.
6037
6038 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
6039
6040         * config.host (host_lto_plugin_soname): New shell variable.
6041         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
6042         * config.in: Regenerate.
6043         * configure: Regenerate.
6044         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
6045         LTO plugin shared library.
6046
6047 2010-10-07  Richard Henderson  <rth@redhat.com>
6048
6049         * target.h (enum unwind_info_type): Move ...
6050         * coretypes.h: ... here.
6051
6052 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
6053
6054         * doc/objc.texi (Fast enumeration protocol): Mention that
6055         'unsigned int' can also be used instead of 'unsigned long' in
6056         countByEnumeratingWithState:objects:count:.
6057
6058 2010-10-07  Martin Jambor  <mjambor@suse.cz>
6059
6060         * tree-sra.c (struct access): New field grp_assignment_write.
6061         (dump_access): Dump grp_assignment_write.
6062         (build_accesses_from_assign): Set grp_assignment_write.
6063         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
6064         (mark_read_status): Renamed to mark_rw_status, individual values
6065         renamed too.
6066         (analyze_access_subtree): Changed type of mark_write to
6067         mark_read_status.  Fixed propagating of mark_read and
6068         mark_write.  Changed benefit estimate.  Updated comment.
6069
6070 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
6071
6072         PR Tree-Vect/45847
6073         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
6074         check for vectype_out returned by get_vectype_for_scalar_type().
6075
6076 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
6077
6078         PR target/45805
6079         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
6080         constraint, add register specifier in instruction template.
6081         (neon_vec_pack_trunc_<mode>): Likewise.
6082         (neon_vec_<US>mult_<mode>): Add register specifier to
6083         instruction template.
6084
6085 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
6086
6087         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
6088         cygwin2.o.
6089         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
6090         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
6091         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
6092         (cygwin2.o): Likewise.
6093         * config/i386/cygwin1.c: Delete file.
6094         * config/i386/cygwin2.c: Likewise.
6095         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
6096         make all {%!mno-cygwin} ones unconditional.
6097         (STARTFILE_SPEC): Likewise.
6098         (REAL_LIBGCC_SPEC): Likewise.
6099         (LIB_SPEC): Likewise.
6100         (CXX_WRAP_SPEC): Likewise.
6101         (LINK_SPEC): Likewise.
6102         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
6103         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
6104         (cygwin_gplusplus_include_dir): Delete now-unused array.
6105         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
6106         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
6107         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
6108         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
6109         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
6110         (cygwin_local_include_dir): Delete now-unused array.
6111         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
6112         (cygwin_cross_include_dir): Delete now-unused array.
6113         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
6114         (cygwin_tool_include_dir): Delete now-unused array.
6115         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
6116         (cygwin_standard_include_dir): Delete now-unused array.
6117         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
6118         (GEN_CVT_ARRAY): Delete now-unused macro definition.
6119         (cvt_to_mingw): Delete now-unused array.
6120         (mingw_scan): Remove prototype of deleted function.
6121         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
6122         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
6123         * doc/invoke.texi (-mcygwin): Don't document removed option.
6124         (-mno-cygwin): Likewise.
6125
6126 2010-10-07  Richard Guenther  <rguenther@suse.de>
6127
6128         * machmode.h (mode_for_vector): Declare.
6129         * stor-layout.c (mode_for_vector): New function, split out from ...
6130         (layout_type): ... here.
6131         * tree-vectorizer.h (current_vector_size): Declare.
6132         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
6133         mask vector type is available.
6134         (get_vectype_for_scalar_type): Rename to ...
6135         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
6136         size argument.
6137         (get_vectype_for_scalar_type): New wrapper around
6138         get_vectype_for_scalar_type_and_size using current_vector_size.
6139         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
6140         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
6141         of vect_analyze_loop here.
6142         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
6143         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
6144         to autodetect.
6145         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
6146         V8SF to V8SI conversion builtin.
6147
6148 2010-10-07  Richard Guenther  <rguenther@suse.de>
6149
6150         * target.def (autovectorize_vector_sizes): New target hook.
6151         * targhooks.c (default_autovectorize_vector_sizes): New function.
6152         * targhooks.h (default_autovectorize_vector_sizes): Declare.
6153         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
6154         Document.
6155         * doc/tm.texi: Update.
6156         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
6157         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
6158
6159 2010-10-07  Richard Guenther  <rguenther@suse.de>
6160
6161         * target.def (units_per_simd_word): Rename to ...
6162         (preferred_simd_mode): ... this.  Return mode instead of size.
6163         * targhooks.c (default_units_per_simd_word): Rename to ...
6164         (default_preferred_simd_mode): ... this.  Return word_mode.
6165         * targhooks.h (default_preferred_simd_mode): Declare.
6166         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
6167         (arm_preferred_simd_mode): ... this.  Re-implement.
6168         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
6169         (ix86_preferred_simd_mode): ... this.  Re-implement.
6170         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
6171         (sparc_preferred_simd_mode): ... this.  Re-implement.
6172         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
6173         (mips_preferred_simd_mode): ... this.  Re-implement.
6174         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
6175         (rs6000_preferred_simd_mode): ... this.  Re-implement.
6176         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
6177         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
6178         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
6179         * doc/tm.texi: Update.
6180
6181 2010-10-07  Richard Guenther  <rguenther@suse.de>
6182
6183         PR middle-end/45869
6184         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
6185         of pointers.
6186
6187 2010-10-07  Alan Modra  <amodra@gmail.com>
6188
6189         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
6190         rather than sign extension by hand.
6191
6192 2010-10-07  Jan Hubicka  <jh@suse.cz>
6193
6194         PR middle-end/45926
6195         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
6196
6197 2010-10-07  Richard Guenther  <rguenther@suse.de>
6198
6199         PR bootstrap/45914
6200         * configure.ac: Fix typo.
6201         * configure: Regenerated.
6202
6203 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6204
6205         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
6206         define_builtin_std where it's unnecessary.
6207         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
6208
6209 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
6210
6211         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
6212         * doc/tm.texi.in: Regenerate.
6213         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
6214         * targhooks.c (default_class_likely_spilled_p): Don't use the
6215         CLASS_LIKELY_SPILLED_P macro.
6216
6217         * config/arm/arm.md: Update comment.
6218
6219 2010-10-06  Jan Hubicka  <jh@suse.cz>
6220
6221         * ipa.c (cgraph_remove_unreachable_nodes): External references can
6222         always be removed.
6223         (cgraph_externally_visible_p): We can not bring local comdats that
6224         are known to linker; fix handling of internal visibility.
6225         (function_and_variable_visibility): Likewise.
6226
6227 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
6228
6229         PR rtl-optimization/45394
6230         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
6231         (struct rtx_subst_pair): Remove AFTER field.
6232         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
6233         (propagate_for_debug): Remove MOVE parameter and adjust.
6234         (try_combine): In the special case where I2 is a PARALLEL, combine only
6235         destinations of SETs and set I2SRC to the I2 source.
6236         Adjust calls to propagate_for_debug throughout.
6237         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
6238         insns.
6239
6240 2010-10-06  Olivier Hainque  <hainque@adacore.com>
6241
6242         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
6243         switch on insn codes as sequence of ifs.
6244
6245 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
6246
6247         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
6248         be UI_NONE for picochip.
6249         (picochip_option_override): Do not disable exception flags.
6250         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
6251         Declare.
6252
6253 2010-10-06  Richard Guenther  <rguenther@suse.de>
6254
6255         * Makefile.in (regmove.o): Depend on $(TARGET_H).
6256
6257 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
6258
6259         Implemented fast enumeration for Objective-C.
6260         * c-parser.c (objc_could_be_foreach_context): New.
6261         (c_lex_one_token): Recognize RID_IN keyword in a potential
6262         Objective-C foreach context.
6263         (c_parser_declaration_or_fndef): Added parameter.  Accept
6264         Objective-C RID_IN keyword as terminating a declaration; in that
6265         case, return the declaration in the new parameter.
6266         (c_parser_extenral_declaration): Updated calls to
6267         c_parser_declaration_or_fndef.
6268         (c_parser_declaration_or_fndef): Same change.
6269         (c_parser_compound_statement_nostart): Same change.
6270         (c_parser_label): Same change.
6271         (c_parser_objc_methodprotolist): Same change.
6272         (c_parser_omp_for_loop): Same change.
6273         (c_parser_for_statement): Detect and parse Objective-C foreach
6274         statements.
6275         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
6276         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
6277         fast enumeration parsing code to turn off the c99 error but still
6278         perform checks on the loop declarations.
6279         * c-tree.h (check_for_loop_decls): Updated declaration.
6280         * doc/objc.texi: Document fast enumeration.
6281
6282 2010-10-06  Nick Clifton  <nickc@redhat.com>
6283
6284         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
6285         (MDR_REGNUM): Define.
6286         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
6287         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
6288         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
6289         (REGISTER_NAMES): Add MDR.
6290         (DWARF2_DEBUGGING_INFO): Define to 1.
6291         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6292         (F): New function.  Sets RTX_FRAME_RELATED_P.
6293         (mn10300_gen_multiple_store): Use F.
6294         (expand_prologue): Use F.  Use gen_movsf() to push floating
6295         point registers.
6296         (expand_epilogue): Use gen_movsf() to pop floating point registers.
6297         (mn10300_option_override): Disable combine stack adjust pass.
6298
6299 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
6300
6301         PR target/45901
6302         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
6303         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
6304
6305 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
6306
6307         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
6308         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
6309         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
6310         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
6311         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
6312         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
6313         BUILT_IN_TOUPPER): Mark as leaf.
6314
6315         PR middle-end/45838
6316         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
6317         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
6318         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
6319         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
6320         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
6321         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
6322         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
6323
6324 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
6325
6326         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
6327         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6328         (m68hc11_class_likely_spilled_p): New function.
6329
6330 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
6331
6332         * c-parser.c (c_parser_objc_method_definition): Updated comment.
6333
6334 2010-10-05  Jan Hubicka  <jh@suse.cz>
6335
6336         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
6337         Document.
6338         * opts.c (decode_options): Handle lto partitions.
6339         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
6340         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
6341
6342 2010-10-05  Jan Hubicka  <jh@suse.cz>
6343
6344         * cgraphunit.c (assemble_function): Output thunks and aliases before
6345         the function itself.
6346
6347 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
6348
6349         * config/picochip/picochip.c (picochip_option_override): Disable
6350         exception flags for picochip.
6351
6352 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
6353
6354         * opts-common.c (handle_option, handle_generated_option,
6355         read_cmdline_option, set_option): Add diagnostic_context
6356         parameter.  Update calls among these functions.
6357         (set_option): Don't use global_dc.
6358         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
6359         (decode_options): Pass global_dc to enable_warning_as_error.
6360         (common_handle_option): Pass global_dc to enable_warning_as_error.
6361         (enable_warning_as_error): Add diagnostic_context parameter.
6362         Document parameters.  Don't use global_dc.  Pass
6363         diagnostic_context parameter to handle_generated_option.
6364         * opts.h (set_option, handle_option, handle_generated_option,
6365         read_cmdline_option, enable_warning_as_error): Add
6366         diagnostic_context parameter.
6367         * Makefile.in (lto-opts.o): Update dependencies.
6368         * coretypes.h (struct diagnostic_context, diagnostic_context):
6369         Declare here.
6370         * diagnostic.h (diagnostic_context): Don't declare typedef here.
6371         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
6372         * langhooks-def.h (struct diagnostic_context): Don't declare here.
6373         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
6374         using diagnostic_context typedef.
6375         * langhooks.c (lhd_initialize_diagnostics): Declare using
6376         diagnostic_context typedef.
6377         * langhooks.h (struct diagnostic_context): Don't declare here.
6378         (initialize_diagnostics, print_error_function): Declare using
6379         diagnostic_context typedef.
6380         * lto-opts.c: Include diagnostic.h.
6381         (lto_reissue_options): Pass global_dc to set_option.  Pass
6382         DK_UNSPECIFIED not 0.
6383         * plugin.c (plugins_internal_error_function): Declare using
6384         diagnostic_context typedef.
6385         * plugin.h (struct diagnostic_context): Don't declare here.
6386         (plugins_internal_error_function): Declare using
6387         diagnostic_context typedef.
6388
6389 2010-10-05  Olivier Hainque  <hainque@adacore.com>
6390             Nicolas Roche  <roche@adacore.com>
6391
6392         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
6393         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
6394
6395 2010-10-05  Ira Rosen  <irar@il.ibm.com>
6396
6397         PR tree-optimization/45752
6398         * tree-vect-slp.c (vect_get_mask_element): Remove static
6399         variables, make them function arguments.
6400         (vect_transform_slp_perm_load): Pass new arguments to
6401         vect_get_mask_element.
6402
6403 2010-10-05  Richard Guenther  <rguenther@suse.de>
6404
6405         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
6406         (gimple_mod_pow2): Likewise.
6407         (gimple_mod_subtract): Likewise.
6408         (gimple_ic): Likewise.
6409         (gimple_stringop_fixed_value): Likewise.
6410         * tree-profile.c (tree_init_edge_profiler): Mark profile
6411         functions nothrow and leaf.
6412         (add_abnormal_goto_call_edges): Remove.
6413         (tree_gen_edge_profiler): Work on SSA form.
6414         (tree_gen_ic_profiler): Likewise.  Simplify.
6415         (do_tree_profiling): Update SSA form.
6416         (pass_tree_profile): Remove.
6417         (do_tree_profiling): Likewise.
6418         (gate_tree_profile_ipa): New function.
6419         (pass_ipa_tree_profile): New.
6420         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
6421         state of instrumented functions.
6422         * passes.c (init_optimization_passes): Remove early non-SSA
6423         inlining.  Move profiling after early optimizations.
6424         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
6425         (pass_ipa_early_inline): Likewise.
6426         * tree-pass.h (pass_ipa_early_inline): Remove.
6427         (pass_tree_profile): Likewise.
6428         (pass_ipa_tree_profile): Declare.
6429
6430 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6431             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
6432
6433         * config/s390/s390.c (z196_cost): New.
6434         (s390_handle_arch_option): Add -march=z196.
6435         (s390_option_override): Use the new cost function and use the z10
6436         defaults also for z196.
6437         (legitimate_reload_constant_p): Adjust comment.
6438         (legitimate_reload_fp_constant_p): New function.
6439         (s390_preferred_reload_class): Distingiush between FP and Int constants.
6440         (preferred_la_operand_p): Avoid la with index on z196.
6441         (s390_adjust_priority): Trigger also for z196.
6442         (s390_issue_rate): Issue rate for z196 is 3.
6443         (s390_z10_fix_long_loop_prediction): Rename to ...
6444         (s390_fix_long_loop_prediction): ... this.
6445         (s390_reorg): Apply the z10 adjustments also for z196.
6446         (s390_loop_unroll_adjust): Do this also for z196.
6447         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
6448         (enum processor_flags): Add PF_Z196.
6449         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
6450         (TARGET_CPU_Z196, TARGET_Z196): New macros.
6451         * config.gcc: Enable z196 for --with-arch.
6452         * config/s390/2817.md: New file.
6453         * config/s390/2084.md: New type for multiply and add.
6454         * config/s390/2097.md: Likewise.
6455         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
6456         (UNSPECV_ATOMIC_OP): New constants.
6457         (fmadddf, fmaddsf): New values for type attribute.
6458         (z196prop): New insn attribute.
6459         (cpu, cpu_facility): Add z196.
6460         (ATOMIC_Z196): New code iterator.
6461         (noxa): New code attribute.
6462         (gk): New mode attribute.
6463         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
6464         Support load zero for fp constants.
6465         (fixuns_truncdddi2, fixuns_trunctddi2)
6466         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
6467         for z196.
6468         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
6469         (popcounthi2, popcountqi2): New expander.
6470         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
6471         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
6472         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
6473         insn definition.
6474         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
6475         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
6476         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
6477         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
6478         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
6479         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
6480         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
6481         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
6482         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
6483         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
6484         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
6485         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
6486         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
6487         Support new z196 instructions.
6488
6489 2010-10-05  Richard Guenther  <rguenther@suse.de>
6490
6491         PR middle-end/45877
6492         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
6493         case where gimplification optimizes away the stmt.
6494
6495 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
6496
6497         PR debug/45849
6498         * var-tracking.c (strip_pointer_flags): New function.
6499         (emit_note_insn_var_location): If rtx_equal_p check failed,
6500         retry on locations simplified with simplify_replace_fn_rtx
6501         and strip_pointer_flags as its callback.
6502
6503 2010-10-04  Jan Hubicka  <jh@suse.cz>
6504
6505         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
6506         (can_refer_decl_in_current_unit_p): ... this one; reverse return
6507         value; handle comdats too.
6508         (canonicalize_constructor_val): Use it; handle function_decls
6509         correctly.
6510         (gimple_fold_obj_type_ref_known_binfo): Likewise.
6511         * gimple.c (get_base_address): Accept all kinds of decls.
6512
6513 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6514
6515         * flags.h (g_switch_value, g_switch_set): Remove.
6516         * opts.c (g_switch_value, g_switch_set): Remove.
6517         * config/g.opt (G): Add Var(g_switch_value).
6518         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
6519         (alpha_option_override): Check global_options_set.x_g_switch_value
6520         instead of g_switch_set.
6521         (alpha_in_small_data_p): Remove cast in comparison with
6522         g_switch_value.
6523         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
6524         g_switch_value to unsigned HOST_WIDE_INT.
6525         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
6526         with g_switch_value.
6527         (frv_handle_option): Don't handle -G here.
6528         (frv_option_override): Check global_options_set.x_g_switch_value
6529         instead of g_switch_set.  Don't modify g_switch_set.
6530         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
6531         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
6532         g_switch_value to unsigned HOST_WIDE_INT.
6533         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
6534         (ia64_option_override): Check global_options_set.x_g_switch_value
6535         instead of g_switch_set.
6536         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
6537         Remove.
6538         (lm32_in_small_data_p): Remove cast in comparison with
6539         g_switch_value.
6540         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
6541         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
6542         HOST_WIDE_INT.
6543         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
6544         (m32r_init): Check global_options_set.x_g_switch_value instead of
6545         g_switch_set.
6546         (m32r_in_small_data_p): Remove cast in comparison with
6547         g_switch_value.
6548         (m32r_file_start): Format g_switch_value with %d.
6549         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
6550         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
6551         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
6552         handle -G here.
6553         (microblaze_option_override): Check
6554         global_options_set.x_g_switch_value instead of g_switch_set.
6555         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
6556         (mips_option_override): Check global_options_set.x_g_switch_value
6557         instead of g_switch_set.
6558         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
6559         (rs6000_file_start): Format g_switch_value with %d.
6560         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
6561         comparisons with g_switch_value.
6562         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
6563         global_options_set.x_g_switch_value instead of g_switch_set.
6564         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6565         global_options_set.x_g_switch_value instead of g_switch_set.
6566         * config/score/score.c (score_handle_option): Don't handle -G here.
6567         * config/score/score3.c (score3_option_override): Check
6568         global_options_set.x_g_switch_value instead of g_switch_set.
6569         * config/score/score7.c (score7_option_override): Check
6570         global_options_set.x_g_switch_value instead of g_switch_set.
6571
6572 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
6573
6574         * common.opt (fira-coalesce): Remove.
6575
6576         * doc/invoke.texi (flag_ira_coalesce): Remove.
6577
6578         * ira-color.c (allocno_coalesced_p): Move before
6579         copy_freq_compare_func.
6580         processed_coalesced_allocno_bitmap): Ditto.
6581         (update_conflict_hard_regno_costs): Don't use
6582         ALLOCNO_FIRST_COALESCED_ALLOCNO.
6583         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
6584         (assign_hard_reg): Assume no coalesced allocnos.
6585         (get_coalesced_allocnos_attributes): Remove.
6586         (bucket_allocno_compare_func): Assume no coalesced allocnos.
6587         (push_allocno_to_stack): Ditto.
6588         (remove_allocno_from_bucket_and_push): Use
6589         ira_print_expanded_allocno instead of print_coalesced_allocno.
6590         (push_allocnos_to_stack): Assume uncoalesced allocnos.
6591         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
6592         all_conflicting_hard_regs.
6593         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
6594         (setup_allocno_left_conflicts_size): Ditto.
6595         (put_allocno_into_bucket): Ditto.
6596         (copy_freq_compare_func): Remove.
6597         (copy_freq_compare_func, merge_allocnos): Move before
6598         coalesced_pseudo_reg_freq_compare.
6599         coalesced_allocno_conflict_p): Ditto.
6600         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
6601         parameter.  Assume it true.
6602         (color_allocnos): Assume uncoalesced allocnos.  Use
6603         ira_print_expanded_allocno instead of print_coalesced_allocno.
6604         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
6605         parameter.
6606
6607         * ira.c: Remove comment about coalescing.
6608
6609 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6610
6611         * config/mips/mips.h (target_flags_explicit): Declare for
6612         GENERATOR_FILE.
6613
6614 2010-10-04  Andi Kleen  <ak@linux.intel.com>
6615
6616         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
6617         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
6618
6619 2010-10-04  Matthias Klose  <doko@ubuntu.com>
6620
6621         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
6622         multilib osdirname if it exists.
6623         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
6624
6625 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
6626
6627         PR middle-end/45876
6628         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
6629         arg0's type or its unsigned counterpart as utype.  Convert
6630         arg1 to utype unconditionally.
6631
6632 2010-10-04  Julian Brown  <julian@codesourcery.com>
6633
6634         * expr.c (expand_assignment): Add assertion to prevent emitting
6635         null rtx for movmisalign pattern.
6636         (expand_expr_real_1): Likewise.
6637         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
6638         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
6639         (arm_vector_alignment_reachable): New.
6640         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
6641         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
6642         (arm_print_operand): Include alignment qualifier in %A.
6643         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
6644         (movmisalign<mode>): New expander.
6645         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
6646         insn patterns.
6647
6648 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
6649
6650         * optc-gen.awk: Define global_options_set.  Don't define
6651         target_flags_explicit.
6652         * opth-gen.awk: Declare global_options_set.  Define
6653         target_flags_explicit as macro.
6654         * opts-common.c (handle_option): Take opts_set and generated_p
6655         parameters.
6656         (handle_generated_option, read_cmdline_option, set_option): Take
6657         opts_set parameter.
6658         (set_option): Use opts_set instead of hardcoding target_flags and
6659         target_flags_explicit.
6660         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
6661         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
6662         flag_value_profile_transformations_set, flag_peel_loops_set,
6663         flag_branch_probabilities_set, flag_inline_functions_set,
6664         flag_ipa_cp_set, flag_ipa_cp_clone_set,
6665         flag_predictive_commoning_set, flag_unswitch_loops_set,
6666         flag_gcse_after_reload_set): Remove.
6667         (common_handle_option, lang_handle_option, target_handle_option):
6668         Take opts_set parameter.  Assert that it is &global_options_set.
6669         (common_handle_option): Don't set _set variables.  Check opts_set
6670         instead of such variables.
6671         (enable_warning_as_error): Pass &global_options_set to
6672         handle_generated_option.
6673         * opts.h (cl_option_handler_func.handler, set_option,
6674         handle_option, handle_generated_option, read_cmdline_option): Add
6675         opts_set parameters.
6676         (handle_option): Add generated_p parameter.
6677         * config/i386/i386.c (ix86_function_specific_save,
6678         ix86_function_specific_restore): Updat for renaming of
6679         target_flags_explicit field.
6680         * config/i386/i386.opt (target_flags_explicit): Rename to
6681         ix86_target_flags_explicit.
6682         * config/ia64/ia64.c (ia64_override_options_after_change): Check
6683         global_options_set.x_flag_selective_scheduling and
6684         global_options_set.x_flag_selective_scheduling2, not
6685         sel_sched_switch_set.
6686         * flags.h (sel_sched_switch_set,
6687         flag_speculative_prefetching_set): Remove.
6688         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
6689         that it is &global_options_set.
6690         (process_command): Pass &global_options_set to read_cmdline_option.
6691         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
6692         set_option.
6693         * toplev.c (target_flags_explicit): Remove.
6694
6695 2010-10-04  Jan Hubicka  <jh@suse.cz>
6696
6697         PR middle-end/45871
6698         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
6699         use get_ref_base_and_offset to handle references.
6700         (fold_const_aggregate_ref): Update.
6701
6702 2010-10-04  Martin Jambor  <mjambor@suse.cz>
6703
6704         PR tree-optimization/45572
6705         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
6706         ipa_check_create_node_params.
6707         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
6708
6709 2010-10-04  Yao Qi  <yao@codesourcery.com>
6710
6711         * doc/passes.texi: Clean up.
6712
6713 2010-10-03  Ian Lance Taylor  <iant@google.com>
6714
6715         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
6716         referring to a field using a typedef name.
6717         (find_anonymous_field_with_type): New static function.
6718         (convert_to_anonymous_field): New static function.
6719         (convert_for_assignment): If -fplan9-extensions, permit converting
6720         pointer to struct to pointer to anonymous field.
6721         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
6722         (is_duplicate_field): New static function.
6723         (detect_field_duplicates_hash): If -fplan9-extensions, check for
6724         typedef names duplicating field names.
6725         (detect_field_duplicates): Likewise.
6726         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
6727         (C Dialect Options): Document -fplan9-extensions.
6728         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
6729
6730 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6731
6732         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
6733         revision 164914.
6734         (vect_create_data_ref_ptr): Likewise.
6735         * tree-vect-stmts.c (vectorizable_store): Likewise.
6736         (perm_mask_for_reverse): Likewise.
6737         (reverse_vec_elements): Likewise.
6738         (vectorizable_load): Likewise.
6739
6740 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6741
6742         * cppbuiltin.c: New file.
6743         * cppbuiltin.h: New file.
6744         * Makefile.in: Take into account cppbuiltin.{h,c}.
6745
6746 2010-10-03  Andi Kleen  <ak@linux.intel.com>
6747
6748         * lto-cgraph.c (input_cgraph): Check for missing sections.
6749
6750 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
6751
6752         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
6753         to nonimmediate_operand.  Force operand 2 to register when allowed.
6754         (*<shiftrt_insn><mode>3_mask): Ditto.
6755         (*<rotate_insn><mode>3_mask): Ditto.
6756
6757 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
6758
6759         PR tree-optimization/45720
6760         PR tree-optimization/45764
6761         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6762         Don't accept backwards consecutive accesses.
6763         (vect_create_data_ref_ptr): Disallow negative steps.
6764
6765         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
6766         (perm_mask_for_reverse): Removed.
6767         (reverse_vec_elements): Likewise.
6768         (vectorizable_load): Don't handle negative steps.
6769
6770 2010-10-02  Jan Hubicka  <jh@suse.cz>
6771
6772         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
6773         call destination is known.
6774
6775 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6776
6777         PR target/45820
6778         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
6779         earlier.
6780
6781 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6782
6783         * doc/install.texi (Configuration): Document build_configargs,
6784         host_configargs, target_configargs.
6785
6786 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
6787
6788         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
6789         (*<shiftrt_insn><mode>3_mask): Ditto.
6790         (*<rotate_insn><mode>3_mask): Ditto.
6791
6792 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
6793
6794         PR tree-optimization/44716
6795         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6796         (HOT_TEXT_SECTION_NAME): Define.
6797
6798 2010-10-01  Nick Clifton  <nickc@redhat.com>
6799
6800         * common.opt: Add -fcombine-stack-adjustments.
6801         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
6802         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
6803         flag_combine_stack_adjustments.
6804         * doc/invoke.texi: Document the new option.
6805
6806 2010-10-01  Richard Guenther  <rguenther@suse.de>
6807
6808         PR tree-optimization/45854
6809         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
6810
6811 2010-10-01  Anthony Green  <green@moxielogic.com>
6812
6813         * config.gcc: Fix moxie-*-rtems* configuration.
6814
6815 2010-10-01  Richard Guenther  <rguenther@suse.de>
6816
6817         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
6818         (gen_decl_die): Likewise.
6819
6820 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6821
6822         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
6823         to the function code for SPU MD builtins.
6824         (spu_expand_builtin): Update.
6825         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
6826
6827 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6828
6829         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
6830         sjlj_except_unwind_info.
6831
6832 2010-10-01  Tristan Gingold  <gingold@adacore.com>
6833
6834         * configure.ac: Define the nop insn for avr*-*-*
6835         * configure: Regenerate.
6836
6837 2010-10-01  Alan Modra  <amodra@gmail.com>
6838
6839         PR target/45807
6840         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
6841         extend toc_restore_insn.
6842
6843 2010-09-30  Richard Guenther  <rguenther@suse.de>
6844
6845         PR tree-optimization/43959
6846         * function.c (gimplify_parameters): Use create_tmp_reg instead of
6847         create_tmp_var.
6848
6849 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
6850
6851         * config/sh/sh.c (sh_expand_prologue): Set
6852         current_function_static_stack_size.
6853
6854 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6855
6856         * configure.ac: Check for Solaris 8 ld with .hidden support.
6857         * configure: Regenerate.
6858
6859 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6860
6861         PR middle-end/45758
6862         * graphite.c (graphite_initialize): Call scev_reset.
6863
6864 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6865
6866         * sese.h (scev_analyzable_p): Return false for real or floating
6867         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
6868
6869 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6870
6871         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
6872         and ps.
6873         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
6874         domain.
6875         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
6876         Do not allocate ub_expr, it is passed in initialized.
6877
6878 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6879
6880         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
6881         (build_cloog_prog): Dump CLooG input file when
6882         flag_graphite_dump_cloog is set.  This is disabled on trunk.
6883         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
6884
6885 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6886
6887         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
6888         verify_dominators for CDI_POST_DOMINATORS.
6889         * sese.h: Remove comment about CDI_POST_DOMINATORS.
6890         (recompute_all_dominators): Remove call to free_dominance_info
6891         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
6892         for CDI_POST_DOMINATORS.
6893
6894 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6895
6896         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
6897         over pbb_dim_iter_domain.
6898
6899 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6900
6901         * graphite-flattening.c: Fix comments.
6902
6903 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6904
6905         * Makefile.in (OBJS-common): Add graphite-flattening.o.
6906         (graphite-flattening.o): New rule.
6907         * common.opt (floop-flatten): New flag.
6908         * doc/invoke.texi (-floop-flatten): Documented.
6909         * graphite-flattening.c: New.
6910         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
6911         * graphite-poly.h (flatten_all_loops): Declared.
6912         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
6913         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
6914         is set, also set flag_graphite.
6915
6916 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6917
6918         * graphite-poly.c (cloog_checksum): New.
6919         * graphite-poly.h (cloog_checksum): Declared.
6920
6921 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6922
6923         * graphite-poly.c (pbb_number_of_iterations): Removed.
6924         (pbb_number_of_iterations_at_time): Correctly compute the number
6925         of iterations in the transformed loop.
6926         * graphite-poly.h (pbb_number_of_iterations): Removed.
6927
6928 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6929
6930         * graphite-poly.h (lst_update_scattering_seq): Removed.
6931         (lst_update_scattering): Correctly handle outermost loop dewey
6932         renumbering.
6933
6934 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6935
6936         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
6937         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
6938         * graphite-poly.h (lst_niter_for_loop): New.
6939
6940 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6941
6942         * graphite-poly.c (apply_poly_transforms): Do not abort when the
6943         transform read from disk is not legal.  Call fatal_error instead.
6944
6945 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6946
6947         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
6948         (print_scop_header): Removed.  Inlined in the only call place...
6949         (print_scop): ... here.
6950
6951 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6952
6953         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
6954
6955 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6956
6957         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
6958
6959 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6960
6961         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
6962         (dot_deps_stmt): Same.
6963         * graphite-poly.c (dot_lst): Same.
6964
6965 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6966
6967         * graphite-blocking.c (scop_do_strip_mine): Do not call
6968         graphite_legal_transform.
6969         (scop_do_block): Same.
6970
6971 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
6972
6973         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
6974         description.
6975
6976 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6977
6978         * tree-scalar-evolution.c (instantiate_array_ref): New.
6979         (instantiate_scev_r): Also handle ARRAY_REFs.
6980
6981 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6982
6983         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6984         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
6985         RESULT_DECL, and FIELD_DECL.  Return false for an
6986         SSA_NAME_IS_DEFAULT_DEF.
6987         (compute_scalar_evolution_in_loop): Do not further analyze the
6988         scalar evolution when no_evolution_in_loop_p returns true.
6989
6990 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6991
6992         * tree-chrec.h (evolution_function_is_affine_p): Do not check
6993         whether CHREC_LEFT is invariant.  A function is affine when
6994         CHREC_RIGHT is invariant.
6995
6996 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6997
6998         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
6999         is_gimple_reg.
7000         (rewrite_degenerate_phi): Same.
7001         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
7002
7003 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
7004
7005         * graphite-scop-detection.c (graphite_can_represent_scev,
7006         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
7007         graphite_can_represent_loop): Remove outermost_loop.
7008
7009 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7010
7011         PR middle-end/45229
7012         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
7013         handle GIMPLE_CALLs with no LHS.
7014
7015 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
7016
7017         * graphite-poly.c (init_graphite_out_file): New.
7018         (init_graphite_in_file): New.
7019         (apply_poly_transforms): Updated to enable reading and writing of
7020         multiple scop files.
7021
7022 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
7023
7024         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
7025         redundant checks.
7026
7027 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7028
7029         * graphite-clast-to-gimple.c (precision_for_value): Adjust
7030         computation of precision by 1.
7031
7032 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
7033
7034         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
7035         (openscop_read_polyhedron_matrix): New.
7036         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
7037         (openscop_read_N_int): Same.
7038         * graphite-poly.c (openscop_read_N_int): New.
7039         (openscop_read_one_int): New.
7040         (openscop_read_N_string): New.
7041         (openscop_read_one_string): New.
7042         (openscop_read_powerset_matrix): New.
7043         (graphite_read_transforms): Remove.
7044         (graphite_read_scatt): New.
7045         (graphite_read_scop_file): New.
7046         (apply_poly_transforms): Updated to call graphite_read_scop_file.
7047
7048 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7049
7050         * graphite-poly.c: Change include order.
7051
7052 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
7053
7054         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
7055         (cloog_matrix_nrows): New.
7056
7057 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
7058
7059         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
7060         from matrix lines.
7061         * graphite-poly.c (openscop_print_scattering_function_1): Same.
7062         (print_scattering_function_1): Same.
7063         (openscop_print_pbb_domain): Same.
7064         (openscop_print_scop_context): Same.
7065         (print_scop_context): Same.
7066
7067 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
7068
7069         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
7070         (openscop_print_pdr_polyhedron): Print pph.
7071
7072 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7073
7074         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
7075         priority signed types.
7076
7077 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
7078
7079         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
7080         the call to lang_hooks.types.type_for_size.  Call
7081         build_nonstandard_integer_type.
7082
7083 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
7084
7085         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
7086         (openscop_print_polyhedron_matrix): New.
7087         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
7088         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
7089         (openscop_print_pdr_powerset): New.
7090         (openscop_print_powerset_matrix): New.
7091         (openscop_print_scattering_function_1): New.
7092         (print_scattering_function): Add support for scattering names and
7093         OpenScop format.
7094         (graphite_write_transforms): Remove.
7095         (print_pdr_access_layout): Updated to support OpenScop format.
7096         (print_pdr): Same.
7097         (openscop_print_pbb_domain): New.
7098         (print_pbb_body): Added a parameter to allow indicating that pbb_body
7099         is not provided.
7100         (print_pbb): Updated to call the new print_pbb_body.
7101         (openscop_print_scop_context): New.
7102         (print_scop_header): New.
7103         (print_scop): Updated to call print_scop_header.
7104         * graphite-poly.h: Document OpenScop format.
7105
7106 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
7107
7108         * config/cris/m32c.c (cris_memory_move_cost): New.
7109         (cris_register_move_cost): Make static. Change arguments type from
7110         enum reg_class to reg_class_t.
7111         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
7112         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7113         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
7114
7115 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
7116
7117         PR target/45843
7118         * config/i386/i386.c (ix86_gimplify_va_arg): Use
7119         INTVAL (XEXP (slot, 1)) as prev_size.
7120
7121 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
7122
7123         PR target/45837
7124         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
7125         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
7126         defined.
7127         * config/rs6000/option-defaults.h (toplevel): Change #if
7128         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
7129         global option changes.
7130
7131 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
7132
7133         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
7134
7135         PR tree-optimization/31261
7136         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
7137         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
7138
7139 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7140
7141         PR bootstrap/45796
7142         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
7143         special-casing for generators and turn into ...
7144         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
7145         rule, for better error messages in case of toplevel dependency errors.
7146         (genprog): Add hooks, rename to ...
7147         (genprogerr): ... this, and let genprog also contain check,
7148         checksum, condmd.
7149         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
7150         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
7151         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
7152
7153 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
7154             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7155
7156         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
7157         for GMP, MPFR and MPC.
7158
7159 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7160
7161         * config/sparc/sparc.opt (mimpure-text): Move ...
7162         * config/sol2.opt: ... here.  Correct description.
7163         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
7164         * doc/invoke.texi (Option Summary, SPARC Options): Move
7165         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
7166         (Option Summary, Solaris 2 Options): ... here.
7167         (Submodel Options, Solaris 2 Options): New menu entry.
7168         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
7169         (Solaris 2 Options): ... here.
7170
7171 2010-09-30  Michael Eager  <eager@eagercon.com>
7172
7173         * extend.texi (interrupt_handler): Add MicroBlaze to list.
7174         (save_volatiles): Describe option for MicroBlaze.
7175         * invoke.texi: Add MicroBlaze Options.
7176         * contrib.texi: Add acknowledgment.
7177         * md.texi: Add MicroBlaze d and z constraints.
7178         * install.texi: Add microblaze-*-elf.
7179         * configure.ac: Add microblaze-*-* to target list.
7180         * configure: Regenerate.
7181         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
7182         * config/microblaze/microblaze-protos.h: New.
7183         * config/microblaze/crti.s: New.
7184         * config/microblaze/predicates.md: New.
7185         * config/microblaze/linux.h: New.
7186         * config/microblaze/microblaze.md: New.
7187         * config/microblaze/constraints.md: New.
7188         * config/microblaze/crtn.s: New.
7189         * config/microblaze/microblaze.opt: New.
7190         * config/microblaze/microblaze-c.c: New.
7191         * config/microblaze/t-microblaze: New.
7192         * config/microblaze/microblaze.c: New.
7193         * config/microblaze/microblaze.h: New.
7194
7195 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
7196
7197         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
7198         parse @optional/@required and set the flags as appropriate.
7199
7200 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
7201
7202         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
7203
7204 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
7205
7206         * opt-functions.awk (static_var): Update comment.
7207         (var_ref): Return offsetof expression or -1, not variable address.
7208         * optc-gen.awk: Generate structure field initializers instead of
7209         static variables.  Expect -1 for missing variables instead of null
7210         pointer.  Add gcc_options parameters to generated functions.
7211         * opth-gen.awk: Generate structure fields for static variables.
7212         Add gcc_options parameters to generated functions.
7213         * common.opt (optimize, optimize_size): Add variables.
7214         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
7215         &global_options to cl_target_option_restore.
7216         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
7217         &global_options to cl_optimization_restore, cl_target_option_save
7218         and cl_target_option_restore.
7219         (ix86_set_current_function): Pass &global_options to
7220         cl_target_option_restore.
7221         * config/pdp11/pdp11.h (optimize): Remove.
7222         * config/rs6000/rs6000.h (optimize): Remove.
7223         * config/sh/sh.h (optimize): Remove.
7224         * config/xtensa/xtensa.h (optimize): Remove.
7225         * coretypes.h (struct gcc_options): Declare.
7226         * diagnostic.c (diagnostic_initialize): Initialize
7227         context->option_state.
7228         (diagnostic_report_diagnostic): Pass option_state to
7229         option_enabled hook.
7230         * diagnostic.h (diagnostic_context.option_enabled): Add void *
7231         parameter.
7232         (diagnostic_context.option_state): New field.
7233         * final.c (final_start_function, final, final_scan_insn): Rename
7234         optimize parameter to optimize_p.
7235         * flags.h (optimize, optimize_size): Remove.
7236         * function.c (invoke_set_current_function_hook): Pass
7237         &global_options to cl_optimization_restore.
7238         * gcc.c (driver_handle_option): Take gcc_options parameter.
7239         Assert that it is &global_options.
7240         (process_command): Pass &global_options to read_cmdline_option.
7241         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
7242         option_enabled.
7243         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
7244         &global_options to set_option.
7245         * opts-common.c (handle_option, handle_generated_option,
7246         read_cmdline_option, set_option): Take explicit gcc_options
7247         parameters.  Use option_flag_var.
7248         (option_flag_var): New.
7249         * opts.c (common_handle_option, lang_handle_option,
7250         target_handle_option): Take gcc_options parameter.  Assert that it
7251         is &global_options.
7252         (read_cmdline_options): Pass &global_options to read_cmdline_option.
7253         (print_filtered_help): Use option_flag_var.  Pass &global_options
7254         to option_enabled.
7255         (common_handle_option): Use option_flag_var.
7256         (option_enabled): Take opts parameter.  Use option_flag_var.
7257         (get_option_state): Take gcc_options parameter.  Use
7258         option_flag_var.  Pass gcc_options parameter to option_enabled.
7259         (enable_warning_as_error): Pass &global_options to
7260         handle_generated_option.
7261         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
7262         (cl_option_handler_func.handler): Take gcc_options parameter.
7263         (option_enabled, get_option_state, set_option, handle_option,
7264         handle_generated_option, read_cmdline_option): Take gcc_options
7265         parameters.
7266         * toplev.c (optimize, optimize_size): Remove.
7267         (print_switch_values): Pass &global_options to option_enabled.
7268         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
7269         to get_option_state.
7270         (general_init): Initialize global_dc->option_state.
7271         * tree.c (build_optimization_node): Pass &global_options to
7272         cl_optimization_save.
7273         (build_target_option_node): Pass &global_options to
7274         cl_target_option_save.
7275
7276 2010-09-30  Martin Jambor  <mjambor@suse.cz>
7277
7278         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
7279         zero sized bit-fields.
7280
7281 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
7282
7283         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
7284         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
7285         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
7286         (c_parser_objc_class_declaration): Same change.
7287         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
7288         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
7289         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
7290         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
7291         and RID_AT_PUBLIC instead of RID_PUBLIC.
7292         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
7293         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
7294
7295 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
7296
7297         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
7298         Add links to current providers of packages for Solaris and IRIX.
7299
7300 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7301
7302         Merge from 'apple/trunk' branch on FSF servers.
7303         * c-parser.c: Applied change originally in c-parse.in.
7304
7305         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
7306
7307         Radar 4281748
7308         * c-decl.c (start_decl): Check for redeclaration of class name.
7309         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
7310
7311 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
7312
7313         * config/ia64/ia64.c (ia64_builtin_decl): New.
7314         (TARGET_BUILTIN_DECL): Define.
7315         (ia64_builtins): New.
7316         (ia64_init_builtins): Save decls in ia64_builtins.
7317
7318 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
7319
7320         PR target/40457
7321         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
7322         (move2add_use_add3_insn): Likewise.
7323         (reload_cse_move2add): Likewise.
7324         * rtlanal.c (get_full_rtx_cost): New function.
7325         * rtl.h (struct full_rtx_costs): New.
7326         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
7327         costs_add_n_insns): New inline functions.
7328         (get_full_rtx_cost): Declare.
7329
7330         PR c/45054
7331         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
7332         invariants.  Check for reg_equiv_invariant.
7333         (reload): Assert that spilled_pseudos is empty when returning.
7334
7335 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
7336
7337         * config/i386/mingw32.h (TARGET_64BIT): replaced by
7338         TARGET_64BIT_DEFAULT in #if check.
7339
7340 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
7341
7342         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
7343
7344 2010-09-29  Mike Stump  <mikestump@comcast.net>
7345
7346         * config/darwin.h (flag_mkernel): Remove.
7347         (flag_apple_kext): Likewise.
7348
7349 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7350             Jack Howarth  <howarth@bromo.med.uc.edu>
7351
7352         * config/darwin.opt (undefined): Add.
7353
7354 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7355
7356         PR testsuite/45664
7357         * configure.ac: Add --enable-indirect-function option.
7358         * config.gcc: Add default_gnu_indirect_function.
7359         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
7360         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
7361         * varasm.c (do_assemble_alias): Adjust for macro name change.
7362         * configure: Rebuilt.
7363         * doc/install.texi: Document --enable-indirect-function.
7364
7365 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7366
7367         * doc/options.texi (Variable, Var, Init): Update documentation
7368         without reference to VarExists.
7369         (VarExists): Remove.
7370         * common.opt, config/i386/i386.opt, config/linux.opt,
7371         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
7372         Don't use VarExists.
7373
7374 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
7375
7376         * optc-gen.awk: Generate global_options initializer instead of
7377         individual variables.  Add x_ prefix to names of structure members.
7378         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
7379         names of structure members.
7380         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7381         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
7382         * doc/tm.texi: Regenerate.
7383         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7384         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
7385         * c-parser.c (disable_extension_diagnostics,
7386         restore_extension_diagnostics): Update names of cpp_options members.
7387         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7388         * common.opt (fcompare-debug-second): Don't use Var.
7389         * config/alpha/alpha.h (target_flags): Remove.
7390         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7391         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
7392         * config/bfin/bfin.h (target_flags): Remove.
7393         * config/cris/cris.h (target_flags): Remove.
7394         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
7395         cl_target_option members.
7396         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
7397         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
7398         ix86_can_inline_p): Update names of cl_target_option members.
7399         * config/i386/i386.h (ix86_isa_flags): Remove.
7400         * config/lm32/lm32.h (target_flags): Remove.
7401         * config/mcore/mcore.h (mcore_stack_increment): Remove.
7402         * config/mcore/mcore.md (addsi3): Remove extern declaration of
7403         flag_omit_frame_pointer.
7404         * config/mep/mep.h (target_flags): Remove.
7405         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7406         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
7407         * config/mmix/mmix.h (target_flags): Remove.
7408         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
7409         flag_expensive_optimizations): Remove.
7410         * config/s390/s390.h (flag_pic): Remove.
7411         * config/score/score-conv.h (target_flags): Remove.
7412         * config/sh/sh.h (sh_fixed_range_str): Remove.
7413         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
7414         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
7415         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7416         * diagnostic.c (diagnostic_initialize): Update names of
7417         diagnostic_context members.
7418         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
7419         warn_system_headers.
7420         (diagnostic_report_warnings_p): Update for new names.
7421         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
7422         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
7423         HARD_FRAME_POINTER_IS_ARG_POINTER.
7424         * flags.h (flag_compare_debug): Declare.
7425         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7426         * opts.c (flag_compare_debug): Define.
7427         (common_handle_option): Update names of diagnostic_context
7428         members.  Handle -fcompare-debug-second.
7429         (fast_math_flags_struct_set_p): Update names of cl_optimization
7430         members.
7431         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7432         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7433         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7434         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7435         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
7436         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
7437         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
7438         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
7439         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
7440
7441 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
7442
7443         * config/picochip/picochip.c (picochip_output_internal_label):
7444         This function can now be called for debug CFI labels, which can come
7445         in the middle of a vliw instruction.  Postpone until end of vliw.
7446
7447 2010-09-29  Richard Guenther  <rguenther@suse.de>
7448
7449         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
7450         (DECL_FILE_SCOPE_P): Use it.
7451         (TYPE_FILE_SCOPE_P): New macro.
7452
7453 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7454
7455         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
7456         a CPP_NAME which is a reserved word, clearly separate cases for
7457         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
7458
7459 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
7460
7461         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
7462         token->value with the canonical spelling.  Do exactly like C and
7463         C++ and leave it as it is.
7464
7465 2010-09-28  Richard Henderson  <rth@redhat.com>
7466
7467         * config/alpha/alpha.c (alpha_builtins): New.
7468         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
7469         (alpha_builtin_function): New.
7470         (alpha_add_builtins, alpha_init_builtins): Use it.
7471
7472 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
7473
7474         * doc/standards.texi (Standards): Expanded the section on
7475         Objective-C and Objective-C++.
7476
7477 2010-09-28  DJ Delorie  <dj@redhat.com>
7478
7479         PR target/45800
7480         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
7481         volatile MEMs.
7482
7483 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
7484
7485         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
7486         attributes on methods.
7487          (c_parser_objc_method_definition): Handle attributes.
7488         (c_parser_objc_methodproto): Likewise.
7489         (c_parser_objc_maybe_method_attributes): New.
7490         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
7491         missing definition, similar to that in ObjC++.
7492
7493 2010-09-28  Richard Henderson  <rth@redhat.com>
7494
7495         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
7496         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
7497         (CONFIG_SJLJ_EXCEPTIONS): Remove.
7498         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
7499         (STACK_CHECK_PROTECT): Likewise.
7500         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
7501         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
7502         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
7503         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
7504         (dwarf2out_assembly_start): Likewise.
7505         * except.c (init_eh): Use targetm.except_unwind_info.
7506         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
7507         (output_one_function_exception_table): Likewise.
7508         * final.c: Unconditionally include dwarf2out.h.
7509         (final_start_function): Unconditionally call dwarf2out routines.
7510         (final_end_function, final_scan_insn): Likewise.
7511         * function.c (expand_function_end): Use targetm.except_unwind_info.
7512         * opts.c (decode_options): Use targetm.except_unwind_info.
7513         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
7514         * target.def (debug_unwind_info, except_unwind_info): New.
7515         * target.h (enum unwind_info_type): New.
7516         * targhooks.c (default_debug_unwind_info): New.
7517         (default_except_unwind_info): New.
7518         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
7519         * targhooks.h: Declare them.
7520         * tree-tailcall.c: Include "target.h"
7521         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
7522         * Makefile.in (tree-tailcall.o): Update.
7523         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
7524         (lhd_gcc_personality): Likewise.
7525
7526         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
7527         (TARGET_EXCEPT_UNWIND_INFO): New.
7528         (DWARF2_UNWIND_INFO): Update.
7529         (TARGET_DEBUG_UNWIND_INFO): New.
7530         * doc/tm.texi: Rebuild.
7531
7532         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
7533         targetm.except_unwind_info.
7534
7535         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
7536         (arm_except_unwind_info): New.
7537         (arm_compute_func_type): Use it.
7538         (arm_expand_prologue, thumb_pushpop): Likewise.
7539         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
7540         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
7541         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
7542         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
7543         (DWARF2_UNWIND_INFO): Remove.
7544         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
7545         (ARM_EABI_UNWIND_TABLES): Remove.
7546
7547         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
7548         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
7549         (ia64_except_unwind_info): New.
7550         (ia64_output_function_prologue): Use it.
7551         (ia64_add_bundle_selector_before): Likewise.
7552         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
7553         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
7554         (TARGET_UNWIND_INFO): Remove.
7555
7556         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
7557
7558 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
7559
7560         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
7561         (c_parser_objc_protocol_definition): Likewise.
7562         (c_parser_external_declaration): Provide dummy attribute arguments.
7563         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
7564         (c_parser_objc_class_definition): Handle attributes.
7565         (c_parser_objc_protocol_definition): Likewise.
7566
7567 2010-09-28  Tobias Burnus  <burnus@net-b.de>
7568
7569         PR fortran/40569
7570         PR fortran/40568
7571         * toplev.h (save_decoded_options, save_decoded_options_count):
7572         New global variables.
7573         * toplev.c (save_decoded_options, save_decoded_options_count):
7574         Export variables.
7575
7576 2010-09-28  Ian Lance Taylor  <iant@google.com>
7577
7578         * config/i386/i386.c (ix86_supports_split_stack): Test
7579         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
7580
7581 2010-09-28  Ian Lance Taylor  <iant@google.com>
7582
7583         PR target/45815
7584         * opts.c (decode_options): Don't test whether the target supports
7585         split stack if flag_split_stack == 0.
7586
7587 2010-09-28  Jan Hubicka  <jh@suse.cz>
7588
7589         * builtin-attrs.def (ATTR_LEAF): New attribute.
7590         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
7591         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
7592         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
7593         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
7594         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
7595         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
7596         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
7597         * sync-builtins.def: Annotate all builtins by leaf.
7598         * omp-builtins.def: Annotate all builtins by leaf.
7599         * builtins.def: Annotate relevant builtins with leaf attribute.
7600         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
7601         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
7602         leaf.
7603
7604 2010-09-28  Jan Hubicka  <jh@suse.cz>
7605
7606         * tree-ssa-ccp.c (fold_ctor_reference): New function.
7607         (fold_const_aggregate_ref): Use it.
7608         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
7609         into external static.
7610
7611 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7612
7613         PR target/44452
7614         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
7615         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
7616         (ix86_solaris_return_in_memory): Remove.
7617         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
7618         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
7619         (TARGET_SUBTARGET_DEFAULT): Redefine.
7620         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
7621         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
7622         (TARGET_SUBTARGET_DEFAULT): Redefine.
7623         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
7624         -mvect8-ret-in-mem.
7625         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
7626
7627 2010-09-29  Alan Modra  <amodra@gmail.com>
7628
7629         PR target/45807
7630         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
7631         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
7632         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
7633         Delete.
7634         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
7635         (rs6000_emit_prologue): Don't just create frame save info for r2,
7636         actually save r2.
7637
7638 2010-09-28  Richard Henderson  <rth@redhat.com>
7639
7640         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
7641         when 8 bytes are requested.
7642
7643 2010-09-28  Tristan Gingold  <gingold@adacore.com>
7644
7645         * config/avr/avr.c (expand_prologue): Set
7646         current_function_static_stack_size.
7647
7648 2010-09-28  Tristan Gingold  <gingold@adacore.com>
7649
7650         * config/alpha/alpha.md: Change the initial condition of the
7651         probing loop.
7652
7653 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
7654
7655         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
7656         Split from *avx_<maxmin:code><mode>3.
7657         (*avx_<smaxmin:code><mode>3): Ditto.
7658         * config/i386/i386.md (maxmin): Remove code iterator.
7659
7660 2010-09-27  Ian Lance Taylor  <iant@google.com>
7661
7662         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
7663         requires assembler support for CFI directives.
7664
7665 2010-09-27  Richard Henderson  <rth@redhat.com>
7666
7667         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
7668
7669 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
7670
7671         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
7672         that AFTER is not in the range FROM..TO, inclusive.
7673
7674 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
7675             Bernd Schmidt  <bernds@codesourcery.com>
7676
7677         PR rtl-optimization/45792
7678         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
7679         If not all insns are to be merged, for each edge, stash the
7680         next candidate after the to-be-merged insns before doing the
7681         merge, and use them for the retry at the new insertion point.
7682         Handle CC0 targets when retrying.
7683
7684 2010-09-27  Ian Lance Taylor  <iant@google.com>
7685
7686         * common.opt (fsplit-stack): New option.
7687         * opts.c (decode_options): Set flag_split_stack to final value.
7688         * target.def (supports_split_stack): New hook.
7689         * gcc.c (STACK_SPLIT_SPEC): Define.
7690         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
7691         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
7692         (Code Gen Options): Document -fsplit-stack.
7693         * doc/extend.texi (Function Attributes): Mention no_split_stack.
7694         (Function Attributes): Document no_split_stack.
7695         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
7696         TARGET_SUPPORTS_SPLIT_STACK.
7697         * doc/tm.texi: Rebuild.
7698         * function.c (thread_prologue_and_epilogue_insns): If
7699         flag_split_stack, add split stack prologue.
7700         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
7701         * varasm.c (saw_no_split_stack): New static variable.
7702         (assemble_start_function): Set saw_no_split_stack if the function
7703         has the no_split_stack attribute.
7704         (file_end_indicate_split_stack): New function.
7705         * output.h (file_end_indicate_split_stack): Declare.
7706         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
7707         and function.
7708         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
7709         routines.
7710         * config/i386/i386.c (ix86_option_override_internal): Don't set
7711         expand_builtin_va_start to NULL if -fsplit-stack.
7712         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
7713         -fsplit-stack.
7714         (ix86_va_start): If -fsplit-stack, get overflow pointer from
7715         scratch register set by prologue.
7716         (ix86_code_end): If -fsplit-stack, call
7717         file_end_indicate_split_stack.
7718         (ix86_supports_split_stack): New static function.
7719         (SPLIT_STACK_AVAILABLE): Define.
7720         (split_stack_prologue_scratch_regno): New static function.
7721         (split_stack_fn): New static variable.
7722         (ix86_expand_split_stack_prologue): New function.
7723         (ix86_live_on_entry): New static function.
7724         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
7725         (output_pic_addr_const): Likewise.
7726         (i386_asm_output_addr_const_extra): Likewise.
7727         (ix86_expand_call): Change return type to rtx.  Return the new
7728         call instruction.
7729         (TARGET_SUPPORTS_SPLIT_STACK): Define.
7730         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7731         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
7732         (split_stack_prologue, split_stack_return): New insns.
7733         (split_stack_space_check): New insn.
7734         * config/i386/i386.h (struct machine_function): Add
7735         split_stack_varargs_pointer field.
7736         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
7737         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7738         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7739         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7740         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
7741         Declare.
7742         (ix86_expand_call): Update declaration.
7743
7744 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7745
7746         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
7747         code.  Added byref, which was missing in the list of codes.
7748         Explain that enumeration values are encoded as the integer type
7749         that the compiler uses to store them.  Explain and make examples
7750         of how 'const' interacts with pointers, and the complication of
7751         the encoding of 'const char *'.
7752         (Legacy type encoding): New subsection, explaining that GCC emits
7753         incorrect type encodings for the NeXT runtime for compatibility
7754         reasons.
7755         (@@encode): New subsection, explaining @encode and particularly
7756         that protocol qualifiers are not recognized inside an @encode()
7757         expression.
7758         (Method signatures): New subsection, explaining how method
7759         signatures are encoded.
7760
7761 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7762
7763         Merge from 'apple/trunk' branch on FSF servers.  Removed small
7764         change in build_conditional_expr that had been added when fixing
7765         PR objc/27377 and which did the same check in a less complete way.
7766
7767         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
7768
7769         Radar 4229905
7770         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
7771         looking for objective-c common pointer types.
7772
7773         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
7774
7775         Radar 4154928
7776         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
7777         use their ObjC common type.
7778
7779 2010-09-27  Richard Guenther  <rguenther@suse.de>
7780
7781         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
7782
7783 2010-09-27  Jie Zhang  <jie@codesourcery.com>
7784
7785         * print-tree.c (print_node): Print in-constant-pool.
7786
7787 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
7788
7789         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
7790         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
7791         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
7792         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
7793
7794 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
7795
7796         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
7797         from pro_epilogue_adjust_stack_<mode>_{1,2}.
7798         (pro_epilogue_adjust_stack_<mode>_add): Rename from
7799         pro_epilogue_adjust_stack_<mode>_3.
7800         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
7801         renamed pro_epilogue_adjust_stack_{si,di}_add.
7802         (ix86_expand_prologue): Use indirect functions.  Update for renamed
7803         pro_epilogue_adjust_stack_{si,di}_sub.
7804
7805 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
7806
7807         * config/i386/i386.md (movmsk_df): New insn.
7808         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
7809         sequence for TARGET_SSE_MATH.
7810
7811 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
7812
7813         * config/mips/mips.c (mips_builtin_decls): Declare.
7814         (mips_init_builtins): Store function declarations in
7815         mips_builtin_decls.
7816         (mips_builtin_decl): New function.
7817         (TARGET_BUILTIN_DECL): Define.
7818
7819 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
7820             Richard Henderson  <rth@redhat.com>
7821
7822         * config/i386/cygwin.asm: Include auto-host.h.
7823         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
7824         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
7825         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
7826         alignment code from the 64-bit path.  Use gas local labels.
7827         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
7828         from _di_2.  Remove the useless constant integer argument.
7829         (pro_epilogue_adjust_stack_<mode>_3): New.
7830         (allocate_stack_worker_probe_<mode>): Macroize from
7831         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
7832         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
7833         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
7834         (__chkstk_ms): New function.
7835         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
7836         * config/i386/t-interix: Likewise.
7837         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
7838         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
7839         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
7840         * configure, config.in: Rebuild.
7841
7842 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
7843
7844         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
7845         statements because of the return slot optimization.
7846
7847 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
7848
7849         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
7850         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
7851         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7852         (class_likely_spilled_p): Rename to...
7853         (avr_class_likely_spilled_p): ...this. Make static. Change argument
7854         type to reg_class_t.
7855
7856 2010-09-24  Jan Hubicka  <jh@suse.cz>
7857
7858         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
7859         (lto_symtab_resolve_symbols): Set it.
7860         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
7861         store resolution field in cgraph/varpool.
7862         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
7863         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
7864         (cgraph_dump_node): Drop used_from_object_file.
7865         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
7866         (cgraph_function_body_availability): Use decl_replaceable_p.
7867         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
7868         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
7869         cgraph_used_from_object_file_p.
7870         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
7871         cgraph_used_from_object_file_p.
7872         (resolution_used_from_other_file_p): New functoin.
7873         (cgraph_used_from_object_file_p): New predicate.
7874         * cgraph.h: Include plugin-api.h
7875         (struct cgraph_local_info): Remove used_from_object_file.
7876         (struct cgraph_node): Add resolution field.
7877         (struct varpool_node): Likewise; remove used_from_object_file;
7878         reove const_value_known.
7879         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
7880         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
7881         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
7882         varpool_used_from_object_file_p): Declare.
7883         (varpool_get_node, varpool_extra_name_alias): Update prototype.
7884         * tree.h (DECL_REPLACEABLE_P): Remove.
7885         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
7886         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
7887         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7888         input_overwrite_node, input_node, input_varpool_node): Stream
7889         resolution.
7890         * expr.c (expand_expr_real_1): Use const_value_known_p
7891         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
7892         const_value_known.
7893         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
7894         (function_and_variable_visibility): Set resolution for local vars
7895         and functions; use varpool_used_from_object_file_p.
7896         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
7897         static functions.
7898         (default_binds_local_p_1): Use resolutoin info.
7899         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
7900         * varpool.c (varpool_get_node): Constify.
7901         (const_value_known_p): Do not use vnode->const_value_known;
7902         use decl_replaceable_p.
7903         (varpool_finalize_decl): Do not set const_value_known.
7904         (cgraph_variable_initializer_availability): Use decl_replaceable_p
7905         (varpool_extra_name_alias): Return new node.
7906         (varpool_used_from_object_file_p): New function.
7907
7908 2010-09-24  Richard Henderson  <rth@redhat.com>
7909
7910         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
7911         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
7912         (do_spill): Use REG_CFA_OFFSET.
7913         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
7914         as appropriate.
7915         (ia64_expand_epilogue): Likewise.
7916         (process_set): Split into ...
7917         (process_cfa_adjust_cfa): this,
7918         (process_cfa_register): this,
7919         (process_cfa_offset): and this new function.
7920         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
7921         instead of REG_FRAME_RELATED_EXPR.
7922
7923 2010-09-24  Olivier Hainque  <hainque@adacore.com>
7924
7925         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
7926
7927 2010-09-24  Jan Hubicka  <jh@suse.cz>
7928
7929         * doc/extend.texi: (attribute leaf): Document.
7930         * tree.c (local_define_builtin): Handle ECF_LEAF.
7931         (build_common_builtin_nodes): Set ECF_LEAF where needed.
7932         * tree.h (ECF_LEAF): New.
7933         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
7934         overwrittable and unavailable functions.
7935         (ipa_init): Put all_module_statics into optimization_summary_obstack.
7936         (copy_global_bitmap): Do not copy all_module_statics.
7937         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
7938         (propagate): Handle overwritable and unavailable leaf functions;
7939         initialize global info for overwritable and unavailable leaf functions;
7940         do not free all module statics.
7941         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
7942         local statics.
7943         * calls.c (flags_from_decl_or_type): Handle leaf.
7944         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
7945         abnormal gotos.
7946
7947 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
7948
7949         * gengtype.c: Reindented.
7950         * gengtype.h: Reindented.
7951         * gengtype-parse.c: Reindented.
7952
7953 2010-09-24  Jan Hubicka  <jh@suse.cz>
7954
7955         PR tree-optimization/45738
7956         PR tree-optimization/45741
7957         * expr.c (string_constant): Allow CONST_DECL too;
7958         check that DECL_INITIAL is set.
7959         * varpool.c (const_value_known_p): Only look into VAR_DECL
7960         and CONST_DECL.
7961
7962 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
7963
7964         * common.opt (undef): New.
7965
7966 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
7967
7968         PR middle-end/45234
7969         * rtl.h (enum global_rtl_index): Add
7970         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
7971         (LAST_VIRTUAL_POINTER_REGISTER): Define.
7972         (virtual_preferred_stack_boundary_rtx,
7973         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
7974         (LAST_VIRTUAL_REGISTER): Increase by one.
7975         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
7976         instead of LAST_VIRTUAL_REGISTER.
7977         * function.c (instantiate_new_reg): Handle
7978         virtual_preferred_stack_boundary_rtx.
7979         * emit-rtl.c (init_virtual_regs): Handle
7980         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
7981         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
7982         * explow.c (round_push): If crtl->preferred_stack_boundary
7983         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
7984         virtual_preferred_stack_boundary_rtx alignment instead of
7985         crtl->preferred_stack_boundary alignment.
7986         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
7987         macros.  Never decrease crtl->preferred_stack_boundary,
7988         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
7989         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
7990         stack_pointer_delta in dynamic allocation, even when size
7991         is constant.
7992         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
7993         macro.
7994         * print-rtl.c (print_rtx): Handle
7995         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
7996         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
7997         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
7998         * config/frv/frv.c (frv_emit_movsi): Likewise.
7999         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
8000         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
8001         Likewise.
8002
8003         Revert:
8004         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8005
8006         PR middle-end/45234
8007         * calls.c (expand_call): Make sure that all variable sized
8008         adjustments are multiple of preferred stack boundary after
8009         stack alignment.
8010
8011 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
8012             Dominique Dhumieres  <dominiq@lps.ens.fr>
8013
8014         PR bootstrap/45751
8015         * config/darwin-driver.c (darwin_default_min_version):
8016         Adjust size passed to memcpy in two places.
8017
8018 2010-09-24  Richard Guenther  <rguenther@suse.de>
8019
8020         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
8021         Make sure to not call set_type_context with error_mark_node.
8022         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
8023
8024 2010-09-24  Richard Guenther  <rguenther@suse.de>
8025
8026         * Makefile.in (OBJS-onestep): Remove.
8027         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
8028         (libbackend.a): Remove onestep support.
8029         (libbackend.o): Remove.
8030         * configure.ac (--enable-intermodule): Remove.
8031         * configure: Regenerate.
8032
8033 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
8034
8035         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
8036         reaching the end of a block if it occurs at a DEBUG_INSN.
8037
8038 2010-09-09  Tristan Gingold  <gingold@adacore.com>
8039
8040         PR target/44242
8041         * config/vms/vms-crt0-64.c: Removed.
8042         * config/vms/vms-crt0.c: Removed.
8043         * config/vms/vms-psxcrt0-64.c: Removed.
8044         * config/vms/vms-psxcrt0.c: Removed.
8045         * config/vms/vms-ucrt0.c: New file.
8046         * config/vms/t-vms64: Removed.
8047         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
8048         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
8049         * config.gcc (alpha-dec-vms): Use t-vms.
8050
8051 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
8052
8053         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
8054         underfull hbox in DVI output.
8055         (-fobjc-class-cxx-cdtors): Same change.
8056         (-fobjc-exceptions): Tidied up documentation.  Explain what the
8057         option does, but moved the (lenghty) description of the exception
8058         syntax into objc.texi.
8059         (-fobjc-gc): Explain that the option is not useful with the GNU
8060         runtime.
8061         (-fzero-link): Explain that the GNU runtime always works in
8062         "zero-link" mode.
8063         * doc/objc.texi: All sections: simplified @node declarations
8064         removing specification of next, previous, up node.
8065         (Objective-C): Updated introduction.
8066         (Garbage Collection): Updated.  The bohem-gc library is now
8067         included in gcc itself.  Mention that this section only applies to
8068         the GNU Objective-C runtime.
8069         (compatibility_alias): Small tidy up.
8070         (Exceptions): New section mostly containing text previously in the
8071         description of the -fobjc-exception command-line option.
8072         (Synchronization): Same.
8073
8074 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
8075
8076         * config/i386/i386.md (ix86_code_end): Move the initialization of
8077         xops array near the consumer.  Use AX_REG and SP_REG instead of
8078         numerical constants.
8079
8080 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
8081
8082         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
8083         method [methodname]' for an Objective-C method instead of the less
8084         satisfactory 'too many arguments to function' (with no method name).
8085
8086 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
8087
8088         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
8089         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
8090         (execute_update_addresses_taken): Remove parameter.  Execute the
8091         optimization unconditionally.
8092         * passes.c (execute_function_todo): Call execute_update_addresses_taken
8093         unconditionally if TODO_rebuild_alias is set, else only when optimizing
8094         if TODO_update_address_taken is set.
8095
8096 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
8097
8098         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8099         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
8100         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8101         (arm_output_addr_const_extra): Make static.
8102
8103 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
8104
8105         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
8106         define as unspec_volatile.
8107         ("nops"): Define as unspec_volatile. Use fputs to write to
8108         asm_out_file directly.  Output NOPs on separate lines using while loop.
8109         * config/i386/i386.c (ix86_code_end): Use fputs to write to
8110         asm_out_file directly.  Output NOPs on separate lines using while loop.
8111
8112 2010-09-23  Richard Guenther  <rguenther@suse.de>
8113
8114         PR tree-optimization/45565
8115         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8116         Make sure to adjust the fndecl before replacing the stmt.
8117
8118 2010-09-23  Richard Guenther  <rguenther@suse.de>
8119
8120         PR middle-end/45750
8121         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
8122         gimplifying MEM_REF.
8123
8124 2010-09-23  Alan Modra  <amodra@gmail.com>
8125
8126         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
8127         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
8128
8129 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
8130
8131         PR rtl-optimization/44374
8132         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
8133         * df-core.c (df_set_bb_dirty): Set it.
8134         * ifcvt.c (find_memory): Remove function.
8135         (dead_or_predicable): Use can_move_insns_across.
8136         * df.h (can_move_insns_across): Declare function.
8137         * cfgcleanup.c (block_was_dirty): New static variable.
8138         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
8139         than df_get_bb_dirty.
8140         (try_head_merge_bb): New static function.
8141         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
8142         is set.
8143         * df-problems.c: Include "target.h"
8144         (df_simulate_find_uses): New static function.
8145         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
8146         (find_memory, find_memory_store): New static functions.
8147         (can_move_insns_across): New function.
8148         * Makefile.in (df-problems.o): Update dependencies.
8149
8150 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8151
8152         PR java/44095
8153         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
8154         is specified and the suffix of the file isn't ".c".
8155         * config/sparc/linux64.h (ASM_SPEC): Likewise.
8156
8157 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8158
8159         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
8160         * doc/cppopts.texi: Fix markup of index entry.
8161         * doc/extend.texi (Constructing Calls): Fix markup of
8162         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
8163         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
8164         (Vague Linkage, C++ Attributes): Fix markup of index entries and
8165         keywords.
8166         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
8167         avoid long lines.
8168         (C Dialect Options, C++ Dialect Options, Warning Options)
8169         (Debugging Options, Spec Files, Darwin Options)
8170         (i386 and x86-64 Options, MIPS Options)
8171         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
8172         index entries, avoid abbreviations, allow URLs to wrap, avoid
8173         long lines, avoid overlong pages from long @itemx lists.
8174         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
8175         * doc/standards.texi (Standards): Likewise.
8176         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
8177
8178 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
8179
8180         * opts-common.c (prune_options): Make static.  Work with decoded
8181         options.
8182         (decode_cmdline_options_to_array): Call prune_options.  Don't
8183         resize option array here.
8184         * opts.h (prune_options): Remove prototype.
8185         * gcc.c (process_command): Take decoded options; don't call
8186         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
8187         (main): Call decode_cmdline_options_to_array here instead of
8188         prune_options.  Update call to process_command.
8189         * config/darwin-driver.c: Include opts.h.
8190         (darwin_default_min_version): Work with decoded options.  Don't
8191         handle -b or -V here.
8192         * config/darwin.h (darwin_default_min_version): Update prototype.
8193         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
8194         darwin_default_min_version.
8195         * config/i386/cygwin.h (mingw_scan): Update prototype.
8196         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
8197         * config/i386/cygwin1.c: Include opts.h.
8198         (mingw_scan): Work with decoded options.
8199         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
8200         * config/t-darwin (darwin-driver.o): Update dependencies.
8201
8202 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
8203
8204         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
8205         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
8206         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
8207         -force-link, -force-link=, -language, -language=,
8208         -library-directory, -library-directory=, -no-canonical-prefixes,
8209         -no-standard-libraries, -no-warnings, -optimize, -output,
8210         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
8211         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
8212         -print-file-name=, -print-libgcc-file-name,
8213         -print-multi-directory, -print-multi-lib,
8214         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
8215         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
8216         -profile, -save-temps, -shared, -specs, -specs=, -static,
8217         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
8218         symbolic): New.
8219         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
8220         * gcc.c (A Short Introduction to Adding a Command-Line Option):
8221         Remove comment.
8222         (cc1_options): Correct specs for passing down --help,
8223         --target-help and --help=*.  Add spec for passing down --version.
8224         (struct option_map, option_map, target_option_translations,
8225         translate_options): Remove.
8226         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
8227         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
8228         OPT_fhelp_ and OPT_ftarget_help.
8229         (process_command): Don't call translate_options.  Call
8230         decode_cmdline_options_to_array before checking for
8231         -no-canonical-prefixes using decoded options.
8232         * opts-common.c (tm.h): Update comment on #include.
8233         (find_opt): Allow abbreviations of long options.
8234         (struct option_map, option_map): New.
8235         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
8236         and -mno handling.
8237         (target_option_translations): New.
8238         (decode_cmdline_options_to_array): Handle
8239         TARGET_OPTION_TRANSLATE_TABLE in driver.
8240         * opts.c (common_handle_option): Don't handle OPT_fhelp,
8241         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
8242
8243 2010-09-22  Richard Guenther  <rguenther@suse.de>
8244
8245         * tree-inline.c (optimize_inline_calls): Schedule cleanups
8246         only if we inlined something.  Block compaction and conditional
8247         folding are done by cfg cleanup.  Schedule update-address-taken.
8248         (tree_function_versioning): Remove redundant call to number_blocks.
8249         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
8250         folding is done by cfg cleanup.
8251         * passes.c (init_optimization_passes): Remove update-address-taken
8252         pass after IPA inlining.
8253
8254 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
8255
8256         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
8257         to update conditions. Fix reg_mode[] check.
8258
8259 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
8260
8261         * config/picochip/picochip.md (movhicc): Use expand to check whether
8262         movhicc is available and split it after reload.
8263
8264 2010-09-22  Richard Guenther  <rguenther@suse.de>
8265
8266         * tree-ssanames.c (release_dead_ssa_names): Do not remove
8267         callee edges here.
8268         * passes.c (init_optimization_passes): Remove early CFG cleanup.
8269         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
8270         (pass_cleanup_cfg): Likewise.
8271         (execute_fixup_cfg): Cleanup.
8272         * tree-pass.h (pass_cleanup_cfg): Remove.
8273
8274 2010-09-22  Martin Jambor  <mjambor@suse.cz>
8275
8276         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
8277         builtins if it is true.
8278         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
8279         parameter.
8280
8281 2010-09-22  Martin Jambor  <mjambor@suse.cz>
8282
8283         * tree-sra.c (struct access): New field grp_no_warning.
8284         (create_access_replacement): Set TREE_NO_WARNING according to
8285          grp_no_warning.
8286         (create_artificial_child_access): Use build_ref_for_model and set
8287         grp_no_warning if build_user_friendly_ref_for_offset fails.
8288         (propagate_subaccesses_across_link): Likewise.
8289
8290 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
8291
8292         PR target/35664
8293         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
8294         ('f'): Likewise.
8295
8296 2010-09-22  Tristan Gingold  <gingold@adacore.com>
8297
8298         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
8299
8300 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
8301
8302         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
8303         * config/i386/i386.c (decide_alg): Update for rename.
8304
8305 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
8306
8307         PR rtl-optimization/45739
8308         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
8309         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
8310
8311 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
8312
8313         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
8314         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
8315         Remove.
8316         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
8317         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8318
8319 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8320
8321         PR objc/23710
8322         * c-parser.c (c_parser_objc_method_definition): Check the return
8323         value of objc_start_method_definition and if false is returned,
8324         parse the method definition but emit no code.
8325
8326 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
8327
8328         PR objc/25965
8329         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
8330         call objc_get_interface_ivars ().
8331
8332 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
8333
8334         PR target/45694
8335         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
8336         static chain-register is used for 64-bit.
8337
8338 2010-09-21  Richard Guenther  <rguenther@suse.de>
8339
8340         * dwarf2out.c (is_cu_die): New function.
8341         (add_pubtype): Use it.
8342         (gen_subprogram_die): Likewise.
8343         (gen_struct_or_union_type_die): Likewise.
8344         (dwarf2out_finish): Likewise.
8345         (comp_unit_die): Rename to ...
8346         (single_comp_unit_die): ... this.
8347         (comp_unit_die): New function lazily constructing and
8348         returning single_comp_unit_die.
8349         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
8350         base_type_die, subrange_type_die, modified_type_die,
8351         lower_bound_default, add_bound_info, add_prototyped_attribute,
8352         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
8353         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
8354         force_decl_die, gen_namespace_die, dwarf2out_decl,
8355         dwarf2out_start_source_file, dwarf2out_end_source_file,
8356         prune_unused_types, dwarf2out_finish): Use it.
8357         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
8358         the global list of translation-unit decls.
8359         (dwarf2out_init): Do not create single_comp_unit_die here.
8360         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
8361
8362 2010-09-21  Richard Guenther  <rguenther@suse.de>
8363
8364         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
8365         for bool for C++.
8366
8367 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
8368
8369         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
8370         (qhs_extenddi_cstr): Likewise.
8371         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
8372         them for the source operand.
8373
8374 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
8375
8376         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
8377         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
8378         (ix86_split_ashr): Ditto.
8379         (ix86_split_lshr): Ditto.
8380
8381 2010-09-21  Richard Guenther  <rguenther@suse.de>
8382
8383         PR tree-optimization/45580
8384         * tree-ssa-propagate.c (substitute_and_fold): Always replace
8385         regular uses.
8386         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
8387         virtuals fold the call into a regular indirect one.
8388
8389 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8390
8391         PR rtl-optimization/42775
8392         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
8393         scheduling is enabled.
8394
8395 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8396
8397         PR rtl-optimization/45728
8398         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
8399         gen_lowpart_common first and if that fails, force_reg first
8400         before calling gen_lowpart.
8401
8402         PR middle-end/45678
8403         * cfgexpand.c (expand_one_stack_var_at): Use
8404         crtl->max_used_stack_slot_alignment as max_align, instead
8405         of maximum of that and PREFERRED_STACK_BOUNDARY.
8406         Don't call update_stack_alignment.
8407
8408 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
8409
8410         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
8411         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
8412         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
8413         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
8414         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
8415         (build_nonstandard_integer_type): Likewise.
8416         (build_range_type_1): New function, built from...
8417         (build_range_type): ...this.  Call build_range_type_1.
8418         (build_nonshared_range_type): New function.
8419         (build_array_type_1): New function, built from...
8420         (build_array_type: ...this.  Call build_array_type_1.
8421         (build_nonshared_array_type): New function.
8422         * tree.h (build_nonshared_range_type): Declare.
8423         (build_nonshared_array_type): Likewise.
8424
8425 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
8426
8427         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
8428         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8429         (arm_class_likely_spilled_p): New function.
8430
8431 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
8432
8433         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
8434         indirect functions.
8435         (ix86_split_ashl): Ditto.
8436         (ix86_split_ashr): Ditto.
8437         (ix86_split_lshr): Ditto.
8438         (ix86_adjust_counter): Ditto.
8439
8440 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
8441
8442         * c-family/c-common.h (constant_string_class): Documented with
8443         comment identical to the one already in c-common.c.
8444
8445 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8446
8447         * dwarf2out.c (any_cfis_emitted): New static variable.
8448         (add_fde_cfi): Set it.
8449         (dwarf2out_frame_debug): Clear it before processing,
8450         if it is set afterwards, flush any queued reg saves.
8451
8452         PR debug/45124
8453         * dwarf2out.c (add_accessibility_attribute): Assume
8454         DW_ACCESS_private as the default for dwarf_version > 2
8455         and DW_TAG_class_type parent.
8456         (gen_inheritance_die): Assume DW_ACCESS_public as the default
8457         for dwarf_version > 2 and parent other than DW_TAG_class_type.
8458
8459 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
8460
8461         PR target/45726
8462         * arm.md (arm_movt): Only enable on machines with MOVT.
8463
8464 2010-09-20  Jie Zhang  <jie@codesourcery.com>
8465
8466         * config/arm/arm.c (arm_address_offset_is_imm): New.
8467         (arm_early_store_addr_dep): New.
8468         (arm_early_load_addr_dep): New.
8469         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
8470         (arm_early_load_addr_dep): Declare.
8471         (arm_address_offset_is_imm): Declare.
8472         * config/arm/cortex-m4.md: New file.
8473         * config/arm/cortex-m4-fpu.md: New file.
8474         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
8475         (attr generic_sched): Exclude cortexm4.
8476         (attr generic_vfp): Exclude cortexm4.
8477
8478 2010-09-20  Richard Guenther  <rguenther@suse.de>
8479
8480         PR middle-end/45704
8481         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
8482
8483 2010-09-20  Jan Hubicka  <jh@suse.cz>
8484
8485         PR tree-optimize/45605
8486         * cgraph.h (const_value_known_p): Declare.
8487         (varpool_decide_const_value_known): Remove.
8488         * tree-ssa-ccp.c (get_base_constructor): Use it.
8489         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
8490         * expr.c (string_constant): Likewise.
8491         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
8492         * ipa.c (ipa_discover_readonly_nonaddressable_var,
8493         function_and_variable_visibility): Likewise.
8494         * gimplify.c (gimplify_call_expr): Likewise.
8495         * gimple-fold.c (get_symbol_constant_value): Likewise.
8496         * varpool.c (varpool_decide_const_value_known): Replace by...
8497         (const_value_known_p): ... this one; handle other kinds of DECLs
8498         too and work for automatic vars.
8499         (varpool_finalize_decl): Use const_value_known_p.
8500
8501 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
8502
8503         PR target/45726
8504         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
8505
8506 2010-09-20  Richard Guenther  <rguenther@suse.de>
8507
8508         PR tree-optimization/45705
8509         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
8510
8511 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
8512
8513         PR rtl-optimization/45695
8514         * combine.c (try_combine): When splitting a two set pattern,
8515         make sure the pattern which will be put into i2 doesn't use REGs
8516         or MEMs set by insns in between i2 and i3.
8517
8518 2010-09-19  Jan Hubicka  <jh@suse.cz>
8519
8520         PR lto/44246
8521         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
8522         processing same node twice.
8523
8524 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
8525
8526         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
8527         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8528         (bfin_class_likely_spilled_p): New function
8529
8530 2010-09-19  Ira Rosen  <irar@il.ibm.com>
8531
8532         PR tree-optimization/45714
8533         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
8534         created in vectorizable_call instead of the original statement in
8535         def stmt updates.
8536
8537 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
8538
8539         * config/i386/i386-protos.h (split_double_mode): New prototype.
8540         (split_di, split_ti): Remove prototypes.
8541         * config/i386/i386.c (split_double_mode): New function.
8542         (split_di, split_ti): Remove.
8543         (ix86_expand_branch): Use split_double_mode.
8544         (ix86_split_to_parts): Ditto.
8545         (ix86_split_ashl): Ditto.
8546         (ix86_split_ashr): Ditto.
8547         (ix86_split_lshr): Ditto.
8548         (ix86_force_to_memory): Ditto.
8549         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
8550
8551 2010-09-18  Jan Hubicka  <jh@suse.cz>
8552
8553         PR tree-optimization/45453
8554         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
8555         virtual functions are reachable.
8556         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
8557         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
8558         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
8559         when modifying function.
8560
8561 2010-09-18  Jan Hubicka  <jh@suse.cz>
8562
8563         PR tree-optimization/45605
8564         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
8565         * gimple-fold.c (static_object_in_other_unit_p): New function.
8566         (canonicalize_constructor_val): Use it.
8567         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
8568         returning NULL.
8569         (gimple_fold_obj_type_ref_known_binfo): Use
8570         static_object_in_other_unit_p.
8571
8572 2010-09-18  Richard Guenther  <rguenther@suse.de>
8573
8574         PR tree-optimization/45709
8575         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
8576         insertions until after all PHI nodes of the block are processed.
8577
8578 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
8579
8580         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
8581
8582 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
8583
8584         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
8585
8586 2010-09-18  Richard Guenther  <rguenther@suse.de>
8587
8588         PR tree-optimization/45709
8589         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
8590
8591 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
8592
8593         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
8594         (dot_deps_stmt): Same.
8595         * graphite-poly.c (dot_lst): Same.
8596         * graphite-scop-detection.c (dot_all_scops): Same.
8597         (dot_scop): Same.
8598
8599 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
8600
8601         Revert:
8602         2009-12-16  Ben Elliston  <bje@au.ibm.com>
8603
8604         * tree-data-ref.c (dot_rdg_1): Added back.
8605         (dot_rdg): Same.  Added "#if 0" around system call.
8606
8607 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8608             Richard Henderson  <rth@redhat.com>
8609
8610         * config/i386/i386.c (initial_ix86_tune_features): Add
8611         X86_TUNE_PAD_SHORT_FUNCTION.
8612         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
8613         (ix86_count_insn): New.
8614         (ix86_pad_short_function): Likewise.
8615         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
8616
8617         * config/i386/i386.h (ix86_tune_indices): Add
8618         X86_TUNE_PAD_SHORT_FUNCTION.
8619         (TARGET_PAD_SHORT_FUNCTION): New.
8620
8621         * config/i386/i386.md (UNSPEC_NOPS): New.
8622         (nops): Likewise.
8623
8624 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8625
8626         PR middle-end/45234
8627         * calls.c (expand_call): Make sure that all variable sized
8628         adjustments are multiple of preferred stack boundary after
8629         stack alignment.
8630
8631 2010-09-17  DJ Delorie  <dj@redhat.com>
8632
8633         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
8634         passed an invalid value, print an error instead of ICEing.
8635         (valid_psw_flag): New.
8636         (rx_expand_builtin): Call it for setpsw/clrpsw.
8637         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
8638
8639         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
8640         (bitclr_in_memory): Likewise.
8641         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
8642
8643 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
8644
8645         PR middle-end/45678
8646         * cfgexpand.c (update_stack_alignment): New.
8647         (get_decl_align_unit): Use it.
8648         (expand_one_stack_var_at): Call update_stack_alignment.
8649
8650 2010-09-17  Richard Guenther  <rguenther@suse.de>
8651
8652         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
8653         Properly copy the read string.
8654
8655 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
8656
8657         * doc/options.texi (Variable): Document.
8658         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
8659         generate target_flags declarations explicitly.  Don't define
8660         VarExists variables for the driver.
8661         * common.opt (target_flags): New Variable record.
8662         (flag_dump_unnumbered, flag_dump_unnumbered_links,
8663         flag_var_tracking, flag_var_tracking_assignments,
8664         flag_var_tracking_assignments_toggle): Don't mark variables with
8665         VarExists.
8666         * config/i386/i386.c (ix86_isa_flags): Don't define here.
8667         * config/i386/i386.opt (ix86_isa_flags): Define here.
8668         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
8669         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
8670         VarExists.
8671         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
8672         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
8673         Only define for generator programs.
8674         * rtlanal.c (target_flags): Remove.
8675         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
8676         flag_var_tracking_assignments_toggle): Remove.
8677
8678 2010-09-17  Michael Matz  <matz@suse.de>
8679
8680         PR tree-optimization/43432
8681         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8682         Accept backwards consecutive accesses.
8683         (vect_create_data_ref_ptr): If step is negative generate
8684         decreasing IVs.
8685         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
8686         (perm_mask_for_reverse, reverse_vec_elements): New functions.
8687         (vectorizable_load): Handle loads with negative steps when easily
8688         possible.
8689
8690 2010-09-03  Jan Hubicka  <jh@suse.cz>
8691
8692         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
8693
8694 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
8695
8696         * config/v850/v850.c (v850_function_value_regno_p): Make static.
8697         Adjust comments. Declare.
8698         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8699         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
8700
8701 2010-09-17  Richard Guenther  <rguenther@suse.de>
8702
8703         * common.opt (combine): Remove.
8704         * gcc.c (default_compilers): Remove specs testing combine.
8705         The C compilers no longer can combine.
8706         (option_map): Remove -combine.
8707         (display_help): Remove -combine.
8708         (driver_handle_option): Remove OPT_combine handling.
8709         (compile_input_file_p): Remove.
8710         (do_spec): Remove code concerning combine.
8711         (main): Likewise.
8712         * doc/invoke.texi: Remove traces of -combine.
8713         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
8714
8715 2010-09-17  Richard Guenther  <rguenther@suse.de>
8716
8717         PR middle-end/45678
8718         * builtins.c (fold_builtin_memory_op): Always properly adjust
8719         alignment of memory accesses.
8720
8721 2010-09-16  Jan Hubicka  <jh@suse.cz>
8722
8723         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
8724         processing clone.
8725
8726 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
8727
8728         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
8729
8730         * config/i386/i386.c (predict_jump): Add prototype.
8731         (flag_opts): Add -m8bit-idiv.
8732         (ix86_split_idivmod): New.
8733
8734         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
8735         Add 2 splitters for SI/DI mode divide.
8736         (divmod<mode>4_1): New pattern.
8737         (udivmod<mode>4_1): Likewise.
8738         (testdi_ccno_1): Likewise.
8739
8740         * config/i386/i386.opt (m8bit-idiv): New.
8741
8742         * doc/invoke.texi: Document -m8bit-idiv.
8743
8744 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
8745
8746         PR bootstrap/45680
8747         * config/i386/i386.c (min_insn_size): Moved out of the
8748         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
8749
8750 2010-09-16  Jan Hubicka  <jh@suse.cz>
8751
8752         * lto-cgraph.c (lto_output_node): Fix handling of clones.
8753         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
8754         unreachable clones with reachable clones.
8755         * tree-inline.c (copy_bb): Fix sanity checking when producing
8756         unreachable clone.
8757
8758 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
8759
8760         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
8761         (TARGET_MEMORY_MOVE_COST): Define.
8762         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
8763
8764 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
8765
8766         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
8767         maybe_tidy_empty_bb.
8768
8769         Revert:
8770         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
8771         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8772
8773 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
8774
8775         * target.def (target_option.optimization): New hook.
8776         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
8777         TARGET_OPTION_OPTIMIZATION hook.
8778         * doc/tm.texi: Regenerate.
8779         * hooks.c (hook_void_int_int): New.
8780         * hooks.h (hook_void_int_int): Declare.
8781         * opts.c: Don't include tm_p.h.
8782         (decode_options): Use targetm.target_option.optimization instead
8783         of OPTIMIZATION_OPTIONS.
8784         * system.h (OPTIMIZATION_OPTIONS): Poison.
8785         * config/arm/arm-protos.h (arm_optimization_options): Remove.
8786         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
8787         (arm_optimization_options): Rename to arm_option_optimization.
8788         Make static.
8789         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
8790         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
8791         (cris_option_optimization): New.
8792         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
8793         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
8794         (crx_option_optimization): New.
8795         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
8796         * config/frv/frv-protos.h (frv_optimization_options): Remove.
8797         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
8798         (frv_optimization_options): Rename to frv_option_optimization.
8799         Make static.
8800         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
8801         * config/h8300/h8300.c (h8300_option_optimization): New.
8802         (TARGET_OPTION_OPTIMIZATION): Define.
8803         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
8804         * config/i386/i386-protos.h (optimization_options): Remove.
8805         * config/i386/i386.c (optimization_options): Rename to
8806         ix86_option_optimization.  Make static.
8807         (TARGET_OPTION_OPTIMIZATION): Define.
8808         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
8809         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
8810         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
8811         (ia64_optimization_options): Rename to ia64_option_optimization.
8812         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
8813         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
8814         commented-out definition.
8815         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
8816         instead of OPTIMIZATION_OPTIONS.
8817         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
8818         (m32r_option_optimization): New.
8819         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
8820         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
8821         Remove.
8822         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
8823         (mcore_option_optimization): New.
8824         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
8825         * config/mep/mep-protos.h (mep_optimization_options): Remove.
8826         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
8827         (mep_optimization_options): Rename to mep_option_optimization.
8828         Make static.  Take unused level and size parameters.
8829         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
8830         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
8831         (mmix_option_optimization): New.
8832         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
8833         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
8834         (pdp11_option_optimization): New.
8835         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
8836         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
8837         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
8838         (optimization_options): Rename to rs6000_option_optimization.
8839         Make static.
8840         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
8841         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
8842         * config/rx/rx.c (rx_set_optimization_options): Rename to
8843         rx_option_optimization.  Make static.  Take unused level and size
8844         parameters.
8845         (TARGET_OPTION_OPTIMIZATION): Define.
8846         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
8847         * config/s390/s390-protos.h (optimization_options): Remove.
8848         * config/s390/s390.c (optimization_options): Rename to
8849         s390_option_optimization.  Make static.  Don't mark size parameter
8850         unused.
8851         (TARGET_OPTION_OPTIMIZATION): Define.
8852         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
8853         * config/sh/sh-protos.h (sh_optimization_options): Remove.
8854         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
8855         (sh_optimization_options): Rename to sh_option_optimization.  Make
8856         static.  Don't mark parameters unused.
8857         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
8858         * config/spu/spu-protos.h (spu_optimization_options): Remove.
8859         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
8860         (spu_optimization_options): Rename to spu_option_optimization.
8861         Make static.
8862         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
8863         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
8864         (v850_option_optimization): New.
8865         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
8866         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
8867         (xtensa_option_optimization): New.
8868         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
8869
8870 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
8871
8872         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
8873         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
8874         * doc/tm.texi: Regenerate.
8875         * system.h (OVERRIDE_OPTIONS): Poison.
8876         * target.def (override): Default to hook_void_void.
8877         * targhooks.c (default_target_option_override): Remove.
8878         * genmodes.c, machmode.def: Update comments mentioning
8879         OVERRIDE_OPTIONS.
8880         * config/alpha/alpha-modes.def: Update comment mentioning
8881         alpha_override_options.
8882         * config/alpha/alpha-protos.h (override_options): Remove.
8883         * config/alpha/alpha.c (override_options): Rename to
8884         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
8885         (TARGET_OPTION_OVERRIDE): Define.
8886         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
8887         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
8888         of OVERRIDE_OPTIONS.
8889         * config/arc/arc-protos.h (arc_init): Remove.
8890         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
8891         (arc_init): Rename to arc_option_override.  Make static.
8892         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
8893         (OVERRIDE_OPTIONS): Remove.
8894         * config/arm/arm-protos.h (arm_override_options): Remove.
8895         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
8896         (arm_override_options): Rename to arm_option_override.  Make
8897         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
8898         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
8899         * config/arm/arm.md: Update comment referring to arm_override_options.
8900         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
8901         instead of OVERRIDE_OPTIONS.
8902         * config/avr/avr-protos.h (avr_override_options): Remove.
8903         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
8904         (avr_override_options): Rename to avr_option_override.  Make static.
8905         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
8906         * config/bfin/bfin-protos.h (override_options): Remove (twice).
8907         * config/bfin/bfin.c (override_options): Rename to
8908         bfin_option_override.  Make static.
8909         (TARGET_OPTION_OVERRIDE): Define.
8910         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
8911         * config/cris/cris-protos.h (cris_override_options): Remove.
8912         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
8913         (cris_override_options): Rename to cris_option_override.  Make static.
8914         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
8915         * config/frv/frv-protos.h (frv_override_options): Remove.
8916         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
8917         (frv_override_options): Rename to frv_option_override.  Make static.
8918         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
8919         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
8920         * config/h8300/h8300.c (h8300_init_once): Rename to
8921         h8300_option_override.  Make static.
8922         (TARGET_OPTION_OVERRIDE): Define.
8923         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
8924         * config/i386/i386-protos.h (override_options): Remove.
8925         * config/i386/i386.c (override_options): Rename to
8926         ix86_option_override_internal.  Make static.  Comments referring
8927         to this function and callers changed.
8928         (ix86_option_override): New.
8929         (TARGET_OPTION_OVERRIDE): Define.
8930         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
8931         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
8932         * config/ia64/ia64.c (ia64_file_start): Update comment referring
8933         to ia64_override_options.
8934         * config/iq2000/iq2000-protos.h (override_options): Remove.
8935         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
8936         (override_options): Rename to iq2000_option_override.  Make static.
8937         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
8938         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
8939         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
8940         (lm32_override_options): Rename to lm32_option_override.  Make static.
8941         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
8942         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
8943         (m32r_option_override): New.
8944         (m32r_init): Update comment.
8945         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
8946         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
8947         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
8948         (m68hc11_override_options): Rename to m68hc11_option_override.
8949         Make static.  Return void.
8950         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
8951         * config/m68k/m68k-protos.h (override_options): Remove.
8952         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
8953         (override_options): Rename to m68k_option_override.  Make static.
8954         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
8955         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
8956         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
8957         (mcore_override_options): Rename to mcore_option_override.  Make
8958         static.
8959         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
8960         * config/mep/mep-protos.h (mep_override_options): Remove.
8961         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
8962         (mep_override_options): Rename to mep_option_override.  Make static.
8963         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
8964         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
8965         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
8966         (mmix_override_options): Rename to mmix_option_override.  Make static.
8967         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
8968         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
8969         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
8970         (mn10300_override_options): Rename to mn10300_option_override.
8971         Make static.
8972         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
8973         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
8974         * config/moxie/moxie.c (moxie_override_options): Rename to
8975         moxie_option_override.  Make static.
8976         (TARGET_OPTION_OVERRIDE): Define.
8977         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
8978         * config/picochip/picochip-protos.h (picochip_override_options):
8979         Remove.  Update comment referring to picochip_override_options.
8980         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
8981         (picochip_override_options): Rename to picochip_option_override.
8982         Make static.  Update comment and definition of
8983         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
8984         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
8985         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8986         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8987         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8988         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8989         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8990         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
8991         instead of OVERRIDE_OPTIONS.
8992         * config/rs6000/rs6000-modes.def: Update comment referring to
8993         rs6000_override_options.
8994         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
8995         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
8996         (rs6000_override_options): Rename to
8997         rs6000_option_override_internal.  Make static.  Commented
8998         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
8999         (rs6000_option_override): New.
9000         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
9001         instead of OVERRIDE_OPTIONS.
9002         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
9003         * config/s390/s390-protos.h (override_options): Remove.
9004         * config/s390/s390.c (override_options): Rename to
9005         s390_option_override.  Make static.
9006         (TARGET_OPTION_OVERRIDE): Define.
9007         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
9008         * config/score/score-protos.h (score_override_options): Remove.
9009         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
9010         (score_override_options): Rename to score_option_override.  Make
9011         static.
9012         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
9013         Update comment referring to override_options.
9014         * config/score/score3.c (score3_override_options): Rename to
9015         score3_option_override.
9016         * config/score/score3.h (score3_override_options): Rename to
9017         score3_option_override.
9018         * config/score/score7.c (score7_override_options): Rename to
9019         score7_option_override.
9020         * config/score/score7.h (score7_override_options): Rename to
9021         score7_option_override.
9022         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
9023         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
9024         (sparc_override_options): Rename to sparc_option_override.  Make
9025         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
9026         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
9027         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
9028         instead of OVERRIDE_OPTIONS.
9029         * config/spu/spu-protos.h (spu_override_options): Remove.
9030         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
9031         (spu_override_options): Rename to spu_option_override.  Make
9032         static.
9033         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
9034         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
9035         OVERRIDE_OPTIONS.
9036         * config/vax/vax-protos.h (override_options): Remove.
9037         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
9038         (override_options): Rename to vax_option_override.  Make static.
9039         Call SUBTARGET_OVERRIDE_OPTIONS.
9040         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
9041         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
9042         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
9043         * config/xtensa/xtensa-protos.h (override_options): Remove.
9044         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
9045         (override_options): Rename to xtensa_option_override.  Make static.
9046         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
9047
9048 2010-09-16  Richard Guenther  <rguenther@suse.de>
9049
9050         PR tree-optimization/45623
9051         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
9052         (get_constraint_for_component_ref): If computing a constraint
9053         for the rhs handle type punning through unions.
9054         (get_constraint_for_address_of): Adjust.
9055         (get_constraint_for_1): Likewise.
9056         (get_constraint_for): Likewise.
9057         (get_constraint_for_rhs): New function.
9058         (do_structure_copy): Adjust.
9059         (make_constraint_to): Likewise.
9060         (handle_const_call): Likewise.
9061         (find_func_aliases): Likewise.
9062         (process_ipa_clobber): Likewise.
9063         (create_variable_info_for): Likewise.
9064
9065 2010-09-16  Ira Rosen  <irar@il.ibm.com>
9066
9067         * tree-vectorizer.c: Fix documentation.
9068         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
9069         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
9070         is_pattern_stmt_p, is_loop_header_bb_p,
9071         stmt_vinfo_set_inside_of_loop_cost,
9072         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
9073         known_alignment_for_access_p): Likewise.
9074         * tree-vect-loop.c: Fix documentation.
9075         (vect_get_cost): Start function name from new line.
9076         * tree-vect-data-refs.c: Fix documentation.
9077         * tree-vect_stmts.c: Likewise.
9078         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
9079         (vectorizable_store): Free vec_oprnds if allocated.
9080         (vectorizable_condition): Initialize several variables to avoid
9081         warnings.
9082         * tree-vect-slp.c: Fix documentation.
9083
9084 2010-09-16  Richard Guenther  <rguenther@suse.de>
9085
9086         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
9087         is TS_TRANSLATION_UNIT_DECL.
9088         (initialize_tree_contains_struct): Adjust.
9089         (all_translation_units): New global vector.
9090         (build_translation_unit_decl): New function.
9091         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
9092         (struct tree_translation_unit_decl): New.
9093         (all_translation_units): Declare.
9094         (union tree_node): Add translation_unit_decl member.
9095         (build_translation_unit_decl): Declare.
9096         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
9097         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
9098         New function.
9099         (pack_value_fields): Call it.
9100         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
9101         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
9102         (lto_output_tree_pointers): Call it.
9103         * lto-streamer-in.c (lto_input_tree_ref): Handle references
9104         to TRANSLATION_UNIT_DECL.
9105         (unpack_ts_translation_unit_decl_value_fields): New function.
9106         (unpack_value_fields): Call it.
9107         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
9108         (lto_input_tree_pointers): Call it.
9109         * lto-streamer.c (check_handled_ts_structures): Adjust.
9110         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
9111         * c-decl.c (all_translation_units): Remove.
9112         (pop_scope): Use build_translation_unit_decl.
9113         (collect_all_refs): Adjust.
9114         (for_each_global_decl): Likewise.
9115         (c_write_global_declarations): Likewise.
9116
9117 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
9118
9119         PR bootstrap/45686
9120         * fold-const.c (fold_checksum_tree): Change slot from const void **
9121         to void **, use CONST_CAST_TREE to store into *slot.
9122
9123 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
9124
9125         * config/i386/i386.md: Remove unneeded empty conditions and
9126         preparation statements from expanders.
9127         * config/i386/mmx.md: Ditto.
9128         * config/i386/sse.md: Ditto.
9129
9130 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
9131
9132         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
9133
9134 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9135
9136         PR rtl-optimization/45593
9137         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
9138         insns that were in delay slots as stand-alone insns.
9139
9140 2010-09-15  Ian Lance Taylor  <iant@google.com>
9141
9142         * incpath.c (remove_duplicates): If name is not a directory, issue
9143         a warning rather than an error.
9144
9145 2010-09-15  Martin Jambor  <mjambor@suse.cz>
9146
9147         PR middle-end/45644
9148         * tree-sra.c (create_access): Check for bit-fields directly.
9149
9150 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
9151
9152         PR tree-optimization/45633
9153         * tree-cfg.c (verify_gimple_assign_binary): Allow
9154         MINUS_EXPR with lhs and rhs1 pointer vector and
9155         rhs2 sizetype vector.
9156         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
9157         or vector pointer use TER to optimize pointer subtraction.
9158
9159 2010-09-15  Jie Zhang  <jie@codesourcery.com>
9160
9161         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
9162         fcmpd to fcmps.
9163
9164 2010-09-15  Ian Lance Taylor  <iant@google.com>
9165
9166         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
9167
9168 2010-09-15  Ian Lance Taylor  <iant@google.com>
9169
9170         * function.c (get_arg_pointer_save_area): Set
9171         arg_pointer_save_area_init to true.
9172
9173 2010-09-15  Martin Jambor  <mjambor@suse.cz>
9174
9175         * tree-sra.c (generate_subtree_copies): Updated comment.
9176         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
9177         obtained from the statement iterator instead.
9178         (load_assign_lhs_subreplacements): Removed parameters lhs and
9179         right_offset, which is obtained from top_racc instead.  Parameter lacc
9180         is now expected to be the root of the processed tree rather than root's
9181         first child.  Updated all callers.
9182
9183 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
9184
9185         * config/pdp11/pdp11.c (register_move_cost): Rename to
9186         pdp11_register_move_cost.
9187         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
9188         pdp11_register_move_cost.
9189         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
9190         pdp11_register_move_cost instead of register_move_cost.
9191
9192 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
9193
9194         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
9195         pattern for vmovn. Expansion in case of non
9196         -mvectorize-with-neon-quad.
9197         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
9198         non- -mvectorize-with-neon-quad case.
9199         (move_lo_quad_<mode>): New expansion to vmov into low part.
9200         (move_hi_quad_<mode>): New expansion to vmov into high part.
9201         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
9202         (move_lo_quad_v4sf): Likewise.
9203         (move_lo_quad_v8hi): Likewise.
9204         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
9205         low part.
9206         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
9207         high part.
9208         * config/arm/iterators.md (ANY128): New mode iterator.
9209         (V_narrow_pack): New mode attribute.
9210         (V_HALF): Add attribute.
9211         (V_DOUBLE): Add attribute.
9212         (V_mode_nunits): Add attribute.
9213
9214 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
9215
9216         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
9217         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
9218
9219 2010-09-15  Olivier Hainque  <hainque@adacore.com>
9220             Jose Ruiz  <ruiz@adacore.com>
9221
9222         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
9223         * config/alpha/osf5-unwind.h: New file.
9224
9225 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9226
9227         PR bootstrap/45672
9228         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
9229         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
9230         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
9231
9232 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9233
9234         * c-lang.h (struct lang_type): Add variable_size GTY option.
9235
9236 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9237
9238         PR bootstrap/45672
9239         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
9240
9241 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9242
9243         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
9244         result isn't used in memory address.
9245
9246 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9247
9248         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
9249         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
9250         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
9251         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
9252         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
9253         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
9254
9255         * target.def: Add units_per_simd_word to vectorize.
9256
9257         * targhooks.c (default_units_per_simd_word): New.
9258         * targhooks.h (default_units_per_simd_word): Likewise.
9259         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
9260         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9261         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
9262         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9263         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
9264         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9265         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
9266         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
9267
9268         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
9269         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
9270
9271         * tree-vect-stmts.c: Don't include "tm_p.h".
9272         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
9273         with targetm.vectorize.units_per_simd_word.
9274
9275         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
9276
9277         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
9278
9279         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
9280         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
9281
9282         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
9283         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
9284
9285         * doc/tm.texi: Regenerated.
9286
9287 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
9288
9289         * tree-vect-stmts.c: Include "tm_p.h".
9290
9291         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
9292         out of RTX_CODE.
9293
9294 2010-09-14  Martin Jambor  <mjambor@suse.cz>
9295
9296         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
9297         location of generated statement.  Changed all callers.
9298         (build_ref_for_model): New parameter loc which used to set location of
9299         all generated expressions.  Changed all callers.
9300         (generate_subtree_copies): Likewise.
9301         (init_subtree_with_zero): Likewise.
9302         (sra_modify_expr): Set locations of all generated statements and
9303         expressions to the location the original statement.
9304         (handle_unscalarized_data_in_subtree): Likewise.
9305         (load_assign_lhs_subreplacements): Likewise.
9306         (sra_modify_constructor_assign): Likewise.
9307         (sra_modify_assign): Likewise.
9308
9309 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
9310
9311         PR target/45277
9312         PR target/45363
9313         PR target/45407
9314         * doc/install.texi (sparc*-*-*): New section.
9315         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
9316
9317 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
9318
9319         PR middle-end/45567
9320         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
9321         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
9322         (expand_builtin): Adjust caller.
9323         (expand_builtin_unop): Only use subtarget if it has the right mode.
9324
9325 2010-09-14  Tristan Gingold  <gingold@adacore.com>
9326
9327         * configure.ac (plugins): Fix typos.
9328         * configure: Regenerate.
9329
9330 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
9331
9332         PR debug/45660
9333         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
9334         gen_type_die for function/method return type.
9335
9336 2010-09-14  Ira Rosen  <irar@il.ibm.com>
9337
9338         PR tree-optimization/45470
9339         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9340         can throw an exception.
9341         * tree-vect-stmts.c (vectorizable_call): Likewise.
9342
9343 2010-09-14  DJ Delorie  <dj@redhat.com>
9344
9345         PR target/44749
9346         * config/mep/mep-protos.h (mep_save_register_info,
9347         mep_reinit_regs, mep_init_regs): Declare.
9348
9349         * config/mep/mep.c: Move all target definitions to the end of the
9350         file to avoid the need for duplicate declarations.
9351         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
9352         (mep_reorg_erepeat): Remove unused variables.
9353         (mep_expand_builtin): Likewise.
9354
9355         * config/mep/mep-pragma.c: Don't include rtl.h.
9356         (INVALID_REGNUM): New.
9357         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
9358         functions.
9359         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
9360         Avoid enum/integer math.
9361
9362 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
9363
9364         PR target/44749
9365         * config/mep/t-mep (GTM_H): Add insn-constants.h.
9366         * config/mep/mep.c (mep_conditional_register_usage): Take no
9367         parameters.
9368         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
9369         prototype.
9370         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
9371         call to mep_conditional_register_usage.
9372
9373 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
9374
9375         PR debug/43937
9376         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
9377         the DECL as well.
9378
9379 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
9380
9381         PR rtl-optimization/45617
9382         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
9383         even if low N bits of X aren't known to be zero.
9384
9385 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
9386
9387         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
9388
9389         * config/i386/i386.c (initial_ix86_tune_features): Add
9390         X86_TUNE_VECTORIZE_DOUBLE.
9391         (ix86_units_per_simd_word): New.
9392
9393         * config/i386/i386.h (ix86_tune_indices): Add
9394         X86_TUNE_VECTORIZE_DOUBLE.
9395         (TARGET_VECTORIZE_DOUBLE): New.
9396         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
9397
9398 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
9399
9400         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
9401         (new_temp_expr_table): Allocate call_cnt vector.
9402         (free_temp_expr_table): Free it.
9403         (process_replaceable): Add call_cnt parm and set in vector.
9404         (find_replaceable_in_bb): Skip replacement if def/use span a call.
9405         (debug_ter): Dump call_cnt value, remove stderr uses.
9406
9407 2010-09-13  Jan Hubicka  <jh@suse.cz>
9408
9409         * tree.c (build_zero_cst): New.
9410         * tree.h (build_zero_cst): Declare.
9411         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
9412         (get_base_constructor): Break out from ...
9413         (fold_const_aggregate_ref): Here; handle empty constructors.
9414
9415 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9416
9417         * config/arm/arm.md: (define_attr "conds"): Update comment.
9418         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
9419         conds attribute to clob.
9420         (arm_sync_compare_and_swapsi): Likewise.
9421         (arm_sync_compare_and_swap<mode>): Likewise.
9422         (arm_sync_lock_test_and_setsi): Likewise.
9423         (arm_sync_lock_test_and_set<mode>): Likewise.
9424         (arm_sync_new_<sync_optab>si): Likewise.
9425         (arm_sync_new_nandsi): Likewise.
9426         (arm_sync_new_<sync_optab><mode>): Likewise.
9427         (arm_sync_new_nand<mode>): Likewise.
9428         (arm_sync_old_<sync_optab>si): Likewise.
9429         (arm_sync_old_nandsi): Likewise.
9430         (arm_sync_old_<sync_optab><mode>): Likewise.
9431         (arm_sync_old_nand<mode>): Likewise.
9432
9433 2010-09-13  Olivier Hainque  <hainque@adacore.com>
9434
9435         * fwprop.c (forward_propagate_and_simplify): Only attach a
9436         REG_EQUAL note to an insn if the destination is a register.
9437         * gcse.c (try_replace_reg): Likewise.
9438
9439 2010-09-13  Richard Guenther  <rguenther@suse.de>
9440
9441         PR tree-optimization/45611
9442         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
9443         (copy_ref_info): Likewise.
9444
9445 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
9446
9447         PR debug/45604
9448         PR debug/45419
9449         PR debug/45408
9450         * tree-pretty-print.c (dump_generic_node): Disregard top-level
9451         types of MEM_REF pointer types to the same type.
9452
9453 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
9454
9455         PR rtl-optimization/41087
9456         * ifcvt.c (noce_get_condition): Don't allow conditions with
9457         side-effects.
9458
9459 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
9460
9461         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9462         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
9463         * config/frv/frv.c (frv_register_move_cost): Make static. Change
9464         arguments type to reg_class_t. Add mode argument.
9465         (frv_memory_move_cost): New.
9466         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
9467
9468 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
9469
9470         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
9471         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
9472
9473 2010-09-10  Jan Hubicka  <jh@suse.cz>
9474
9475         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
9476
9477 2010-09-10  Richard Guenther  <rguenther@suse.de>
9478
9479         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
9480         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
9481         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
9482         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
9483         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
9484
9485 2010-09-10  Richard Guenther  <rguenther@suse.de>
9486
9487         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
9488         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
9489         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
9490         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
9491
9492 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
9493
9494         PR middle-end/45634
9495         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
9496         of string folding is of integral type.
9497
9498 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
9499
9500         * doc/invoke.texi (-x): Fix typo.
9501
9502 2010-09-10  Richard Guenther  <rguenther@suse.de>
9503
9504         PR debug/44115
9505         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
9506         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9507         Output DECL_DEBUG_EXPR.
9508         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9509         Input DECL_DEBUG_EXPR.
9510
9511 2010-09-10  Richard Guenther  <rguenther@suse.de>
9512
9513         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
9514         (build_index_type): Implement in terms of build_range_type.
9515         (build_range_type): Do not allow NULL_TREE type, improve
9516         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
9517         if we didn't hash.
9518         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
9519         create a distinct copy of the type.
9520
9521 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
9522
9523         * configure: Regenerated.
9524         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
9525
9526 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9527
9528         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
9529         * config/arm/cortex-a9-neon.md: New and partially generated.
9530         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
9531
9532 2010-09-10  Richard Guenther  <rguenther@suse.de>
9533
9534         * tree.h (build_index_2_type): Remove.
9535         * tree.c (build_index_2_type): Remove.
9536
9537 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
9538
9539         PR bootstrap/45630
9540         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
9541         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
9542         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
9543
9544 2010-09-10  Martin Jambor  <mjambor@suse.cz>
9545
9546         PR tree-optimization/44972
9547         * tree-sra.c: Include toplev.h.
9548         (build_ref_for_offset): Entirely reimplemented.
9549         (build_ref_for_model): New function.
9550         (build_user_friendly_ref_for_offset): New function.
9551         (analyze_access_subtree): Removed build_ref_for_offset check.
9552         (propagate_subaccesses_across_link): Likewise.
9553         (create_artificial_child_access): Use
9554         build_user_friendly_ref_for_offset.
9555         (propagate_subaccesses_across_link): Likewise.
9556         (ref_expr_for_all_replacements_p): Removed.
9557         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
9558         (sra_modify_expr): Use build_ref_for_model.
9559         (load_assign_lhs_subreplacements): Likewise.
9560         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
9561         checks for return values of build_ref_for_offset.
9562         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
9563         build_ref_for_offset.
9564         * ipa-prop.h: Include gimple.h
9565         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
9566         (ipa_analyze_indirect_call_uses): Update comment.
9567         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
9568         (IPA_PROP_H): Likewise.
9569
9570 2010-09-10  Martin Jambor  <mjambor@suse.cz>
9571
9572         PR tree-optimization/44972
9573         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
9574         calling build_ref_for_offset.
9575
9576 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9577
9578         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
9579         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
9580         * config/arm/arm-tune.md: Regenerate.
9581         * doc/invoke.texi (ARM Options): Document it.
9582
9583 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
9584
9585         * config/i386/i386.c: Include sched-int.h.
9586         (TARGET_SCHED_DISPATCH): Defined.
9587         (TARGET_SCHED_DISPATCH_DO): Defined.
9588         (DISPATCH_WINDOW_SIZE): Defined.
9589         (MAX_DISPATCH_WINDOWS): Defined.
9590         (MAX_INSN): Defined.
9591         (MAX_IMM): Defined.
9592         (MAX_IMM_SIZE): Defined.
9593         (MAX_IMM_32): Defined.
9594         (MAX_IMM_64): Defined.
9595         (MAX_LOAD): Defined.
9596         (MAX_STORE): Defined.
9597         (BIG): Defined.
9598         (dispatch_group): New.
9599         (num_allowable_groups): New.
9600         (group_name): New.
9601         (sched_insn_info_s): New.
9602         (dispatch_windows_s): New.
9603         (imm_info_s): New.
9604         (dispatch_window_list): New.
9605         (dispatch_window_list1): New.
9606         (get_mem_group): New.
9607         (is_cmp): New.
9608         (dispatch_violation): New.
9609         (is_branch): New.
9610         (is_prefetch): New.
9611         (init_window): New.
9612         (allocate_window): New.
9613         (init_dispatch_sched): New.
9614         (is_end_basic_block): New.
9615         (process_end_window): New.
9616         (allocate_next_window): New.
9617         (find_constant_1): New.
9618         (find_constant): New.
9619         (get_num_immediates): New.
9620         (has_immediate): New.
9621         (get_insn_path): New.
9622         (get_insn_group): New.
9623         (count_num_restricted): New.
9624         (fits_dispatch_window): New.
9625         (add_insn_window): New.
9626         (add_to_dispatch_window): New.
9627         (debug_dispatch_window_file): New.
9628         (debug_dispatch_window): New.
9629         (debug_insn_dispatch_info_file): New.
9630         (debug_ready_dispatch): New.
9631         (do_dispatch): New.
9632         (has_dispatch): New.
9633         * config/i386/i386.h (debug_ready_dispatch): Declared.
9634         (debug_dispatch_window): Declared.
9635         * config/i386/i386.opt (mdispatch-scheduler): New flag.
9636         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
9637         (TARGET_SCHED_DISPATCH_DO): New.
9638         * doc/tm.texi: Regererated.
9639         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
9640         ready_remove_first_dispatch
9641         (schedule_block): Call targetm.sched.dispatch and
9642         targetm.sched.dispatch_do.
9643         (sched_init): Call targetm.sched.dispatch and
9644         targetm.sched.dispatch_do.
9645         (ready_remove_first_dispatch): New.
9646         (number_in_ready): New.
9647         (get_ready_element): New.
9648         * hooks.c (hook_bool_rtx_int_false): New.
9649         (hook_void_rtx_int): New.
9650         * hooks.h (hook_bool_rtx_int_false): Declared.
9651         (hook_void_rtx_int): Declared.
9652         * sched-int.h (IS_DISPATCH_ON): Defined.
9653         (IS_CMP): Defined.
9654         (DISPATCH_VIOLATION): Defined.
9655         (FITS_DISPATCH_WINDOW): Defined.
9656         (DISPATCH_INIT): Defined.
9657         (ADD_TO_DISPATCH_WINDOW): Defined.
9658         (get_ready_element): Declared.
9659         (number_in_ready): Declared.
9660         * target.def (dispatch): Defined.
9661         (dispatch_do): Defined.
9662
9663 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
9664
9665         PR middle-end/45312
9666         * reload1.c (merge_assigned_reloads): Remove.
9667         (reload_as_needed): Don't call it.
9668
9669 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
9670
9671         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
9672         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9673         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
9674
9675 2010-09-09  Matthias Klose  <doko@ubuntu.com>
9676
9677         PR bootstrap/43847
9678         * configure.ac (--enable-plugin): Enhance for cross builds.
9679         * configure: Regenerate.
9680
9681 2010-09-09  Jan Hubicka  <jh@suse.cz>
9682
9683         PR tree-optimization/45598
9684         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
9685         string folding is of integral type.
9686
9687 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
9688
9689         * configure.ac (gnu_indirect_function): New test.
9690         * configure: Rebuilt.
9691         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
9692         * defaults.h (IFUNC_ASM_TYPE): Provide default.
9693
9694         * doc/extend.texi (Function Attributes): Document ifunc.
9695         * varasm.c (do_assemble_alias): Deal with ifuncs too.
9696
9697 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
9698
9699         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
9700         epilogue instruction move.
9701
9702 2010-09-09  Jan Hubicka  <jh@suse.cz>
9703
9704         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
9705         command line to allow more partitions than input files.
9706
9707 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
9708
9709         PR middle-end/44554
9710         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
9711
9712 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
9713
9714         PR middle-end/40386
9715         * ira.c (pseudo_for_reload_consideration_p): Don't use
9716         flag_ira_share_spill_slots.
9717
9718 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9719
9720         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
9721         point zero operands that fit into a single GPR.
9722         (s390_preferred_reload_class): Ensure we only return general-purpose
9723         register classes.
9724         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
9725         floating-point zero operands into GPRs.
9726         ("*mov<mode>_64"): Likewise.
9727         ("mov<mode>"): Likewise using lhi.
9728
9729 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9730
9731         * config/s390/s390.c (s390_symref_operand_p): Return false for
9732         literal pool references.
9733         (s390_check_qrst_address): Update caller.
9734
9735 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
9736
9737         * config/i386/predicates.md (ext_register_operand): Check that
9738         SUBREG_REG is really a register before looking for REGNO.
9739         (reg_not_xmm0_operand): Handle SUBREGs correctly.
9740         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
9741
9742 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
9743
9744         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
9745         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
9746         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
9747         * print-rtl.c (print_rtx): Likewise.
9748         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9749         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
9750         for ADDR_EXPR with non-addressable object.
9751         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
9752         (struct dw_val_struct): Add v.val_decl_ref.
9753         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
9754         Handle DW_OP_GNU_implicit_pointer.
9755         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
9756         (get_ref_die_offset_label): New function.
9757         (implicit_ptr_descriptor): New function.
9758         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
9759         (loc_descriptor): Likewise.
9760         (gen_variable_die): Put even definitions into decl_die_table.
9761         (resolve_addr_in_expr): Resolve still unresolved
9762         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
9763         return false.
9764         (dwarf2out_finish): Call output_location_lists after outputting
9765         .debug_info and .debug_abbrev instead of before.
9766
9767 2010-09-09  Roland McGrath  <roland@redhat.com>
9768
9769         * dwarf2out.c (DWARF_REF_SIZE): Define.
9770         (size_of_loc_descr): Use it for DW_OP_call_ref.
9771
9772 2010-09-09  Alan Modra  <amodra@gmail.com>
9773
9774         * doc/invoke.text: Reinstate mcmodel=medium.
9775         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9776         CMODEL_MEDIUM as default.
9777         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
9778         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
9779         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
9780         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
9781
9782 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9783
9784         PR target/45250
9785         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
9786         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
9787         (builtin_longjmp): Likewise.
9788         (allocate_stack): Use hard_frame_pointer_rtx instead of
9789         frame_pointer_rtx.
9790         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
9791         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
9792         (pa_can_eliminate): Likewise.
9793         (TARGET_INTERNAL_ARG_POINTER): Define.
9794         (TARGET_CAN_ELIMINATE): Define.
9795         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
9796         pointer.
9797         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
9798         (pa_internal_arg_pointer, pa_can_eliminate,
9799         pa_initial_elimination_offset): New.
9800         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
9801         (HARD_FRAME_POINTER_REGNUM): Set to register three.
9802         (INITIAL_FRAME_POINTER_OFFSET): Delete.
9803         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
9804         Define.
9805         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
9806         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
9807         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
9808         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
9809         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
9810         new soft frame pointer.
9811         * config/pa/pa64-regs.h: Likewise.
9812
9813 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
9814
9815         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
9816         numerical constant.
9817         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
9818
9819 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
9820
9821         PR debug/45531
9822         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
9823
9824 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
9825
9826         PR debug/45419
9827         PR debug/45408
9828         * tree-pretty-print.c (dump_generic_node): Disregard top-level
9829         qualifiers in otherwise equal MEM_REF pointer types.
9830         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
9831         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
9832
9833 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9834
9835         PR target/44392
9836         * config/arm/arm.md (bswapsi2): Handle condition correctly
9837         for armv6 and optimize_size.
9838
9839 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9840
9841         PR other/18555
9842         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
9843
9844 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
9845
9846         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
9847         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
9848         ix86_expand_strlen, legitimate_pic_address_disp_p,
9849         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
9850         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
9851         ix86_check_movabs, ix86_secondary_memory_needed): Change function
9852         prototype to bool.
9853         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
9854         return_in_memory_ms_64, ix86_check_movabs,
9855         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
9856         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
9857         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
9858         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
9859         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
9860         ix86_secondary_memory_needed): Change to bool.  Return
9861         "true" and "false" values.
9862         * config/i386/i386.md: Return "true" and "false" values.
9863
9864 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9865
9866         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9867         run_expensive_tests.
9868
9869 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9870
9871         * toplev.c (output_stack_usage): Use lbasename instead of basename.
9872
9873 2010-09-08  Martin Jambor  <mjambor@suse.cz>
9874
9875         PR other/45443
9876         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
9877         at -O3.
9878
9879 2010-09-08  Richard Guenther  <rguenther@suse.de>
9880
9881         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
9882         (visit): Adjust.
9883         (iterative_hash_gimple_type): Likewise.
9884         (gimple_type_hash): Likewise.
9885         (gimple_register_type): Likewise.
9886         (print_gimple_types_stats): Likewise.
9887         (free_gimple_type_tables): Likewise.
9888
9889 2010-09-08  Michael Matz  <matz@suse.de>
9890
9891         PR tree-optimization/43430
9892         * tree-vect-stmts.c (vectorizable_condition): Support multiple
9893         copies for conditional statements if it's not part of a reduction.
9894
9895 2010-09-08  Michael Matz  <matz@suse.de>
9896
9897         PR tree-optimization/33244
9898         * tree-ssa-sink.c (statement_sink_location): Don't sink into
9899         empty loop latches.
9900
9901 2010-09-08  Richard Guenther  <rguenther@suse.de>
9902
9903         PR tree-optimization/45578
9904         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
9905         Be more careful when transfering alignment information to
9906         the new induction variable.
9907         (copy_ref_info): Likewise.
9908
9909 2010-09-08  Richard Guenther  <rguenther@suse.de>
9910
9911         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
9912         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
9913
9914 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
9915
9916         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
9917         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
9918
9919 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
9920
9921         PR doc/45587
9922         * doc/md.texi: Fixed modes on several standard pattern names.
9923
9924 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
9925
9926         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
9927         (ashl<mode>3): ...this.
9928         (loongson_psra<V_suffix>): Rename to...
9929         (ashr<mode>3): ...this.
9930         (loongson_psrl<V_suffix>): Rename to...
9931         (lshr<mode>3): ...this.
9932         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
9933         (CODE_FOR_loongson_psllw): Define.
9934         (CODE_FOR_loongson_psrlh): Define.
9935         (CODE_FOR_loongson_psrlw): Define.
9936         (CODE_FOR_loongson_psrah): Define.
9937         (CODE_FOR_loongson_psraw): Define.
9938
9939 2010-09-07  Richard Henderson  <rth@redhat.com>
9940
9941         * tree-vect-data-refs.c: Include tm_p.h.
9942         * Makefile.in (tree-vect-data-refs.o): Update deps.
9943         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
9944         Move delarations outside #ifdef RTX_CODE.
9945
9946 2010-09-07  Richard Henderson  <rth@redhat.com>
9947
9948         * final.c (rest_of_handle_final): Unconditionally do
9949         output_function_exception_table before assemble_end_function.
9950
9951 2010-09-07  Jan Hubicka  <jh@suse.cz>
9952
9953         * tree-inline.c (tree_inlinable_function_p): Do not test
9954         DECL_REPLACEABLE_P.
9955         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
9956         update_callee_keys, cgraph_decide_inlining): Test function availability.
9957         * cif-code.def (OVERWRITABLE): New code.
9958
9959 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
9960             Jack Howarth  <howarth@bromo.med.uc.edu>
9961
9962         PR target/36502
9963         PR target/42313
9964         PR target/44651
9965         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
9966         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
9967         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
9968         MAX macro.
9969
9970 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9971
9972         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
9973         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
9974
9975 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9976
9977         * config.gcc: Don't append t-android for Android targets.
9978
9979         * config/t-android: Removed.
9980
9981 2010-09-07  Richard Henderson  <rth@redhat.com>
9982
9983         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
9984         * doc/tm.texi.in: Add doc marker.
9985         * doc/tm.texi: Rebuild.
9986         * except.c (switch_to_exception_section): Always build.
9987         (output_one_function_exception_table): Move section switch,
9988         personality output, and label output ...
9989         (output_function_exception_table): ... here.  Use the new
9990         personality hook.
9991
9992         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
9993         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
9994         TARGET_ASM_INIT_SECTIONS): New.
9995         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
9996         make static.
9997         (TARGET_ASM_UNWIND_EMIT): Update to match.
9998         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
9999
10000         * config/arm/arm.c (arm_asm_emit_except_personality): New.
10001         (arm_asm_init_sections): New.
10002         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
10003
10004 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10005
10006         * config/arm/arm.md: Remove unused variable.
10007
10008 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
10009
10010         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10011         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
10012         (m32r_memory_move_cost): New function.
10013
10014 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
10015
10016         * config.gcc: Append t-android for Android targets.
10017
10018         * config/t-android: New.
10019
10020 2010-09-07  Richard Henderson  <rth@redhat.com>
10021
10022         * target.def (unwind_emit_before_insn): New hook.
10023         * doc/tm.texi.in: Add @hook marker for it.
10024         * doc/tm.texi: Rebuild.
10025         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
10026
10027 2010-09-07  Martin Jambor  <mjambor@suse.cz>
10028
10029         PR fortran/43665
10030         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
10031         are any type attributes.
10032
10033 2010-09-07  Jan Hubicka  <jh@suse.cz>
10034
10035         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
10036         array_ref_low_bound in string access folding.
10037
10038 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
10039
10040         PR target/45206
10041         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
10042         eh_return fixup sequence.
10043
10044 2010-09-07  Jan Hubicka  <jh@suse.cz>
10045
10046         * gimple-fold.c (maybe_fold_reference): Verify that operand is
10047         gimple_min_invariant.
10048
10049 2010-09-07  Richard Guenther  <rguenther@suse.de>
10050
10051         PR middle-end/45569
10052         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
10053         nor CONSTRUCTOR can trap.
10054         * tree-complex.c (update_complex_assignment): Update EH info.
10055
10056 2010-09-07  Richard Guenther  <rguenther@suse.de>
10057
10058         PR middle-end/45569
10059         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
10060         * passes.c (execute_function_todo): Do not verify anything if
10061         we saw errors.
10062
10063 2010-09-07  Richard Guenther  <rguenther@suse.de>
10064
10065         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
10066
10067 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
10068
10069         PR target/43137
10070         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
10071         New define_mode_attrs.
10072         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
10073         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
10074         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
10075         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
10076         Remove pool_range attribute.
10077         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
10078         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
10079         pool_range and neg_pool_range attributes.
10080         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
10081         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
10082         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
10083
10084 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10085
10086         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
10087         check glibc.
10088
10089 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
10090
10091         PR target/22152
10092         * config/i386/mmx.md (*mov<mode>_internal_rex64,
10093         *mov<mode>_internal_avx, *mov<mode>_internal,
10094         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
10095         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
10096
10097 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
10098
10099         * c-typeck.c (do_warn_double_promotion): Remove.
10100         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
10101         Objective-C++ too.
10102
10103 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
10104
10105         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
10106         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
10107         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
10108         argument type to reg_class_t. Change result type to bool.
10109         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10110
10111 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
10112
10113         PR libobjc/19850
10114         * gthr-posix.h (__gthread_objc_thread_detach): Use
10115         _objc_thread_attribs when detaching a thread.
10116         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
10117
10118 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10119
10120         PR target/45524
10121         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
10122         * configure: Regenerated.
10123
10124 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10125
10126         * combine.c (try_combine): Set subst_low_luid to i0.
10127
10128 2010-09-06  Richard Guenther  <rguenther@suse.de>
10129
10130         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
10131         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
10132         (build_aligned_type): Declare.
10133         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
10134         (check_aligned_type): New function.
10135         (build_aligned_type): Likewise.
10136         * expr.c (expand_assignment): Handle misaligned stores via
10137         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
10138         (expand_expr_real_1): Likewise.
10139         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
10140         * tree-vect-stmts.c (vectorizable_store): Do not build
10141         MISALIGNED_INDIRECT_REF but initialize alignment information.
10142         (vectorizable_load): Likewise.
10143         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
10144         handling.
10145         * cfgexpand.c (expand_debug_expr): Likewise.
10146         * dwarf2out.c (loc_list_from_tree): Likewise.
10147         * fold-const.c (maybe_lvalue_p): Likewise.
10148         (operand_equal_p): Likewise.
10149         (build_fold_addr_expr_with_type_loc): Likewise.
10150         * gimplify.c (gimplify_addr_expr): Likewise.
10151         (gimplify_expr): Likewise.
10152         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
10153         (verify_gimple_assign_single): Likewise.
10154         * tree-dump.c (dequeue_and_dump): Likewise.
10155         (tree_could_trap_p): Likewise.
10156         * tree-predcom.c (ref_at_iteration): Likewise.
10157         * tree-pretty-print.c (dump_generic_node): Likewise.
10158         (op_code_prio): Likewise.
10159         (op_symbol_code): Likewise.
10160         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
10161         * tree-ssa-loop-im.c (for_each_index): Likewise.
10162         (gen_lsm_tmp_name): Likewise.
10163         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
10164         (find_interesting_uses_address): Likewise.
10165         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
10166         * tree-ssa-operands.c (get_expr_operands): Likewise.
10167         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
10168         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10169         (ao_ref_init_from_vn_reference): Likewise.
10170         * tree.c (staticp): Likewise.
10171         (build1_stat): Likewise.
10172         (reference_alias_ptr_type): Likewise.
10173         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
10174         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
10175         MISALIGNED_INDIRECT_REF handling.
10176
10177 2010-09-06  Richard Guenther  <rguenther@suse.de>
10178
10179         PR tree-optimization/45534
10180         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
10181         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
10182         on the target.
10183         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
10184         valid on the target.
10185
10186 2010-09-06  Andreas Schwab  <schwab@redhat.com>
10187
10188         * configure.ac: Quote argument of AC_MSG_WARN.
10189         * configure: Regenerate.
10190
10191 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
10192
10193         * sel-sched.c (move_cond_jump): Correct arguments to
10194         maybe_tidy_empty_bb.
10195         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
10196
10197 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
10198
10199         PR rtl-optimization/44919
10200         * sel-sched.c (move_cond_jump): Remove assert, check that
10201         the several blocks case can only happen with mutually exclusive
10202         insns instead.  Rewrite the movement code to support moving through
10203         several basic blocks.
10204
10205 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
10206
10207         * config/i386/i386.md (iptrsize): New mode attribute.
10208         (tp_seg): Ditto.
10209         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
10210         mode iterator.
10211         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
10212         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
10213         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
10214         (stack_tls_protect_set_<mode>): Ditto from
10215         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
10216         of thread base pointer load.
10217         (stack_tls_protect_test_<mode>): Ditto from
10218         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
10219         of thread base pointer load.
10220         (stack_protect_set): Rewrite using indirect functions.
10221         (stack_protect_test): Ditto.
10222         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
10223         (ix86_print_operand): Handle '@'.
10224
10225 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
10226
10227         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
10228         MINUS_EXPR.
10229
10230 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
10231
10232         * doc/invoke.texi: Document -Wdouble-promotion.
10233         * c-typeck.c (convert_arguments): Check for implicit conversions
10234         from float to double.
10235         (do_warn_double_promotion): New function.
10236         (build_conditional_expr): Use it.
10237         (build_binary_op): Likewise.
10238
10239 2010-09-05  Richard Guenther  <rguenther@suse.de>
10240
10241         PR tree-optimization/45535
10242         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
10243         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
10244         dereferencing it.
10245         (indirect_refs_may_alias_p): Likewise.
10246
10247 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
10248
10249         * config/sh/sh.c (sh_option_override): Make static.
10250         Adjust comments.  Declare.
10251         (sh_function_value_regno_p): Likewise.
10252         (sh_register_move_cost): Modify the arguments, make static.
10253         Adjust comments.  Declare.
10254         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
10255         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10256         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
10257         REGISTER_MOVE_COST): Delete.
10258         * config/sh/sh-protos.h (sh_override_options): Delete.
10259         (sh_register_move_cost): Delete.
10260         (sh_function_value_regno_p): Delete.
10261
10262 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
10263
10264         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
10265         m32r_function_value_regno_p): New functions.
10266         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10267         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
10268         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
10269         FUNCTION_VALUE_REGNO_P): Remove.
10270
10271 2010-09-04  Jan Hubicka  <jh@suse.cz>
10272
10273         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
10274         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
10275         fold_read_from_constant_string.
10276
10277         * gimple.h (canonicalize_constructor_val): Declare.
10278         * gimple-fold.c (canonicalize_constructor_val): New function.
10279         (get_symbol_constant_value):Use it.
10280         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10281
10282 2010-09-04  Jan Hubicka  <jh@suse.cz>
10283
10284         * tree-switch-conversion.c (build_one_array): Set constructor to be
10285         static.
10286         * varpool.c (varpool_finalize_decl): Compute const_value_known.
10287
10288 2010-09-04  Richard Guenther  <rguenther@suse.de>
10289
10290         PR bootstrap/45519
10291         * tree-flow.h (force_gimple_operand_1): Declare.
10292         (force_gimple_operand_gsi_1): Likewise.
10293         * gimplify.c (force_gimple_operand_1): New worker taking a
10294         gimple predicate for ...
10295         (force_gimple_operand): ... which now wraps it.
10296         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
10297         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
10298         last change.
10299         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
10300         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
10301         (create_mem_ref): Likewise.
10302
10303 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
10304
10305         * config/i386/predicates.md (sse_reg_operand): New predicate.
10306         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
10307         predicate for operand 1.
10308         (XFmode push splitter): Use fp_register_operand predicate
10309         for operand 1.
10310         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
10311         (SF-DF float_extend push splitter): Add reload_completed insn
10312         predicate.
10313         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
10314         MODEF mode macro.  Add reload_completed insn predicate.
10315
10316 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
10317
10318         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
10319         (struct df_extract_ref): Remove.
10320         (union df_ref_d): Remove extract_ref member.
10321         (df_ref_create): Remove last three arguments.
10322         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
10323         * df-scan.c (df_ref_record): Remove last three arguments, do not
10324         pass them to df_ref_create_structure.
10325         (df_uses_record): Remove first and last three arguments.  Replace
10326         first argument with DF_REF_REGULAR, adjust calls to remove the
10327         width, offset and mode.  Always call recursively on the second
10328         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
10329         (df_ref_create_structure): Remove first argument.
10330         (struct df_scan_problem_data): Remove ref_extract_pool.
10331         (df_scan_free_internal): Do not free it.
10332         (df_scan_alloc): Do not allocate it.
10333         (df_ref_create): Remove last three arguments, do not pass them to
10334         df_ref_create_structure.
10335         (df_free_ref): Remove DF_REF_EXTRACT case.
10336         (df_notes_rescan): Adjust call to df_uses_record.
10337         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
10338         Remove DF_REF_EXTRACT case.
10339         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
10340         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
10341         and SUBREG definitions.
10342         (df_get_conditional_uses): Remove references to width/offset/mode,
10343         adjust call to df_ref_create_structure.
10344         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10345         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
10346         calls to df_uses_record and df_ref_record.
10347         * fwprop.c (update_df): Remove references to width/offset/mode,
10348         adjust call to df_ref_create.
10349
10350 2010-09-03  Jan Hubicka  <jh@suse.cz>
10351
10352         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
10353         (build_cdtor_fns): Update use of build_cdtor.
10354
10355 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
10356
10357         * doc/options.texi (SeparateAlias): Document.
10358         * opt-functions.awk (switch_flags): Handle SeparateAlias.
10359         * opth-gen.awk: Generate enumeration names for options marked
10360         SeparateAlias, but not for those marked Ignore.
10361         * opts-common.c (generate_canonical_option): Don't output separate
10362         argument for options marked CL_SEPARATE_ALIAS.
10363         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
10364         * opts.h (CL_SEPARATE_ALIAS): New.
10365         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10366         CL_COMMON): Adjust definitions.
10367         * config/i386/darwin.opt, config/mips/sde.opt: New.
10368         * common.opt (fdump-final-insns): New.
10369         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10370         i386/darwin.opt.
10371         (mips*-sde-elf*): Add mips/sde.opt.
10372         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
10373         -mno-data-in-code and -mcode-xonly here.
10374         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
10375         * gcc.c (option_map): Add "j" to --dump entry.
10376         (translate_options): Don't translate -d to -foutput-class-dir= here.
10377
10378 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
10379
10380         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
10381         DR_IS_WRITE.
10382         (compute_all_dependences): Same.
10383         (create_rdg_edge_for_ddr): Same.
10384         * tree-data-ref.h (DR_IS_WRITE): New.
10385         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
10386         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
10387         (write_memrefs_written_at_least_once): Same.
10388         * tree-predcom.c (suitable_component_p): Same.
10389         (determine_roots_comp): Same.
10390         (execute_load_motion): Same.
10391         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
10392         (vect_enhance_data_refs_alignment): Same.
10393         (vect_analyze_group_access): Same.
10394
10395 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
10396
10397         PR testsuite/42843
10398         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
10399         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
10400
10401 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
10402
10403         * dwarf2out.c (file scope): Remove #if0'd code.
10404         (gen_subprogram_die): Same.
10405
10406 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
10407
10408         PR middle-end/45484
10409         * dwarf2out.c (flush_queued_reg_saves): Rename to...
10410         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
10411         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
10412         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
10413         * config/i386/i386.c (output_set_got): Call it.
10414
10415 2010-09-03  Michael Matz  <matz@suse.de>
10416
10417         PR middle-end/45415
10418         * tree-sra.c (sra_modify_assign): If we modify the statement,
10419         say so.
10420
10421         * tree-ssa.c (verify_ssa): Check number of operands and links
10422         per statement to agree.
10423
10424 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
10425             Iain Sandoe  <iains@gcc.gnu.org>
10426
10427         PR target/45476
10428         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
10429         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
10430         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
10431
10432 2010-09-03  Richard Guenther  <rguenther@suse.de>
10433
10434         * lto-streamer-out.c (output_function): Output function
10435         start and end loci.
10436         * lto-streamer-in.c (input_function): Input function start
10437         and end loci.
10438
10439 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10440
10441         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
10442         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
10443         * configure: Regenerate.
10444         * aclocal.m4: Regenerate.
10445
10446 2010-09-03  Jan Hubicka  <jh@suse.cz>
10447
10448         PR lto/44812
10449         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
10450         on functions/variables in other partition.
10451
10452 2010-09-03  Jan Hubicka  <jh@suse.cz>
10453
10454         * cgraph.h (struct varpool_node): Add const_value_known.
10455         (varpool_decide_const_value_known): Declare.
10456         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
10457         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
10458         (input_varpool_node): Restore const_value_known.
10459         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
10460         initializer folding.
10461         * ipa.c (ipa_discover_readonly_nonaddressable_var,
10462         function_and_variable_visibility): Compute const_value_known.
10463         * gimple-fold.c (get_symbol_constant_value): Use varpool for
10464         initializer folding.
10465         * varpool.c (varpool_decide_const_value_known): New function.
10466
10467 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
10468
10469         * config/i386/i386.md: Remove empty preparation statements
10470         from splitters.
10471
10472 2010-09-03  Jan Hubicka  <jh@suse.cz>
10473
10474         * passes.c (rest_of_decl_compilation): Do not add local vars into
10475         varpool.
10476         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
10477         static or extern vars are in varpool.
10478         (varpool_finalize_decl): Sanity check that only static vars are
10479         finalized.
10480
10481 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
10482
10483         PR debug/45500
10484         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
10485         not just generic vectors with BLKmode.
10486
10487 2010-09-03  Richard Guenther  <rguenther@suse.de>
10488
10489         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
10490         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
10491         * tree.h (TMR_SYMBOL): Remove.
10492         (TMR_BASE, TMR_OFFSET): Adjust.
10493         (TMR_INDEX2): New.
10494         * alias.c (ao_ref_from_mem): Use TMR_BASE.
10495         * builtins.c (get_object_alignment): Merge TMR_BASE and
10496         TMR_SYMBOL handling.
10497         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
10498         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
10499         handling.  Also allow TARGET_MEM_REF as base address.
10500         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
10501         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
10502         base.  Gimplify TMR_INDEX2.
10503         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
10504         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10505         (get_addr_base_and_unit_offset): Likewise.
10506         * tree-eh.c (tree_could_trap_p): Likewise.
10507         * tree-pretty-print.c (dump_generic_node): Likewise.
10508         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
10509         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
10510         base to index2.
10511         (get_address_description): Reconstruct addres description
10512         from merged TMR_BASE and TMR_INDEX2.
10513         (maybe_fold_tmr): Fold propagated addresses.
10514         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
10515         MEM_REF and TARGET_MEM_REF paths.
10516         (indirect_refs_may_alias_p): Likewise.
10517         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
10518         instead of TMR_SYMBOL.
10519         * tree-ssa-operands.c (get_tmr_operands): Simplify.
10520         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
10521         according to changes ...
10522         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
10523         Split TARGET_MEM_REF into two fields plus the base.
10524         * tree.c (mem_ref_offset): Simplify.
10525         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
10526         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10527         Strip NOPs when folding MEM_REF addresses.
10528         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
10529         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
10530         (fold_gimple_assign): ... not here.
10531
10532 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
10533
10534         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
10535         * config/mips/mips.c (mips_shift_truncation_mask): New function.
10536         (TARGET_SHIFT_TRUNCATION_MASK): Define.
10537
10538 2010-09-02  Richard Henderson  <rth@redhat.com>
10539
10540         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
10541         instead of readelf in the test.
10542         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
10543         in the .debug_frame section for coff targets.
10544         * configure: Rebuild.
10545
10546 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
10547
10548         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
10549         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
10550         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10551         (m32c_class_likely_spilled_p): Make static. Change argument type to
10552         reg_class_t. Change result type to bool.
10553
10554 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
10555
10556         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
10557         to convert (double)(long) into a single FRIZ instruction or not
10558         when -ffast-math is used.
10559
10560         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
10561         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
10562         or FRIZ instruction if -ffast-math.
10563         * config/rs6000/rs6000.md (friz): Ditto.
10564
10565         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
10566
10567 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10568
10569         * opth-gen.awk (quote, comma): Remove unused variables.
10570
10571 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
10572
10573         * arm.c (arm_override_options): Correct fall-back code to use
10574         SUBTARGET_CPU_DEFAULT.
10575
10576 2010-09-02  Julian Brown  <julian@codesourcery.com>
10577
10578         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
10579         unspecs.
10580         (vcond<mode>, vcondu<mode>): New expanders.
10581         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
10582         comparisons with zero.
10583         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
10584         * config/arm/constraints.md (Dz): New constraint.
10585
10586 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
10587
10588         * target.def (class_likely_spilled_p): New hook.
10589         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
10590         * doc/tm.texi: Regenerate.
10591         * targhooks.c (default_class_likely_spilled_p): New function.
10592         * targhooks.h (default_class_likely_spilled_p): Declare.
10593         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
10594         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
10595         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
10596         Use fixed_reg_set instead of fixed_regs.
10597         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
10598         * calls.c (avoid_likely_spilled_reg): Ditto.
10599         * ira-conflicts.c (ira_build_conflicts): Ditto.
10600         * ira.c (update_equiv_regs): Ditto.
10601         * mode-switching.c (create_pre_exit): Ditto.
10602         * regmove.c (find_matches): Ditto.
10603         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
10604         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
10605         (small_register_class_p): New inline function.
10606         (push_secondary_reload, find_reusable_reload, find_reloads): Use
10607         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
10608
10609         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
10610         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
10611         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10612
10613 2010-09-02  Richard Guenther  <rguenther@suse.de>
10614
10615         PR tree-optimization/44937
10616         PR tree-optimization/45412
10617         * ipa-split.c (split_function): Properly remove PHI nodes.
10618
10619 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10620
10621         * opts.h (struct cl_option): Add warn_message field.
10622         (struct cl_decoded_option): Add warn_message field.
10623         * doc/options.texi (Ignore, Warn): Document.
10624         * opt-functions.awk (needs_state_p): Don't consider aliases or
10625         ignored options to need state saved.
10626         * optc-gen.awk: Handle Warn and Ignore.
10627         * opth-gen.awk: Output OPT_SPECIAL_ignore.
10628         * opts-common.c (decode_cmdline_option): Set warn_message field.
10629         Handle ignored options.
10630         (decode_cmdline_options_to_array, generate_option,
10631         generate_option_input_file): Set warn_message field.
10632         (read_cmdline_option): Generate warnings from warn_message field.
10633         Handle ignored options.
10634         * common.opt (Wunreachable-code, fargument-alias,
10635         fargument-noalias, fargument-noalias-global,
10636         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
10637         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
10638         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
10639         ftree-salias): Mark Ignore.
10640         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
10641         -mintel-syntax and -mno-intel-syntax here.
10642         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
10643         using Warn.
10644         * opts.c (common_handle_option): Don't handle options marked as
10645         ignored.
10646         (enable_warning_as_error): Handle ignored options.
10647
10648 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
10649
10650         PR driver/44076
10651         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
10652         alias_target fields.
10653         * opt-functions.awk (opt_sanitized_name): Don't handle
10654         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
10655         * optc-gen.awk: Generate alias fields.
10656         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
10657         Don't generate such constants for aliases.
10658         * opts-common.c (generate_canonical_option): New.
10659         (decode_cmdline_option): Handle aliases.  Use
10660         generate_canonical_option for known options instead of copying the
10661         input option text.
10662         * doc/options.texi (Alias): Document.
10663         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
10664         fstack-check, specs): Mark as aliases.
10665         * gcc.c (driver_handle_option): Canonicalize -L options to joined
10666         arguments.
10667         (driver_handle_option): Don't handle OPT_specs.
10668         * opts.c (common_handle_option): Don't handle options marked as
10669         aliases.
10670         (enable_warning_as_error): Handle aliases.
10671         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
10672         OPT_Wlarger_than_eq.
10673         * tree-optimize.c (tree_rest_of_compilation): Use
10674         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
10675
10676 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
10677
10678         * config/i386/i386.md (nonmemory_operand): New mode attribute.
10679         (push memory peephole2): Macroize peepholes using SWI mode iterator.
10680         (move immediate to memory peephole2): Macroize peepholes using
10681         SWI124 mode iterator.
10682         (non-pairable NOT peephole2): Macroize peepholes using SWI124
10683         mode iterator.
10684         (simple lea add peephole2): Macroize peepholes using SWI48
10685         mode iterator.
10686         (simple lea mult peephole2): Ditto.
10687         (imul by 3,5,9 to lea peephole2): Ditto.
10688         (mov $-1, reg peephole2): Macroize peepholes using SWI248
10689         mode iterator.
10690         (imul $32bit_imm,mem,reg peephole2): Ditto.
10691         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
10692
10693 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
10694
10695         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
10696
10697 2010-09-02  Olivier Hainque  <hainque@adacore.com>
10698
10699         PR middle-end/44763
10700         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
10701         (allocno_priority_compare_func): Use it instead of a straight
10702         difference computation over priorities.
10703
10704 2010-09-02  Andi Kleen  <ak@linux.intel.com>
10705
10706         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
10707
10708 2010-09-02  Ira Rosen  <irar@il.ibm.com>
10709
10710         * tree-vectorizer.h (get_later_stmt): New function.
10711         (vect_analyze_data_ref_dependences): Add argument.
10712         * tree-vect-loop.c (vect_analyze_loop): Update call to
10713         vect_analyze_data_ref_dependences.
10714         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
10715         New function.
10716         (vect_analyze_data_ref_dependence): Add argument for basic block
10717         dependencies. Check dependencies in basic block vectorization.
10718         (vect_analyze_data_ref_dependences): Add argument and update call to
10719         vect_analyze_data_ref_dependences.
10720         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
10721         (vect_bb_vectorizable_with_dependencies): New.
10722         (vect_slp_analyze_bb): Check dependencies in basic block.
10723         (vect_schedule_slp_instance): Insert stores before the last store in
10724         SLP instance.
10725
10726 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
10727
10728         PR target/45476
10729         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
10730         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
10731
10732 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
10733
10734         PR middle-end/45458
10735         * bb-reorder.c (add_labels_and_missing_jumps): Treat
10736         bbs ending with throwing insns like blocks ending with a call.
10737         (fix_up_fall_thru_edges): Likewise.
10738
10739 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
10740
10741         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
10742         (m32c_function_arg_advance): Delete.
10743         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10744         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
10745         comments.  Take a const_tree and a bool.  Declare.
10746         (m32c_function_arg_advance): Likewise.
10747         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10748
10749 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10750
10751         PR target/45476
10752         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
10753         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
10754         * config/i386/mingw32.h: ... here.
10755
10756 2010-09-01  Andi Kleen  <ak@linux.intel.com>
10757
10758         PR lto/45475
10759         * lto-streamer-in.c (lto_input_ts_target_option): Add.
10760         (lto_input_tree_pointers): Call lto_input_ts_target_option.
10761         * lto-streamer-out (lto_output_ts_target_option): Add.
10762         (lto_output_tree_pointers): Call lto_output_ts_target_option.
10763
10764 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
10765
10766         PR/target 45452
10767         * config/i386/cygwin.h: Change order of specified import libraries.
10768         * config/i386/mingw32.h: Likewise.
10769         * config/i386/t-cygwin: Likewise.
10770         * config/i386/t-mingw32: Likewise.
10771         * config/i386/t-mingw-w32: Likewise.
10772         * config/i386/t-mingw-w64: Likewise.
10773
10774 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10775
10776         * config/arm/neon-schedgen.ml (core): New type.
10777         (allCores): List of supported cores.
10778         (availability_table): Add supported cores.
10779         (collate_bypasses): Accept core as a parameter.
10780         (worst_case_latencies_and_bypasses): Accept core as a parameter.
10781         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
10782         and coreStr to get tune attribute and prefix for functional units.
10783         (emit_bypasses): Accept core name and use it.
10784         (calculate_per_core_availability_table): New.
10785         (filter_core): New.
10786         (calculate_core_availability_table): New.
10787         (main): Use calculate_core_availablity_table.
10788         * config/arm/cortex-a8-neon.md: Update copyright year.
10789         Regenerated from ml file and merged in.
10790         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
10791         cortex_a8_neon_mrc.
10792
10793 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
10794
10795         * Makefile.in (tree-switch-conversion.o): Update dependencies.
10796
10797 2010-09-01  Richard Guenther  <rguenther@suse.de>
10798
10799         * alias.c (ao_ref_from_mem): Adjust.
10800         * builtins.c (get_object_alignment): Likewise.
10801         * cfgexpand.c (expand_debug_expr): Likewise.
10802         * gimple.c (get_base_address): Likewise.
10803         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10804         (get_addr_base_and_unit_offset): Likewise.  Fix for
10805         both TMR_SYMBOL and TMR_BASE being set.
10806         * tree-eh.c (tree_could_trap_p): Likewise.
10807         * gimplify.c (gimplify_expr): Do not attempt to gimplify
10808         TMR_SYMBOL.  Always gimplify TMR_BASE.
10809         * tree-cfg.c (verify_types_in_gimple_reference): Verify
10810         TMR_BASE if there is a TMR_SYMBOL.
10811         * tree-pretty-print.c (dump_generic_node): Adjust.
10812         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
10813         (tree_mem_ref_addr): Likewise.
10814         (create_mem_ref_raw): Likewise.
10815         (move_fixed_address_to_symbol): Likewise.
10816         (create_mem_ref): Likewise.
10817         (dump_mem_address): Likewise.
10818         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
10819         Fix for both TMR_SYMBOL and TMR_BASE being set.
10820         (indirect_refs_may_alias_p): Likewise.
10821         * tree-ssa-operands.c (get_tmr_operands): Adjust.
10822         * tree.def (TARGET_MEM_REF): Adjust documentation.
10823
10824 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10825
10826         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
10827         Rename from X86_TUNE_ADD_ESP_4.
10828         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
10829         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
10830         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
10831         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
10832         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
10833         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
10834         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
10835         * config/i386/i386.c (initial_ix86_tune_features)
10836         <X86_TUNE_SINGLE_POP>: Invert members.
10837         <X86_TUNE_DOUBLE_POP>: Ditto.
10838         <X86_TUNE_SINGLE_PUSH>: Ditto.
10839         <X86_TUNE_DOUBLE_PUSH>: Ditto.
10840         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
10841         No longer exported.
10842         (push peephole2 patterns): Macroize peepholes using P mode iterator.
10843         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
10844         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
10845         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
10846
10847 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
10848
10849         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
10850         a volatile LHS if the constructor has only one element.
10851
10852 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
10853
10854         PR bootstrap/45321
10855         * tree.c (stdarg_p): Make fntype parameter const.
10856         * tree.h (stdarg_p): Likewise.
10857         (function_args_iterator): Remove unused fntype field.
10858         (function_args_iter_init): Do not initialize fntype
10859         field.  Make fntype parameter const.
10860
10861 2010-09-01  Richard Guenther  <rguenther@suse.de>
10862
10863         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
10864         estimate.
10865         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
10866         (execute_vrp): Compute number of iteration estimates.
10867         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
10868         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
10869         * tree-data-ref.c (estimated_loop_iterations): Adjust.
10870         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
10871         Infer loop bounds from undefined behavior based on a new parameter.
10872         (estimate_numbers_of_iterations): Likewise.
10873         (scev_probably_wraps_p): Adjust.
10874         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
10875
10876 2010-09-01  Nick Clifton  <nickc@redhat.com>
10877
10878         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
10879         where appropriate.
10880         (xstormy16_legitimate_address_p): Use true and false instead of 1
10881         and 0.
10882         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
10883         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
10884         magic constant 2.
10885         (xstormy16_expand_call): Fix comment at start of function.
10886
10887 2010-09-01  Nick Clifton  <nickc@redhat.com>
10888
10889         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
10890         when pushing accumulator register.
10891         (rx_get_stack_layout): Always save call clobbered registers inside
10892         interrupt handlers.
10893         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
10894
10895 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10896
10897         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
10898         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
10899
10900         * libgcc-std.ver (GCC_4.6.0): Define version.
10901
10902 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
10903
10904         * tree-nested.c (convert_all_function_calls): Iterate until after the
10905         sum of static chains in the nest doesn't change.
10906
10907 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
10908
10909         * config/m32c/m32c.c (classes_intersect): Remove.
10910         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
10911         reg_classes_intersect_p instead of classes_intersect.
10912         (class_can_hold_mode): Change arguments type from enum reg_class to
10913         reg_class_t.  Use reg_class_contents instead of class_contents.
10914         (m32c_register_move_cost): Make static. Change arguments type from
10915         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
10916         classes_intersect. Use reg_class_contents instead of class_contents.
10917         (m32c_memory_move_cost): Make static. Change arguments type from
10918         enum reg_class to reg_class_t.
10919         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10920         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10921         * config/m32c/m32c-protos.h (m32c_register_move_cost,
10922         m32c_memory_move_cost): Remove.
10923
10924 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10925
10926         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
10927         (arm_function_arg): Delete.
10928         (arm_needs_doubleword_align): Take a const_tree.
10929         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10930         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
10931         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
10932         (arm_function_arg): Make static.  Take a const_tree and a bool.
10933         (arm_function_arg_advance): Likewise.
10934         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10935
10936 2010-08-31  Andi Kleen  <ak@linux.intel.com>
10937
10938         * common.opt (fwhopr=): Update for -fwhopr=jobserver
10939         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
10940         * lto-wrapper.c (run_gcc): Add jobserver mode.
10941         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
10942         argument.
10943
10944 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
10945
10946         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
10947         (popsi1): Ditto.
10948         (*popdi1_epilogue): Ditto.
10949         (*popsi1_epilogue): Ditto.
10950         (popsi, popdi peephole2 patterns): Update peepholes for changed
10951         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
10952
10953         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
10954         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
10955
10956         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
10957         (override_options): Do not initialize removed ix86_gen_pop1.
10958         (gen_pop): New static function.
10959         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
10960         (release_scratch_register_on_entry): Ditto.
10961         (ix86_restore_reg_using_pop): Ditto.
10962         (ix86_expand_epilogue): Ditto.
10963
10964 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
10965
10966         PR middle-end/45461
10967         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
10968
10969 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10970
10971         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
10972         semicolons.
10973
10974 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10975
10976         * doc/extend.texi: Fix documentation of the return value of
10977         __builtin_choose_expr.
10978
10979 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10980
10981         * config/v850/v850-protos.h (function_arg): Delete.
10982         * config/v850/v850.h (FUNCTION_ARG): Delete.
10983         (FUNCTION_ARG_ADVANCE): Move code to...
10984         * config/v850/v850.c (v850_function_arg_advance): ...here.
10985         (v850_function_arg): Make static.  Take a const_tree and a bool.
10986         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10987
10988 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10989
10990         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
10991         these...
10992         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
10993         ...and these...
10994         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
10995         ..to here..
10996         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
10997         ...and here.
10998         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10999
11000 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
11001
11002         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
11003         Delete.
11004         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11005         * config/rx/rx.c (rx_function_arg_size): Make static.
11006         (rx_function_arg): Likewise.
11007         (rx_function_arg_advance): New function.
11008         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11009
11010 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
11011
11012         * config/arm/arm.c (arm_override_options): Remove superfluous test.
11013         Fix indentation.
11014
11015 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
11016
11017         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
11018         (dwarf2out_decl) <CONST_DECL>: Likewise.
11019
11020 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
11021
11022         Stack usage support
11023         * common.opt (-fstack-usage): New option.
11024         * doc/invoke.texi (Debugging options): Document it.
11025         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
11026         allocate_dynamic_stack_space.
11027         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
11028         and propagate it to allocate_dynamic_stack_space.
11029         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
11030         * calls.c (initialize_argument_information): Pass TRUE as 4th
11031         argument to allocate_dynamic_stack_space.
11032         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
11033         to 1 when pushing a variable-sized argument onto the stack.  Pass
11034         TRUE as 4th argument to allocate_dynamic_stack_space.
11035         Update current_function_pushed_stack_size.
11036         (emit_library_call_value_1): Likewise.
11037         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
11038         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
11039         attempt to find an upper bound.  Remove redundant code for the
11040         SETJMP_VIA_SAVE_AREA case.
11041         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
11042         * function.h (struct stack_usage): New structure.
11043         (current_function_static_stack_size): New macro.
11044         (current_function_dynamic_stack_size): Likewise.
11045         (current_function_pushed_stack_size): Likewise.
11046         (current_function_dynamic_alloc_count): Likewise.
11047         (current_function_has_unbounded_dynamic_stack_size): Likewise.
11048         (current_function_allocates_dynamic_stack_space): Likewise.
11049         (struct function): Add new field 'su'.
11050         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
11051         add the value of the dynamic offset to the dynamic stack usage.
11052         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
11053         for variable-sized objects.
11054         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
11055         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
11056         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
11057         BUILT_IN_ALLOCA for variable-sized objects.
11058         * output.h (output_stack_usage): Declare.
11059         * toplev.c (stack_usage_file): New file pointer.
11060         (output_stack_usage): New function.
11061         (open_auxiliary_file): Likewise.
11062         (lang_dependent_init): Open file if flag_stack_usage is set.
11063         (finalize): Close file if stack_usage_file is not null.
11064         * tree.h (ALLOCA_FOR_VAR_P): New macro.
11065         * config/alpha/alpha.c (compute_frame_size): New function.
11066         (alpha_expand_prologue): Use it.
11067         (alpha_start_function): Likewise.
11068         (alpha_expand_epilogue): Likewise.  Set stack usage info.
11069         * config/i386/i386.c (ix86_expand_prologue): Likewise.
11070         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
11071         * config/mips/mips.c (mips_expand_prologue): Likewise.
11072         * config/pa/pa.c (hppa_expand_prologue): Likewise.
11073         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
11074         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
11075
11076 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
11077
11078         PR tree-optimization/45427
11079         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
11080         Handle the case that the exit is never taken correctly.
11081         (number_of_iterations_ne): Pass exit_must_be_taken to
11082         number_of_iterations_ne_max.
11083
11084 2010-08-30  Catherine Moore  <clm@codesourcery.com>
11085
11086         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
11087         Infer -mdspr2 for the the 74K.
11088
11089 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
11090
11091         PR debug/45419
11092         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
11093
11094         PR middle-end/45423
11095         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
11096         and TRUTH_{AND,OR,XOR}_EXPR.
11097         * c-parser.c (c_parser_omp_atomic): Handle boolean
11098         {PRE,POST}_{INC,DEC}REMENT.
11099
11100 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
11101
11102         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
11103         (function_arg): Delete.
11104         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11105         (FUNCTION_INCOMING_ARG): Delete.
11106         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
11107         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
11108         and a bool.
11109         (function_arg): Rename to...
11110         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
11111         a bool.
11112         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
11113         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11114         (TARGET_FUNCTION_INCOMING_ARG): Define.
11115
11116 2010-08-30  Richard Guenther  <rguenther@suse.de>
11117
11118         PR tree-optimization/21602
11119         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
11120         using points-to information.
11121
11122 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
11123
11124         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
11125
11126 2010-08-30  Richard Guenther  <rguenther@suse.de>
11127
11128         PR tree-optimization/45449
11129         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
11130         variables.
11131
11132 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
11133
11134         * opts.h (CL_ERR_NEGATIVE): Define.
11135         * opts.c (unknown_option_callback): Don't postpone warnings for
11136         options marked with CL_ERR_NEGATIVE.
11137         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
11138         for negative versions of CL_REJECT_NEGATIVE options.
11139
11140 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
11141
11142         * config/i386/i386.md (zero_extendsidi2_1): Rename from
11143         zero_extendsidi2_32.
11144         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
11145         using SWI12 mode iterator.
11146         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
11147         to define_insn_and_split pattern.
11148         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
11149         using SWI24 mode iterator.
11150         (*zero_extendqi<mode>2_and): Macroize insn from
11151         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
11152         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
11153         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
11154         SWI24 mode iterator.
11155         (*zero_extendqi<mode>2_movzbl): Ditto from
11156         *zero_extendqi{hi,si}2_movzbl.
11157         (extendsidi2_1): Rename from extendsidi2_32.
11158         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
11159         SWI12 mode iterator.
11160
11161 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
11162
11163         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
11164         general purpose registers.
11165         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
11166         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
11167         with general purpose registers and memory operands.  Add associated
11168         CCImode post-reload splitter.
11169         * config/ia64/div.md: Change BImode to CCImode throughout.
11170
11171 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
11172
11173         * config/ia64/ia64.md (cstorebi4): Fix thinko.
11174
11175 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
11176
11177         * config/picochip/picochip.c (reorder_var_tracking_notes): This
11178         function was dropping debug insns which caused PR45299.
11179
11180 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
11181
11182         * config/i386/sse.md (extsuffix): New code attribute.
11183         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
11184         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
11185         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
11186         and sse4_1_zero_extendv4qiv4si2.
11187         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
11188         and sse4_1_zero_extendv2qiv2di2.
11189         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
11190         and sse4_1_zero_extendv4hiv4si2.
11191         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
11192         and sse4_1_zero_extendv2hiv2di2.
11193         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
11194         and sse4_1_zero_extendv2siv2di2
11195
11196         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
11197         using any_extend code iterator.
11198         (*avx_<s>mulv8hi3_highpart): Macroize insn from
11199         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
11200         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
11201
11202         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
11203         gen_sse4_1_sign_extend* functions.
11204         (struct builtin_description bdesc_args): Ditto.
11205
11206 2010-08-27  Xinliang David Li  <davidxl@google.com>
11207
11208         PR/45422
11209         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
11210         (iv_ca_set_no_cp): Update used inv expr count.
11211         (iv_ca_set_cp): Ditto.
11212         (iv_ca_new): Initialize new member.
11213         (iv_ca_free): Free memory.
11214
11215 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11216
11217         * config/sh/sh-protos.h (sh_function_arg): Delete.
11218         (sh_function_arg_advance): Delete.
11219         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11220         (PASS_IN_REG_P): Eliminate cast.
11221         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
11222         const_tree and a bool.
11223         (sh_function_arg): Likewise.
11224         (sh_output_mi_thunk): Call sh_function_arg_advance) and
11225         sh_function_arg.
11226         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11227
11228 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
11229             Kaz Kojima  <kkojima@gcc.gnu.org>
11230
11231         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
11232         when possible.
11233         (sh_expand_epilogue): Likewise.
11234         * config/sh/sh.md (movml_push_banked): New insn.
11235         (movml_pop_banked): Likewise.
11236
11237 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
11238
11239         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
11240         gen_regexp_oneof, gen_regexp_sequence): Use the string found
11241         in vector element 0 rather than the original string when there's
11242         only one element.
11243         (gen_regexp): Remove extra semicolon.
11244
11245         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
11246         thumb2_movsf_vfp): Set attribute "insn".
11247         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
11248         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
11249         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
11250         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
11251         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
11252         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
11253         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
11254         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
11255         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
11256         if_not_arith, if_arith_not, cond_move_not): Likewise.
11257
11258 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11259
11260         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
11261         New declaration.
11262         (rs6000_allocate_stack_temp): Ditto.
11263         (rs6000_expand_convert_si_to_sfdf): Ditto.
11264
11265         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
11266         line.  Update the options set if power6 or power7 server/embedded
11267         type options are used.  If we give a warning for no vsx under
11268         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
11269         (rs6000_allocate_stack_temp): New function to allocate a stack
11270         tempoary and adjust the address so it meets either REG+OFFSET or
11271         REG+REG addressing requirements.
11272         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
11273         that they can be used with the LFIWAX/LFIWZX instrucitons.
11274         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
11275         converting signed/unsigned SImode to either SFmode/DFmode.
11276
11277         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
11278         whether certain instructions can be generated.
11279         (TARGET_FCTIDZ): Ditto.
11280         (TARGET_STFIWX): Ditto.
11281         (TARGET_LFIWAX): Ditto.
11282         (TARGET_LFIWZX): Ditto.
11283         (TARGET_FCFIDS): Ditto.
11284         (TARGET_FCFIDU): Ditto.
11285         (TARGET_FCFIDUS): Ditto.
11286         (TARGET_FCTIDUZ): Ditto.
11287         (TARGET_FCTIWUZ): Ditto.
11288
11289         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
11290         (UNSPEC_FCTID): Ditto.
11291         (UNSPEC_LFIWAX): Ditto.
11292         (UNSPEC_LFIWZX): Ditto.
11293         (UNSPEC_FCTIWUZ): Ditto.
11294         (rreg): Use correct constraints.
11295         (SI_CONVERT_FP): New mode attribute for floating point conversion
11296         tests.
11297         (E500_CONVERT): Ditto.
11298         (lfiwax): New insns for converting from integer to floating point
11299         utilizing newer instructions.  Attempt to optimize conversions
11300         that come from memory so that we don't load the value into a GPR,
11301         spill it to the stack and reload it into a FPR.
11302         (floatsi<mode>2_lfiwax): Ditto.
11303         (floatsi<mode>2_lfiwax_mem): Ditto.
11304         (floatsi<mode>2_lfiwax_mem2): Ditto.
11305         (lfiwzx): Ditto.
11306         (floatunssi<mode>2_lfiwzx): Ditto.
11307         (floatunssi<mode>2_lfiwzx_mem): Ditto.
11308         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
11309         (floatdidf2_mem): Ditto.
11310         (floatunsdidf2_fcfidu): Ditto.
11311         (floatunsdidf2_mem): Ditto.
11312         (floatunsdisf2): Ditto.
11313         (floatunsdisf2_fcfidus): Ditto.
11314         (floatunsdisf2_mem): Ditto.
11315         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
11316         Use FCFID on 32-bit hosts that support it.
11317         (floatsidf2_internal): Ditto.
11318         (floatunssisf2): Ditto.
11319         (floatunssidf2): Ditto.
11320         (floatunssidf2_internal): Ditto.
11321         (floatsisf2): Ditto.
11322         (floatdidf2): Ditto.
11323         (floatdidf2_fpr): Ditto.
11324         (floatunsdidf2): Ditto.
11325         (floatdisf2): Ditto.
11326         (floatdisf2_fcfids): Ditto.
11327         (floatdisf2_internal1): Ditto.
11328         (fixuns_truncsfsi2): Delete, merge into common pattern for both
11329         SF/DF.  Add power7 support.
11330         (fix_truncsfsi2): Ditto.
11331         (fixuns_truncdfsi2): Ditto.
11332         (fixuns_truncdfdi2): Ditto.
11333         (fix_truncdfsi2): Ditto.
11334         (fix_truncdfsi2_internal): Ditto.
11335         (fix_truncdfsi2_internal_gfxopt): Ditto.
11336         (fix_truncdfsi2_mfpgpr): Ditto.
11337         (fctiwz): Ditto.
11338         (btruncdf2): Ditto.
11339         (btruncdf2_fpr): Ditto.
11340         (btructsf2): Ditto.
11341         (ceildf2): Ditto.
11342         (ceildf2_fpr): Ditto.
11343         (ceilsf2): Ditto.
11344         (floordf2): Ditto.
11345         (floordf2_fpr): Ditto.
11346         (floorsf2): Ditto.
11347         (rounddf2): Ditto.
11348         (rounddf2_fpr): Ditto.
11349         (roundsf2): Ditto.
11350         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
11351         (fix_trunc<mode>di2): Ditto.
11352         (fixuns_trunc<mode>si2): Ditto.
11353         (fixuns_trunc<mode>di2): Ditto.
11354         (fctiwz_<mode>): Ditto.
11355         (btrunc<mode>2): Ditto.
11356         (btrunc<mode>2_fpr): Ditto.
11357         (ceil<mode>2): Ditto.
11358         (ceil<mode>2_fpr): Ditto.
11359         (floor<mode>2): Ditto.
11360         (float<mode>2_fpr): Ditto.
11361         (round<mode>2): Ditto.
11362         (round<mode>2_fpr): Ditto.
11363         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
11364         (fixuns_trunc<mode>si2_stfiwx): Ditto.
11365         (fix_truncdfsi2_internal): Ditto.
11366         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
11367         converted value on stack, loaded into GPR, and then stored into
11368         the final destination.
11369         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
11370         FCTIDZ.
11371         (lrint<mode>di2): New insn, provide the lrint builtin functions.
11372         (ftruncdf2): Delete, unused.
11373         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
11374
11375         * config/rs6000/vsx.md (toplevel): Update copyright year.
11376         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
11377         (VSr3): Ditto.
11378
11379 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
11380             Jeremie Salvucci  <jeremie.salvucci@free.fr>
11381
11382         * gengtype.c (output_type_enum): Test the right union member.
11383
11384 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
11385
11386         PR target/41484
11387         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
11388         operands for operand 1.
11389         (sse4_1_extendv4qiv4si2): Ditto.
11390         (sse4_1_extendv2qiv2di2): Ditto.
11391         (sse4_1_extendv4hiv4si2): Ditto.
11392         (sse4_1_extendv2hiv2di2): Ditto.
11393         (sse4_1_extendv2siv2di2): Ditto.
11394         (sse4_1_zero_extendv8qiv8hi2): Ditto.
11395         (sse4_1_zero_extendv4qiv4si2): Ditto.
11396         (sse4_1_zero_extendv2qiv2di2): Ditto.
11397         (sse4_1_zero_extendv4hiv4si2): Ditto.
11398         (sse4_1_zero_extendv2hiv2di2): Ditto.
11399         (sse4_1_zero_extendv2siv2di2): Ditto.
11400         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
11401         (*sse4_1_extendv4qiv4si2): Ditto.
11402         (*sse4_1_extendv2qiv2di2): Ditto.
11403         (*sse4_1_extendv4hiv4si2): Ditto.
11404         (*sse4_1_extendv2hiv2di2): Ditto.
11405         (*sse4_1_extendv2siv2di2): Ditto.
11406         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
11407         (*sse4_1_zero_extendv4qiv4si2): Ditto.
11408         (*sse4_1_zero_extendv2qiv2di2): Ditto.
11409         (*sse4_1_zero_extendv4hiv4si2): Ditto.
11410         (*sse4_1_zero_extendv2hiv2di2): Ditto.
11411         (*sse4_1_zero_extendv2siv2di2): Ditto.
11412
11413 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11414
11415         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
11416         (mips_function_arg): Delete.
11417         (mips_function_arg_boundary): Take a const_tree.
11418         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
11419         (mips_arg_info): Likewise.
11420         (mips_setup_incoming_varargs): Call mips_function_arg_advance
11421         instead of FUNCTION_ARG_ADVANCE.
11422         (mips_function_arg_advance): Adjust prototype.  Make static.
11423         (mips_function_arg): Likewise.
11424         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11425         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
11426
11427 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
11428
11429         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
11430         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
11431         (function_arg): Delete.
11432         (function_arg_boundary): Take a const_tree.
11433         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
11434         (rs6000_spe_function_arg): Likewise.
11435         (rs6000_parm_start): Likewise.
11436         (rs6000_arg_size): Likewise.
11437         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
11438         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
11439         (rs6000_mixed_function_arg): Likewise.
11440         (function_arg): Rename to...
11441         (rs6000_function_arg): ...this.
11442         (function_arg_advance): Rename to...
11443         (rs6000_function_arg_advance_1): ...this
11444         (rs6000_function_arg_advance): New function.  Call it.
11445         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
11446         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
11447         (rs6000_function_value): Likewise.
11448         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
11449
11450 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11451
11452         * config/arm/arm.md (enabled): Test the value of arch_enabled
11453         rather than just using it.
11454
11455 2010-08-27  Olivier Hainque  <hainque@adacore.com>
11456             Eric Botcazou  <ebotcazou@adacore.com>
11457
11458         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
11459         cover all the possible offsets from this base.
11460         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
11461
11462 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
11463
11464         PR tree-optimization/44485
11465         * calls.c (flags_from_decl_or_type): For const or pure
11466         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
11467         together with ECF_CONST resp. ECF_PURE.
11468         * builtins.c (expand_builtin): Use flags_from_decl_or_type
11469         instead of querying flags directly.
11470         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
11471         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
11472
11473 2010-08-26  Richard Guenther  <rguenther@suse.de>
11474
11475         PR tree-optimization/45255
11476         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
11477         and externals are also invariant.
11478
11479 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
11480
11481         PR rtl-optimization/44858
11482         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
11483         newi2pat, make sure they don't affect newpat.
11484
11485         PR rtl-optimization/45400
11486         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
11487         SUBREG_REG if both modes are of MODE_INT class.
11488
11489 2010-08-25  Julian Brown  <julian@codesourcery.com>
11490
11491         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
11492         * config/arm/arm.md (generic_sched): No for Cortex-A5.
11493         (generic_vfp): Likewise.
11494         (cortex-a5.md): Include.
11495         * config/arm/cortex-a5.md: New.
11496
11497 2010-08-25  Richard Guenther  <rguenther@suse.de>
11498
11499         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
11500         * gimple.c (gimple_get_alias_set): Remove special handling
11501         for pointers.
11502
11503 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
11504
11505         PR middle-end/45355
11506         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
11507         dead_or_set_p when computing i0_feeds_i2_n.
11508
11509         * combine.c (find_split_point): Undo canonicalization of multiply-add
11510         to (minus x (mult)) when it seems likely that this will increase the
11511         chances of a split.
11512
11513 2010-08-25  Richard Guenther  <rguenther@suse.de>
11514
11515         PR lto/44562
11516         * lto-streamer.c (lto_record_common_node): Do not mess with
11517         TYPE_CANONICAL when not in lto.
11518         * gimple.c (gimple_register_type): Likewise.
11519
11520 2010-08-25  Richard Guenther  <rguenther@suse.de>
11521
11522         PR tree-optimization/45316
11523         * tree-ssa-pre.c (eliminate): Properly clean EH info.
11524
11525 2010-08-25  Richard Guenther  <rguenther@suse.de>
11526
11527         PR tree-optimization/45393
11528         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
11529         and clean EH info.  Avoid SSA update.
11530         (execute_cse_sincos): Cleanup the CFG if it has changed.
11531
11532 2010-08-25  Richard Guenther  <rguenther@suse.de>
11533
11534         PR middle-end/45379
11535         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
11536         TARGET_MEM_REF in alignment computation.
11537
11538 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
11539
11540         PR tree-optimization/45059
11541         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
11542         type conversions from newop{1,2}.  Assert t is a comparison and
11543         newop{1,2} after the stripping are gimple vals.
11544
11545 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
11546
11547         * config/arm/iterators.md (VU, SE, V_widen_l): New.
11548         (V_unpack, US): New.
11549         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
11550         (vec_unpack<US>_lo_<mode>): Likewise.
11551         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
11552         (neon_vec_unpack<US>_lo_<mode>): Likewise.
11553         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
11554         (vec_widen_<US>mult_hi_<mode>): Likewise.
11555         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
11556         (neon_vec_<US>mult_hi_<mode>"): Likewise.
11557         (neon_unpack<US>_<mode>): Widening move intermediate step for
11558         vectorizing without -mvectorize-with-neon-quad.
11559         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
11560         for vectorizing without -mvectorize-with-neon-quad.
11561         * config/arm/predicates.md (vect_par_constant_high): Check for
11562         high-half lanes of a vector.
11563         (vect_par_constant_low): Check for low-half lanes of a vector.
11564
11565 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11566
11567         * tree-if-conv.c (struct ifc_dr): New.
11568         (IFC_DR): New.
11569         (DR_WRITTEN_AT_LEAST_ONCE): New.
11570         (DR_RW_UNCONDITIONALLY): New.
11571         (memref_read_or_written_unconditionally): Use the cached values
11572         when possible.
11573         (write_memref_written_at_least_once): Same.
11574         (if_convertible_loop_p): Initialize and free DR->aux fields.
11575
11576 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11577
11578         * gimple.c (gimple_could_trap_p_1): Not static anymore.
11579         Pass an extra bool parameter include_mem.
11580         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
11581         (gimple_assign_rhs_could_trap_p): Same.
11582         * gimple.h (gimple_could_trap_p_1): Declared.
11583         * tree-data-ref.h (same_data_refs_base_objects): New.
11584         (same_data_refs): New.
11585         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
11586         (write_memrefs_written_at_least_once): New.
11587         (ifcvt_memrefs_wont_trap): New.
11588         (operations_could_trap): New.
11589         (ifcvt_could_trap_p): New.
11590         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
11591         Gets a vector of data refs.
11592         (if_convertible_stmt_p): Same.
11593         (if_convertible_loop_p_1): New.
11594         (if_convertible_loop_p): Call if_convertible_loop_p_1.
11595
11596 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
11597
11598         * common.opt (ftree-loop-if-convert-stores): New flag.
11599         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
11600         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
11601         the created statement before GSI.
11602         (if_convertible_phi_p): Allow virtual phi nodes when
11603         flag_loop_if_convert_stores is set.
11604         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
11605         Do not handle types that do not match is_gimple_reg_type.
11606         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
11607         when flag_loop_if_convert_stores is set, as LHS can contain
11608         memory refs.
11609         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
11610         to if_convertible_gimple_assign_stmt_p.
11611         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
11612         (replace_phi_with_cond_gimple_assign_stmt): Renamed
11613         predicate_scalar_phi.  Do not handle virtual phi nodes.
11614         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
11615         Call predicate_scalar_phi.
11616         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
11617         just after the labels for flag_loop_if_convert_stores, otherwise
11618         insert the predicate in the end of the BB.
11619         (predicate_mem_writes): New.
11620         (combine_blocks): Call predicate_all_scalar_phis.  When
11621         flag_loop_if_convert_stores is set, call predicate_mem_writes.
11622         (tree_if_conversion): Call mark_sym_for_renaming when
11623         flag_loop_if_convert_stores is set.
11624         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
11625         flag_loop_if_convert_stores is set.
11626
11627 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
11628
11629         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
11630         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
11631         (pa_function_value): Make static.
11632         (override_options): Rename to...
11633         (pa_option_override): ...this. Make static.
11634         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
11635         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
11636         TARGET_OPTION_OVERRIDE): Define.
11637         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
11638         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
11639         Remove.
11640         * config/pa/pa-protos.h (override_options): Remove.
11641
11642 2010-08-24  Richard Guenther  <rguenther@suse.de>
11643
11644         PR middle-end/45379
11645         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
11646         if addr->index is NULL or zero.
11647         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
11648         TARGET_MEM_REF more properly.
11649         (indirect_ref_may_alias_decl_p): Likewise.
11650         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
11651         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
11652
11653 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
11654
11655         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
11656         (m32c_override_options): Rename to...
11657         (m32c_option_override): ...this. Make static.
11658         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
11659         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
11660         Remove.
11661         * config/m32c/m32c-protos.h (m32c_override_options,
11662         m32c_function_value_regno_p): Remove.
11663
11664 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
11665
11666         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
11667         Fix a typo in a previous commit.
11668
11669 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
11670
11671         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
11672         Pre-initialize innerloop_iters to one.
11673
11674 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
11675
11676         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
11677         existing static function global.
11678
11679         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
11680         is changed to global.
11681
11682         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
11683         may_be_nonaddressable_p on base, and don't collect this reference
11684         if the address of the base could not be taken.
11685
11686 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
11687
11688         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
11689         enable the compiler to autovectorize mathmetical functions for
11690         power7 using the Mathematical Acceleration Subsystem library.
11691
11692         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
11693         handle which vector math library we have.
11694         (rs6000_override_options): Add -mveclibabi=mass support.
11695         (rs6000_builtin_vectorized_libmass): New function to handle auto
11696         vectorizing math functions that are in the MASS library.
11697         (rs6000_builtin_vectorized_function): Call it.
11698
11699         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11700         -mveclibabi=mass.
11701
11702 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11703
11704         PR boehm-gc/34544
11705         * gthr-posix.h (__gthread_active_init): Delete.
11706         (__gthread_active_p): Do activity check here.
11707         Don't include errno.h on hppa-hpux.  Update comment.
11708         * gthr-posix95.h (__gthread_active_init): Delete.
11709         (__gthread_active_p): Do activity check here.
11710         Don't include errno.h on hppa-hpux.  Update comment.
11711         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
11712         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
11713         add -lpthread when -mt or -pthread is specified.
11714         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
11715         (LINK_GCC_C_SEQUENCE_SPEC): Define.
11716         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
11717         (stublib.c, pthread_default_stacksize_np-stub.o,
11718         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
11719         $(T)libgcc_stub.a): Add methods.
11720         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
11721         (stublib.c, pthread_default_stacksize_np-stub.o,
11722         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
11723         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11724         pthread_mutex_unlock): New stubs.
11725
11726 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
11727
11728         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
11729         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
11730         options.
11731         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
11732         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
11733         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
11734         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
11735         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
11736         "-l".
11737         * cppspec.c: Include opts.h.
11738         (lang_specific_driver): Use cl_decoded_option structures.
11739         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
11740         * doc/tm.texi: Regenerate.
11741         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
11742         (driver_handle_option): Allow driver options needing no special
11743         processing.
11744         (process_command): Decode options before call to
11745         lang_specific_driver.  Pass decoded options to
11746         lang_specific_driver.
11747         * gcc.h (lang_specific_driver): Update prototype.
11748         * gccspec.c: Include opts.h.
11749         (lang_specific_driver): Use cl_decoded_option structures.
11750         * opts-common.c (option_ok_for_language, generate_option,
11751         generate_option_input_file): New.
11752         (decode_cmdline_option): Use option_ok_for_language.
11753         (decode_cmdline_options_to_array): Use generate_option_input_file.
11754         (handle_generated_option): Use generate_option.
11755         * opts.h (generate_option, generate_option_input_file): Declare.
11756
11757 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
11758
11759         * config/mips/mips.c (mips_override_options): Rename to...
11760         (mips_option_override): ...this. Make static.
11761         (TARGET_OPTION_OVERRIDE): Define.
11762         (mips_in_small_data_p): Update comment.
11763         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
11764         (FIXED_REGISTERS): Update comment.
11765         * config/mips/mips-protos.h (mips_override_options): Remove.
11766
11767 2010-08-21  Olivier Hainque  <hainque@adacore.com>
11768
11769         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
11770
11771 2010-08-21  Olivier Hainque  <hainque@adacore.com>
11772
11773         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
11774         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
11775
11776 2010-08-20  Jan Hubicka  <jh@suse.cz>
11777
11778         * tree-pass.h (pass_ipa_cdtor_merge): New function.
11779         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
11780         heap allocated.
11781         (record_cdtor_fn): Move to ipa.c; do not test for
11782         have_ctors_dtors.
11783         (build_cdtor): Move to ipa.c; add code avoiding construction
11784         when target have ctors/dtors and there is only one ctor/dtor at given
11785         priority.
11786         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
11787         sort; reverse order of constructors.
11788         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
11789         (cgraph_finalize_function): Do not call record_cdtor_fn.
11790         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
11791         (cgraph_build_static_cdtor): Move to ipa.c.
11792         * ipa.c: Include target.h and tree-iterator.h.
11793         (cgraph_build_static_cdtor, static_ctors, static_dtors,
11794         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
11795         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
11796         pass_ipa_cdtor_merge): New.
11797         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
11798         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
11799         bounds access.
11800
11801 2010-08-20  Jan Hubicka  <jh@suse.cz>
11802
11803         PR c++/45307
11804         PR c++/17736
11805         * cgraph.h (cgraph_only_called_directly_p,
11806         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
11807         static cdtors.
11808         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
11809         are not needed.
11810         (cgraph_finalize_function): Static cdtors are reachable.
11811         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
11812
11813 2010-08-20  Jan Hubicka  <jh@suse.cz>
11814
11815         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
11816         flag_wpa.
11817         * lto-streamer-out.c (lto_output): Likewise.
11818         * passes.c (ipa_write_optimization_summaries): Initialize statement
11819         uids.
11820
11821 2010-08-20  Olivier Hainque  <hainque@adacore.com>
11822
11823         * tree.h (alias_diag_flags): New enum.
11824         (alias_pair): Add an 'emitted_diags' field.
11825         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
11826         (assemble_alias): Initialize emitted_diags of new pairs.
11827
11828 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
11829
11830         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11831         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11832         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11833         (STACK_CHECK_PROTECT): Define.
11834         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
11835         (output_probe_stack_range): Likewise.
11836         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
11837         builtin stack checking is enabled.
11838         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
11839         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11840         (probe_stack_range): New insn.
11841
11842 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11843
11844         PR target/45336
11845         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
11846         short first.
11847
11848         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
11849         char first.
11850
11851 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11852
11853         PR target/45336
11854         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
11855         to cover zero extension into 64-bit register.
11856         (*sse2_pextrw): Likewise.
11857         (*sse4_1_pextrd_zext): New insn.
11858
11859 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
11860
11861         revert r163410, partially revert r163267.
11862         * config/rs6000/darwin.h (LIB_SPEC): Remove.
11863         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
11864         Darwin versions.
11865
11866 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11867
11868         PR middle-end/44974
11869         * builtins.c (expand_builtin): Don't optimize away
11870         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
11871
11872 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
11873
11874         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
11875         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
11876         alternative 1 of operand 2.
11877
11878 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11879             Paolo Bonzini  <bonzini@gnu.org>
11880
11881         * simplify-rtx.c (simplify_unary_operation_1): Optimize
11882         (sign_extend (zero_extend (...)) and
11883         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
11884
11885 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11886
11887         PR rtl-optimization/45353
11888         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
11889         after bb_note is a BARRIER.
11890
11891 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
11892
11893         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
11894         linking libgcc.a.
11895
11896 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11897             Michael Matz  <matz@suse.de>
11898
11899         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
11900
11901 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
11902
11903         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
11904         (ggc_mark_roots): ...here.
11905
11906 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
11907
11908         * vec.h (FOR_EACH_VEC_ELT): Define.
11909         * c-decl.c: Use it.
11910         * cfgloop.c: Likewise.
11911         * cfgloopmanip.c: Likewise.
11912         * cgraph.c: Likewise.
11913         * cgraphunit.c: Likewise.
11914         * combine.c: Likewise.
11915         * config/bfin/bfin.c: Likewise.
11916         * config/mips/mips.c: Likewise.
11917         * config/rs6000/rs6000.c: Likewise.
11918         * dbxout.c: Likewise.
11919         * df-scan.c: Likewise.
11920         * dominance.c: Likewise.
11921         * dse.c: Likewise.
11922         * dwarf2out.c: Likewise.
11923         * except.c: Likewise.
11924         * expr.c: Likewise.
11925         * function.c: Likewise.
11926         * gcse.c: Likewise.
11927         * genattr.c: Likewise.
11928         * ggc-common.c: Likewise.
11929         * gimplify.c: Likewise.
11930         * graphite-blocking.c: Likewise.
11931         * graphite-clast-to-gimple.c: Likewise.
11932         * graphite-dependences.c: Likewise.
11933         * graphite-interchange.c: Likewise.
11934         * graphite-poly.c: Likewise.
11935         * graphite-scop-detection.c: Likewise.
11936         * graphite-sese-to-poly.c: Likewise.
11937         * graphite.c: Likewise.
11938         * haifa-sched.c: Likewise.
11939         * ifcvt.c: Likewise.
11940         * implicit-zee.c: Likewise.
11941         * ipa-prop.c: Likewise.
11942         * ipa-struct-reorg.c: Likewise.
11943         * ipa.c: Likewise.
11944         * ira-build.c: Likewise.
11945         * ira-color.c: Likewise.
11946         * ira-emit.c: Likewise.
11947         * lambda-code.c: Likewise.
11948         * loop-invariant.c: Likewise.
11949         * loop-unroll.c: Likewise.
11950         * lower-subreg.c: Likewise.
11951         * lto-cgraph.c: Likewise.
11952         * lto-opts.c: Likewise.
11953         * lto-streamer-in.c: Likewise.
11954         * lto-streamer-out.c: Likewise.
11955         * lto-streamer.c: Likewise.
11956         * lto-symtab.c: Likewise.
11957         * matrix-reorg.c: Likewise.
11958         * opts.c: Likewise.
11959         * predict.c: Likewise.
11960         * print-tree.c: Likewise.
11961         * sdbout.c: Likewise.
11962         * sel-sched-dump.c: Likewise.
11963         * sel-sched-ir.c: Likewise.
11964         * sel-sched.c: Likewise.
11965         * sese.c: Likewise.
11966         * stor-layout.c: Likewise.
11967         * tree-cfg.c: Likewise.
11968         * tree-cfgcleanup.c: Likewise.
11969         * tree-chrec.c: Likewise.
11970         * tree-data-ref.c: Likewise.
11971         * tree-emutls.c: Likewise.
11972         * tree-inline.c: Likewise.
11973         * tree-into-ssa.c: Likewise.
11974         * tree-loop-distribution.c: Likewise.
11975         * tree-loop-linear.c: Likewise.
11976         * tree-mudflap.c: Likewise.
11977         * tree-outof-ssa.c: Likewise.
11978         * tree-parloops.c: Likewise.
11979         * tree-predcom.c: Likewise.
11980         * tree-pretty-print.c: Likewise.
11981         * tree-scalar-evolution.c: Likewise.
11982         * tree-ssa-live.c: Likewise.
11983         * tree-ssa-loop-im.c: Likewise.
11984         * tree-ssa-loop-ivcanon.c: Likewise.
11985         * tree-ssa-loop-ivopts.c: Likewise.
11986         * tree-ssa-loop-manip.c: Likewise.
11987         * tree-ssa-loop-niter.c: Likewise.
11988         * tree-ssa-loop-prefetch.c: Likewise.
11989         * tree-ssa-phiprop.c: Likewise.
11990         * tree-ssa-pre.c: Likewise.
11991         * tree-ssa-reassoc.c: Likewise.
11992         * tree-ssa-sccvn.c: Likewise.
11993         * tree-ssa-structalias.c: Likewise.
11994         * tree-ssa.c: Likewise.
11995         * tree-vect-data-refs.c: Likewise.
11996         * tree-vect-loop-manip.c: Likewise.
11997         * tree-vect-loop.c: Likewise.
11998         * tree-vect-patterns.c: Likewise.
11999         * tree-vect-slp.c: Likewise.
12000         * tree-vect-stmts.c: Likewise.
12001         * tree-vrp.c: Likewise.
12002         * tree.c: Likewise.
12003         * value-prof.c: Likewise.
12004         * var-tracking.c: Likewise.
12005         * varasm.c: Likewise.
12006         * vmsdbgout.c: Likewise.
12007
12008 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
12009             Richard Guenther  <richard.guenther@gmail.com>
12010
12011         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
12012         copy the src value and return a copy.
12013         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
12014         (C++ Volatiles): Adjust to describe C++ semantics only.
12015
12016 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
12017
12018         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
12019         be zero or nonzero.
12020         * doc/tm.texi: Regenerate.
12021         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
12022         * df-scan.c (df_get_exit_block_use_set), reginfo.c
12023         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
12024         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
12025         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
12026         to 1.
12027
12028 2010-08-20  Olivier Hainque  <hainque@adacore.com>
12029
12030         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
12031         an extra nop past a sibling call at the very end.
12032
12033 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
12034
12035         PR bootstrap/45350
12036         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
12037         a comment.
12038
12039 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
12040
12041         * target.def (function_arg, function_incoming_arg): Remove const
12042         qualifier on CUMULATIVE_ARGS parameter.
12043         * targhooks.h (default_function_arg, default_function_incoming_arg):
12044         Likewise.
12045         * targhooks.c (default_function_arg, default_function_incoming_arg):
12046         Likewise.
12047         * config/i386/i386.c (ix86_function_arg): Likewise.
12048
12049 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
12050
12051         PR target/45336
12052         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
12053         SIGN_EXTENDs or ZERO_EXTENDs.
12054
12055 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
12056
12057         PR target/42172
12058         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
12059         Take its cost into account if nonnull.
12060         (insn_a_feeds_b): New static function.
12061         (combine_instructions): Look for four-insn combinations.
12062         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
12063         them into account when computing all_adjacent and looking for other
12064         uses.
12065         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
12066         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
12067         (try_combine): New arg I0.  Handle four-insn combinations.
12068         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
12069         like ELIM_I1.
12070
12071 2010-08-19  Jason Merrill  <jason@redhat.com>
12072
12073         PR c++/45307
12074         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
12075         if ctor is empty.
12076         (gimplify_modify_expr_rhs): Adjust.
12077
12078 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
12079
12080         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
12081         bitmap_bit_p.
12082         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
12083         * dominance.c (iterate_fix_dominators): Likewise.
12084         * dse.c (set_usage_bits): Likewise.
12085         (set_position_unneeded, record_store): Likewise.
12086         * gimple-fold.c (get_maxval_strlen): Likewise.
12087         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
12088         * ipa-inline.c (update_caller_keys): Likewise.
12089         * ipa-split.c (verify_non_ssa_vars): Likewise.
12090         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
12091         (close_type_exposed_parameter, close_type_full_escape): Likewise.
12092         (close_addressof_down): Likewise.
12093         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
12094         (setup_allocno_left_conflicts_size): Likewise.
12095         (ira_reassign_conflict_allocnos): Likewise.
12096         (ira_reassign_pseudos): Likewise.
12097         * ira-emit.c (change_loop): Likewise.
12098         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
12099         * lto-streamer-out.c (write_symbol): Likewise.
12100         * predict.c (expr_expected_value_1): Likewise.
12101         * regstat.c (regstat_bb_compute_ri): Likewise.
12102         * sel-sched.c (create_block_for_bookkeeping): Likewise.
12103         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
12104         * stmt.c (expand_case): Likewise.
12105         * tree-eh.c (emit_eh_dispatch): Likewise.
12106         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
12107         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
12108         Likewise.
12109         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
12110         (rdg_build_components): Likewise.
12111         * tree-object-size.c (collect_object_sizes_for): Likewise.
12112         * tree-sra.c (convert_callers): Likewise.
12113         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
12114         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
12115         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
12116
12117 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
12118
12119         * config/i386/i386.md (*lea_1): Use P mode iterator.
12120         (lea add splitter): Also handle DImode operands.
12121         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
12122         predicate.  Do not use ix86_lea_for_add_ok.
12123         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
12124         (lea ashift splitter): Also handle DImode operands.
12125         (DImode lea ashift splitter): Remove splitter.
12126
12127 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
12128
12129         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
12130         ix86_binary_operator_ok.
12131
12132 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
12133
12134         PR rtl-optimization/44691
12135         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
12136         is not a register.
12137
12138 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
12139
12140         PR target/45070
12141         * config/arm/arm.c (arm_output_epilogue): Ensure that return
12142          value of size 1-3 is handled correctly.
12143
12144 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
12145
12146         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
12147         type for the conditional has wide enough range.
12148
12149 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
12150
12151         PR target/45327
12152         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
12153         ix86_binary_operator_ok.
12154
12155 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
12156
12157         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
12158         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
12159         code to output insn mnemonic.  Fix comment.
12160         (*addsi_1_zext): Add r-r-0 alternative 1.
12161         <TYPE_LEA>: Split insn to lea.
12162         <default>: Handle alternative 1.
12163         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
12164         multi-level if_then_else RTX to set "type" attribute.
12165         <default>: Handle alternative 2.
12166         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
12167         Use cond RTX instead of multi-level if_then_else RTX to set
12168         "type" attribute.
12169         <default>: Handle alternatives 2 and 4.
12170         (lea splitters): Update calls to ix86_lea_for_add_ok.
12171
12172         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
12173         argument.
12174         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
12175
12176 2010-08-18  Richard Guenther  <rguenther@suse.de>
12177
12178         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
12179         use operand helpers.
12180
12181 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
12182
12183         PR middle-end/45292
12184         * optabs.c (expand_bool_compare_and_swap): Expand pending
12185         pops before trying the optab.
12186
12187 2010-08-18  Yao Qi  <yao@codesourcery.com>
12188
12189         PR target/45094
12190         * config/arm/arm.c (output_move_double): Fix typo generating
12191         instructions ('ldr'->'str').
12192
12193 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12194
12195         PR rtl-optimization/42575
12196         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
12197         live ranges.
12198
12199 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12200
12201         * config/arm/arm-protos.h (arm_expand_sync): New.
12202         (arm_output_memory_barrier, arm_output_sync_insn): New.
12203         (arm_sync_loop_insns): New.
12204         * config/arm/arm.c (FL_ARCH7): New.
12205         (FL_FOR_ARCH7): Include FL_ARCH7.
12206         (arm_arch7): New.
12207         (arm_print_operand): Support %C markup.
12208         (arm_legitimize_sync_memory): New.
12209         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
12210         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
12211         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
12212         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
12213         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
12214         (arm_process_output_sync_insn, arm_output_sync_insn): New.
12215         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
12216         * config/arm/arm.h (struct arm_sync_generator): New.
12217         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
12218         (TARGET_HAVE_MEMORY_BARRIER): New.
12219         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
12220         * config/arm/arm.md: Include sync.md.
12221         (UNSPEC_MEMORY_BARRIER): New.
12222         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
12223         (VUNSPEC_SYNC_OP):New.
12224         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
12225         (sync_result, sync_memory, sync_required_value): New attributes.
12226         (sync_new_value, sync_t1, sync_t2): Likewise.
12227         (sync_release_barrier, sync_op): Likewise.
12228         (length): Add logic to length attribute defintion to call
12229         arm_sync_loop_insns when appropriate.
12230         * config/arm/sync.md: New file.
12231
12232 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
12233
12234         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
12235         ENABLE_TREE_CHECKING.
12236         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
12237         and GCC >= 4.3.
12238
12239 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
12240
12241         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
12242         or optimizing for size, always avoid lea if possible.
12243
12244         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
12245
12246 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
12247
12248         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
12249         Dunmmy function with NULL return unless the target is
12250         OSX >= 10.6 (Darwin10).
12251
12252 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
12253
12254         * gcc.c (spec_function): Add remove-outfile.
12255         (remove_outfile_spec_function): New function.
12256         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
12257         * invoke.texi (replace-outfile): Document.
12258
12259 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
12260
12261         PR target/45296
12262         * reginfo.c (globalize_reg): Reject stack registers.
12263
12264 2010-08-17  Richard Guenther  <rguenther@suse.de>
12265
12266         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
12267         list of conditional equivalences.
12268         (free_all_edge_infos): Adjust.
12269         (record_equivalences_from_incoming_edge): Likewise.
12270         (record_cond): Likewise.
12271         (build_and_record_new_cond): Likewise.
12272         (record_conditions): Likewise.
12273         (dom_opt_leave_block): Likewise.
12274
12275 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
12276
12277         * doc/invoke.texi (ms-extension): Add documentation.
12278
12279 2010-08-17  Richard Guenther  <rguenther@suse.de>
12280
12281         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
12282
12283 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
12284
12285         PR c/40563
12286         * c-decl.c (diagnose_uninitialized_cst_member): New function.
12287         (finish_decl): Use it to issue a -Wc++-compat warning about
12288         uninitialized const field in struct or union.
12289
12290         (finish_struct): Use strip_array_types.
12291
12292 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
12293
12294         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
12295         functions.
12296         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
12297         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
12298         call block_nreverse here.
12299         (blocks_nreverse): Rename decl temporary to block.
12300
12301 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
12302
12303         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
12304         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
12305         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
12306         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
12307         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
12308         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
12309         thumb2_iorsi3): Delete.
12310         (orsi_notsi_si): No longer a named pattern.
12311         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
12312         * config/arm/predicates.md (shift_amount_operand): New.
12313         (mult_operator): New.
12314         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
12315         attr enabled): New.
12316         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
12317         arch matches t2.
12318         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
12319         (not_shiftsi_compare0): Likewise, renamed from
12320         arm_notsi_shiftsi_compare0.
12321         (not_shiftsi_compare0_scratch): Likweise, renamed from
12322         arm_notsi_shiftsi_compare0_scratch.
12323         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
12324         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
12325         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
12326         so that the register alternative is disabled when the shift_operator
12327         is MULT.  Use "M" as the constraint for constants.
12328         (arith_shiftsi splitter): Enable for TARGET_32BIT.
12329         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
12330         constraint for constants.
12331         (arith_shiftsi_compare0_scratch): Likewise.
12332         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
12333         Handle Thumb2 alternative.
12334
12335 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12336
12337         * doc/options.texi (NoDriverArg): Document.
12338         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
12339         -MDX and -MMDX.
12340         * opt-functions.awk (switch_flags): Handle NoDriverArg.
12341         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
12342         marking for CL_NO_DRIVER_ARG options when in the driver.
12343         * opts.h (CL_NO_DRIVER_ARG): Define.
12344         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
12345         CL_COMMON): Update values.
12346
12347 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
12348
12349         * common.opt: Add driver options.
12350         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
12351         * doc/options.texi (Driver, RejectDriver): Document.
12352         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
12353         print_prog_name, print_multi_directory, print_sysroot,
12354         print_multi_os_directory, print_multi_lib,
12355         print_sysroot_headers_suffix, report_times, combine_flag,
12356         use_pipes, wrapper_string): Remove.
12357         (save_switch, driver_unknown_option_callback,
12358         driver_wrong_lang_callback, driver_post_handling_callback,
12359         driver_handle_option): New.
12360         (spec_lang, last_language_n_infiles): Make file-scope static
12361         instead of local to process_command.
12362         (process_command): Use decode_cmdline_options_to_array and
12363         read_cmdline_option for option processing.  Compute have_c in
12364         prescan of decoded options.
12365         * opt-functions.awk (switch_flags): Handle Driver and
12366         RejectDriver.
12367         (var_type, var_type_struct): Handle Separate options as generating
12368         const char * variables.
12369         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
12370         CL_TARGET to be passed by caller if required.
12371         (decode_cmdline_options_to_array): Update comment.
12372         * opts.c (complain_wrong_lang): Handle options only valid for the
12373         driver.
12374         (decode_options): Update call to decode_cmdline_options_to_array.
12375         (print_filtered_help): Ignore driver-only options.
12376         (print_specific_help): Ignore CL_DRIVER.
12377         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
12378         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
12379         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
12380         Update values.
12381
12382 2010-08-16  Richard Guenther  <rguenther@suse.de>
12383
12384         * tree-cfg.c (verify_types_in_gimple_reference): Verify
12385         TARGET_MEM_REF a bit.
12386         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
12387         (create_mem_ref_raw): Always create TMR_OFFSET, store the
12388         alias pointer type via it.
12389         (copy_mem_ref_info): Adjust.
12390         (maybe_fold_tmr): Likewise.
12391         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
12392         (reference_alias_ptr_type): Likewise.
12393         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
12394         adjust documentation of TMR_OFFSET operand.
12395         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
12396         use the alias pointer type.
12397         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
12398         initialize mem attrs but the TMR itself.
12399         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
12400         similar to MEM_REF.
12401         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
12402         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
12403         (unshare_and_remove_ssa_names): Likewise.
12404         (copy_ref_info): Adjust.
12405         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
12406         TARGET_MEM_REF case.
12407         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
12408         at TMR_ORIGINAL.
12409         * tree.h (TMR_ORIGINAL): Remove.
12410         * gimple.c (get_base_address): For TARGET_MEM_REF with a
12411         symbol return that.
12412         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
12413         with a symbol.
12414         (get_addr_base_and_unit_offset): Likewise.
12415         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
12416         TARGET_MEM_REFs.
12417         (indirect_ref_may_alias_decl_p): Likewise.
12418         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
12419
12420 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
12421
12422         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
12423         with GCC version 4.6, the default setting (when not optimizing
12424         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
12425         been changed to -fomit-frame-pointer.
12426
12427 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
12428
12429         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
12430         Darwin10.  Do not link libgcc.a for Darwin >= 9.
12431
12432 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
12433
12434         * doc/invoke.texi (Warning Options): Fix terminology and markup
12435         in the description of how unknown warning options are handled.
12436
12437 2010-08-15  Ira Rosen  <irar@il.ibm.com>
12438
12439         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
12440         in basic blocks.
12441         (vect_supportable_dr_alignment): Check alignment for basic blocks.
12442         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
12443         data references.
12444         (vect_bb_vectorization_profitable_p): New function.
12445         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
12446         check if it's worthwhile to vectorize the basic block.
12447
12448 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
12449
12450         * reload.h (register_move_cost, memory_move_secondary_cost,
12451         secondary_reload_class): Adjust prototype.
12452         * rtl.h (reg_class_subset_p): Adjust prototype.
12453         * reload.c (secondary_reload_class): Change arguments type from
12454         enum reg_class to reg_class_t. Change result type to reg_class_t.
12455         * reginfo.c (register_move_cost, reg_class_subset_p): Change
12456         arguments type from enum reg_class to reg_class_t.
12457         (memory_move_secondary_cost): Change arguments type from
12458         enum reg_class to reg_class_t. Change type of saved_flags to
12459         reg_class_t.
12460
12461         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12462         Remove macros.
12463         (mips_cost): Remove.
12464         (struct mips_rtx_cost_data): Moved to mips.c.
12465         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
12466         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
12467         (mips_cost): Make static.
12468         (mips_canonicalize_move_class): Change argument type to reg_class_t.
12469         Change result type to reg_class_t.
12470         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
12471         type from enum reg_class to reg_class_t.
12472         (mips_register_move_cost): Make static. Change arguments
12473         type from enum reg_class to reg_class_t.
12474         (mips_memory_move_cost): New function.
12475         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12476
12477 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
12478
12479         PR rtl-optimization/43358
12480         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
12481         of a single hard register, using simplify_subreg_regno to decide
12482         what that register should be.
12483
12484 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
12485
12486         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
12487         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
12488         (loongson_pmull<V_suffix>): Rename to...
12489         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
12490
12491 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
12492
12493         * configure.ac: Enable -fomit-frame-pointer on darwin
12494         which support dwarf2.
12495         * config/i386/i386.c (override_options): Same.
12496
12497 2010-08-13  Jie Zhang  <jie@codesourcery.com>
12498
12499         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
12500
12501 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
12502
12503         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
12504         -MMD.
12505
12506 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
12507
12508         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
12509         up dot_prod pattern searching if a stmt is outside the loop.
12510
12511 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
12512             Uros Bizjak  <ubizjak@gmail.com>
12513
12514         * config.gcc: Handle --enable-frame-pointer.
12515
12516         * configure.ac: Add --enable-frame-pointer.
12517         * configure: Regenerated.
12518
12519         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
12520         (override_options): If not configured with --enable-frame-pointer,
12521         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
12522         optimizing for size), -fasynchronous-unwind-tables and
12523         -maccumulate-outgoing-args by default.
12524
12525 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
12526
12527         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
12528
12529         PR middle-end/45262
12530         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
12531         -a overflows.  Normalize the range.
12532
12533 2010-08-12  Richard Guenther  <rguenther@suse.de>
12534
12535         PR tree-optimization/45232
12536         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
12537         for types with undefined overflow.
12538         (reassociate_bb): Allow re-associating of bit and min/max
12539         operations for types with undefined overflow.
12540         * tree-ssa-forwprop.c (associate_plusminus): New function.
12541         (tree_ssa_forward_propagate_single_use_vars): Call it.
12542
12543 2010-08-12  Richard Guenther  <rguenther@suse.de>
12544
12545         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
12546         * tree-ssa-alias.c (get_ptr_info): Move ...
12547         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
12548         align and misalign fields conservatively.
12549         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
12550         derive alignment information.
12551         (evaluate_stmt): Derive alignment information from memory
12552         allocation functions.
12553         * tree.h (get_pointer_alignment): Make unsigned.
12554         * builtins.c (get_object_alignment): Use alignment information we
12555         have computed for pointers.
12556         (get_pointer_alignment): Likewise.  Make conservative, return
12557         and unsigned value.
12558         (expand_builtin_strlen): Adjust.
12559         (expand_builtin_memcmp): Likewise.
12560         (expand_builtin_strcmp): Likewise.
12561         (expand_builtin_strncmp): Likewise.
12562         (get_builtin_sync_mem): Use at least mode alignment.
12563         (fold_builtin_memset): Adjust.
12564         (fold_builtin_memory_op): Likewise.
12565         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
12566         information also dump pointer alignment knowledge.
12567         (dump_gimple_stmt): Likewise.
12568
12569 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
12570
12571         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
12572         (EMPTY_FIELD_BOUNDARY): Remove.
12573         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
12574
12575 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
12576
12577         PR debug/45259
12578         * caller-save.c (save_call_clobbered_regs): Only swap notes with
12579         DEBUG_INSNs if n_regs_saved.
12580
12581 2010-08-12  Wei Guozhi  <carrot@google.com>
12582
12583         PR target/44999
12584         * config/arm/arm.md (andsi3): Change to zero extension if possible.
12585         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
12586
12587 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
12588
12589         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
12590
12591         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
12592
12593 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12594
12595         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
12596         the case removed in the previous patch, when the only phi argument
12597         is defined in the same loop as the phi node itself.  Handle it
12598         separately from the invariant case by both propagating it outside
12599         the region and replacing the phi node with an assign.
12600
12601 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12602
12603         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
12604         constant phi nodes with one argument are is_gimple_min_invariant
12605         and SSA_NAME_IS_DEFAULT_DEF.
12606
12607 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12608
12609         * graphite-cloog-util.c (oppose_constraint):
12610         Extend loop counter's value range (CLOOG_ORG).
12611         (cloog_matrix_to_ppl_constraint): Same.
12612         (new_Constraint_System_from_Cloog_matrix): Same.
12613         * graphite-cloog-compat.h (matrix_num_type): New.
12614
12615 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12616
12617         * graphite.c (graphite_initialize): Do not initialize
12618         CLooG and initialize the Parma Polyhedra Library
12619         manually when using CLOOG_ORG.
12620         (graphite_finalize): Do not finalize CLooG and finalize
12621         the Parma Polyhedra Library manually when using CLOOG_ORG.
12622         * graphite-cloog-compat.h (cloog_initialize): Hide function
12623         when using CLOOG_ORG.
12624         (cloog_finalize): Same.
12625
12626 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12627
12628         * graphite-clast-to-gimple.c (free_scattering): Change
12629         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
12630         (CLOOG_ORG).
12631         (build_cloog_prog): Same.
12632         * graphite-cloog-compat.h (cloog_domain): Removed.
12633         (cloog_scattering): New.
12634         (cloog_set_domain): Removed.
12635         (cloog_set_scattering): New.
12636         (cloog_next_domain): Removed.
12637         (cloog_next_scattering): New.
12638         (cloog_set_next_domain): Removed.
12639         (cloog_set_next_scattering): New.
12640         (CloogScatteringList): New.
12641         (CloogScattering): New.
12642         (cloog_scattering_free): New.
12643         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
12644         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
12645         New.
12646
12647 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12648
12649         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
12650         CloogState.
12651         (set_cloog_options): Same.
12652         (print_clast_stmt): Same.
12653         (scop_to_clast): Same.
12654         (print_generated_program): Same.
12655         (gloog): Same.
12656         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
12657         (scop_to_clast): Extend with CloogState.
12658         * graphite-cloog-util.c: Include graphite-cloog-compat.h
12659         (new_Cloog_Domain_from_ppl_Polyhedron):
12660         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
12661         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
12662         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12663         * graphite-cloog-util.h (build_cloog_prog): Same.
12664         * graphite-cloog-copat.h (build_cloog_prog): New.
12665         (CloogState): New.
12666         (cloog_state_malloc): New.
12667         (cloog_state_free): New.
12668         (cloog_loop_malloc): New.
12669         (cloog_options_malloc): New.
12670         (cloog_statement_alloc): New.
12671         (cloog_domain_from_cloog_matrix): New.
12672         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
12673         (new_Cloog_Domain_from_ppl_Polyhedron): New.
12674
12675 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12676
12677         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
12678         type of NAME now depends on used CLooG version.
12679         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
12680         (gcc_type_for_clast_expr): Same.
12681         (print_clast_stmt): Replace pprint with clast_pprint.
12682         * graphite-cloog-compat.h: Provide compatibility macros for
12683         CLooG Legacy.
12684         (clast_name_p): New.
12685         (clast_expr_term): New.
12686         (clast_expr_red): New.
12687         (clast_expr_bin): New.
12688         (clast_pprint): New.
12689
12690 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12691
12692         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
12693         compatible to newer CLooG releases (CLOOG_ORG).
12694         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
12695         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
12696         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
12697         (build_cloog_prog) : New.
12698         (cloog_program_extract_scalars): New.
12699         (cloog_program_scatter): New.
12700
12701 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12702
12703         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
12704         conditionally (CLOOG_ORG).
12705         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
12706         (cloog_statement_usr): New.
12707         (cloog_domain): Same.
12708         (cloog_set_domain): Same.
12709         (cloog_next_domain): Same.
12710         (cloog_set_next_domain): Same.
12711         (cloog_program_nb_scattdims): Same.
12712         (cloog_program_set_nb_scattdims): Same.
12713         (cloog_program_names): Same.
12714         (cloog_program_set_names): Same.
12715         (cloog_program_set_context): Same.
12716         (cloog_program_set_loop): Same.
12717         (cloog_program_blocklist): Same.
12718         (cloog_program_set_blocklist): Same.
12719         (cloog_program_scaldims): Same.
12720         (cloog_program_set_scaldims): Same.
12721         (cloog_names_nb_parameters): Same.
12722         (cloog_names_set_nb_parameters): Same.
12723         (cloog_names_parameters): Same.
12724         (cloog_names_set_parameters): Same.
12725         (cloog_names_set_nb_iterators): Same.
12726         (cloog_names_set_iterators): Same.
12727         (cloog_names_set_nb_scattering): Same.
12728         (cloog_names_set_scattering): Same.
12729         (cloog_statement_set_usr): Same.
12730         (cloog_loop_set_next): Same.
12731         (cloog_loop_set_domain): Same.
12732         (cloog_loop_set_block): Same.
12733         (cloog_block_list_next): Same.
12734         (cloog_block_list_set_next):
12735         (cloog_block_list_set_block): Same.
12736
12737 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12738
12739         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
12740         a bool.
12741         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
12742         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
12743         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
12744         when something has been changed.
12745         (rewrite_commutative_reductions_out_of_ssa): Same.
12746
12747 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12748
12749         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
12750         handle the case when def is in the sese region.
12751         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
12752         for invariant expressions.
12753         (rewrite_cross_bb_phi_deps): Removed.
12754         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
12755         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
12756         rewrite_cross_bb_phi_deps.
12757
12758 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12759
12760         * graphite-sese-to-poly.c
12761         (rewrite_commutative_reductions_out_of_ssa_loop): Call
12762         scev_analyzable_p only on is_gimple_reg
12763
12764 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12765
12766         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
12767         (rewrite_close_phi_out_of_ssa): Propagate constant values or
12768         parametric expressions outside the scop region.
12769         (rewrite_cross_bb_scalar_deps): Same.
12770         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
12771
12772 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12773
12774         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
12775         SSA_NAME_DEF_STMT only on SSA_NAMEs.
12776
12777 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12778
12779         * tree-scalar-evolution.c (instantiate_scev_name): Do not
12780         instantiate default definitions.
12781
12782 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
12783             Sebastian Pop  <sebastian.pop@amd.com>
12784
12785         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
12786         (loop_exits_from_bb_p): New.
12787         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
12788         (loop_exits_from_bb_p): Declared.
12789         * graphite-scop-detection.c (scopdet_basic_block_info): Call
12790         loop_exits_to_bb_p.
12791
12792 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12793
12794         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
12795         extra parameter for the region.  Call scev_analyzable_p.
12796         (rewrite_reductions_out_of_ssa): Update call to
12797         rewrite_close_phi_out_of_ssa.
12798         (rewrite_cross_bb_phi_deps): Same.
12799         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
12800         parameter for the region.  Call scev_analyzable_p.
12801         (rewrite_commutative_reductions_out_of_ssa): Update call to
12802         rewrite_commutative_reductions_out_of_ssa_loop.
12803
12804 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12805
12806         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
12807
12808 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12809
12810         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
12811         SSA scalar phi nodes that can be scev_analyzable_p.
12812
12813 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12814
12815         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
12816         handle SSA_NAME_IS_DEFAULT_DEF.
12817
12818 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12819
12820         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
12821
12822 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12823
12824         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
12825         case non close-phi nodes with one argument.
12826
12827 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12828
12829         * sese.h (scev_analyzable_p): Scevs could be expressions without
12830         chrecs and still be scev_analyzable_p.
12831
12832 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12833
12834         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12835
12836 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12837
12838         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
12839         * cfgloop.h (struct loop): Remove single_iv field.
12840         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
12841         (scop_canonicalize_loops): Removed.
12842         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
12843         over all the loop phi nodes in loop->header.
12844         (build_poly_scop): Remove use of scop_canonicalize_loops.
12845
12846 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12847
12848         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
12849         handle GIMPLE_CALL.
12850
12851 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12852
12853         * tree-chrec.c (chrec_apply): Should only apply to the specified
12854         variable.  Also handle multivariate chains of recurrences that
12855         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
12856
12857 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12858
12859         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
12860         (debug_clast_name_indexes_1): Removed.
12861         (debug_clast_name_indexes): Removed.
12862         (pbb_to_depth_to_oldiv): Removed.
12863         (build_iv_mapping): Replace the use of rename_map with iv_map.
12864         (translate_clast_user): Remove uses of rename_map.  Allocate and
12865         free iv_map.
12866         (translate_clast_for_loop): Remove uses of rename_map.
12867         (translate_clast_for): Same.
12868         (translate_clast_guard): Same.
12869         (translate_clast): Same.
12870         (gloog): Same.
12871         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
12872         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
12873         * sese.c (set_rename): Now static.
12874         (rename_variables_in_stmt): Removed.
12875         (rename_uses): New.
12876         (is_parameter): Removed.
12877         (is_iv): Removed.
12878         (expand_scalar_variables_call): Removed.
12879         (expand_scalar_variables_ssa_name): Removed.
12880         (expand_scalar_variables_expr): Removed.
12881         (expand_scalar_variables_stmt): Removed.
12882         (expand_scalar_variables): Removed.
12883         (rename_variables): Removed.
12884         (remove_condition): Removed.
12885         (get_true_edge_from_guard_bb): Removed.
12886         (get_false_edge_from_guard_bb): Removed.
12887         (struct igp): Removed.
12888         (default_before_guard): Removed.
12889         (convert_for_phi_arg): Removed.
12890         (add_guard_exit_phis): Removed.
12891         (insert_guard_phis): Removed.
12892         (graphite_copy_stmts_from_block): Now also uses iv_map and a
12893         region.  Do not copy conditions.  Do not copy induction variables.
12894         Call rename_uses.
12895         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
12896         the translated statement.  Use the iv_map for the induction
12897         variable renaming.
12898         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
12899         (set_rename): Removed declaration.
12900         (scev_analyzable_p): ...here.
12901         * tree-chrec.c (chrec_apply_map): New.
12902         * tree-chrec.h (chrec_apply_map): Declared.
12903
12904 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12905
12906         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
12907         insert_loop_close_phis.
12908         * sese.c (name_defined_in_loop_p): Removed.
12909         (expr_defined_in_loop_p): Removed.
12910         (alive_after_loop): Removed.
12911         (close_phi_not_yet_inserted_p): Removed.
12912         (struct alep): Removed.
12913         (add_loop_exit_phis): Removed.
12914         (insert_loop_close_phis): Removed.
12915
12916 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12917
12918         * graphite-cloog-util.c
12919         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
12920         * graphite-poly.c
12921         (psct_scattering_dim_for_loop_depth): Same.
12922
12923 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12924
12925         * graphite-cloog-util.h: Added cloog.h.
12926         * graphite-blocking.c: Removed cloog.h.
12927         * graphite-dependences.c: Same.
12928         * graphite-interchange.c: Same.
12929         * graphite-poly.c: Same.
12930         * graphite-ppl.c: Same.
12931         * graphite-scop-detection.c: Same.
12932         * graphite-sese-to-poly.c:
12933         Removed cloog.h.
12934         Removed graphite-clast-to-gimple.h.
12935         (check_poly_representation): Removed (unused).
12936         * graphite-sese-to-poly.h
12937         (check_poly_representation): Removed (unused).
12938
12939 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12940
12941         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
12942         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
12943         (graphite-cloog-util.o): New.
12944         (graphite-ppl.o): Added graphite-cloog-util.h.
12945         * graphite-clast-to-gimple.c:
12946         Added graphite-cloog-util.h to include statements.
12947         * graphite-cloog-util.c: New.
12948         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
12949         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12950         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12951         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12952         (insert_constraint_into_matrix): Same.
12953         (ppl_Constrain_System_number_of_constraints): Same.
12954         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
12955         (oppose_constraint): Same.
12956         (cloog_matrix_to_ppl_constraint): Same.
12957         (new_Constraint_System_from_Cloog_Matrix): Same.
12958         * graphite-cloog-util.h: New.
12959         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
12960         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12961         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12962         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12963         (insert_constraint_into_matrix): Same.
12964         * graphite-ppl.c:
12965         Added graphite-cloog-util.h to include statements.
12966         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
12967         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12968         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12969         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12970         (insert_constraint_into_matrix): Same.
12971         (ppl_Constrain_System_number_of_constraints): Same.
12972         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
12973         (oppose_constraint): Same.
12974         (cloog_matrix_to_ppl_constraint): Same.
12975         (new_Constraint_System_from_Cloog_Matrix): Same.
12976         * graphite-ppl.h:
12977         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
12978         graphite-cloog-util.h.
12979         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12980         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12981         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12982         (insert_constraint_into_matrix): Same.
12983
12984 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12985
12986         * graphite-clast-to-gimple.c
12987         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
12988         (precision_for_interval): Same.
12989         (gcc_type_for_interval): Same.
12990         (compute_type_for_level): Same.
12991         * graphite-interchange.c
12992         (lst_interchange_profitable_p): Same.
12993         * graphite-poly.c
12994         (psct_scattering_dim_for_loop_depth): Same.
12995         * graphite-ppl.c
12996         (ppl_max_for_le_pointset): Same.
12997         (ppl_min_for_le_pointset): Same.
12998
12999 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13000
13001         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
13002         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
13003
13004 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13005
13006         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
13007         rewrite_close_phi_out_of_ssa.
13008
13009 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13010
13011         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
13012
13013 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13014
13015         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
13016         rename_map.
13017         * sese.c (debug_rename_map): Same.
13018         (get_rename): Same.
13019         (set_rename): Same.
13020         (rename_variables_in_stmt): Same.
13021         (expand_scalar_variables_call): Same.
13022         (expand_scalar_variables_ssa_name): Same.
13023         (expand_scalar_variables_expr): Same.
13024         (expand_scalar_variables_stmt): Same.
13025         (expand_scalar_variables): Same.
13026         (rename_variables): Same.
13027         (graphite_copy_stmts_from_block): Same.
13028         (copy_bb_and_scalar_dependences): Same.
13029
13030 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13031
13032         * graphite-clast-to-gimple.c (copy_renames): Removed.
13033         (translate_clast_for): Do not call copy_renames.
13034         (translate_clast_guard): Same.
13035
13036 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13037
13038         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
13039         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
13040         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
13041         before rewrite_cross_bb_scalar_deps.
13042
13043 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13044
13045         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
13046         Early return in when flag_associative_math is not set.
13047
13048 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13049
13050         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
13051         of SSA copies on edges except for loop->latch.
13052
13053 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13054
13055         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
13056         Split out of rewrite_reductions_out_of_ssa.
13057         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
13058         Declared.
13059         * graphite.c (graphite_transform_loops): Call it.
13060
13061 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13062
13063         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
13064
13065 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
13066
13067         * dbgcnt.def (graphite_scop): New counter.
13068         * graphite.c: Include dbgcnt.h.
13069         (graphite_transform_loops): Use new counter to limit transformations.
13070         * Makefile.in (graphite.o): Depend on DBGCNT_H.
13071
13072 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13073
13074         * passes.c (init_optimization_passes): Add pass_graphite.
13075         Schedule a pass_copy_prop before pass_graphite_transforms.
13076         * timevar.def (TV_GRAPHITE): Declared.
13077         * tree-pass.h (pass_graphite): Declared.
13078         * tree-ssa-loop.c (pass_graphite): New.
13079
13080 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13081
13082         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
13083         Remove calls to rename_nb_iterations and rename_sese_parameters.
13084         * graphite-clast-to-gimple.h (gloog): Update declaration.
13085         * graphite.c (graphite_transform_loops): Update call to gloog.
13086         * sese.c (rename_variables_in_expr): Removed.
13087         (rename_nb_iterations): Removed.
13088         (rename_sese_parameters): Removed.
13089         * sese.h (rename_nb_iterations): Removed.
13090         (rename_sese_parameters): Removed.
13091
13092 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13093
13094         * graphite-clast-to-gimple.c (gloog): Remove call to
13095         sese_adjust_liveout_phis.
13096         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
13097         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
13098         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
13099         rewrite_phi_out_of_ssa.
13100         * sese.c (get_vdef_before_sese): Removed.
13101         (sese_adjust_vphi): Removed.
13102         (sese_adjust_liveout_phis): Removed.
13103         * sese.h (sese_adjust_liveout_phis): Removed.
13104
13105 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13106
13107         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
13108         argument for the place after which to insert the out of SSA copy.
13109         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
13110         (rewrite_phi_out_of_ssa): Same.
13111         (rewrite_cross_bb_scalar_deps): Same.
13112         (insert_copyout): Removed.
13113         (insert_copyin): Removed.
13114         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
13115         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
13116         insert_copyin.
13117
13118 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13119
13120         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
13121         (rewrite_reductions_out_of_ssa): Same.
13122         (rewrite_commutative_reductions_out_of_ssa): Same.
13123         (build_poly_scop): Do not call these functions.
13124         * graphite-sese-to-poly.h (build_poly_scop): Declared.
13125         (rewrite_reductions_out_of_ssa): Declared.
13126         (rewrite_commutative_reductions_out_of_ssa): Declared.
13127         * graphite.c (graphite_transform_loops): Call on every scop
13128         rewrite_commutative_reductions_out_of_ssa before calling
13129         rewrite_reductions_out_of_ssa and build_scop_bbs.
13130
13131 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13132
13133         * graphite-dependences.c (dot_deps): Make system call to dotty run
13134         in background.
13135         (dot_deps_stmt): Same.
13136         * graphite-poly.c (dot_lst): Same.
13137
13138 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
13139
13140         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
13141         phi_arg_in_outermost_loop.
13142         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
13143         (remove_invariant_phi): Same.
13144
13145 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
13146
13147         * target.def (output_addr_const_extra): New hook.
13148         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
13149         * doc/tm.texi: Regenerate.
13150         * targhooks.c (default_asm_output_addr_const_extra): New function.
13151         * targhooks.h (default_asm_output_addr_const_extra): Declare.
13152         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
13153         target hook.
13154
13155         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13156         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
13157         * config/i386/i386.h (output_addr_const_extra): Rename to...
13158         (i386_asm_output_addr_const_extra): ...this. Make static.
13159         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13160
13161 2010-08-11  Richard Henderson  <rth@redhat.com>
13162
13163         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
13164
13165 2010-08-11  Nick Clifton  <nickc@redhat.com>
13166
13167         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
13168         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
13169         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
13170         stormy16-lib2-cmpsi.c.
13171
13172         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
13173         -O2.
13174
13175 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
13176
13177         * opts.h (struct cl_option_handler_func): Make handler take
13178         cl_decoded_option structure as parameter, not individual elements.
13179         (struct cl_option_handlers): Make callbacks take cl_decoded_option
13180         structure as parameter, not individual elements.
13181         (handle_option): Take cl_decoded_option structure as parameter,
13182         not individual elements.
13183         (handle_generated_option): Declare.
13184         * opts-common.c (handle_option): Take cl_decoded_option structure
13185         as parameter, not individual elements.  Update calls to callback
13186         and handler functions.
13187         (handle_generated_option): New.
13188         (read_cmdline_option): Update calls to callback functions and
13189         handle_option.
13190         * opts.c (common_handle_option, complain_wrong_lang,
13191         unknown_option_callback, post_handling_callback,
13192         lang_handle_option, target_handle_option): Take cl_decoded_option
13193         structure as parameter, not individual elements.
13194         (lang_handle_option, target_handle_option, common_handle_option):
13195         Assert option has at most one argument.
13196         (enable_warning_as_error): Call handle_generated_option instead of
13197         handle_option.  Do not pass -Werror argument as argument of
13198         generated option.
13199
13200 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13201
13202         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
13203         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
13204         (SUBWORD_BOOL_CAS): Likewise.
13205         (SUBWORD_SYNC_OP): Likewise.
13206         (SUBWORD_TEST_AND_SET): Likewise.
13207         (FETCH_AND_OP_WORD): Parenthesise INF_OP
13208         (SUBWORD_SYNC_OP): Likewise.
13209         (OP_AND_FETCH_WORD): Likewise.
13210
13211 2010-08-10  Xinliang David Li  <davidxl@google.com>
13212
13213         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
13214         compute max/min offset in address.
13215
13216 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
13217
13218         * ira-live.c: Include sbitmap.h.
13219         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
13220         Compress live ranges even more.
13221
13222 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13223
13224         * coverage.c (ctr_labels): Delete.
13225
13226 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
13227
13228         PR bootstrap/45177
13229         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
13230         test here from arm_gen_load_multiple_1.
13231         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
13232         multiple_operation_profitable_p.
13233
13234 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13235
13236         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
13237         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
13238
13239 2010-08-10  Richard Henderson  <rth@redhat.com>
13240
13241         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
13242         after saving registers.  Assert that SSE registers are only saved
13243         with a sufficiently aligned frame.
13244         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
13245         remove stack_realign_fp handling.
13246         (ix86_expand_prologue): Save int registers before stack_realign_fp,
13247         and do not mark the stack alignment as frame related.
13248         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
13249
13250         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
13251         saves when re-aligning the stack.
13252
13253 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13254
13255         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
13256         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
13257         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
13258
13259 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
13260
13261         * dwarf2out.c (struct die_struct): Move die_tag to the end.
13262
13263 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
13264
13265         * config/arm/iterators.md: New file.
13266         * config/arm/arm.md: Include iterators.md.
13267         (QHSI): Move to new file.
13268         (LTUGEU, cnb, optab, ior_xor): Likewise.
13269         * config/arm/iwmmxt.md (VMMX): Move to new file.
13270         (VSHFT, MMX_char): Likewise.
13271         * config/arm/neon.md (VD): Move to new file.
13272         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
13273         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
13274         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
13275         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
13276         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
13277         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
13278         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
13279         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
13280         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
13281         (Is_d_reg, V_mode_nunits): Likewise.
13282         * config/arm/vec-common.md (VALL): Move to new file.
13283         (VALLW, VINT, VINTW): Likewise.
13284
13285 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
13286
13287         PR middle-end/45182
13288         * combine.c (make_compound_operation): Don't try to convert
13289         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
13290
13291 2010-08-10  Richard Guenther  <rguenther@suse.de>
13292
13293         * tree.h (get_object_alignment): Adjust prototype.
13294         * builtins.c (get_object_alignment): Return unsigned int,
13295         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
13296         and TARGET_MEM_REF properly.
13297         (get_pointer_alignment): Adjust.
13298         * emit-rtl.c (get_mem_align_offset): Adjust comment.
13299         (set_mem_attributes_minus_bitpos): Adjust.
13300         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
13301
13302 2010-08-10  Richard Guenther  <rguenther@suse.de>
13303
13304         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
13305         (copy_prop_visit_assignment): Simplify.
13306         (copy_prop_visit_stmt): Also visit assignments from
13307         constants.
13308         (copy_prop_visit_phi_node): Use operand_equal_p.
13309
13310 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13311
13312         * ipa-split.c (find_split_points): Free stack.
13313
13314 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13315
13316         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
13317         * tree.c (tree_node_kind): Delete corresponding entries.
13318
13319 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13320
13321         * alias.c (may_alias_p): Remove unused ret.
13322
13323 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
13324
13325         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
13326         alias_sets_conflict_p.
13327         (walk_mems_1): Moved from alias.c.
13328         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
13329         in alias.c.
13330         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
13331         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
13332         * alias.c (walk_mems_2): Moved to ddg.c.
13333         (walk_mems_1): Ditto.
13334         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
13335         to ddg.c.
13336         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
13337         disambiguation.
13338         *(may_alias_p): New function to check whether two memory expression
13339         may alias or not. Currently used in buidling inter-iteration memory
13340         dependence.
13341         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
13342         (insn_alias_sets_conflict_p): Removed
13343         *rtl.h (may_alias_p): New function prototype.
13344
13345 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13346
13347         * tree.c (nreverse): Assert that we don't have a BLOCK.
13348
13349 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
13350
13351         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
13352         * config/arm/arm.c (arm_get_pcs_model): Likewise.
13353         * config/avr/avr.c (init_cumulative_args): Likewise.
13354         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13355         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13356         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
13357         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
13358         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
13359         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
13360         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
13361         * dwarf2out.c (gen_subprogram_die): Likewise.
13362         * function.c (allocate_struct_function): Likewise.
13363         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
13364         (deserves_ellipsis): Delete.
13365
13366 2010-08-09  Richard Guenther  <rguenther@suse.de>
13367
13368         * tree-ssa-copy.c (cached_last_copy_of): Remove.
13369         (valueize_val): New function.
13370         (get_last_copy_of): Remove.
13371         (set_copy_of_val): Simplify.
13372         (dump_copy_of): Likewise.
13373         (copy_prop_visit_cond_stmt): Use valueize_val.
13374         (copy_prop_visit_phi_node): Properly handle unvisited names.
13375         Drop code managing copy-of chains.
13376         (init_copy_prop): Adjust.
13377         (fini_copy_prop): Likewise.
13378         (execute_copy_prop): Remove obsolete comment.
13379
13380 2010-08-09  Richard Guenther  <rguenther@suse.de>
13381
13382         PR middle-end/44632
13383         * function.c (gimplify_parameters): Do not clear addressable
13384         bit of the original parameter.
13385
13386 2010-08-09  Richard Guenther  <rguenther@suse.de>
13387
13388         PR middle-end/45212
13389         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
13390         alignment from MEM_REF offset only if we took it from the
13391         base object.
13392
13393 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
13394
13395         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
13396
13397 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13398
13399         * c-tree.h (build_arg_info): Declare.
13400         * c-decl.c (build_arg_info): Define.
13401         (get_parm_info): Call it.  Delete initialization code.
13402         * c-parser.c (c_parser_parms_declarator): Likewise.
13403         (c_parser_parms_list_declaractor): Likewise.
13404
13405 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13406
13407         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
13408         (struct c_arg_info): Change type of tags field.
13409         * c-decl.c (grokdeclarator): Update for changed type of tags field.
13410         (get_parm_info): Likewise.
13411         (store_parm_decls_newstyle): Likewise.
13412
13413 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
13414
13415         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
13416         (branch_island_list): Delete.
13417         (branch_islands): Declare.
13418         (add_compiler_branch_island): Adjust for branch_islands instead of
13419         branch_island_list.
13420         (macho_branch_islands): Likewise.
13421         (no_previous_def): Likewise.
13422         (get_prev_label): Likewise.
13423
13424 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13425
13426         PR boehm-gc/34544
13427         * gthr-posix.h (__gthread_start): Delete.
13428         (__gthread_active_init): Use pthread_default_stacksize_np instead of
13429         pthread_create to determine if hpux pthreads are active.
13430         * gthr-posix95.h (__gthread_start): Delete.
13431         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
13432
13433 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
13434
13435         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
13436         _WIN64 not expanded.
13437
13438 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
13439             H.J. Lu  <hongjiu.lu@intel.com>
13440
13441         PR target/45213
13442         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
13443         to output 32bit SFmode immediate as 8 byte sign extended value.
13444
13445 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13446
13447         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
13448         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
13449         (SUBWORD_BOOL_CAS): Likewise.
13450         (SUBWORD_SYNC_OP): Likewise.
13451         (SUBWORD_TEST_AND_SET): Likewise.
13452         (FETCH_AND_OP_WORD): Parenthesise INF_OP
13453         (SUBWORD_SYNC_OP): Likewise.
13454         (OP_AND_FETCH_WORD): Likewise.
13455
13456 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13457
13458         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
13459         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
13460         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
13461         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
13462         generic part.
13463         (cortex_a9_sched_adjust_cost): New function.
13464         (xscale_sched_adjust_cost): New function.
13465         * config/arm/arm-protos.h (struct tune_params): New field
13466         sched_adjust_cost.
13467         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
13468
13469 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
13470
13471         PR target/44942
13472         * config/sparc/sparc.c (function_arg_advance): Always take into account
13473         the padding, if any.
13474
13475 2010-08-06  Richard Guenther  <rguenther@suse.de>
13476
13477         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
13478         (dump_lattice_value): Dump it.
13479         (get_default_value): Adjust.
13480         (get_constant_value): Likewise.
13481         (set_value_varying): Likewise.
13482         (set_lattice_value): Make sure to not go up the lattice
13483         with bitwise constant values.
13484         (get_value_for_expr): Handle ADDR_EXPRs.
13485         (value_to_double_int): New function.
13486         (get_value_from_alignment): Likewise.
13487         (do_dbg_cnt): Adjust.
13488         (ccp_lattice_meet): Handle partially constant values.
13489         (bit_value_unop_1): New function.
13490         (bit_value_binop_1): Likewise.
13491         (bit_value_unop): Likewise.
13492         (bit_value_binop): Likewise.
13493         (evaluate_stmt): Track partially constant values if
13494         flag_tree_bit_ccp is set.
13495         (ccp_fold_stmt): Dump if we folded a predicate.
13496         (ccp_visit_stmt): Adjust.
13497         * common.opt (ftree-bit-ccp): New flag.
13498         * doc/invoke.texi (ftree-bit-ccp): Document.
13499         * opts.c (decode_options): Enable bit-CCP at -O1.
13500
13501 2010-08-06  Alan Modra  <amodra@gmail.com>
13502
13503         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
13504         and -mrelocatable-lib description.
13505
13506 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
13507
13508         From Martin Thuresson  <martint@google.com>
13509         * postreload.c (reload_cse_simplify_operands): Use
13510         SET_REGNO_RAW instead of SET_REGNO.
13511         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
13512         SET_REGNO.
13513         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
13514         instead of SET_REGNO.
13515         * rtl.h (SET_REGNO_RAW): New macro.
13516
13517 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
13518
13519         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
13520         computations.  Fix formatting issues.
13521         (num_sign_bit_copies1): Likewise.
13522         (canonicalize_condition): Likewise.
13523
13524 2010-08-05  Richard Henderson  <rth@redhat.com>
13525
13526         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
13527         (floor_log2): Use clz_hwi.
13528         (exact_log2): Use ctz_hwi.
13529         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
13530         * builtins.c (fold_builtin_bitop): Use them.
13531         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13532         * combine.c (get_pos_from_mask): Use ctz_hwi.
13533         * double-int.c (double_int_ctz): Likewise.
13534         * explow.c (force_reg): Likewise.
13535         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
13536
13537 2010-08-05  Richard Henderson  <rth@redhat.com>
13538
13539         PR target/45189
13540         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
13541         the alignment constant is properly sign-extended.
13542
13543 2010-08-05  Richard Guenther  <rguenther@suse.de>
13544
13545         * expr.c (store_expr): Use emit_block_move only if both
13546         source and target are MEMs.  Use store_bit_field if only
13547         the target is a MEM.
13548
13549 2010-08-05  Richard Henderson  <rth@redhat.com>
13550
13551         PR debug/45188
13552         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
13553         (INCOMING_RETURN_ADDR_RTX): Likewise.
13554         (dwarf2out_do_frame): Remove conditional compilation.
13555         (dwarf2out_frame_init): Likewise.
13556
13557 2010-08-05  Nicolas Setton  <setton@adacore.com>
13558
13559         * gcov.c (flag_display_progress): New static variable.
13560         (main): Display progress info on standard output if requested.
13561         (options): Add -d/--display-progress.
13562         (print_usage): Print them.
13563         (process_args): Handle them.
13564         * doc/gcov.texi: Document them.
13565
13566 2010-08-05  Martin Jambor  <mjambor@suse.cz>
13567
13568         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
13569         (ipcp_insert_stage): Redirect only edges not flagged with
13570         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
13571         discovered constants.
13572
13573 2010-08-05  Martin Jambor  <mjambor@suse.cz>
13574
13575         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
13576         (struct ipa_param_descriptor): New fields types and
13577         cannot_devirtualize.
13578         (ipa_param_cannot_devirtualize_p): New function.
13579         (ipa_param_types_vec_empty): Likewise.
13580         (ipa_make_edge_direct_to_target): Declare.
13581         * ipa-cp.c: Fixed first stage driver name in initial comment,
13582         described devirtualization there too.
13583         (ipcp_analyze_node): Call ipa_analyze_params_uses.
13584         (ipcp_print_all_lattices): Print devirtualization info.
13585         (ipa_set_param_cannot_devirtualize): New function.
13586         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
13587         lattice to BOTTOM.
13588         (ipcp_init_stage): Merged into...
13589         (ipcp_generate_summary): ...its caller.
13590         (ipcp_change_tops_to_bottom): Also process type lists.
13591         (ipcp_add_param_type): New function.
13592         (ipcp_copy_types): Likewise.
13593         (ipcp_propagate_types): Likewise.
13594         (ipcp_propagate_stage): Also propagate types.
13595         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
13596         Also return true if propagated types require it.
13597         (ipcp_update_callgraph): Dump redirection info.
13598         (ipcp_process_devirtualization_opportunities): New function.
13599         (ipcp_const_param_count): Include known type information.
13600         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
13601         on new node.  Fixed formatting.
13602         * ipa-prop.c (make_edge_direct_to_target): Renamed to
13603         ipa_make_edge_direct_to_target and changed all callers.  Made
13604         externally visible.
13605         (ipa_node_duplication_hook): Duplicate types vector.
13606         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
13607         redirect outgoing calls for which we can't get a decl from the
13608         statement.  Check that we can get a decl from the call statement.
13609         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
13610         ipa_analyze_params_uses only when ipa-cp is disabled.
13611         * tree-inline.c (get_indirect_callee_fndecl): Removed.
13612         (expand_call_inline): Do not call get_indirect_callee_fndecl.
13613         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
13614         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
13615
13616 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
13617
13618         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
13619         temporary. Emit move from temporary to accum, so REG_EQUAL note will
13620         be attached to this insn in correct mode.
13621
13622 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
13623
13624         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
13625         using REGNO of base_reg directly.
13626
13627 2010-08-05  Jie Zhang  <jie@codesourcery.com>
13628
13629         PR tree-optimization/45144
13630         * tree-sra.c (type_consists_of_records_p): Return false
13631         if the record contains bit-field.
13632
13633 2010-08-04  Richard Henderson  <rth@redhat.com>
13634
13635         * config/i386/i386.c (struct ix86_frame): Remove padding and
13636         to_allocate members.
13637         (ix86_compute_frame_layout): Don't store them.
13638         (ix86_can_use_return_insn_p): Use a more direct and more obviously
13639         correct condition for the position of the stack pointer.
13640         (ix86_expand_prologue): Compute remaining stack allocation based
13641         on the ultimate stack pointer offset.
13642         (ix86_expand_epilogue): Use more obvious expressions testing for
13643         the stack pointer already pointing to the saved registers.
13644
13645         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
13646         duplication deconstructing the frame pointer.  Simplify
13647         deallocation of the local stack frame.
13648
13649         * reg-notes.def (CFA_EXPRESSION): New.
13650         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
13651         (dwarf2out_frame_debug_cfa_expression): New.
13652         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
13653
13654         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
13655         * config/i386/i386.c (ix86_expand_prologue): Set it.
13656         (ix86_expand_epilogue): Clear it.
13657         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
13658         context, add REG_CFA_EXPRESSION notes.
13659
13660         * config/i386/i386.h (struct machine_frame_state): Rename from
13661         machine_cfa_state.  Add members tracking SP and FP regardless
13662         of the current CFA register.
13663         (ix86_cfa_state): Remove.
13664         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
13665         and sse_reg_save_offset members.
13666         (ix86_compute_frame_layout): Set them.
13667         (gen_push): Increment sp_offset too.
13668         (choose_baseaddr_len, choose_baseaddr): New.
13669         (ix86_emit_save_reg_using_mov): New.
13670         (ix86_emit_save_regs_using_mov): Use it.
13671         (ix86_emit_save_sse_regs_using_mov): Likewise.
13672         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
13673         compare vs the saved red_zone_offset.
13674         (pro_epilogue_adjust_stack): Adjust sp_offset.
13675         (ix86_adjust_stack_and_probe): Likewise.
13676         (ix86_expand_prologue): Set up, use, and validate the new
13677         frame_state_info members.  Use gen_frame_mem.
13678         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
13679         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
13680         new frame_state_info members.
13681         (ix86_emit_leave): Likewise.
13682         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
13683         out-of-range stack pointer offsets here.
13684         (ix86_emit_restore_sse_regs_using_mov): Likewise.
13685         (ix86_expand_epilogue): Use and validate the new frame_state_info
13686         members.  Break up and simplify the logic selecting the
13687         restore_regs_via_mov code path.  Ensure that there will be no
13688         out-of-range stack pointer offsets.
13689
13690         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
13691
13692         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
13693         argument name to reflect the expected tree; fix indentation.
13694         (ix86_asm_output_function_label): Output the entire 32-bit
13695         ms_hook here as bytes ...
13696         (ix86_expand_prologue): ... not here as insns.  Attach the
13697         unwind info for the ms_hook to a blockage insn.
13698         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
13699         (ix86_ms_bitfield_layout_p): Fix indentation.
13700         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
13701
13702         * config/i386/i386.c (ix86_using_red_zone): New.
13703         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
13704         ix86_expand_prologue, ix86_force_to_memory): Use it.
13705
13706         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
13707         saving the int registers.
13708
13709         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
13710         and DWARF2_UNWIND_INFO conditional compilation.
13711
13712 2010-08-04  Richard Henderson  <rth@redhat.com>
13713
13714         PR debug/45171
13715         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
13716         an is_naming_typedef_decl.
13717
13718 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
13719
13720         PR rtl-optimization/45162
13721         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
13722         * dce.c (word_dce_process_block): Likewise.
13723
13724 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
13725
13726         PR target/44583
13727         * config/ia64/constraints.md (Z): New.
13728         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
13729         (xfreg_or_signed_fp01_operand): New.
13730         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
13731         with fr_reg_or_signed_fp01_operand and constraint G with Z.
13732         (subsf3): Ditto.
13733         (*maddsf4): Ditto.
13734         (*msubsf4): Ditto.
13735         (adddf3): Ditto.
13736         (adddf3_trunc): Ditto.
13737         (subdf3): Ditto.
13738         (*subdf3_trunc): Ditto.
13739         (*madddf4): Ditto.
13740         (*madddf4_trunc): Ditto.
13741         (*msubdf4): Ditto.
13742         (*msubdf4_trunc): Ditto.
13743         (addxf3): Replace xfreg_or_fp01_operand with
13744         xfreg_or_signed_fp01_operand and constraint G with Z.
13745         (*addxf3_truncsf): Ditto.
13746         (*addxf3_truncdf): Ditto.
13747         (subxf3): Ditto.
13748         (*subxf3_truncsf): Ditto.
13749         (*subxf3_truncdf): Ditto.
13750         (*maddxf4): Ditto.
13751         (*maddxf4_truncsf): Ditto.
13752         (*maddxf4_truncdf): Ditto.
13753         (*msubxf4): Ditto.
13754         (*msubxf4_truncsf): Ditto.
13755         (*msubxf4_truncdf): Ditto.
13756
13757 2010-08-04  Richard Guenther  <rguenther@suse.de>
13758
13759         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
13760         if either alias-set is zero.
13761
13762 2010-08-04  Richard Guenther  <rguenther@suse.de>
13763
13764         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
13765         * tree-ssa-ccp.c: ... here.
13766         * tree-ssa-copy.c: ... and here.
13767         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
13768         value_range_t): Move ...
13769         * tree-vrp.c: ... here.
13770         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
13771         (substitute_and_fold): Adjust prototype.
13772         * tree-ssa-propagate.c (replace_uses_in): Adjust.
13773         (replace_phi_args_in): Likewise.
13774         (substitute_and_fold): Take callback to query lattice instead
13775         of pointer to lattice.  Replace SSA name defs with lattice
13776         values first.
13777         * tree-ssa-ccp.c (ccp_finalize): Adjust.
13778         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
13779         (get_value): New function.
13780         (fini_copy_prop): Adjust.
13781         * tree-vrp.c (vrp_finalize): Adjust.
13782
13783 2010-08-04  Richard Guenther  <rguenther@suse.de>
13784
13785         PR middle-end/45176
13786         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
13787         points-to set for original MEM_REF.
13788
13789 2010-08-04  Richard Guenther  <rguenther@suse.de>
13790
13791         * tree-ssa-ccp.c (get_constant_value): New function.
13792         (get_rhs_assign_op_for_ccp): Remove.
13793         (valueize_op): New function.
13794         (ccp_fold): Use get_constant_value and valueize_op.
13795         (fold_const_aggregate_ref): Likewise.
13796         (ccp_fold_stmt): Likewise.
13797         (visit_assignment): Simplify.
13798
13799 2010-08-04  Richard Guenther  <rguenther@suse.de>
13800
13801         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
13802         * double-int.h (double_int_ctz): Declare.
13803         * double-int.c (double_int_ctz): New function.
13804
13805 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
13806
13807         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
13808         Define.
13809         picochip_expand_movmemhi : Expand movmem pattern.
13810         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
13811         Declare.
13812         * config/picochip/picochip.md (movmemhi) : New pattern.
13813
13814 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
13815
13816         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
13817
13818 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
13819
13820         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
13821         NEG as operand of a MULT by merging it with the other operand.
13822         * combine.c (make_compound_operation): Use trunc_int_for_mode when
13823         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
13824         MULT.
13825         * config/arm/constraints.md (M): Examine only 32 bits of a
13826         HOST_WIDE_INT.
13827         * config/arm/predicates.md (power_of_two_operand): Likewise.
13828
13829 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13830
13831         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
13832         non-NOTE insns.
13833
13834 2010-08-03  Jan Hubicka  <jh@suse.cz>
13835
13836         * ipa-split.c (struct split_point): Add split_part_set_retval.
13837         (find_retval): Forward declare.
13838         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
13839         (consider_split): Compute current->split_part_set_retval.
13840         (visit_bb): Do not look into return value.
13841         (split_function): Handle !split_part_set_retval
13842
13843 2010-08-03  Martin Jambor  <mjambor@suse.cz>
13844
13845         * tree-sra.c (completely_scalarize_record): New parameter REF, create
13846         its own access->expr intead of using build_ref_for_offset.
13847
13848 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
13849
13850         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
13851         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
13852         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
13853         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
13854         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
13855         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
13856         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
13857         DEFAULT_SWITCH_TAKES_ARG.
13858         * config/rx/rx.opt (-patch=): Remove option.
13859         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
13860         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
13861         * doc/invoke.texi (RX Options): Remove -patch=.
13862         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
13863         (option_map): Remove --profile-blocks, --quiet and --silent.
13864
13865 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
13866
13867         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
13868         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
13869         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
13870         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
13871         Update calls to ix86_expand_compare and ix86_expand_branch.
13872         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
13873         ix86_expand_compare.
13874         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
13875         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
13876         Make static.
13877         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
13878         and ix86_compare_op1.  Update calls to ix86_expand_compare.
13879         (ix86_expand_int_movcc): Ditto.
13880         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
13881         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
13882         (ix86_expand_setcc): Ditto.
13883         (ix86_expand_compare): Remove prototype.
13884         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
13885         ix86_compare_op0 and ix86_compare_op1.  Update calls
13886         to ix86_expand_branch to directly pass operands[1] and operands[2].
13887         (cbranchxf4): Ditto.
13888         (cbranch<MODEF:mode>4): Ditto.
13889         (cbranchcc4): Ditto.
13890         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
13891         Update calls to ix86_expand_setcc to directly pass operands[2] and
13892         operands[3].
13893         (cstorexf4): Ditto.
13894         (cstore<MODEF:mode>4): Ditto.
13895         (cstorecc4): Ditto.
13896
13897 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
13898
13899         PR target/45063
13900         * caller-save.c (save_call_clobbered_regs): Remove regs from
13901         hard_regs_saved when they are set.
13902
13903 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
13904
13905         PR target/41089
13906         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
13907         as volatile.
13908
13909 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
13910
13911         * common.opt (ftree-loop-distribute-patterns): New.
13912         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
13913         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
13914         at -O3.
13915         * tree-data-ref.c (stores_zero_from_loop): New.
13916         * tree-data-ref.h (stores_zero_from_loop): Declared.
13917         * tree-loop-distribution.c (tree_loop_distribution): Call
13918         stores_zero_from_loop.
13919         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
13920
13921 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
13922
13923         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
13924         into account.
13925
13926         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
13927         * config/arm/arm.c (thumb1_code): New variable.
13928         (arm_override_options): Set it.
13929         (thumb1_final_prescan_insn): Keep track of condition code status.
13930         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
13931         jumps that depend on them.
13932         * config/arm/arm.h (thumb1_code): Declare variable.
13933         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
13934         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
13935         thumb1_cc_mode.
13936         (CC_STATUS_INIT): New macro.
13937         * config/arm/constraints.md (Pd): New constraint.
13938         * config/arm/predicates.md (noov_comparison_operator): New predicate.
13939         * config/arm/arm.md (is_thumb1): New define_attr.
13940         (conds): Set default to "clob" when generating Thumb1 code.
13941         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
13942         code are set.  Use two-operand assembly syntax.
13943         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
13944         pattern.
13945         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
13946         codes are set.  Use two-operand assembly syntax.
13947         (zero_extendhisi splitter): Remove constraints.
13948         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
13949         thumb1_movsf_insn): Set conds attribute as appropriate.
13950         (cbranchsi4_insn): Use condition code status from struct
13951         machine_function to determine whether the comparison can be eliminated.
13952         Discourage the alternative using high registers.
13953         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
13954         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
13955         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
13956         subsi3_cbranch): Delete.
13957         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
13958         one subtract and one cbranch insn.
13959
13960         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
13961         thumb2_movdf_soft_insn): Delete patterns.
13962         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
13963         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
13964         (pool_range, neg_pool_range): Use them to define defaults.
13965         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
13966         and allow for TARGET_32BIT.
13967
13968         PR target/40457
13969         * config/arm/arm.h (arm_regs_in_sequence): Declare.
13970         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
13971         load_multiple_sequence, store_multiple_sequence): Delete
13972         declarations.
13973         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
13974         declarations.
13975         * config/arm/ldmstm.md: New file.
13976         * config/arm/arm.c (arm_regs_in_sequence): New array.
13977         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
13978         CHECK_REGS.  All callers changed.
13979         If SAVED_ORDER is nonnull, copy the computed order into it.
13980         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
13981         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
13982         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
13983         If SAVED_ORDER is nonnull, copy the computed order into it.
13984         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
13985         like REGS.  Handle Thumb mode.
13986         (arm_gen_load_multiple_1): New function, broken out of
13987         arm_gen_load_multiple.
13988         (arm_gen_store_multiple_1): New function, broken out of
13989         arm_gen_store_multiple.
13990         (arm_gen_multiple_op): New function, with code from
13991         arm_gen_load_multiple and arm_gen_store_multiple moved here.
13992         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
13993         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
13994         changed.
13995         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
13996         * config/arm/predicates.md (commutative_binary_operator): New.
13997         (load_multiple_operation, store_multiple_operation): Handle more
13998         variants of these patterns with different starting offsets.  Handle
13999         Thumb-1.
14000         * config/arm/arm.md: Include "ldmstm.md".
14001         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
14002         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
14003         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
14004         peepholes): Delete.
14005         * config/arm/ldmstm.md: New file.
14006         * config/arm/arm-ldmstm.ml: New file.
14007
14008         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
14009         if statement which adds extra costs to frame-related expressions.
14010
14011 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14012
14013         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
14014
14015 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
14016
14017         PR target/45142
14018         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
14019         alternative 2.
14020         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
14021         split V4SI operands.
14022
14023 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
14024
14025         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14026         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
14027         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
14028         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
14029
14030 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
14031
14032         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
14033         LOCAL_INCLUDE_DIR.
14034
14035 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
14036
14037         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
14038         used in the call to optab_for_tree_code.  Fix the second
14039         is_widening_mult_p call.  Check that both unwidened operands
14040         have the same sign.
14041
14042 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
14043
14044         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
14045
14046 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
14047
14048         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14049
14050 2010-07-30  DJ Delorie  <dj@redhat.com>
14051
14052         * config/rx/predicates.md (rx_constshift_operand): New.
14053         * config/rx/rx.md (zs_cond): New.
14054         (cbranchsi4): Remove mode.
14055         (*cbranchsi4_<code>): Likewise.
14056         (*tstbranchsi4_<code>): New.
14057         (*tstbranchsi4r_<code>): New.
14058         (*tstbranchsi4m_eq): New.
14059         (*tstbranchsi4m_ne): New.
14060         (cbranchsf4): Remove mode.
14061         (*cbranchsf4_<code>): Likewise.
14062
14063 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
14064
14065         * rtlanal.c (simplify_subreg_regno): Don't treat
14066         HARD_FRAME_POINTER_REGNUM specially.
14067
14068 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
14069
14070         * common.opt (-G): Don't define option here.
14071         * config/g.opt: New.
14072         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
14073         rs6000/powerpc and score targets.
14074         * opts.c (common_handle_option): Don't handle -G here.
14075         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
14076         * config/frv/frv.c (frv_handle_option): Handle -G.
14077         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
14078         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
14079         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
14080         * config/mips/mips.c (mips_handle_option): Handle -G.
14081         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
14082         * config/score/score.c (score_handle_option): Handle -G.
14083
14084 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
14085
14086         * config/mmix/mmix.c: Include basic-block.h.
14087
14088 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
14089
14090         PR debug/45055
14091         PR rtl-optimization/45137
14092         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
14093         prototypes.
14094         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
14095         New functions.
14096         * combine.c (next_nonnote_nondebug_insn): Removed.
14097         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
14098         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
14099         * sched-deps.c (sched_analyze_insn): Likewise.
14100         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
14101         * rtlanal.c (canonicalize_condition): Likewise.
14102         * postreload.c (reload_combine_recognize_pattern): Likewise.
14103         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
14104
14105 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
14106
14107         * config/i386/i386.md (int_cond): Remove code iterator.
14108         (fp_cond): Ditto.
14109         (cbranch<mode>4): Use ordered_comparison_operator predicate
14110         for operator0.
14111         (cstore<mode>4): Ditto for operator1.
14112         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
14113         (add<mode>cc): ditto.
14114
14115 2010-07-30  Richard Guenther  <rguenther@suse.de>
14116
14117         PR middle-end/45141
14118         * expr.c (expand_expr_real_1): Check for not handled base address.
14119
14120 2010-07-30  Richard Guenther  <rguenther@suse.de>
14121
14122         * ipa-prop.c (ipa_modify_formal_parameters): Use
14123         build_distinct_type_copy.
14124
14125 2010-07-30  Anthony Green  <green@moxielogic.com>
14126
14127         * config/moxie/rtems.h: New file.
14128         * config.gcc: Add moxie-rtems support.
14129
14130 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
14131
14132         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
14133         df flags as in run_fast_df_dce.
14134
14135 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
14136
14137         Revert:
14138         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14139
14140         * rtl.def (NOTE): Swap operands 4 and 5.
14141         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
14142         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
14143         Adjust accordingly.
14144         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
14145
14146 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
14147
14148         PR debug/45110
14149         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
14150         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
14151         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
14152         formal parameters.
14153         (gen_decl_die): Change return type to dw_die_ref, return what
14154         gen_formal_parameter_die returned.
14155
14156 2010-07-29  Martin Jambor  <mjambor@suse.cz>
14157
14158         * dbgcnt.def (eipa_sra): New counter.
14159         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
14160
14161 2010-07-29  Xinliang David Li  <davidxl@google.com>
14162
14163         PR bootstrap/45119
14164         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
14165         in revision 162652.
14166
14167 2010-07-29  Richard Guenther  <rguenther@suse.de>
14168
14169         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
14170         (TV_TREE_STORE_CCP): Likewise.
14171         (TV_TREE_REDPHI): Likewise.
14172
14173 2010-07-29  Richard Guenther  <rguenther@suse.de>
14174
14175         * double-int.h (double_int_and_not): New function.
14176         * combine.c (try_combine): Use it.
14177         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
14178
14179 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
14180
14181         PR rtl-optimization/42575
14182         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
14183         Argument AU removed.  All callers changed.  Ignore artificial refs.
14184         Use return value of df_word_lr_simulate_defs to decide whether an insn
14185         is necessary.
14186         (fast_dce): Rename arg to WORD_LEVEL.
14187         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
14188         static.
14189         (pass_fast_rtl_byte_dce): Delete.
14190         * dce.h (run_word_dce): Declare.
14191         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
14192         All callers changed.  Simplify code to only deal with two-word regs.
14193         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
14194         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
14195         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
14196         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
14197         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
14198         (df_word_lr_mark_ref): Declare.
14199         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
14200         df_word_lr_simulate_uses): Declare or rename from byte variants.
14201         (df_byte_lr_simulate_artificial_refs_at_top,
14202         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
14203         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
14204         declarations.
14205         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
14206         (enum df_mm): Delete.
14207         * df-byte-scan.c: Delete file.
14208         * df-problems.c (df_word_lr_problem_data): Renamed from
14209         df_byte_lr_problem_data, all members deleted except for
14210         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
14211         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
14212         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
14213         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
14214         df_byte_lr_confluence_0): Delete functions.
14215         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
14216         callers changed.
14217         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
14218         Don't initialize members that were deleted, don't try to discover data
14219         about registers.  Ignore hard regs.
14220         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
14221         (df_word_lr_mark_ref): New function.
14222         (df_word_lr_bb_local_compute): Renamed from
14223         df_byte_bb_lr_local_compute; all callers changed.  Use
14224         df_word_lr_mark_ref.  Assert that artificial refs don't include
14225         pseudos.  Ignore hard registers.
14226         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
14227         Assert that exit block uses don't contain pseudos.
14228         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
14229         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
14230         callers changed.  Ignore hard regs.
14231         (df_word_lr_transfer_function): Renamed from
14232         df_byte_lr_transfer_function; all callers changed.
14233         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
14234         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
14235         changed.
14236         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
14237         callers changed.
14238         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
14239         confluence operator 0 set to NULL.
14240         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
14241         callers changed.
14242         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
14243         Return bool, true if bitmap changed or insn otherwise necessary.
14244         All callers changed.  Simplify using df_word_lr_mark_ref.
14245         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
14246         all callers changed.  Simplify using df_word_lr_mark_ref.
14247         * lower-subreg.c: Include "dce.h"
14248         (decompose_multiword_subregs): Call run_word_dce if df available.
14249         * Makefile.in (lower-subreg.o): Adjust dependencies.
14250         (df-byte-scan.o): Delete.
14251         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
14252
14253 2010-07-29  Richard Guenther  <rguenther@suse.de>
14254
14255         * tree.c (build_vector): Assert that the vector constant
14256         has enough elements.
14257         (build_vector_from_ctor): Pad with trailing zeros.
14258
14259 2010-07-29  Richard Guenther  <rguenther@suse.de>
14260
14261         PR tree-optimization/45120
14262         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14263         Handle offset in DEREFs properly.
14264         (get_constraint_for_1): Handle MEM_REF offset properly.
14265
14266 2010-07-29  Richard Guenther  <rguenther@suse.de>
14267
14268         PR middle-end/45034
14269         * convert.c (convert_to_integer): Always use an unsigned
14270         type for narrowed negate and bitwise not.
14271
14272 2010-07-29  Ira Rosen  <irar@il.ibm.com>
14273
14274         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
14275         to outer loop when creating reduction epilogue for double reduction,
14276         and switch back to the inner loop when updating the phi nodes.
14277         Update uses of outer loop exit phi nodes in double reduction (instead
14278         of uses of reduction).
14279
14280 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
14281
14282         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
14283         popcount on power7 and parity on power6 systems.
14284         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
14285         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
14286         instructions.
14287
14288         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
14289         (UNSPEC_PARITY): Ditto.
14290         (SFDF): New iterator for SF/DF.
14291         (rreg2): New mode attribute for floating register constraint.
14292         (TARGET_FLOAT): New mode attribute for whether single/double float
14293         is supported.
14294         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
14295         pattern.
14296         (parity<mode>2_cmpb): New insn for parity on power6 and newer
14297         machines.
14298         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
14299         pattern.  Add support for fcpsgn instruction added in power6.
14300         (copysignsf3): Delete.
14301         (copysigndf3): Delete.
14302         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
14303         instead of if_then_else in RTL to avoid problems with -0.
14304
14305         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
14306         of if_then_else to mirror scalar code.
14307         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
14308         rs6000.md.
14309
14310         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
14311         instead of if_then_else.
14312
14313 2010-07-28  Xinliang David Li  <davidxl@google.com>
14314
14315         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
14316         (dump_cand): Dump var_before/after.
14317         (htab_inv_expr_eq): New function.
14318         (htab_inv_expr_hash): New function.
14319         (tree_ssa_iv_optimize_init): Support pseudo invariants.
14320         (add_candidate_1): consider base type precision.
14321         (set_use_iv_cost): New parameter.
14322         (adjust_setup_cost): Use profile information.
14323         (get_address_cost): Do not hard code width in computing address
14324         offset limits.
14325         (compare_aff_trees): New function.
14326         (get_loop_invariant_expr_id): New function.
14327         (get_computation_cost_at): New parameter and use profile information.
14328         (get_computation_cost): New parameter.
14329         (determine_use_iv_cost_generic): Pass new parameter.
14330         (determine_use_iv_cost_address): Ditto.
14331         (determine_use_iv_cost_condition): Ditto.
14332         (autoinc_possible_for_pair): Ditto.
14333         (determine_use_iv_costs): More dumps.
14334         (iv_ca_get_num_inv_exprs): New function.
14335         (iv_ca_recount_cost): Consider loop invariants in register pressure
14336         cost.
14337         (iv_ca_add_use): New parameter.
14338         (iv_ca_dump): Better dumping.
14339         (iv_ca_extend): New parameter.
14340         (try_add_cand_for): Attempt to get better partial solution.
14341         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
14342         (create_new-ivs): More dumps.
14343         (rewrite_use_compare): Ditto.
14344         (free_loop_data): More cleanup.
14345         (treee_ssa_iv_optimize_finalize): Ditto.
14346
14347 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
14348
14349         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
14350         * config/i386/i386.c (ix86_profile_before_prologue): New.
14351         (override_options): Add special handling for -mfentry.
14352         (ix86_function_regparm): Likewise.
14353         (ix86_function_sseregparm): Likewise.
14354         (ix86_frame_pointer_required): Likewise.
14355         (ix86_expand_prologue): Check for ms_hook_prologue.
14356         (x86_function_profiler): Adjust mcount output.
14357         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
14358         * config/i386/i386.opt (mfentry): New.
14359         * doc/invoke.texi (mfentry): Add documentation.
14360         * doc/tm.texi: Regenerated..
14361         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
14362         * final.c (final_start_function): Replace macro
14363         PROFILE_BEFORE_PROLOGUE by target hook.
14364         * function.c (thread_prologue_and_epilogue_insns): Likewise.
14365         * target.def (profile_before_prologue): New hook.
14366         * targhooks.c (default_profile_before_prologue): New.
14367         * targhooks.h (default_profile_before_prologue): New.
14368
14369 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
14370
14371         PR debug/45105
14372         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
14373
14374         PR debug/45103
14375         * dwarf2out.c (dwarf2out_var_location): Always consider
14376         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
14377
14378 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14379
14380         PR rtl-optimization/45107
14381         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
14382
14383 2010-07-28  Richard Guenther  <rguenther@suse.de>
14384
14385         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
14386         (set_lattice_value): Do not query an old default value.
14387         (get_value_for_expr): New function.  Properly canonicalize
14388         float values.
14389         (ccp_visit_phi_node): Use it.
14390
14391 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
14392
14393         * config/arm/arm.c (arm_pcs_default): Remove static.
14394         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
14395         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
14396         (arm_pcs_default): Declare.
14397
14398 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
14399
14400         * config/rs6000/rs6000.c (rs6000_override_options):
14401         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
14402         ... to darwin_rs6000_override_options.
14403         (rs6000_return_in_memory): Update preceding comment for darwin
14404         64 bit ABI.  Use TARGET_MACHO inline.
14405         (rs6000_darwin64_struct_check_p): New.
14406         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
14407         (function_arg): Likewise.
14408         (rs6000_arg_partial_bytes): Likewise.
14409         (rs6000_function_value): Likewise.
14410
14411 2010-07-28  Andi Kleen  <ak@linux.intel.com>
14412
14413         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
14414
14415 2010-07-28  Richard Guenther  <rguenther@suse.de>
14416
14417         PR middle-end/44903
14418         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
14419         targets try harder to not generate unaligned accesses.
14420
14421 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
14422
14423         PR rtl-optimization/45101
14424         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
14425         for gcse-las.
14426
14427 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14428
14429         PR tree-optimization/44885
14430         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
14431         with non-aliased component.
14432
14433 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
14434
14435         * config/darwin-driver.c (SWITCH_TAKES_ARG,
14436         WORD_SWITCH_TAKES_ARG): Remove.
14437         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
14438         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
14439         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
14440         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
14441         definitions from gcc.c.
14442         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
14443         defaults.h.
14444         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
14445         Move to defaults.h.
14446         * opts-common.c: Include tm.h.
14447         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
14448         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
14449         Handle more than one argument.  Set canonical_option_num_elements.
14450         (decode_cmdline_options_to_array): Set
14451         canonical_option_num_elements and trailing elements of
14452         canonical_option.
14453         * opts.h (struct cl_decoded_option): Allow four elements in
14454         canonical_option.  Add field canonical_option_num_elements.
14455         * Makefile.in (opts-common.o): Update dependencies.
14456
14457 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
14458
14459         PR middle-end/44790
14460         PR middle-end/44993
14461         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
14462         sure the base has address_mode before adding the offset.
14463
14464 2010-07-27  Xinliang David Li  <davidxl@google.com>
14465
14466         * tree-flow.h (create_mem_ref): Add one new parameter.
14467         * tree-ssa-address.c (create_mem_ref): New parameter.
14468         (addr_to_parts): Ditto.
14469         (move_variant_to_index): New function.
14470         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
14471
14472 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14473
14474         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
14475         4 and 5.
14476         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
14477         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
14478         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
14479         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
14480         CODE_LABELs and NOTEs.
14481         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
14482         * combine.c (try_combine): Likewise.
14483         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14484         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
14485
14486 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14487
14488         * coretypes.h (struct cl_option_handlers): Declare.
14489         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
14490         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
14491         * langhooks-def.h (lhd_handle_option): Declare.
14492         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
14493         * langhooks.c (lhd_handle_option): New.
14494         * langhooks.h (struct lang_hooks): Update prototype and return
14495         value type of handle_option hook.
14496         * optc-gen.awk: Generate target_flags_explicit definition for the
14497         driver.
14498         * opts-common.c: Include diagnostic.h.
14499         (handle_option): Move from opts.c.  Update prototype and return
14500         value type.  Use handlers structure.
14501         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
14502         handlers structure.
14503         (set_option): Move from opts.c.
14504         * opts.c (common_handle_option): Update prototype and return value
14505         type.  Update calls to handle_option and enable_warning_as_error.
14506         (unknown_option_callback, post_handling_callback,
14507         lang_handle_option, target_handle_option): New.
14508         (handle_option, read_cmdline_option): Move to opts-common.c.
14509         (read_cmdline_options): Update prototype.  Update call to
14510         read_cmdline_option.
14511         (decode_options): Initialize and use handlers structure.
14512         (set_option): Move to opts-common.c.
14513         (enable_warning_as_error): Update prototype.  Update call to
14514         handle_option.
14515         * opts.h (struct cl_option_handler_func, struct
14516         cl_option_handlers): New.
14517         (handle_option, enable_warning_as_error): Update prototypes.
14518         (read_cmdline_option): Declare.
14519         * Makefile.in (opts-common.o): Update dependencies.
14520
14521 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14522
14523         * config/arm/arm.c (params.h): Include.
14524         (arm_override_options): Tune gcse-unrestricted-cost.
14525         * config/arm/t-arm (arm.o): Define dependencies.
14526
14527 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14528
14529         PR target/42495
14530         PR middle-end/42574
14531         * basic-block.h (get_dominated_to_depth): Declare.
14532         * dominance.c (get_dominated_to_depth): New function, use
14533         get_all_dominated_blocks as a base.
14534         (get_all_dominated_blocks): Use get_dominated_to_depth.
14535
14536         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
14537         (hoist_exprs): Remove.
14538         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
14539         (compute_code_hoist_vbeinout): Add debug print outs.
14540         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
14541
14542         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
14543         quadratic behavior.
14544         * params.h (MAX_HOIST_DEPTH): New macro.
14545         * doc/invoke.texi (max-hoist-depth): Document.
14546
14547 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14548
14549         PR rtl-optimization/40956
14550         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
14551         constants.
14552
14553 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14554
14555         PR target/42495
14556         PR middle-end/42574
14557         * config/arm/arm.c (legitimize_pic_address): Use
14558         gen_calculate_pic_address pattern to emit calculation of PIC address.
14559         (will_be_in_index_register): New function.
14560         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
14561         (thumb1_legitimate_address_p): Use it provided !strict_p.
14562         * config/arm/arm.md (calculate_pic_address): New expand and split.
14563
14564 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14565
14566         PR target/42495
14567         PR middle-end/42574
14568         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
14569         * config/arm/arm.md (define_split "J", define_split "K"): Make
14570         IRA/reload friendly.
14571
14572 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14573
14574         * gcse.c (insert_insn_end_basic_block): Update signature, remove
14575         unused checks.
14576         (pre_edge_insert, hoist_code): Update.
14577
14578 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14579
14580         PR target/42495
14581         PR middle-end/42574
14582         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
14583
14584 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14585
14586         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
14587
14588 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14589
14590         PR rtl-optimization/40956
14591         PR target/42495
14592         PR middle-end/42574
14593         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
14594         for hoisting.
14595         (hoist_code): Count occurences in current block too.
14596
14597 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14598
14599         * gcse.c (struct expr:max_distance): New field.
14600         (doing_code_hoisting_p): New static variable.
14601         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
14602         simple expressions, don't change behavior for PRE.  Set max_distance.
14603         (insert_expr_in_table): Set new max_distance field.
14604         (hash_scan_set): Update.
14605         (hoist_expr_reaches_here_p): Stop search after max_distance
14606         instructions.
14607         (find_occr_in_bb): New static function.  Use it in ...
14608         (hoist_code): Calculate sizes of basic block before any changes are
14609         done.  Pass max_distance to hoist_expr_reaches_here_p.
14610         (one_code_hoisting_pass): Set doing_code_hoisting_p.
14611
14612         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
14613         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
14614         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
14615         macros.
14616         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
14617         Document.
14618
14619 2010-07-27  Jeff Law  <law@redhat.com>
14620             Maxim Kuvyrkov  <maxim@codesourcery.com>
14621
14622         * gcse.c (compute_transpout, transpout): Remove, move logic
14623         to prune_expressions.
14624         (compute_pre_data): Move pruning of trapping expressions ...
14625         (prune_expressions): ... here.  New static function.
14626         (compute_code_hoist_data): Use it.
14627         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
14628
14629 2010-07-27  Xinliang David Li  <davidxl@google.com>
14630
14631         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
14632         (rewrite_use_address): Adjust iv update position when needed.
14633
14634 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
14635
14636         * dbgcnt.def (hoist_insn): New debug counter.
14637         * gcse.c (hoist_code): Use it.
14638
14639 2010-07-27  Xinliang David Li  <davidxl@google.com>
14640
14641         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
14642         (niter_for_single_dom_exit): Passes additional parameter.
14643         (iv_period): Fix comments.
14644         (may_eliminate_iv): Handles multiple exit loops properly.
14645         (free_tree_niter_desc): New function.
14646         (free_loop_data): Frees up loop iteration descriptors.
14647
14648 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14649
14650         PR target/44542
14651         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
14652         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
14653         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
14654         (expand_one_var): Don't consider DECL_ALIGN for variables for
14655         which expand_one_stack_var_at has been already called.
14656
14657         PR testsuite/44701
14658         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
14659         constraints on IA-64.
14660
14661 2010-07-27  Jie Zhang  <jie@codesourcery.com>
14662
14663         PR target/44290
14664         Revert:
14665         2010-07-23  Jie Zhang  <jie@codesourcery.com>
14666
14667         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
14668         false if ! tree_versionable_function_p.
14669
14670 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14671
14672         * dwarf2out.c (add_data_member_location_attribute): Use
14673         add_AT_unsigned instead of add_AT_int if offset is non-negative.
14674
14675 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14676
14677         * postreload.c (try_replace_in_use): New static function.
14678         (reload_combine_recognize_const_pattern): Use it here.  Allow
14679         substituting into a final add insn, and substituting into a memory
14680         reference in an insn that sets the reg.
14681
14682 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14683
14684         * common.opt (o): Add MissingArgError.
14685         * doc/options.texi (MissingArgError): Document.
14686         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
14687         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
14688         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
14689         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
14690         * langhooks.h (struct lang_hooks): Remove missing_argument.
14691         * optc-gen.awk: Handle MissingArgError and output new structure
14692         field initializers.
14693         * opts.c (read_cmdline_option): Use missing_argument_error field
14694         instead of missing_argument langhook.
14695         * opts.h (struct cl_option): Add missing_argument_error field.
14696         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
14697
14698 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
14699
14700         PR target/29090
14701         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
14702         Darwin64 ABI, for zero-sized objects.
14703
14704 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
14705
14706         PR target/35491
14707         PR target/29090
14708
14709         Merge from Apple local 4.2.1.
14710         2005-05-11  Stan Shebs  <shebs@apple.com>
14711         Fix 64-bit varargs for Darwin (Radar 4028089).
14712         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
14713         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
14714         Add argument, add case for 8-byte register half-filled with a float.
14715         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
14716         single-precision floats specially.
14717
14718 2010-07-27  Ira Rosen  <irar@il.ibm.com>
14719
14720         PR tree-optimization/44152
14721         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
14722         complex numbers for further check.
14723         (vect_supported_load_permutation_p): Check nodes with
14724         complex numbers.
14725
14726 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14727
14728         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
14729         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
14730         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
14731         (LANG_HOOKS_INITIALIZER): Add new hooks.
14732         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
14733         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
14734         and complain_wrong_lang_p.  Update init_options prototype.
14735         * c-objc-common.c (c_initialize_diagnostics): First call
14736         c_common_initialize_diagnostics.
14737         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
14738         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
14739         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
14740         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
14741         (hook_uint_void_0): New.
14742         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
14743         (hook_uint_void_0): New.
14744         * opts-common.c (decode_cmdline_option,
14745         decode_cmdline_options_to_array): Also fill in canonical_option field.
14746         * opts.c (complain_wrong_lang): Use langhook to determine whether
14747         to complain instead of special-casing LTO.
14748         (decode_options): Separate lang_mask determination with
14749         option_lang_mask hook from call of init_options hook.
14750         * opts.h (struct cl_decoded_option): Add canonical_option.
14751
14752 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14753
14754         PR tree-optimization/45083
14755         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
14756
14757 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14758
14759         * postreload.c (reload_combine_recognize_const_pattern): Move test
14760         for limiting the insn movement to the right scope.
14761
14762         PR rtl-optimization/45051
14763         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
14764         than reg_mentioned_p.
14765
14766 2010-07-26  Richard Henderson  <rth@redhat.com>
14767
14768         PR target/44132
14769         * tree-emutls.c: New file.
14770         * Makefile.in (OBJS-common): Add it.
14771         * tree-pass.h (pass_ipa_lower_emutls): Declare.
14772         * passes.c (init_optimization_passes): Add it.
14773
14774         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
14775         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
14776         * expr.c (emutls_var_address): Delete.
14777         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
14778         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
14779         (emutls_finish): Delete.
14780         * toplev.c (compile_file): Don't call it.
14781         * tree.h (emutls_decl): Delete.
14782         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
14783         (emutls_finish, emutls_finalize_control_var): Delete.
14784         (emutls_object_type): Move to tree-emutls.c.
14785         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
14786         default_emutls_var_fields, get_emutls_object_type,
14787         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
14788         default_emutls_var_init): Likewise.
14789         (get_variable_section): Don't special case emutls.
14790         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
14791         default_elf_select_section, default_unique_section,
14792         default_encode_section_info): Likewise.
14793         * varpool.c (decide_is_variable_needed): Likewise.
14794         * gimple-iterator.c (update_call_edge_frequencies): New
14795         (gsi_insert_on_edge_immediate): Use it.
14796         (gsi_insert_seq_on_edge_immediate): Likewise.
14797         (gsi_commit_one_edge_insert): Likewise.
14798
14799         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
14800         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
14801         (x86_64_elf_unique_section): Likewise.
14802
14803 2010-07-26  Jan Hubicka  <jh@suse.cz>
14804
14805         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
14806         GTY((skip)).
14807
14808 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
14809
14810         * target.def (output_source_filename): New hook.
14811         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
14812         * doc/tm.texi: Regenerate.
14813         * toplev.c (output_file_directive) Remove function.
14814         * toplev.h (output_file_directive) Remove.
14815         * output.h (default_asm_output_source_filename,
14816         output_file_directive): Declare.
14817         * varasm.h (default_asm_output_source_filename,
14818         output_file_directive): New functions.
14819
14820         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14821         * config/mips/mips-protos.h (mips_output_filename): Remove.
14822         * config/mips/mips.c (mips_output_filename): Make Static.
14823         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
14824
14825 2010-07-26  Richard Guenther  <rguenther@suse.de>
14826
14827         PR tree-optimization/43784
14828         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
14829         if the destination is used by the call.
14830
14831 2010-07-26  Richard Guenther  <rguenther@suse.de>
14832
14833         PR middle-end/45073
14834         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
14835         SSA updating on being in SSA form.
14836
14837 2010-07-26  Richard Guenther  <rguenther@suse.de>
14838
14839         PR middle-end/45056
14840         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
14841
14842 2010-07-26  Richard Guenther  <rguenther@suse.de>
14843
14844         PR tree-optimization/45071
14845         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
14846         adjust op->opcode.
14847
14848 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
14849
14850         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
14851         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
14852         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
14853         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
14854         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
14855         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
14856         save_r31, return_r31, save_interrupt, return_interrupt,
14857         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
14858         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
14859         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
14860         new ABI requirements.
14861         (save_r6_r9, L_callt_save_r6_r9): Remove.
14862         * config/v850/predicates.md (even_reg_operand, disp23_operand,
14863         const_float_1_operand const_float_0_operand): New Predicates.
14864         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
14865         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
14866         * config/v850/t-v850: Update multilibs for new target variants.
14867         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
14868         * config/v850/t-v850e: Likewise.
14869         * config/v850/v850.c (v850_issue_rate): New.
14870         (v850_strict_argument_naming): New.
14871         (function_arg): Modify to generate a different ABI.
14872         (print_operand): Update case 'z' to support float modes.
14873         (output_move_single): Modify to generate appropriate and better
14874         assembly.
14875         (v850_float_z_comparison_operator, v850_select_cc_mode,
14876         v850_float_nz_comparison_operator,  v850_gen_float_compare,
14877         v850_gen_compare): New functions to support comparison of float values.
14878         (ep_memory_offset): Add support for V850E2 targets.
14879         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
14880         (INTERRUPT_REGPARM_NUM): Remove.
14881         (compute_register_save_size): Add extra case to save/restore long call.
14882         (use_prolog_function): New function to support prologue.
14883         (expand_prologue): Add support for V850E2 targets and modified
14884         as per the current ABI requirements.
14885         (expand_epilogue): Likewise.
14886         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
14887         (construct_save_jarl): Likewise.
14888         (construct_dispose_instruction): Update as per the current ABI
14889         requirements.
14890         (construct_prepare_instruction): Likewise.
14891         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
14892         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
14893         (CPP_SPEC): Updated to support v850e2 targets.
14894         (STRICT_ALIGNMENT): Modified.
14895         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
14896         (FIXED_REGISTERS): Likewise.
14897         (CALL_USED_REGISTERS): Likewise.
14898         (CONDITIONAL_REGISTER_USAGE): Updated.
14899         (HARD_REGNO_MODE_OK): Updated.
14900         (reg_class): Updated to add even registers.
14901         (REG_CLASS_NAMES): Likewise.
14902         (REG_CLASS_CONTENTS): Likewise.
14903         (REGNO_REG_CLASS): Updated for CC registers.
14904         (REG_CLASS_FROM_LETTER): Added support for even registers.
14905         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
14906         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
14907         ARG_POINTER_REGNUM): Updated.
14908         (FUNCTION_ARG_ADVANCE): Define.
14909         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
14910         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
14911         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
14912         (GO_IF_LEGITIMATE_ADDRESS): Updated.
14913         (SELECT_CC_MODE): Define.
14914         (REGISTER_NAMES): Updated to add psw and fcc registers.
14915         (ADDITIONAL_REGISTER_NAMES): Updated.
14916         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
14917         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
14918         * config/v850/v850.md (define_constants): Define new constants.
14919         (type): Update store,bit1,macc,div,fpu and single attributes.
14920         (cpu): New attribute.
14921         (cc): Add set_z attribute.
14922         (unsign23byte_load, sign23byte_load, unsign23hword_load,
14923         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
14924         23word_store): New instructions for 23-bit displacement load and store.
14925         (movqi_internal, movhi_internal): Update the attributes.
14926         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
14927         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
14928         the attributes.
14929         (v850_tst1): Modified using CC_REGNUM.
14930         (tstsi): Remove.
14931         (cmpsi): Modified as define_expand from define_insn.
14932         (cmpsi_insn, cmpsf, cmpdf): New instructions.
14933         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
14934         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
14935         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
14936         one_cmplsi2): Clobber the CC_REGNUM register.
14937         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
14938         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
14939         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
14940         (setf_insn, set_z_insn, set_nz_insn): New instructions for
14941         v850e2v3 target.
14942         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
14943         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
14944         targets.
14945         (sasf_1, sasf_2): Remove.
14946         (sasf): New instruction.
14947         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
14948         targets. CC_REGNUM register is clobbered and attributes are
14949         updated.
14950         (branch_z_normal, branch_z_invert, branch_nz_normal,
14951         branch_nz_invert): New branch related instructions.
14952         (jump): Updated the attributes.
14953         (switch): Update to support new targets. CC_REGNUM register is
14954         clobbered and attributes are updated.
14955         (call_internal_short, call_internal_long, call_value_internal_short,
14956         call_value_internal_long): Updated the attributes.
14957         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
14958         clobbered and attributes are updated.
14959         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
14960         Update to support new targets. CC_REGNUM register is clobbered.
14961         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
14962         instructions.
14963         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
14964         are updated.
14965         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
14966         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
14967         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
14968         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
14969         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
14970         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
14971         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
14972         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
14973         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
14974         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
14975         point instructions defined for V850e2v3 target.
14976         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
14977         Add support for V850E2 targets and CC_REGNUM register is clobbered.
14978         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
14979         support for new targets.
14980         * config/v850/v850-modes.def: New file.
14981         * config/v850/v850.opt(mstrict-align): Remove.
14982         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
14983         mv850e2v3): New command line options for V850.
14984         * config.gcc: Update the newly added files.
14985         * doc/invoke.texi: Update the newly added command line options for
14986         V850 target.
14987
14988 2010-07-26  Richard Guenther  <rguenther@suse.de>
14989
14990         PR tree-optimization/45052
14991         * ipa-pure-const.c (check_stmt): Check volatileness.
14992
14993 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14994
14995         PR target/44707
14996         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
14997         * config/sparc/sparc.c: Include reload.h.
14998         (legitimize_tls_address): Rename into...
14999         (sparc_legitimize_tls_address): ...this.
15000         (legitimize_pic_address): Rename into...
15001         (sparc_legitimize_pic_address): ...this.
15002         (sparc_expand_move): Adjust to above renaming.
15003         (sparc_tls_referenced_p): Likewise.
15004         (sparc_legitimize_tls_address): Likewise.
15005         (sparc_legitimize_pic_address): Likewise.
15006         (sparc_legitimize_address): Likewise.
15007         (sparc_output_mi_thunk): Likewise.
15008         (sparc_legitimize_reload_address): New global function.  Recognize
15009         (lo_sum (high ...) ...) patterns generated by earlier passes.
15010         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
15011
15012 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
15013
15014         PR target/44484
15015         * config/sparc/predicates.md (memory_reg_operand): Delete.
15016         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
15017         (*sync_compare_and_swap): Encode the address form in the pattern.
15018         (*sync_compare_and_swapdi_v8plus): Likewise.
15019
15020 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
15021
15022         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
15023         Streamline paragraph on compatibility with the system compiler.
15024
15025 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
15026
15027         PR middle-end/45035
15028         * alias.c (true_dependence_1): Fix thinko in merge of old
15029         true_dependence and canon_true_dependence.
15030
15031 2010-07-23  Jan Hubicka  <jh@suse.cz>
15032
15033         * lto-streamer-out.c (write_symbol): Fix visibilities of external
15034         references.
15035
15036 2010-07-23  Le-Chun Wu  <lcwu@google.com>
15037
15038         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
15039         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
15040         and an unnecessary assignment.
15041         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
15042         self-assign warning.
15043         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
15044         unnecessary self-init.
15045
15046 2010-07-23  Richard Guenther  <rguenther@suse.de>
15047
15048         PR lto/43071
15049         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
15050         for -flto and -fwhopr.
15051
15052 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
15053
15054         PR target/41943
15055         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
15056         (stmp-int-hdrs): Prefix/postfix headers by include_next.
15057         * config.gcc (user_headers_inc_next_pre): New.
15058         (user_headers_inc_next_post): Likewise.
15059         (*-w64-mingw*): Use for float.h post-fixing, and for
15060         stddef.h/stdarg.h pre-fixing by include_next.
15061         * configure.ac (user_headers_inc_next_post): New.
15062         (user_headers_inc_next_pre): New.
15063         * configure: Regenerated.
15064
15065 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15066
15067         * configure.ac: Don't disable TLS on Solaris 8/9 by default
15068         Set tga_func for Solaris 2/x86 resp. SPARC.
15069         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
15070         (LIB_THREAD_LDFLAGS_SPEC): Define.
15071         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
15072         * configure: Regenerate.
15073         * config.in: Regenerate.
15074         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
15075         -pthread, -threads, LIB_TLS_SPEC with -pthread.
15076         * doc/install.texi (Specific, *-*-solaris2*): Document use of
15077         alternate thread libraries on Solaris 8.
15078         Document TLS patch requirements.
15079         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
15080         Document tls.
15081
15082         PR target/18788
15083         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
15084         -shared.
15085
15086 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
15087
15088         * tree.h (struct tree_base): Add nameless_flag bitfield.
15089         (TYPE_NAMELESS, DECL_NAMELESS): Define.
15090         * omp-low.c (create_omp_child_function, scan_omp_parallel,
15091         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
15092         DECL_ARTIFICIAL where needed.
15093         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
15094         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
15095         has DECL_NAMELESS set.
15096
15097 2010-07-23  Martin Jambor  <mjambor@suse.cz>
15098
15099         PR tree-optimization/44915
15100         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
15101         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
15102         (analyze_function): Likewise.
15103
15104 2010-07-23  Martin Jambor  <mjambor@suse.cz>
15105
15106         PR tree-optimization/44914
15107         * tree-sra.c (sra_modify_function_body): Return true if CFG was
15108         changed, add purging dead eh edges.
15109         (ipa_sra_modify_function_body): Return true if CFG was changed,
15110         simplify purging dead eh edges.
15111         (modify_function): Return true if CFG was changed.
15112         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
15113         was changed.
15114         (ipa_early_sra): Likewise.
15115
15116 2010-07-23  Jie Zhang  <jie@codesourcery.com>
15117
15118         PR target/44290
15119         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
15120         if "naked".
15121         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
15122         false if ! tree_versionable_function_p.
15123
15124 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
15125
15126         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
15127         * ipa-pure-const.c (special_builtlin_state): Remove
15128         BUILT_IN_ARGS_INFO case.
15129         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
15130         * builtins.c (expand_builtin): Likewise.
15131         (expand_builtin_args_info): Remove.
15132         * doc/tm.texi (__builtin_args_info): Remove.
15133         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
15134         * doc/tm.text.in: Likewise.
15135
15136 2010-07-23  Richard Guenther  <rguenther@suse.de>
15137
15138         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
15139         (lto_symtab_merge_decls_2): Likewise.
15140         * tree-ssa.c (useless_type_conversion_p): Likewise.
15141         * lto-streamer-in.c (input_gimple_stmt): Likewise.
15142         * gimple.c (gtc_visited2, gtc_ob2): Remove.
15143         (struct type_pair_d): Make same_p an array indexed by mode.
15144         Update comment.
15145         (lookup_type_pair): Update initialization.
15146         (struct sccs): Adjust same_p type.
15147         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
15148         Adjust.
15149         (print_gimple_types_stats): Likewise.
15150         * gimple.h (enum gtc_mode): New.
15151         (gimple_types_compatible_p): Adjust prototype.
15152
15153 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
15154
15155         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
15156         again after processing insn.
15157
15158 2010-07-23  Jie Zhang  <jie@codesourcery.com>
15159
15160         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
15161         proper words when !tree_versionable_function_p.
15162
15163 2010-07-23  Richard Guenther  <rguenther@suse.de>
15164
15165         PR tree-optimization/45037
15166         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
15167
15168 2010-07-23  Jie Zhang  <jie@codesourcery.com>
15169
15170         * doc/extend.texi: Remove IP2K from the description of naked attribute.
15171         Add MCORE instead.
15172
15173 2010-07-10  Andi Kleen  <ak@linux.intel.com>
15174
15175         PR lto/44992
15176         * lto-opts.c (lto_write_options): Add NULL file_data argument to
15177         lto_get_section_name.
15178         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15179         * lto-streamer-out.c (produce_asm): Likewise.
15180         (copy_function): Likewise.
15181         (produce_symtab): Likewise.
15182         (produce_asm_for_decls): Likewise.
15183         * lto-streamer.c (lto_get_section_name): Add file_data argument.
15184         Rewrite to add random postfix to LTO sections.
15185         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
15186         (lto_get_section_name): Add file_data argument to prototype.
15187
15188 2010-07-10  Andi Kleen  <ak@linux.intel.com>
15189
15190         * lto-section-in.c (lto_section_name): Synchronize names
15191         with lto_get_section_name.
15192
15193 2010-07-10  Andi Kleen  <ak@linux.intel.com>
15194
15195         * lto-opts.c (lto_read_file_options): Check for missing section.
15196
15197 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15198
15199         * ira.c (check_allocation): Correctly handle the case where an allocno
15200         with two objects was allocated to a single reg.
15201
15202 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
15203
15204         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
15205         (is_widening_mult_p): Likewise.
15206         (convert_to_widen): Use them.
15207         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
15208         well as integer ones.
15209
15210 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
15211
15212         * alias.c (true_dependence_1): New function, merged version of
15213         true_dependence and canon_true_dependence.
15214         (true_dependence): Simplify.
15215         (canon_true_dependence): Simplify.
15216
15217 2010-07-22  Richard Henderson  <rth@redhat.com>
15218
15219         PR target/45027
15220         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
15221         of V4SFmode for the SSE saves; increase stack alignment if needed.
15222         (ix86_gimplify_va_arg): Don't increase stack alignment here.
15223
15224 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
15225
15226         PR bootstrap/45028
15227         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
15228         call cprop_find_used_regs again via note_uses.
15229
15230 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
15231
15232         * alias.c (get_alias_set): Fix formatting issues.
15233
15234 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
15235
15236         PR middle-end/44878
15237         * stmt.c (expand_value_return):  Call promote_function_mode with
15238         a for_return argument of 2 when returning by reference.
15239
15240 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
15241
15242         PR debug/45024
15243         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
15244         unit DIE if we can find the scope DIE.
15245
15246 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15247
15248         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
15249         changed.  Initialize OBJECT_SUBWORD.
15250         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
15251         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
15252         all callers changed.
15253         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
15254         (finish_allocno): Likewise.
15255         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
15256         (remove_low_level_allocnos): Likewise.
15257         (update_bad_spill_attribute): Likewise.
15258         (setup_min_max_allocno_live_range_point): Likewise.
15259         (sort_conflict_id_map): Likewise.
15260         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
15261         (ior_hard_reg_conflicts): New function.
15262         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
15263         (compress_conflict_vecs): Iterate over objects, not allocnos.
15264         (ira_add_live_range_to_object): New function.
15265         (object_range_compare_func): Renamed from allocno_range_compare_func.
15266         All callers changed.
15267         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
15268         subobjects, widen the min/max range of the lowest-order object to
15269         potentially include all other such low-order objects.
15270         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
15271         (check_allocation): Likewise.  Use more fine-grained tests for register
15272         conflicts.
15273         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
15274         allocno subobjects.
15275         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
15276         choices about which bits to set in each set.  Don't use
15277         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
15278         using the multiple sets we computed.
15279         (push_allocno_to_stack): Iterate over allocno subobjects.
15280         (all_conflicting_hard_regs_coalesced): New static function.
15281         (setup_allocno_available_regs_num): Use it.
15282         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
15283         subobjects.
15284         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
15285         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15286         by ALLOCNO_NUM_OBJECTS.
15287         (calculate_spill_cost): Likewise.
15288         (color_pass): Express if statement in a more normal way.
15289         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
15290         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
15291         (setup_slot_coalesced_allocno_live_ranges): Likewise.
15292         (allocno_reload_assign): Likewise.
15293         (ira_reassign_pseudos): Likewise.
15294         (fast_allocation): Likewise.
15295         * ira-conflicts.c (build_conflict_bit_table): Likewise.
15296         (print_allocno_conflicts): Likewise.
15297         (ira_build_conflicts): Likewise.
15298         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
15299         callers changed.  Test subword 0 of each allocno for conflicts.
15300         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
15301         callers changed.  Iterate over allocno subobjects.
15302         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
15303         * ira-int.h (struct ira_allocno): New member: num_objects.
15304         Rename object to objects and change it into an array.
15305         (ALLOCNO_OBJECT): Add new argument N.
15306         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
15307         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
15308         (ior_hard_reg_conflicts): Declare.
15309         (ira_add_live_range_to_object): Declare.
15310         (ira_allocno_object_iterator): New.
15311         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
15312         (FOR_EACH_ALLOCNO_OBJECT): New macro.
15313         * ira-lives.c (objects_live): Renamed from allocnos_live; all
15314         uses changed.
15315         (allocnos_processed): New sparseset.
15316         (make_object_born): Renamed from make_allocno_born; take an
15317         ira_object_t argument.  All callers changed.
15318         (make_object_dead): Renamed from make_allocno_dead; take an
15319         ira_object_t argument.  All callers changed.
15320         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
15321         All callers changed.
15322         (mark_pseudo_regno_live): Iterate over allocno subobjects.
15323         (mark_pseudo_regno_dead): Likewise.
15324         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
15325         functions.
15326         (mark_ref_live): Detect subword accesses and call
15327         mark_pseudo_regno_subword_live as appropriate.
15328         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
15329         (process_bb_nodes_live): Deal with object-related updates first; set
15330         and test bits in allocnos_processed to avoid computing allocno
15331         statistics more than once.
15332         (create_start_finish_chains): Iterate over objects, not allocnos.
15333         (print_object_live_ranges): New function.
15334         (print_allocno_live_ranges): Use it.
15335         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
15336         and objects_live.
15337
15338 2010-07-22  Richard Guenther  <rguenther@suse.de>
15339
15340         PR lto/42451
15341         * gimple.c (gtc_next_dfs_num): New global.
15342         (struct sccs): Make value a union, add integer same_p member.
15343         (gtc_visit): New function.
15344         (gimple_types_compatible_p_1): New function, split out from ...
15345         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
15346         (iterative_hash_gimple_type): Adjust for sccs change.
15347
15348 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15349
15350         PR tree-optimization/44891
15351         * tree-sra.c: Include gimple-pretty-print.h.
15352         (replace_uses_with_default_def_ssa_name): Renamed to
15353         get_repl_default_def_ssa_name, return the new SSA name instead of
15354         replacing the old one.
15355         (sra_modify_assign): Dump a message when removing a load, if the LHS
15356         is an SSA_NAME, do not do any propagation, just set the RHS to a
15357         default definition SSA NAME, type convert if necessary.
15358         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
15359
15360 2010-07-22  Richard Guenther  <rguenther@suse.de>
15361
15362         PR tree-optimization/45017
15363         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
15364         TYPE_PRECISION of integral types in addition to size.
15365
15366 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
15367
15368         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
15369         when no C library is specified.
15370
15371 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15372
15373         * ipa-prop.h (struct ipa_node_params): Updated comment.
15374         (struct ipa_edge_args): Likewise.
15375         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
15376
15377 2010-07-22  Martin Jambor  <mjambor@suse.cz>
15378
15379         * cgraphunit.c (verify_edge_count_and_frequency): New function.
15380         (verify_cgraph_node): Verify frequencies of indirect edges.
15381         * tree-inline.c (tree_function_versioning): Update frequencies of
15382         indirect edges.
15383
15384 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15385
15386         PR target/43698
15387         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
15388         Set *arm_rev to be predicable.
15389
15390 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
15391
15392         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
15393         (LINK_COMMAND_SPEC_A): New.
15394         (DSYMUTIL): New.
15395         (DSYMUTIL_SPEC): New.
15396         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
15397         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
15398
15399 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
15400
15401         * calls.c (load_register_parameters): Move check for zero
15402         sized items so that only the call to
15403         mem_overlaps_already_clobbered_arg_p () is protected.
15404
15405 2010-07-22  Jan Hubicka  <jh@suse.cz>
15406
15407         * ipa-pure-const.c (varying_state): Break out from ...
15408         (get_function_state): ... here; always return varying_state
15409         when state would be NULL otherwise.
15410         (remove_node_data): Do not free varying state.
15411
15412 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
15413
15414         PR bootstrap/44970
15415         PR middle-end/45009
15416         * postreload.c: Include "target.h".
15417         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
15418         into account.
15419         (fixup_debug_insns): Don't copy the rtx.
15420         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
15421         Don't copy when replacing.  Call fixup_debug_insns in the case where
15422         we merged one add with another.
15423         (reload_combine_recognize_pattern): Fail if there aren't any uses.
15424         Try harder to determine whether we're picking a valid index register.
15425         Don't set store_ruid for an insn we're going to scan in the
15426         next iteration.
15427         (reload_combine): Remove unused code.
15428         (reload_combine_note_use): When updating use information for
15429         an old insn, ignore a use that occurs after store_ruid.
15430         * Makefile.in (postreload.o): Update dependencies.
15431
15432         * function.c (record_hard_reg_sets): Restrict the previous change
15433         to cases where the incoming nominal mode is the same as the
15434         incoming promoted mode and everything happens in MODE_INT.
15435
15436 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
15437
15438         PR debug/45015
15439         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
15440         ASM_OPERANDS_OUTPUT_IDX.
15441         (adjust_insn): For inline asm with multiple sets ensure first
15442         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
15443         the insn.
15444
15445 2010-07-21  Richard Henderson  <rth@redhat.com>
15446
15447         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
15448         comparison for avoiding xmm register saves.  Emit the xmm register
15449         saves explicitly.
15450         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
15451         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
15452         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
15453         Remove patterns and the associated splitters.
15454
15455 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
15456
15457         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
15458         and imagine parts of a complex, so that they can have the same
15459         base and fall into the same group.
15460
15461 2010-07-21  Richard Guenther  <rguenther@suse.de>
15462
15463         PR lto/45018
15464         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
15465         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
15466         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
15467
15468 2010-07-21  Martin Jambor  <mjambor@suse.cz>
15469
15470         PR tree-optimization/44900
15471         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
15472         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
15473
15474 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
15475
15476         PR middle-end/44738
15477         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
15478
15479 2010-07-21  Richard Guenther  <rguenther@suse.de>
15480
15481         PR middle-end/45013
15482         * tree-ssa.c (useless_type_conversion_p): Dispatch to
15483         gimple_types_compatible_p only when in lto.
15484         * gimple.c (gimple_types_compatible_p): Use canonical types
15485         to speed up comparison.
15486
15487 2010-07-21  Richard Guenther  <rguenther@suse.de>
15488
15489         * tree-flow.h (referenced_var): Move define ...
15490         * tree-flow-inline.h (referenced_var): ... here as an inline
15491         function.  Assert here ...
15492         * tree-dfa.c (referenced_var_lookup): ... instead of here.
15493         * tree-ssa.c (maybe_optimize_var): Check if the variable
15494         is in referenced vars.
15495         (execute_update_addresses_taken): Remove old broken check.
15496         * gimple-pretty-print.c (pp_points_to_solution): Use
15497         referenced_var_lookup.
15498         * tree-into-ssa.c (dump_decl_set): Likewise.
15499
15500 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
15501
15502         PR debug/45003
15503         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
15504         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
15505         ZERO_EXTEND here.
15506
15507 2010-07-20  Richard Henderson  <rth@redhat.com>
15508
15509         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
15510
15511 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
15512
15513         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
15514         computing the sum of the stack pointer and a large constant.
15515         * config/arm/constraints.md (M): Remove superfluous parentheses.
15516         (Pc): New constraint.
15517
15518 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
15519
15520         PR debug/45006
15521         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
15522         operand's type if exp is tcc_unary class tree.
15523
15524 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
15525
15526         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
15527         Reverse sense of if_then_else condition.
15528
15529 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
15530
15531         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
15532         * config/rs6000/rs6000.c (rs6000_override_options): Set
15533         rs6000_block_move_inline_limit appropriately.
15534         (expand_block_move): Use rs6000_block_move_inline_limit.
15535         * doc/invoke.texi (mblock-move-inline-limit): Document.
15536
15537 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
15538
15539         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
15540         FROM and TO.  All callers changed.  Don't look for tracked uses,
15541         just scan the RTL for DEBUG_INSNs and substitute.
15542         (reload_combine_recognize_pattern): Call fixup_debug_insns.
15543         (reload_combine): Ignore DEBUG_INSNs.
15544
15545 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
15546
15547         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
15548         depth to 8 from 5.
15549
15550         PR debug/45003
15551         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
15552         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
15553         instead of the result's type.
15554
15555 2010-07-20  Richard Guenther  <rguenther@suse.de>
15556
15557         PR tree-optimization/44977
15558         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
15559         SSA form.
15560
15561 2010-07-20  Richard Guenther  <rguenther@suse.de>
15562
15563         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
15564         (lto_symtab_merge_decls_2): Likewise.
15565         * gimple.h (gimple_types_compatible_p): Declare.
15566         * gimple.c (gimple_queue_type_fixup): Remove.
15567         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
15568         (gimple_compatible_complete_and_incomplete_type_p): New function.
15569         (gimple_types_compatible_p): Adjust.
15570         (gimple_register_type): Remove type fixup code.
15571         (print_gimple_types_stats): Adjust.
15572         (free_gimple_type_tables): Likewise.
15573         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
15574         * tree-ssa.c (useless_type_conversion_p): Likewise.
15575
15576 2010-07-20  Richard Guenther  <rguenther@suse.de>
15577
15578         PR middle-end/44971
15579         PR middle-end/44988
15580         * tree-ssa.c (maybe_optimize_var): New function split out from ...
15581         (execute_update_addresses_taken): ... here.
15582         (non_rewritable_mem_ref_base): Likewise.
15583         (execute_update_addresses_taken): Do not iterate over all referenced
15584         vars but just all local decls and parms.
15585         Properly check call and asm arguments and rewrite call arguments.
15586
15587 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
15588
15589         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
15590         to top level.
15591         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
15592         definitions ...
15593         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
15594         New macro.
15595         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
15596
15597 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
15598
15599         * gengtype.c (start_root_entry): New function, split out from
15600         write_root.  Check whether V is null and raise an error if so.
15601         (write_field_root): Check for V being null.  Don't raise an error here;
15602         set V to null instead.
15603         (write_root): Update comment above function.  Use start_root_entry.
15604
15605 2010-07-19  Xinliang David Li  <davidxl@google.com>
15606
15607         PR testsuite/44932
15608         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
15609         def edges.
15610         (find_uninit_use): Add dump.
15611         (is_use_properly_guarded): Ditto.
15612         (warn_uninitialized_phi): Ditto.
15613         (execute_late_warn_uninitialized): Ditto.
15614
15615 2010-07-19  Richard Guenther  <rguenther@suse.de>
15616
15617         PR middle-end/44941
15618         * expr.c (emit_block_move_hints): Move zero size check first.
15619         Move asserts to more useful places.
15620         * calls.c (load_register_parameters): Check for zero size.
15621
15622 2010-07-19  Richard Henderson  <rth@redhat.com>
15623
15624         * tree-optimize.c (execute_all_early_local_passes): New.  Change
15625         cgraph_state here ...
15626         (execute_early_local_optimizations): ... not here.  Remove.
15627         (pass_early_local_passes, pass_all_early_optimizations): Update.
15628
15629 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
15630
15631         * postreload.c (reload_combine_closest_single_use): Ignore the
15632         number of uses for DEBUG_INSNs.
15633         (fixup_debug_insns): New static function.
15634         (reload_combine_recognize_const_pattern): Use it.  Don't let the
15635         main loop be affected by DEBUG_INSNs.
15636         Really disallow moving adds past a jump insn.
15637         (reload_combine_recognize_pattern): Don't update use_ruid here.
15638         (reload_combine_note_use): Do it here.
15639         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
15640
15641 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
15642
15643         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
15644         of a loop.
15645         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
15646
15647 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
15648
15649         * config/i386/darwin.h: Define darwin_emit_branch_islands.
15650         (TARGET_MACHO_BRANCH_ISLANDS): New.
15651         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
15652         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
15653         default value.
15654         * config/i386/i386.c (output_pic_addr_const): Do not emit
15655         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
15656         (x86_output_mi_thunk): Adjust symbol creation.
15657         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
15658         Remove out of date comment.
15659         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
15660         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
15661         (DARWIN_GENERATE_ISLANDS): Ditto.
15662         (output_call):  Do not emit branch islands unless
15663         darwin_emit_branch_islands is set.
15664         * config/darwin.c: Declare darwin_emit_branch_islands.
15665         (machopic_indirect_data_reference): Do not emit unless
15666         darwin_emit_branch_islands is set.
15667         (darwin_override_options): Set darwin_emit_branch_islands
15668         where it is needed.
15669         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
15670
15671 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15672
15673         * doc/sourcebuild.texi (Effective-Target Keywords): Document
15674         sse_runtime, sse2_runtime.
15675
15676 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
15677
15678         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
15679         low half of a single-register SCmode return value before ORing
15680         it with the high half.
15681         * config/mips/mips16.S (MERGE_GPRf): Likewise.
15682
15683 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15684
15685         PR target/44805
15686         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
15687         on all targets.
15688
15689 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
15690
15691         PR target/42235
15692         * postreload.c (reload_cse_move2add): Return bool, true if anything.
15693         changed.  All callers changed.
15694         (move2add_use_add2_insn): Likewise.
15695         (move2add_use_add3_insn): Likewise.
15696         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
15697         reload_combine.
15698         (RELOAD_COMBINE_MAX_USES): Bump to 16.
15699         (last_jump_ruid): New static variable.
15700         (struct reg_use): New members CONTAINING_MEM and RUID.
15701         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
15702         (reload_combine_split_one_ruid, reload_combine_split_ruids,
15703         reload_combine_purge_insn_uses, reload_combine_closest_single_use
15704         reload_combine_purge_reg_uses_after_ruid,
15705         reload_combine_recognize_const_pattern): New static functions.
15706         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
15707         is true for our reg and that we have available index regs.
15708         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
15709         callers changed.  Use them to initialize fields in struct reg_use.
15710         (reload_combine): Initialize last_jump_ruid.  Be careful when to
15711         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
15712         Call reload_combine_recognize_const_pattern.
15713         (reload_combine_note_store): Update REAL_STORE_RUID field.
15714
15715 2010-07-16  Jason Merrill  <jason@redhat.com>
15716
15717         * Makefile.in (opts-common.o): Depend on options.h.
15718
15719 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
15720
15721         * tree.c (build_common_builtin_nodes): Use build_function_type_list
15722         instead of build_function_type.
15723         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
15724         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
15725
15726 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
15727
15728         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
15729         do all the work.
15730         (rs6000_emit_int_cmove): Use function pointers for insn generation.
15731         Don't force values into registers unnecessarily.
15732         (output_isel): Assert that we're not given conditions we can't handle.
15733         Delete corresponding code.
15734         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
15735         scc_comparison_operator constraint.  Permit 0 for the consequent
15736         operand.  Permit any GPR for the alternative operand.
15737         (isel_unsigned_<mode>): Likewise.
15738
15739 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
15740
15741         PR target/44942
15742         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
15743         argument to const_tree.
15744         * config/i386/i386.c (function_arg_advance): If padding needs to be
15745         inserted before argument, increment cum->words by number of padding
15746         words as well.
15747         (contains_aligned_value_p): Change argument to const_tree.
15748         (ix86_function_arg_boundary): Change second argument to const_tree.
15749
15750 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
15751
15752         PR target/42235
15753         * function.c (record_hard_reg_sets): New static function.
15754         (assign_parm_setup_reg): If an optab for extending exists and the
15755         generated code clobbbers no hard regs, emit the insn directly and
15756         create a REG_EQUIV note.
15757
15758 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15759
15760         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
15761         TREE_CHAIN.
15762         * c-typeck.c (push_init_level): Likewise.
15763         (process_init_element): Likewise.
15764
15765 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
15766
15767         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
15768         (integer_three_node): Add.
15769         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
15770         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
15771         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
15772         of call build_int_cst.
15773         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
15774         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
15775         (find_interesting_uses_address): Ditto.
15776         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
15777         * tree-eh.c (lower_eh_constructs_2): Ditto.
15778         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
15779         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
15780         * expmed.c (expand_divmod): Ditto.
15781         * tree-mudflap.c (mx_register_decls): Ditto.
15782         * varasm.c (array_size_for_constructor): Ditto.
15783         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
15784         * c-parser.c (c_parser_postfix_expression): Ditto.
15785
15786 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15787
15788         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
15789         New static variables.
15790         (reload_combine_recognize_pattern): New static function, broken out
15791         of reload_combine.
15792         (reload_combine): Use it.  Only initialize first_index_reg and
15793         last_index_reg once.
15794
15795 2010-07-15  Richard Henderson  <rth@redhat.com>
15796
15797         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
15798         when done.
15799
15800 2010-07-15  Jan Hubicka  <jh@suse.cz>
15801
15802         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
15803         comdats for broken gold.
15804         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
15805
15806 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15807
15808         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
15809
15810 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15811
15812         * tree.h (DECL_CHAIN): Define.
15813         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
15814         * c-decl.c: Likewise.
15815         * c-parser.c: Likewise.
15816         * c-typeck.c: Likewise.
15817         * cfgexpand.c: Likewise.
15818         * cgraph.c: Likewise.
15819         * cgraphunit.c: Likewise.
15820         * combine.c: Likewise.
15821         * config/alpha/alpha.c: Likewise.
15822         * config/arm/arm.c: Likewise.
15823         * config/frv/frv.c: Likewise.
15824         * config/i386/i386.c: Likewise.
15825         * config/i386/winnt-cxx.c: Likewise.
15826         * config/ia64/ia64.c: Likewise.
15827         * config/iq2000/iq2000.c: Likewise.
15828         * config/mep/mep.c: Likewise.
15829         * config/mips/mips.c: Likewise.
15830         * config/pa/som.h: Likewise.
15831         * config/rs6000/rs6000.c: Likewise.
15832         * config/s390/s390.c: Likewise.
15833         * config/sh/sh.c: Likewise.
15834         * config/sh/symbian-cxx.c: Likewise.
15835         * config/sparc/sparc.c: Likewise.
15836         * config/spu/spu.c: Likewise.
15837         * config/stormy16/stormy16.c: Likewise.
15838         * config/vxworks.c: Likewise.
15839         * config/xtensa/xtensa.c: Likewise.
15840         * coverage.c: Likewise.
15841         * dbxout.c: Likewise.
15842         * dwarf2out.c: Likewise.
15843         * emit-rtl.c: Likewise.
15844         * expr.c: Likewise.
15845         * function.c: Likewise.
15846         * gimple-low.c: Likewise.
15847         * gimple-pretty-print.c: Likewise.
15848         * gimplify.c: Likewise.
15849         * integrate.c: Likewise.
15850         * ipa-inline.c: Likewise.
15851         * ipa-prop.c: Likewise.
15852         * ipa-split.c: Likewise.
15853         * ipa-struct-reorg.c: Likewise.
15854         * ipa-type-escape.c: Likewise.
15855         * langhooks.c: Likewise.
15856         * lto-cgraph.c: Likewise.
15857         * omp-low.c: Likewise.
15858         * stor-layout.c: Likewise.
15859         * tree-cfg.c: Likewise.
15860         * tree-complex.c: Likewise.
15861         * tree-dfa.c: Likewise.
15862         * tree-dump.c: Likewise.
15863         * tree-inline.c: Likewise.
15864         * tree-mudflap.c: Likewise.
15865         * tree-nested.c: Likewise.
15866         * tree-object-size.c: Likewise.
15867         * tree-pretty-print.c: Likewise.
15868         * tree-sra.c: Likewise.
15869         * tree-ssa-live.c: Likewise.
15870         * tree-ssa-loop-niter.c: Likewise.
15871         * tree-ssa-math-opts.c: Likewise.
15872         * tree-ssa-reassoc.c: Likewise.
15873         * tree-ssa-sccvn.c: Likewise.
15874         * tree-ssa-structalias.c: Likewise.
15875         * tree-tailcall.c: Likewise.
15876         * tree-vrp.c: Likewise.
15877         * tree.c: Likewise.
15878         * var-tracking.c: Likewise.
15879         * varasm.c: Likewise.
15880
15881 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15882
15883         PR target/44877
15884         * config/spu/spu.c (spu_expand_builtin_1): Allow references
15885         (as well as pointers) as argument to mask_for_load builtins.
15886
15887 2010-07-15  Richard Guenther  <rguenther@suse.de>
15888
15889         PR tree-optimization/44946
15890         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
15891         with accessing only padding properly.
15892
15893 2010-07-15  Jan Hubicka  <jh@suse.cz>
15894
15895         * ipa.c (function_and_variable_visibility): Variables marked as used
15896         should not be localized.
15897
15898 2010-07-15  Jan Hubicka  <jh@suse.cz>
15899
15900         * cgraph.c: Include lto-streamer.h
15901         (change_decl_assembler_name): Work when assembler name hash is at place.
15902         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
15903         be sure to rename it to avoid name clash.
15904         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
15905         Localize hidden symbols only when locally defined.
15906
15907 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
15908
15909         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
15910
15911 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
15912             Kevin F. Quinn  <kevquinn@gentoo.org>
15913
15914         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
15915         * common.opt: Add -Wtrampolines.
15916         * doc/invoke.texi: Add -Wtrampolines.
15917
15918 2010-07-15  Jie Zhang  <jie@codesourcery.com>
15919
15920         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
15921         cortex_a8_issue_ls.
15922
15923 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
15924
15925         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
15926         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
15927
15928 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15929
15930         * config/spu/spu.c (reg_names): Remove prototype.
15931         (call_used_regs): Likewise.
15932
15933 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
15934
15935         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
15936         "unused" with attribute "used".
15937         (__JCR_END__): Likewise.
15938         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
15939         "used" attribute.
15940         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
15941
15942 2010-07-14  Richard Guenther  <rguenther@suse.de>
15943
15944         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
15945         (maybe_fixup_decls): Likewise.
15946         (input_gimple_stmt): Do not fixup anything.
15947         * lto-streamer-out.c (output_gimple_stmt): Make sure all
15948         non-automatic variable uses are wrapped inside a MEM_REF.
15949
15950 2010-07-14  Richard Henderson  <rth@redhat.com>
15951
15952         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
15953         for functions.
15954         * varasm.c (assemble_variable): Remove early exit for functions;
15955         assert that we're given a variable.
15956
15957 2010-07-14  Jie Zhang  <jie@codesourcery.com>
15958
15959         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
15960         cortex_a8_default when neon_type is not none.
15961
15962 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15963
15964         * lower-subreg.c (subreg_context): New static bitmap.
15965         (decompose_multiword_subregs): Allocate and free it.
15966         (find_decomposable_subregs): Set a bit in it for a register that
15967         occurs in a subreg that changes mode but not size.
15968         (can_decompose_p): Test it instead of non_decomposable_context.
15969
15970 2010-07-14  Richard Guenther  <rguenther@suse.de>
15971
15972         PR tree-optimization/44824
15973         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
15974         is_gimple_mem_ref_addr.
15975         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
15976         non-decl_address_invariant_p addresses.
15977
15978 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15979
15980         * reload.c (find_reloads): Revert code to penalize small register
15981         classes that was brought in with the IRA merge.
15982
15983 2010-07-14  Richard Guenther  <rguenther@suse.de>
15984
15985         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
15986         as base of ARRAY_REFs.
15987
15988 2010-07-14  Richard Guenther  <rguenther@suse.de>
15989
15990         PR middle-end/44930
15991         * tree-pretty-print.c (do_niy): Do not print a newline.
15992
15993 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15994
15995         * ira-int.h (struct ira_object): New.
15996         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
15997         (struct ira_allocno): Remove members min, max,
15998         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
15999         conflict_allocnos_num and conflict_vec_p.  Add new member object.
16000         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
16001         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
16002         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
16003         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
16004         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
16005         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
16006         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
16007         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
16008         an ira_object_t rather than ira_allocno_t.  All uses changed.
16009         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
16010         contains a vector of ira_object_t; all uses changed.
16011         (ira_objects_num): Declare variable.
16012         (ira_create_allocno_object): Declare function.
16013         (ira_conflict_vector_profitable_p): Adjust prototype.
16014         (ira_allocate_conflict_vec): Renamed from
16015         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
16016         (ira_allocate_object_conflicts): Renamed from
16017         ira_allocate_allocno_conflicts; first arg now ira_object_t.
16018         (struct ira_object_iterator): New.
16019         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
16020         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
16021         to conflict_vec_p.  All uses changed.
16022         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
16023         Changed to take into account that conflicts are now tracked for
16024         objects.
16025         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
16026         Args changed to accept ira_object_t.  All uses changed.
16027         (allocnos_conflict_p): New static function.
16028         (collected_conflict_objects): Renamed from collected_allocno_objects;
16029         now a vector of ira_object_t.  All uses changed.
16030         (build_conflict_bit_table): Changed to take into account that
16031         conflicts are now tracked for objects.
16032         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
16033         (print_allocno_conflicts, ira_build_conflicts): Likewise.
16034         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
16035         setup_allocno_left_conflicts_size, allocno_reload_assign,
16036         fast_allocation): Likewise.
16037         * ira-lives.c (make_hard_regno_born, make_allocno_born)
16038         process_single_reg_class_operands, process_bb_node_lives): Likewise.
16039         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
16040         Likewise.
16041         * ira-build.c (ira_objects_num): New variable.
16042         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
16043         contains a vector of ira_object_t; all uses changed.
16044         (ira_object_id_map_vec): Corresponding change.
16045         (object_pool): New static variable.
16046         (initiate_allocnos): Initialize it.
16047         (finish_allocnos): Free it.
16048         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
16049         New functions.
16050         (ira_create_allocno): Don't set members that were removed.
16051         (ira_set_allocno_cover_class): Don't change conflict hard regs.
16052         (merge_hard_reg_conflicts): Changed to take into account that
16053         conflicts are now tracked for objects.
16054         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
16055         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
16056         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
16057         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
16058         setup_min_max_conflict_allocno_ids, ):  Likewise.
16059         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
16060         to ira_object_t; all callers changed.
16061         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
16062         to ira_object_t, all callers changed.
16063         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
16064         to ira_object_t, all callers changed.
16065         (conflict_check, curr_conflict_check_tick): Renamed from
16066         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
16067         changed.
16068         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
16069         arg changed to ira_object_t, all callers changed.
16070         (create_cap_allocno): Call ira_create_allocno_object.
16071         (finish_allocno): Free the corresponding object.
16072         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
16073         callers changed.  Adjusted for dealing with objects.
16074         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
16075         dealing with objects.
16076         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
16077
16078         * ira-int.h (struct live_range): Rename allocno member to object
16079         and change type to ira_object_t.
16080         (struct ira_object): New member live_ranges.
16081         (struct ira_allocno): Remove member live_ranges.
16082         (ALLOCNO_LIVE_RANGES): Remove.
16083         (OBJECT_LIVE_RANGES): New macro.
16084         (ira_create_live_range, ira_copy_live_range_list,
16085         ira_merge_live_range_list, ira_live_ranges_intersect_p,
16086         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
16087         * ira-build.c (ira_create_object): Initialize live ranges here.
16088         (ira_create_allocno): Not here.
16089         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
16090         changed to ira_object_t, all callers changed.
16091         (copy_live_range): Rename from copy_allocno_live_range, all callers
16092         changed.
16093         (ira_copy_live_range_list): Rename from
16094         ira_copy_allocno_live_range_list, all callers changed.
16095         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
16096         all callers changed.
16097         (ira_live_ranges_intersect_p): Rename from
16098         ira_allocno_live_ranges_intersect_p, all callers changed.
16099         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
16100         callers changed.
16101         (ira_finish_live_range_list): Rename from
16102         ira_finish_allocno_live_range_list, all callers changed.
16103         (change_object_in_range_list): Rename from change_allocno_in_range_list,
16104         last arg changed to ira_object_t, all callers changed.
16105         (finish_allocno): Changed to expect live ranges in the allocno's object.
16106         (move_allocno_live_ranges, copy_allocno_live_ranges,
16107         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
16108         ira_flattening, ira_build): Likewise.
16109         * ira-color.c (allocnos_have_intersected_live_ranges_p,
16110         slot_coalesced_allocno_live_ranges_intersect,
16111         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
16112         * ira-conflicts.c (build_conflict_bit_table): Likewise.
16113         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
16114         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
16115         make_allocno_dead, create_start_finish_chains,
16116         remove_some_program_points_and_update_live_ranges,
16117         ira_debug_live_range_list): Likewise.
16118
16119         * ira-int.h (ira_object_conflict_iterator): Rename from
16120         ira_allocno_conflict_iterator.
16121         (ira_object_conflict_iter_init): Rename from
16122         ira_allocno_conflict_iter_init, second arg changed to
16123         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
16124         FOR_EACH_ALLOCNO_CONFLICT.
16125         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
16126         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
16127         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
16128         * ira-conflicts.c (print_allocno_conflicts): Likewise.
16129
16130 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
16131
16132         PR other/44874
16133         * tree-dump.c (dump_options): Add enumerate_locals entry.
16134         Add TDF_NOID exclusion to all entry.
16135         * tree-dump.h (dump_enumerated_decls): Declare.
16136         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
16137         Don't display type uid.
16138         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
16139         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
16140         * tree-ssa-live.c: Include gimple.h.
16141         (numbered_tree_d): New struct.
16142         (numbered_tree): New typedef.
16143         (DEF_VEC_O (numbered_tree): New.
16144         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
16145         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
16146         (dump_enumerated_decls): Likewise.
16147         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
16148         debug info and flag_dump_final_insns, call dump_enumerated_decls.
16149         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
16150         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
16151
16152 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
16153
16154         * expmed.h (MAX_BITS_PER_WORD): Move to...
16155         * defaults.h (MAX_BITS_PER_WORD): ...here.
16156
16157 2010-07-13  DJ Delorie  <dj@redhat.com>
16158
16159         * config/h8300/h8300.c (h8300_init_once): Default to
16160         -fstrict_volatile_bitfields.
16161
16162         * config/sh/sh.c (sh_override_options): Default to
16163         -fstrict_volatile_bitfields.
16164
16165         * config/rx/rx.c (rx_option_override): New.
16166
16167         * config/m32c/m32c.c (m32c_override_options): Default to
16168         -fstrict_volatile_bitfields.
16169
16170 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
16171
16172         * tree.h (build_function_call_expr): Delete.
16173         (build_call_expr_loc_array): New function.
16174         (build_call_expr_loc_vec): New function.
16175         * tree-flow.h (struct omp_region): Change type of ws_args field
16176         to a VEC.
16177         * builtins.c (build_function_call_expr): Delete.
16178         (build_call_expr_loc_array): New function.
16179         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
16180         (build_call_expr): Likewise.
16181         (build_call_expr_loc_vec): New function.
16182         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
16183         build_function_call_expr.
16184         * expr.c (emutls_var_address): Likewise.
16185         * varasm.c (emutls_common_1): Likewise.
16186         * omp-low.c (expand_omp_atomic_mutex): Likewise.
16187         (expand_omp_taskreg): Adjust for new type of region->ws_args.
16188         (get_ws_args_for): Return a VEC instead of a tree.
16189         (expand_parallel_call): Call build_call_expr_loc_vec instead of
16190         build_function_call_expr.
16191         * stor-layout.c (self_referential_size): Likewise.
16192
16193 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
16194
16195         PR testsuite/44701
16196         * recog.c (constrain_operands): Allow side-effects in memory
16197         operands if either < or > constraint is used, rather than if
16198         both < and > is used.
16199
16200 2010-07-13  Richard Guenther  <rguenther@suse.de>
16201
16202         PR middle-end/44911
16203         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
16204         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
16205         without name.
16206
16207 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
16208
16209         PR target/44761
16210         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
16211         to variable emited.
16212         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
16213         * config/sh/sh.md (symGOT_load): Likewise.
16214         (symDTPOFF2reg): Likewise.
16215         (symTPOFF2reg): Likewise.
16216
16217 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16218
16219         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
16220         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
16221
16222 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16223
16224         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
16225         explanation.
16226         Find ucontext_t * on Solaris 11.
16227         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
16228         Handle new Solaris 11 __sighndlr patterns.
16229
16230 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
16231
16232         PR debug/44901
16233         * vec.h (VEC_block_remove): Fix comment.
16234         * tree-ssa-live.c (remove_unused_locals): Don't use
16235         VEC_unordered_remove on local_decls, instead replace a single
16236         vector element in each iteration if at least one element had
16237         to be removed and VEC_truncate at the end.
16238         * omp-low.c (expand_omp_taskreg): Likewise.
16239
16240 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16241
16242         * c-decl.c (finish_function): Fix typo in comment.
16243
16244 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
16245
16246         PR bootstrap/44921
16247         * postreload.c (move2add_use_add3_insn): Silence gcc warning
16248         on min_regno.
16249
16250 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
16251
16252         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
16253         (simplify_stmt_using_ranges): Use it.
16254
16255 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16256
16257         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
16258         member.  Do not mark as GTY(()).
16259         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
16260         (spu_builtin_decls): New static variable.
16261         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
16262         (spu_init_builtins): Likewise.
16263         (spu_builtin_mul_widen_even): Likewise.
16264         (spu_builtin_mul_widen_odd): Likewise.
16265         (spu_builtin_mask_for_load): Likewise.
16266         (spu_builtin_vec_perm): Likewise.
16267         * config/spu/spu-c.c: Include "target.h".
16268         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
16269         of using spu_builtins[].fndecl.
16270
16271 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16272
16273         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
16274         imply -minterlink-mips16.
16275
16276 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16277
16278         * config/mips/mips.h (mips16_globals): Declare.
16279         (SWITCHABLE_TARGET): Define.
16280         * config/mips/mips.c: Include target-globals.h.
16281         (mips16_globals): New variable.
16282         (mips_set_mips16_mode): Use save_target_globals and
16283         restore_target_globals instead of target_reinit.
16284
16285 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16286
16287         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
16288         to say that the function can be called more than once.
16289         * target-globals.c (save_target_globals): Call init_reg_sets.
16290
16291 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16292
16293         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
16294         * bb-reorder.h: New file.
16295         * bb-reorder.c (default_target_bb_reorder): New variable.
16296         (this_target_bb_reorder): New conditional variable.
16297         (uncond_jump_length): Redefine as a macro.
16298         * target-globals.h (this_target_bb_reorder): Declare.
16299         (target_globals): Add a bb_reorder field.
16300         (restore_target_globals): Copy the bb_reorder field to
16301         this_target_bb-reorder.
16302         * target-globals.c: Include bb-reorder.h.
16303         (default_target_globals): Initialize the bb_reorder field.
16304         (save_target_globals): Likewise.
16305
16306 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16307
16308         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
16309         * gcse.h: New file.
16310         * gcse.c: Include gcse.h.
16311         (default_target_gcse): New variable.
16312         (this_target_gcse): New conditional variable.
16313         (can_copy): Redefine as a macro.
16314         (can_copy_init_p): New macro.
16315         (can_copy_p): Remove can_copy_init_p.
16316         * target-globals.h (this_target_gcse): Declare.
16317         (target_globals): Add a gcse field.
16318         (restore_target_globals): Copy the gcse field to this_target_gcse.
16319         * target-globals.c: Include gcse.h.
16320         (default_target_globals): Initialize the gcse field.
16321         (save_target_globals): Likewise.
16322
16323 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16324
16325         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
16326         and x_ira_prohibited_mode_move_regs_initialized_p.
16327         (ira_prohibited_mode_move_regs): Redefine as a macro.
16328         * ira.c (ira_prohibited_mode_move_regs): Delete.
16329         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
16330
16331 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16332
16333         * reload.h (target_reload): Add x_cached_reg_save_code and
16334         x_cached_reg_restore_code.
16335         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
16336         Redefine as macros.
16337
16338 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16339
16340         * Makefile.in (target-globals.o): Depend on builtins.h.
16341         * builtins.h: New file.
16342         * builtins.c: Include builtins.h.
16343         (default_target_builtins): New variable.
16344         (this_target_builtins): New conditional variable.
16345         (apply_args_mode, apply_result_mode): Redefine as macros.
16346         * target-globals.h (this_target_builtins): Declare.
16347         (target_globals): Add a builtins field.
16348         (restore_target_globals): Copy the builtins field to
16349         this_target_builtins.
16350         * target-globals.c: Include builtins.h.
16351         (default_target_globals): Initialize the builtins field.
16352         (save_target_globals): Likewise.
16353
16354 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16355
16356         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
16357         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
16358         from expmed.c.
16359         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
16360         (alg_hash, alg_hash_used_p): New macros.
16361         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
16362         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
16363         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
16364
16365 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16366
16367         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
16368         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
16369         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
16370         (this_op_costs, costs_classes): Redefine as macros.
16371         (record_reg_classes): Don't take op_costs as a parameter.
16372         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
16373         (scan_one_insn): Update call to record_operand_costs.
16374
16375 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16376
16377         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
16378         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
16379         (target_ira_int): New structure.
16380         (default_target_ira_int): Declare.
16381         (this_target_ira_int): Declare as a variable or define as a macro.
16382         (ira_reg_mode_hard_regset, ira_register_move_cost)
16383         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
16384         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
16385         (prohibited_class_mode_regs, ira_important_classes_num)
16386         (ira_important_classes, ira_reg_class_intersect)
16387         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
16388         (ira_reg_class_union): Redefine as macros.
16389         * ira.h (target_ira): New structure.
16390         (default_target_ira): Declare.
16391         (this_target_ira): Declare as a variable or define as a macro.
16392         (ira_available_class_regs, ira_hard_regno_cover_class)
16393         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
16394         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
16395         (ira_class_hard_regs_num): Redefine as macros.
16396         * ira.c (default_target_ira, default_target_ira_int): New variables.
16397         (this_target_ira, this_target_ira_int): New conditional variables.
16398         (ira_reg_mode_hard_regset, ira_memory_move_cost)
16399         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
16400         (ira_class_subset_p): Delete.
16401         (no_unit_alloc_regs): Redefine as a macro.
16402         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
16403         (ira_class_hard_regs_num, ira_class_hard_reg_index)
16404         (ira_available_class_regs): Delete.
16405         (alloc_reg_class_subclasses): Redefine as a macro.
16406         (ira_reg_class_cover_size, ira_reg_class_cover)
16407         (ira_important_classes_num, ira_important_classes)
16408         (ira_important_class_nums, ira_class_translate): Delete.
16409         (cover_class_order): Document the variable's lifetime.
16410         (reorder_important_classes): Don't set ira_important_class_nums.
16411         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
16412         (ira_reg_class_super_classes, ira_reg_class_union)
16413         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
16414         Delete.
16415         (setup_reg_class_nregs): Don't set ira_max_regs.
16416         (prohibited_class_mode_regs): Delete.
16417         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
16418         (target_globals): Add ira and ira_int fields.
16419         (restore_target_globals): Copy the ira field to this_target_ira
16420         and the ira_int field to this_target_ira_int.
16421         * target-globals.c: Include ira-int.h.
16422         (default_target_globals): Initialize the ira and ira_int fields.
16423         (save_target_globals): Likewise.
16424
16425 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16426
16427         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
16428         * cfgloop.h (target_cfgloop): New structure.
16429         (default_target_cfgloop): Declare.
16430         (this_target_cfgloop): Declare as a variable or define as a macro.
16431         (target_avail_regs, target_clobbered_regs, target_res_regs)
16432         (target_reg_cost, target_spill_cost): Redefine as macros.
16433         * cfgloopanal.c (default_target_cfgloop): New variable.
16434         (this_target_cfgloop): New conditional variable.
16435         (target_avail_regs, target_clobbered_regs, target_res_regs)
16436         (target_reg_cost, target_spill_cost): Delete.
16437         * target-globals.h (this_target_cfgloop): Declare.
16438         (target_globals): Add a cfgloop field.
16439         (restore_target_globals): Copy the cfgloop field to
16440         this_target_cfgloop.
16441         * target-globals.c: Include cfgloop.h.
16442         (default_target_globals): Initialize the cfgloop field.
16443         (save_target_globals): Likewise.
16444
16445 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16446
16447         * regs.h (target_regs): Add x_direct_load, x_direct_store and
16448         x_float_extend_from_mem.
16449         (direct_load, direct_store, float_extend_from_mem): New macros.
16450         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
16451
16452 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16453
16454         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
16455         (target-globals.o): Depend on $(LIBFUNCS_H).
16456         * libfuncs.h: Include hashtab.h.
16457         (libfunc_entry): Moved from optabs.c.
16458         (target_libfuncs): New structure.
16459         (default_target_libfuncs): Declare.
16460         (this_target_libfuncs): Declare as a variable or define as a macro.
16461         (libfunc_table): Redefine as a macro.
16462         * optabs.c (default_target_libfuncs): New variable.
16463         (this_target_libfuncs): New conditional variable.
16464         (libfunc_table): Delete.
16465         (libfunc_entry): Moved to optabs.h.
16466         (libfunc_hash): Redefine as a macro.
16467         (hash_libfunc, eq_libfunc): Fix comments.
16468         (init_optabs): Use libfunc_hash to detect cases where the function
16469         has already been called.  Clear the hash table instead of
16470         recreating it.
16471         * target-globals.h (this_target_libfuncs): Declare.
16472         (target_globals): Add a libfuncs field.
16473         (restore_target_globals): Copy the libfuncs field to
16474         this_target_libfuncs.
16475         * target-globals.c: Include libfuncs.h.
16476         (default_target_globals): Initialize the libfuncs field.
16477         (save_target_globals): Likewise.
16478
16479 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16480
16481         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
16482         in all dependency lists.
16483
16484 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16485
16486         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
16487         * optabs.h (target_optabs): New structure.
16488         (default_target_optabs): Declare.
16489         (this_target_optabs): Declare as a variable or define as a macro.
16490         (optab_table, convert_optab_table, direct_optab_table): Redefine
16491         as macros.
16492         * optabs.c (default_target_optabs): New variable.
16493         (this_target_optabs): New conditional variable.
16494         (optab_table, convert_optab_table, direct_optab_table): Delete.
16495         * target-globals.h (this_target_optabs): Declare.
16496         (target_globals): Add a optabs field.
16497         (restore_target_globals): Copy the optabs field to
16498         this_target_optabs.
16499         * target-globals.c: Include expr.h and optabs.h.
16500         (default_target_globals): Initialize the optabs field.
16501         (save_target_globals): Likewise.
16502
16503 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16504
16505         * flags.h (target_flagstate): Add x_flag_excess_precision.
16506         (flag_excess_precision): Redefine as a macro.
16507         * toplev.c (flag_excess_precision): Delete.
16508
16509 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16510
16511         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
16512         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
16513         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
16514         (no_caller_save_reg_set): Redefine as a macro.
16515         * reload.h (target_reload): Add x_caller_save_initialized_p and
16516         x_regno_save_mode.
16517         (caller_save_initialized_p): Redefine as a macro.
16518         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
16519         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
16520         (regno_save_mode): Redefine as a macro.
16521
16522 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16523
16524         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
16525         * expmed.h: New file.
16526         * expmed.c (default_target_costs): New variable.
16527         (this_target_costs): New conditional variable.
16528         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
16529         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
16530         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
16531         * target-globals.h (this_target_expmed): Declare.
16532         (target_globals): Add a expmed field.
16533         (restore_target_globals): Copy the expmed field to
16534         this_target_expmed.
16535         * target-globals.c: Include expmed.h.
16536         (default_target_globals): Initialize the expmed field.
16537         (save_target_globals): Likewise.
16538
16539 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16540
16541         * Makefile.in (target-globals.o): Depend on reload.h.
16542         * reload.h (target_reload): New structure.
16543         (default_target_reload): Declare.
16544         (this_target_reload): Declare as a variable or define as a macro.
16545         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
16546         * reload1.c (default_target_reload): New variable
16547         (this_target_reload): New conditional variable.
16548         (indirect_symref_ok, double_reg_address_ok): Delete.
16549         (spill_indirect_levels): Redefine as a macro.
16550         * target-globals.h (this_target_reload): Declare.
16551         (target_globals): Add a reload field.
16552         (restore_target_globals): Copy the reload field to
16553         this_target_reload.
16554         * target-globals.c: Include hard-reg-set.h.
16555         (default_target_globals): Initialize the reload field.
16556         (save_target_globals): Likewise.
16557
16558 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16559
16560         * rtl.h (target_rtl): Add x_static_reg_base_value.
16561         * alias.c (static_reg_base_value): Redefine as a macro.
16562
16563 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16564
16565         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
16566         (GTFILES): Remove reginfo.c.
16567         * rtl.h (target_rtl): Add x_top_of_stack.
16568         (top_of_stack): New macro.
16569         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
16570         (top_of_stack): Delete.
16571
16572 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16573
16574         * regs.h (target_regs): Add x_hard_regs_of_mode,
16575         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
16576         x_may_move_out_cost and x_last_mode_for_init_move_cost.
16577         (have_regs_of_mode, contains_reg_of_mode, move_cost)
16578         (may_move_in_cost, may_move_out_cost): Redefine as macros.
16579         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
16580         (may_move_in_cost, may_move_out_cost): Delete.
16581         (last_mode_for_init_move_cost): Redefine as a macro.
16582
16583 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16584
16585         * hard-reg-set.h (target_hard_regs): New structure.
16586         (default_target_hard_regs): Declare.
16587         (this_target_hard_regs): Declare as a variable or define as a macro.
16588         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
16589         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
16590         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
16591         (reg_class_size, reg_class_subclasses, reg_class_subunion)
16592         (reg_class_superunion, reg_names): Redefine as macros.
16593         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
16594         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
16595         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
16596         (reg_class_contents, reg_class_size, reg_class_subclasses)
16597         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
16598         (default_target_hard_regs): New variable
16599         (this_target_hard_regs, initial_call_really_used_regs)
16600         (initial_reg_alloc_order): New conditional variables.
16601         (initial_reg_names): New variable.
16602         (init_reg_sets): Assert that initial_call_really_used_regs,
16603         initial_reg_alloc_order and initial_reg_names
16604         are all the same size as their variable counterparts.  Use them to
16605         initialize those counterparts.
16606         * target-globals.h (this_target_hard_regs): Declare.
16607         (target_globals): Add a hard_regs field.
16608         (restore_target_globals): Copy the hard_regs field to
16609         this_target_hard_regs.
16610         * target-globals.c: Include hard-reg-set.h.
16611         (default_target_globals): Initialize the hard_regs field.
16612         (save_target_globals): Likewise.
16613
16614 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16615
16616         * Makefile.in (target-globals.o): Depend on $(RTL_H).
16617         * rtl.h (target_rtl): New structure.
16618         (default_target_rtl): Declare.
16619         (this_target_rtl): Declare as a variable or define as a macro.
16620         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
16621         Redefine as macros.
16622         * emit-rtl.c (default_target_rtl): New variable.
16623         (this_target_rtl): New conditional variable.
16624         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
16625         (return_address_pointer_rtx): Delete.
16626         (initial_regno_reg_rtx): New macro.
16627         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
16628         (init_emit_regs): Likewise.
16629         * target-globals.h (this_target_rtl): Declare.
16630         (target_globals): Add a rtl field.
16631         (restore_target_globals): Copy the rtl field to this_target_rtl.
16632         * target-globals.c: Include rtl.h.
16633         (default_target_globals): Initialize the rtl field.
16634         (save_target_globals): Likewise.
16635
16636 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16637
16638         * Makefile.in (target-globals.o): Depend on $(REGS_H).
16639         * regs.h (target_reg_modes): New structure.
16640         (default_target_reg_modes): Declare.
16641         (this_target_reg_modes): Declare as a variable or define as a macro.
16642         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
16643         * reginfo.c (default_target_reg_modes): New variable.
16644         (this_target_reg_modes): New conditional variable.
16645         (hard_regno_nregs, reg_raw_mode): Delete.
16646         * target-globals.h (this_target_regs): Declare.
16647         (target_globals): Add a regs field.
16648         (restore_target_globals): Copy the regs field to this_target_regs.
16649         * target-globals.c: Include regs.h.
16650         (default_target_globals): Initialize the regs field.
16651         (save_target_globals): Likewise.
16652
16653 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
16654
16655         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
16656         * doc/tm.texi: Regenerate.
16657         * Makefile.in (OBJS-common): Add target-globals.o.
16658         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
16659         and target-globals.h.
16660         (target-globals.o): New rule.
16661         (GTFILES): Include $(srcdir)/target-globals.h.
16662         * defaults.h (SWITCHABLE_TARGET): Define.
16663         * gengtype.c (open_base_files): Add target-globals.h to the
16664         list of includes.
16665         * target-globals.h: New file.
16666         * target-globals.c: Likewise.
16667
16668         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
16669         * flags.h (target_flag_state): New structure.
16670         (default_target_flag_state): Declare.
16671         (this_target_flag_state): Declare as a variable or define as a macro.
16672         (align_loops_log): Redefine as a macro.
16673         (align_loops_max_skip, align_jumps_log): Likewise.
16674         (align_jumps_max_skip, align_labels_log): Likewise.
16675         (align_labels_max_skip, align_functions_log): Likewise.
16676         * toplev.c (default_target_flag_state): New variable.
16677         (this_target_flag_state): New conditional variable.
16678         (align_loops_log): Delete.
16679         (align_loops_max_skip, align_jumps_log): Likewise.
16680         (align_jumps_max_skip, align_labels_log): Likewise.
16681         (align_labels_max_skip, align_functions_log): Likewise.
16682         * target-globals.h (this_target_flag_state): Declare.
16683         (target_globals): Add a flag_state field.
16684         (restore_target_globals): Copy the flag_state field to
16685         this_target_flag_state.
16686         * target-globals.c: Include flags.h.
16687         (default_target_globals): Initialize the flag_state field.
16688         (save_target_globals): Likewise.
16689
16690 2010-07-12  Jie Zhang  <jie@codesourcery.com>
16691
16692         * postreload.c (reg_symbol_ref[]): New.
16693         (move2add_use_add2_insn): New.
16694         (move2add_use_add3_insn): New.
16695         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
16696         (move2add_note_store): Likewise.
16697
16698 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
16699
16700         PR rtl-optimization/44752
16701         * genautomata.c (main): Don't emit an empty file even if there
16702         is no automaton.
16703
16704 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16705
16706         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
16707         ix86_solaris_return_in_memory.
16708         * config/i386-protos.h: Reflect this.
16709         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
16710         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
16711         Move ...
16712         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
16713
16714 2010-07-12  Jie Zhang  <jie@codesourcery.com>
16715
16716         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
16717         align the stack when it's going to be saved.
16718
16719 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16720
16721         PR pch/14940
16722         * config/host-solaris.c (mmap_fixed): New function.
16723         (sol_gt_pch_get_address): Use it.
16724         (sol_gt_pch_use_address): Likewise.
16725
16726 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16727
16728         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16729         pentiumpro on Solaris 8 and 9/x86.
16730         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
16731         Document SSE/SSE2 support.
16732         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
16733
16734 2010-07-12  Andi Kleen  <ak@linux.intel.com>
16735
16736         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
16737         instead of gcc_assert to print better error message for multiple
16738         prevailing defs.
16739
16740 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
16741
16742         * config/i386/i386.c (ix86_asm_output_function_label): Change format
16743         string placeholder from 0x%x to %#x.
16744         (ix86_code_end): Use putc to output '\n'.
16745         (ix86_print_operand) <case ';'>: Use putc to output ';'.
16746
16747 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
16748
16749         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
16750         in directive -export.
16751
16752 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
16753
16754         * reginfo.h (reg_classes_intersect_p): Change arguments type to
16755         reg_class_t.
16756         * rtl.h (reg_classes_intersect_p): Adjust prototype.
16757
16758         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16759         Remove macros.
16760         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
16761         rs6000_memory_move_cost): Remove
16762         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
16763         TARGET_MEMORY_MOVE_COST): Define.
16764         (rs6000_register_move_cost): Make static. Change arguments type from
16765         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
16766         (rs6000_memory_move_cost): Make static. Change arguments type from
16767         'enum reg_class' to reg_class_t.
16768
16769 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
16770
16771         PR middle-end/42505
16772         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
16773         lookup code into....
16774         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
16775         new functions.
16776         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
16777         * cfgloopanal.c (target_clobbered_regs): Define.
16778         (init_set_costs): Initialize target_clobbered_regs.
16779         (estimate_reg_pressure_cost): Add call_p argument.  When true,
16780         adjust the number of available registers to exclude the
16781         call-clobbered registers.
16782         * cfgloop.h (target_clobbered_regs): Declare.
16783         (estimate_reg_pressure_cost): Adjust declaration.
16784         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
16785         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
16786         (determine_set_costs): Dump target_clobbered_regs.
16787         (loop_body_includes_call): New function.
16788         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
16789         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
16790         call_p flag through.
16791         (best_gain_for_invariant): Likewise.
16792         (find_invariants_to_move): Likewise.
16793         (move_single_loop_invariants): Likewise, using already-computed
16794         has_call field.
16795
16796 2010-07-10  Richard Guenther  <rguenther@suse.de>
16797             Joern Rennecke  <joern.rennecke@embecosm.com>
16798
16799         PR debug/44832
16800         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
16801         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
16802         unless they have DECL_IGNORED_P set.
16803
16804 2010-07-10  Richard Guenther  <rguenther@suse.de>
16805
16806         PR lto/44889
16807         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
16808         helper function.
16809         (gimple_types_compatible_p): Similar to pointed-to
16810         types allow and merge a mix of complete and incomplete aggregate.
16811         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
16812         (iterative_hash_gimple_type): Adjust for that.
16813
16814 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
16815
16816         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
16817
16818 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
16819
16820         PR objc/44140
16821         * config/darwin.c (output_objc_section_asm_op): Save and restore
16822         section when outputting ObjC section list.
16823
16824 2010-07-09  Jan Hubicka  <jh@suse.cz>
16825
16826         * lto-streamer-out.c (produce_symtab): Do not write alias
16827         cgraph/varpool nodes.
16828
16829 2010-07-09  Jan Hubicka  <jh@suse.cz>
16830
16831         * tree-inline.c (declare_return_variable): Fix ICE while
16832         inlining DECL_BY_VALUE function not in SSA form
16833
16834 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
16835
16836         PR tree-optimization/44576
16837         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
16838         New.  Pull out from is_loop_prefetching_profitable to implement
16839         the trip count to ahead ratio heuristic.
16840         (mem_ref_count_reasonable_p): New.  Pull out from
16841         is_loop_prefetching_profitable to implement the instruction to
16842         memory reference ratio heuristic.  Also consider not reasonable if
16843         the memory reference count is above a threshold (to avoid
16844         explosive compilation time.
16845         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
16846         is_loop_prefetching_profitable to implement the instruction to
16847         prefetch ratio heuristic.
16848         (is_loop_prefetching_profitable): Removed.
16849         (loop_prefetch_arrays): Distribute the cost analysis across the
16850         function to allow early exit of the prefetch analysis.
16851         is_loop_prefetching_profitable is splitted into three functions,
16852         with each one called as early as possible.
16853         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
16854         number of memory references in a loop is considered too many.
16855
16856 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
16857
16858         * reload.c (find_reloads): Don't clear badop if we have a winreg
16859         alternative, but not win, and the class only has fixed regs.
16860         * hard-reg-set.h (class_only_fixed_regs): Declare.
16861         * reginfo.c (class_only_fixed_regs): New array.
16862         (init_reg_sets_1): Initialize it.
16863         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
16864         discourage alternatives using the stack pointer.
16865
16866         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
16867
16868         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
16869
16870         * config/arm/arm.md (cbranchqi4): Fix array size.
16871         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
16872         calculating length.
16873
16874 2010-07-09  Richard Guenther  <rguenther@suse.de>
16875
16876         * gimple.c (struct type_fixup_s): New struct and VEC type.
16877         (gimple_register_type_fixups): New static global.
16878         (gimple_queue_type_fixup): New function.
16879         (gimple_types_compatible_p): Queue type fixups instead of
16880         applying them here.
16881         (gimple_register_type): Apply queued fixups for the
16882         canonical type.  Empty the type fixup queue.
16883
16884 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16885
16886         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
16887         * configure: Regenerate.
16888         * config.in: Ditto.
16889
16890 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
16891             Denys Vlasenko  <dvlasenk@redhat.com>
16892             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16893
16894         PR tree-optimization/28632
16895         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
16896         (extract_range_from_binary_expr): Further optimize
16897         BIT_AND_EXPR and BIT_IOR_EXPR.
16898
16899 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
16900
16901         * tree-if-conv.c (fold_or_predicates): New.
16902         (add_to_predicate_list): Call it.
16903
16904 2010-07-09  Richard Guenther  <rguenther@suse.de>
16905
16906         PR middle-end/44890
16907         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
16908         if base is a pointer.
16909         * tree-cfg.c (verify_expr): Update MEM_REF checking.
16910
16911 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
16912
16913         PR target/44877
16914         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
16915         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
16916         builtin mask for load/store builtins.
16917
16918 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16919
16920         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
16921         for "lock addl".
16922         * configure: Regenerate.
16923         * config/i386/i386.c (ix86_print_operand) <case ';'>:
16924         Remove TARGET_MACHO.
16925
16926 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
16927
16928         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
16929         default ISA flags.
16930         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
16931
16932 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
16933
16934         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
16935
16936 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
16937
16938         * config/picochip/picochip.md (commsTestPort): Emit more
16939         efficient sequence for tstport instruction.
16940
16941 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16942
16943         * config/i386/i386.c (ix86_veclib_handler): Make static.
16944
16945 2010-07-09  Richard Guenther  <rguenther@suse.de>
16946
16947         PR tree-optimization/44852
16948         * tree-ssa-alias.c: Include toplev.h for exact_log2.
16949         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
16950         in MEM_REF.
16951         (indirect_refs_may_alias_p): Likewise.
16952         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
16953
16954 2010-07-09  Richard Guenther  <rguenther@suse.de>
16955
16956         PR tree-optimization/44882
16957         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
16958         sets do conflict.
16959         (vectorizable_load): Likewise.
16960
16961 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
16962
16963         PR target/40657
16964         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
16965         All callers changed.
16966         Handle the case when we're called for the epilogue.
16967         (thumb_unexpanded_epilogue): Use it.
16968         (thumb1_expand_epilogue): Likewise.
16969
16970 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
16971
16972         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
16973         both ranges are range_int_cst_p with non-negative minimum,
16974         try harder to derive smaller range.
16975
16976 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16977
16978         * genrecog.c: Include diagnostic-core.h before toplev.h.
16979         * genoutput.c: Likewise.
16980         * genextract.c: Likewise.
16981         * genautomata.c: Likewise.
16982         * genemit.c: Likewise.
16983         * genpeep.c: Likewise.
16984         * genattrtab.c: Likewise.
16985         * genconditions.c: Likewise.
16986         * genpreds.c: Likewise.
16987
16988 2010-07-08  Andi Kleen  <ak@linux.intel.com>
16989
16990         * lto-section-in.c (lto_section_name): Add missing comma.
16991
16992 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
16993
16994         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
16995         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
16996         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
16997         (ia64_override_options): Rename to...
16998         (ia64_option_override): ... this one. Make static.
16999
17000 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17001
17002         PR middle-end/44843
17003         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
17004         pointed-to type of the offset in a MEM_REF to compute the alignment.
17005
17006 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
17007
17008         * final.c (final_scan_insn): Replace
17009         TARGET_UNWIND_INFO macro check by unwind_emit
17010         hook NULL check.
17011         * targhooks.c (default_unwind_emit): Removed.
17012         * targhooks.h (default_unwind_emit): Likewise.
17013         * target.def (unwind_emit): Set default value to NULL.
17014
17015         * config/i386/i386-protos.h (ix86_asm_output_function_label):
17016         New prototype.
17017         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
17018         for NULL fntype argument and allow 64-bit targets.
17019         (ix86_asm_output_function_label): New function.
17020         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
17021         (ix86_handle_fndecl_attribute): Likewise.
17022         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
17023         * doc/doc/tm.texi: Regenerated.
17024         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
17025         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
17026         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
17027         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
17028         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
17029         * config/elfos.h: Likewise.
17030         * config/i386/cygming.h: Likewise.
17031         * config/netbsd-aout.h: Likewise.
17032         * config/openbsd.h: Likewise.
17033         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
17034         by ix86_asm_output_function_label function call.
17035         * varasm.c (assemble_start_function): Use
17036         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
17037
17038 2010-07-08  Jan Hubicka  <jh@suse.cz>
17039
17040         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
17041         New function.
17042         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
17043         Declare.
17044         * ipa-cp.c (ipcp_estimate_growth): Use it.
17045         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
17046         Likewise.
17047
17048 2010-07-08  Jan Hubicka  <jh@suse.cz>
17049
17050         * tree-inline.c (declare_return_variable): Allocate annotation for new
17051         temporary.
17052
17053 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
17054
17055         PR tree-optimization/44710
17056         * tree-if-conv.c (parse_predicate): New.
17057         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
17058         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
17059
17060 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
17061
17062         * common.opt (ftree-loop-if-convert): New flag.
17063         * doc/invoke.texi (ftree-loop-if-convert): Documented.
17064         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
17065         when flag_tree_loop_if_convert is set.
17066
17067 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
17068
17069         * config/i386/i386.c: Use short syntax for function calls
17070         through function pointers.
17071         * config/i386/i386.md: Ditto.
17072
17073 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17074
17075         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
17076
17077 2010-07-08  Richard Guenther  <rguenther@suse.de>
17078
17079         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
17080         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
17081
17082 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
17083
17084         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
17085         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
17086         (loc_list_from_tree): Likewise.
17087         (output_loc_operands): Handle outputting DW_OP_const[48]u
17088         with loc->dtprel set.
17089         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
17090
17091 2010-07-08  Jan Hubicka  <jh@suse.cz>
17092
17093         * ipa.c: Include pointer-set.h
17094         (cgraph_externally_visible_p): New attribute ALIASED;
17095         when in LTO, hidden symbols are local unless they are aliased.
17096         (function_and_variable_visibility): Compute aliased nodes;
17097         handle LTO and hidden symbol on functions and vars.
17098         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
17099         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
17100
17101 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17102
17103         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
17104         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17105         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17106         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17107         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17108         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
17109         (ix86_gen_probe_stack_range): Likewise.
17110         (override_options): Set them.
17111         (ix86_target_stack_probe): New function.
17112         (ix86_compute_frame_layout): Force use of push instructions to
17113         save registers if stack checking with probes is enabled.
17114         (get_scratch_register_on_entry): New function.
17115         (release_scratch_register_on_entry): Likewise.
17116         (ix86_adjust_stack_and_probe): Likewise.
17117         (output_adjust_stack_and_probe): Likewise.
17118         (ix86_emit_probe_stack_range): Likewise.
17119         (output_probe_stack_range): Likewise.
17120         (ix86_expand_prologue): Emit stack checking code if static built-in
17121         stack checking is enabled.
17122         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
17123         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
17124         (output_adjust_stack_and_probe): Likewise.
17125         (output_probe_stack_range): Likewise.
17126         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
17127         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
17128         TARGET_STACK_PROBE.
17129         (allocate_stack_worker_64): Likewise.
17130         (allocate_stack): Likewise.
17131         (adjust_stack_and_probe): New insn.
17132         (probe_stack_range): Likewise.
17133
17134 2010-07-08  Richard Guenther  <rguenther@suse.de>
17135
17136         PR tree-optimization/44831
17137         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
17138         a MEM_REF preserving TBAA info of the original dereference.
17139         Dereference the original pointer if the address is not invariant.
17140         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
17141         at least one invariant address that we are going to dereference.
17142
17143 2010-07-08  Richard Guenther  <rguenther@suse.de>
17144
17145         PR tree-optimization/44861
17146         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
17147         information when building MEM_REFs.
17148         (vectorizable_load): Likewise.
17149         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
17150
17151 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17152
17153         * config/sol2-c.c: Do not include diagnostic-core.h.
17154
17155 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17156
17157         PR bootstrap/44768
17158         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
17159         with respect to current_function_decl. Pass decl of the function.
17160         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
17161         * ipa-inline.c (compute_inline_parameters): Pass decl to
17162         estimated_stack_frame_size.
17163
17164 2010-07-08  Richard Guenther  <rguenther@suse.de>
17165
17166         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17167         New function.
17168         (valueize_refs): Call it.
17169
17170 2010-07-08  Richard Guenther  <rguenther@suse.de>
17171
17172         PR rtl-optimization/44838
17173         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
17174         SSA form do not use pointer equivalence.
17175
17176 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
17177
17178         * dwarf2out.c (AT_linkage_name): Delete.
17179         (add_linkage_attr): New function.
17180         (add_linkage_name): Call it to emit the linkage attribute.
17181         (dwarf2out_finish): Likewise.
17182         (move_linkage_attr): Explicitly accept both attribute variants.
17183
17184 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17185
17186         * toplev.h: Do not include diagnostic-core.h.
17187         Include diagnostic-core.h in every file that includes toplev.h.
17188         * c-tree.h: Do not include toplev.h.
17189         * pretty-print.h: Update comment.
17190         * Makefile.in: Update dependencies.
17191         * alias.c: Include diagnostic-core.h in every file that includes
17192         toplev.h.
17193         * attribs.c: Likewise.
17194         * auto-inc-dec.c: Likewise.
17195         * bb-reorder.c: Likewise.
17196         * bt-load.c: Likewise.
17197         * caller-save.c: Likewise.
17198         * calls.c: Likewise.
17199         * cfg.c: Likewise.
17200         * cfganal.c: Likewise.
17201         * cfgbuild.c: Likewise.
17202         * cfgcleanup.c: Likewise.
17203         * cfghooks.c: Likewise.
17204         * cfgloop.c: Likewise.
17205         * combine.c: Likewise.
17206         * config/alpha/alpha.c: Likewise.
17207         * config/arc/arc.c: Likewise.
17208         * config/arm/arm.c: Likewise.
17209         * config/arm/pe.c: Likewise.
17210         * config/avr/avr.c: Likewise.
17211         * config/bfin/bfin.c: Likewise.
17212         * config/cris/cris.c: Likewise.
17213         * config/crx/crx.c: Likewise.
17214         * config/darwin-c.c: Likewise.
17215         * config/darwin.c: Likewise.
17216         * config/fr30/fr30.c: Likewise.
17217         * config/frv/frv.c: Likewise.
17218         * config/h8300/h8300.c: Likewise.
17219         * config/host-darwin.c: Likewise.
17220         * config/i386/i386.c: Likewise.
17221         * config/i386/netware.c: Likewise.
17222         * config/i386/nwld.c: Likewise.
17223         * config/i386/winnt-cxx.c: Likewise.
17224         * config/i386/winnt-stubs.c: Likewise.
17225         * config/i386/winnt.c: Likewise.
17226         * config/ia64/ia64-c.c: Likewise.
17227         * config/ia64/ia64.c: Likewise.
17228         * config/iq2000/iq2000.c: Likewise.
17229         * config/lm32/lm32.c: Likewise.
17230         * config/m32c/m32c-pragma.c: Likewise.
17231         * config/m32c/m32c.c: Likewise.
17232         * config/m32r/m32r.c: Likewise.
17233         * config/m68hc11/m68hc11.c: Likewise.
17234         * config/m68k/m68k.c: Likewise.
17235         * config/mcore/mcore.c: Likewise.
17236         * config/mep/mep-pragma.c: Likewise.
17237         * config/mep/mep.c: Likewise.
17238         * config/mmix/mmix.c: Likewise.
17239         * config/mn10300/mn10300.c: Likewise.
17240         * config/moxie/moxie.c: Likewise.
17241         * config/pa/pa.c: Likewise.
17242         * config/pdp11/pdp11.c: Likewise.
17243         * config/picochip/picochip.c: Likewise.
17244         * config/rs6000/rs6000-c.c: Likewise.
17245         * config/rs6000/rs6000.c: Likewise.
17246         * config/rx/rx.c: Likewise.
17247         * config/s390/s390.c: Likewise.
17248         * config/score/score.c: Likewise.
17249         * config/score/score3.c: Likewise.
17250         * config/score/score7.c: Likewise.
17251         * config/sh/sh.c: Likewise.
17252         * config/sh/symbian-base.c: Likewise.
17253         * config/sh/symbian-c.c: Likewise.
17254         * config/sh/symbian-cxx.c: Likewise.
17255         * config/sol2-c.c: Likewise.
17256         * config/sol2.c: Likewise.
17257         * config/sparc/sparc.c: Likewise.
17258         * config/spu/spu.c: Likewise.
17259         * config/stormy16/stormy16.c: Likewise.
17260         * config/v850/v850-c.c: Likewise.
17261         * config/v850/v850.c: Likewise.
17262         * config/vax/vax.c: Likewise.
17263         * config/vxworks.c: Likewise.
17264         * config/xtensa/xtensa.c: Likewise.
17265         * convert.c: Likewise.
17266         * cse.c: Likewise.
17267         * cselib.c: Likewise.
17268         * dbgcnt.c: Likewise.
17269         * dbxout.c: Likewise.
17270         * ddg.c: Likewise.
17271         * dominance.c: Likewise.
17272         * emit-rtl.c: Likewise.
17273         * explow.c: Likewise.
17274         * expmed.c: Likewise.
17275         * fixed-value.c: Likewise.
17276         * fold-const.c: Likewise.
17277         * fwprop.c: Likewise.
17278         * gcse.c: Likewise.
17279         * ggc-common.c: Likewise.
17280         * ggc-page.c: Likewise.
17281         * ggc-zone.c: Likewise.
17282         * gimple-low.c: Likewise.
17283         * gimplify.c: Likewise.
17284         * graph.c: Likewise.
17285         * haifa-sched.c: Likewise.
17286         * ifcvt.c: Likewise.
17287         * implicit-zee.c: Likewise.
17288         * integrate.c: Likewise.
17289         * ira-build.c: Likewise.
17290         * ira-color.c: Likewise.
17291         * ira-conflicts.c: Likewise.
17292         * ira-costs.c: Likewise.
17293         * ira-lives.c: Likewise.
17294         * ira.c: Likewise.
17295         * lists.c: Likewise.
17296         * loop-doloop.c: Likewise.
17297         * loop-iv.c: Likewise.
17298         * lto-opts.c: Likewise.
17299         * lto-symtab.c: Likewise.
17300         * main.c: Likewise.
17301         * modulo-sched.c: Likewise.
17302         * optabs.c: Likewise.
17303         * params.c: Likewise.
17304         * plugin.c: Likewise.
17305         * postreload-gcse.c: Likewise.
17306         * postreload.c: Likewise.
17307         * predict.c: Likewise.
17308         * profile.c: Likewise.
17309         * real.c: Likewise.
17310         * regcprop.c: Likewise.
17311         * reginfo.c: Likewise.
17312         * regmove.c: Likewise.
17313         * reorg.c: Likewise.
17314         * resource.c: Likewise.
17315         * rtl.c: Likewise.
17316         * rtlanal.c: Likewise.
17317         * sched-deps.c: Likewise.
17318         * sched-ebb.c: Likewise.
17319         * sched-rgn.c: Likewise.
17320         * sdbout.c: Likewise.
17321         * sel-sched-dump.c: Likewise.
17322         * sel-sched-ir.c: Likewise.
17323         * simplify-rtx.c: Likewise.
17324         * stmt.c: Likewise.
17325         * stor-layout.c: Likewise.
17326         * store-motion.c: Likewise.
17327         * targhooks.c: Likewise.
17328         * tree-cfg.c: Likewise.
17329         * tree-cfgcleanup.c: Likewise.
17330         * tree-dump.c: Likewise.
17331         * tree-eh.c: Likewise.
17332         * tree-inline.c: Likewise.
17333         * tree-nomudflap.c: Likewise.
17334         * tree-object-size.c: Likewise.
17335         * tree-optimize.c: Likewise.
17336         * tree-outof-ssa.c: Likewise.
17337         * tree-phinodes.c: Likewise.
17338         * tree-profile.c: Likewise.
17339         * tree-ssa-ccp.c: Likewise.
17340         * tree-ssa-coalesce.c: Likewise.
17341         * tree-ssa-live.c: Likewise.
17342         * tree-ssa-loop-niter.c: Likewise.
17343         * tree-ssa-loop-prefetch.c: Likewise.
17344         * tree-ssa-loop.c: Likewise.
17345         * tree-ssa-structalias.c: Likewise.
17346         * tree-ssa-uninit.c: Likewise.
17347         * tree-ssa.c: Likewise.
17348         * tree-vect-data-refs.c: Likewise.
17349         * tree-vect-loop-manip.c: Likewise.
17350         * tree-vect-loop.c: Likewise.
17351         * tree-vect-patterns.c: Likewise.
17352         * tree-vect-stmts.c: Likewise.
17353         * tree-vrp.c: Likewise.
17354         * varasm.c: Likewise.
17355         * vec.c: Likewise.
17356         * web.c: Likewise.
17357         * xcoffout.c: Likewise.
17358
17359 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
17360
17361         * gengtype.c (write_field_root): New function.
17362         (write_root): Use it.
17363
17364 2010-07-07  Wei Guozhi  <carrot@google.com>
17365
17366         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
17367         of lowest bits to lshift/compare): Add a missing line.
17368
17369 2010-07-07  Wei Guozhi  <carrot@google.com>
17370
17371         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
17372         of lowest bits to lshift/compare): New.
17373
17374 2010-07-07  Tom Tromey  <tromey@redhat.com>
17375
17376         * doc/tm.texi: Update.
17377         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
17378         Add @hook.
17379         * target.def (want_debug_pub_sections): New hook.
17380         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
17381         * dwarf2out.c (add_pubname_string): Check
17382         targetm.want_debug_pub_sections.
17383         (add_pubname): Likewise.
17384         (add_pubtype): Likewise.
17385
17386 2010-07-07  Jie Zhang  <jie@codesourcery.com>
17387
17388         * genautomata.c (output_automata_list_min_issue_delay_code):
17389         Correctly decompress min_issue_delay.
17390
17391 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
17392
17393         PR rtl-optimization/44404
17394         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
17395         possible, use reg_overlap_mentioned_p instead.
17396
17397 2010-07-07  Duncan Sands  <baldrick@free.fr>
17398
17399         PR middle-end/41355
17400         * tree.c (build_function_type_skip_args): Copy the original type using
17401         build_distinct_type_copy rather than copy_node.
17402
17403 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
17404
17405         PR target/44850
17406         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
17407         revision 161876.
17408         (ix86_expand_prologue): Likewise.
17409         (ix86_handle_fndecl_attribute): Likewise.
17410         (ix86_asm_declare_function_name): Likewise.
17411         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17412         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17413         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
17414         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
17415         * doc/extend.texi: Likewise.
17416
17417 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
17418
17419         PR target/44844
17420         * config/i386/i386.md (rdrand<mode>): Changed to expand to
17421         retry if the carry flag isn't valid.
17422         (rdrand<mode>_1): New.
17423
17424 2010-07-07  Richard Guenther  <rguenther@suse.de>
17425
17426         PR middle-end/44790
17427         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
17428         for expanding the constant offset for MEM_REFs.
17429
17430 2010-07-07  Richard Guenther  <rguenther@suse.de>
17431
17432         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
17433         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
17434         * gimple.h (is_gimple_operand): Remove.
17435         * gimple.c (is_gimple_operand): Likewise.
17436         (walk_gimple_op): Fix wi->val_only setting for calls.
17437         * tree-cfg.c (verify_gimple_call): Fix argument validation.
17438         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
17439         invalid gimple calls.
17440
17441 2010-07-06  Jan Hubicka  <jh@suse.cz>
17442
17443         * lto-cgraph.c (output_cgraph): Add missing declaration.
17444
17445 2010-07-06  Jan Hubicka  <jh@suse.cz>
17446
17447         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
17448         partition.
17449
17450 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
17451
17452         * doc/gimple.texi (GIMPLE_DEBUG): Document.
17453         * doc/rtl.texi (Debug Information): New node.
17454         (NOTE_INSN_VAR_LOCATION): Document.
17455         (debug_insn): Likewise.
17456         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
17457
17458 2010-07-07  Jan Hubicka  <jh@suse.cz>
17459
17460         With parts by Richard Guenther.
17461
17462         PR middle-end/44813
17463         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
17464         for functions passed by reference.
17465         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
17466         in memory when passed by reference.
17467         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
17468         beggining.
17469         * ipa-split.c (split_function): Cleanup way return value is passed;
17470         handle SSA DECL_BY_REFERENCE retvals.
17471         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
17472         DECL_BY_REFERENCE is set.
17473         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
17474         find_what_p_points_to): Handle RESULT_DECL.
17475         * tree-inline.c (declare_return_variable): Get new entry_block argument;
17476         when passing by reference ensure that RESULT_DECL is gimple_val.
17477         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
17478         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
17479
17480 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
17481
17482         PR rtl-optimization/44787
17483         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
17484         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
17485
17486 2010-07-06  Jan Hubicka  <jh@suse.cz>
17487
17488         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
17489         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
17490         with body can prevail.
17491         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
17492         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
17493         * cgraph.c (cgraph_get_node_or_alias): New function.
17494         * cgraph.h (cgraph_get_node_or_alias): Declare.
17495
17496 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
17497
17498         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
17499         support.
17500         (ix86_expand_prologue): Likewise.
17501         (ix86_handle_fndecl_attribute): Likewise.
17502         (ix86_asm_declare_function_name): New function for
17503         ASM_DECLARE_FUNCTION_NAME.
17504         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
17505         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
17506         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
17507         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
17508         * doc/extend.texi: Adjust documentation about ms_hook_prologue
17509         attribute.
17510
17511 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17512
17513         * config/i386/i386.md (immediate_operand): New mode attribute.
17514
17515         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
17516         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
17517         using P mode iterator.
17518         (pro_epilogue_adjust_stack_di_2): Rename from
17519         pro_epilogue_adjust_stack_rex64_2.
17520
17521         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
17522
17523 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17524
17525         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
17526         through gen_mov_insv_1 function pointer.
17527         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
17528         gen_truncxf<mode>2 through gen_truncxf function pointer.
17529         (remainder<mode>3): Ditto.
17530         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
17531         (allocate_stack): Call gen_allocate_stack_worker_64 or
17532         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
17533         function pointer.
17534         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
17535         function pointer.
17536
17537 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
17538
17539         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
17540         operand constraint instead of <r><i>m.
17541
17542 2010-07-06  Richard Guenther  <rguenther@suse.de>
17543
17544         PR middle-end/44828
17545         * convert.c (convert_to_integer): Watch out for overflowing
17546         MULT_EXPR as well.
17547
17548 2010-07-05  Jan Hubicka  <jh@suse.cz>
17549
17550         * lto-streamer.c (write_symbol_vec): Rename to ...
17551         (write_symbol) ... this one; write only symbol given and when
17552         present in cache. Sanity check that what is defined is present
17553         in cgraph/varpool with body/finalized decl.
17554         (write_symbols_of_kind): Remove.
17555         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
17556         pairs to produce symtab.
17557         (produce_asm_for_decls): Update call of produce_symtab; don't do so
17558         when doing WPA streaming.
17559
17560 2010-07-05  Jan Hubicka  <jh@suse.cz>
17561
17562         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
17563         function is still available to fold into.
17564
17565 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17566
17567         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
17568         * function.h (struct_function): Change type of local_decls field
17569         to a VEC.
17570         (add_local_decl): New function.
17571         (FOR_EACH_LOCAL_DECL): New macro.
17572         * cfgexpand.c (init_vars_expansion): Adjust for new type of
17573         cfun->local_decls.
17574         (estimated_stack_frame_size): Likewise.
17575         (expand_used_vars): Likewise.
17576         * cgraphbuild.c (build_cgraph_edges): Likewise.
17577         * function.c (instantiate_decls_1): Likewise.
17578         * ipa-struct-reorg.c (build_data_structure): Likewise.
17579         * ipa-type-escape.c (analyze_function): Likewise.
17580         * lto-streamer-in.c (input_function): Likewise.
17581         * lto-streamer-out.c (output_function): Likewise.
17582         * tree-ssa-live.c (remove_unused_locals): Likewise.
17583         * tree.c (free_lang_data_in_decl): Likewise.
17584         (find_decls_types_in_node): Likewise.
17585         * omp-low.c (remove_exit_barrier): Likewise.
17586         (expand_omp_taskreg): Likewise.
17587         (list2chain): Rename to...
17588         (vec2chain): ...this.  Adjust.
17589         * cgraphunit.c (assemble_thunk): Call add_local_decl.
17590         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
17591         * gimple-low.c (record_vars_into): Likewise.
17592         * tree-inline.c (remap_decls): Likewise.
17593         (declare_return_variable): Likewise.
17594         (declare_inline_vars): Likewise.
17595         (copy_forbidden): Adjust for new type of cfun->local_decls.
17596         (add_local_variables): New function.
17597         (expand_call_inline): Call it.
17598         (tree_function_versioning): Likewise.
17599
17600 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
17601
17602         AVX Programming Reference (June, 2010)
17603         * config/i386/cpuid.h (bit_F16C): New.
17604         (bit_RDRND): Likewise.
17605         (bit_FSGSBASE): Likewise.
17606
17607         * config/i386/i386-builtin-types.def: Add
17608         "DEF_FUNCTION_TYPE (UINT16)", function types for
17609         float16 <-> float conversions and
17610         "DEF_FUNCTION_TYPE (VOID, UINT64)".
17611
17612         * config/i386/i386-c.c (ix86_target_macros_internal): Support
17613         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
17614         OPTION_MASK_ISA_F16C.
17615
17616         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
17617         (OPTION_MASK_ISA_RDRND_SET): Likewise.
17618         (OPTION_MASK_ISA_F16C_SET): Likewise.
17619         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
17620         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
17621         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
17622         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
17623         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
17624         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
17625         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
17626         (override_options): Handle them.
17627         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
17628         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
17629         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
17630         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
17631         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
17632         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
17633         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
17634         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
17635         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
17636         (bdesc_args): Likewise.
17637         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
17638         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
17639         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
17640         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
17641         Handle non-memory store.
17642
17643         * config/i386/i386.h (TARGET_FSGSBASE): New.
17644         (TARGET_RDRND): Likewise.
17645         (TARGET_F12C): Likewise.
17646
17647         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
17648         (UNSPEC_VCVTPS2PH): Likewise.
17649         (UNSPECV_RDFSBASE): Likewise.
17650         (UNSPECV_RDGSBASE): Likewise.
17651         (UNSPECV_WRFSBASE): Likewise.
17652         (UNSPECV_WRGSBASE): Likewise.
17653         (UNSPECV_RDRAND): Likewise.
17654         (rdfsbase<mode>): Likewise.
17655         (rdgsbase<mode>): Likewise.
17656         (wrfsbase<mode>): Likewise.
17657         (wrgsbase<mode>): Likewise.
17658         (rdrand<mode>): Likewise.
17659
17660         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
17661
17662         * config/i386/immintrin.h (_rdrand_u16): New.
17663         (_rdrand_u32): Likewise.
17664         (_readfsbase_u32): Likewise.
17665         (_readfsbase_u64): Likewise.
17666         (_readgsbase_u32): Likewise.
17667         (_readgsbase_u64): Likewise.
17668         (_writefsbase_u32): Likewise.
17669         (_writefsbase_u64): Likewise.
17670         (_writegsbase_u32): Likewise.
17671         (_writegsbase_u64): Likewise.
17672         (_rdrand_u64): Likewise.
17673         (_cvtsh_ss): Likewise.
17674         (_mm_cvtph_ps): Likewise.
17675         (_mm256_cvtph_ps): Likewise.
17676         (_cvtss_sh): Likewise.
17677         (_mm_cvtps_ph): Likewise.
17678         (_mm256_cvtps_ph): Likewise.
17679
17680         * config/i386/sse.md (vcvtph2ps): New.
17681         (*vcvtph2ps_load): Likewise.
17682         (vcvtph2ps256): Likewise.
17683         (vcvtps2ph): Likewise.
17684         (*vcvtps2ph): Likewise.
17685         (*vcvtps2ph_store): Likewise.
17686         (vcvtps2ph256): Likewise.
17687
17688         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
17689
17690         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
17691
17692 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
17693
17694         PR bootstrap/44512
17695         * genenums.c (main): Output include of insn-constants.h
17696         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
17697
17698 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
17699
17700         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
17701         (override_options): Initialize it.
17702         (ix86_expand_prologue): Use it.
17703
17704 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
17705
17706         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
17707
17708 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
17709
17710         * double-int.h (fit_double_type): Remove declaration.
17711         * double-int.c (fit_double_type): Remove function.
17712         * tree.h (int_fits_type_p): Adjust prototype.
17713         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
17714         instead of fit_double_type.
17715         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
17716         instead of fit_double_type and build_int_cst_wide.
17717         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
17718         instead of fit_double_type and build_int_cst_wide.
17719         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
17720         of fit_double_type.
17721
17722 2010-07-05  Jan Hubicka  <jh@suse.cz>
17723
17724         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
17725         in_other_partition.
17726         * lto-cgraph.c (referenced_from_other_partition_p,
17727         reachable_from_other_partition_p): Use in_other_partition flags.
17728         (output_node, output_varpool_node): COMDAT nodes always have private
17729         copies and thus are never used from other partition.
17730
17731 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
17732
17733         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17734         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
17735         * config/ia64/ia64.c Include reload.h.
17736         (ia64_memory_move_cost): New function.
17737         (TARGET_MEMORY_MOVE_COST): Define.
17738         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
17739         memory_move_cost.
17740
17741 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
17742
17743         PR middle-end/42505
17744         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
17745         comments about cost model.
17746         (try_add_cand_for):  Add second strategy for choosing initial set
17747         based on original IVs, controlled by ORIGINALP argument.
17748         (get_initial_solution): Add ORIGINALP argument.
17749         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
17750         (find_optimal_iv_set): Try two different strategies for choosing
17751         the IV set, and return the one with lower cost.
17752
17753 2010-07-05  Richard Guenther  <rguenther@suse.de>
17754
17755         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
17756
17757 2010-07-05  Richard Guenther  <rguenther@suse.de>
17758
17759         * tree.c (reference_alias_ptr_type): New function.
17760         * tree.h (reference_alias_ptr_type): Declare.
17761         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
17762         allow non-TARGET_MEM_REF new refs.
17763         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
17764         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
17765         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
17766         (create_mem_ref): Get alias pointer type.  Adjust calls to
17767         create_mem_ref_raw.
17768         (maybe_fold_tmr): Likewise.
17769         * tree-flow.h (create_mem_ref): Adjust prototype.
17770
17771 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
17772
17773         PR c++/44808
17774         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
17775         *from_p is VAR_DECL.
17776
17777 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17778
17779         * tree.h (build_call_list): Remove.
17780         * tree.c (build_call_list): Remove.
17781
17782 2010-07-05  Richard Guenther  <rguenther@suse.de>
17783
17784         * double-int.h (double_int_sub): Declare.
17785         * double-int.c (double_int_sub): New function.
17786         * dwarf2out.c (field_byte_offset): Use it.
17787         * fixed-value.c (do_fixed_add): Likewise.
17788         (do_fixed_multiply): Likewise.
17789         (do_fixed_divide): Likewise.
17790         * tree-predcom.c (add_ref_to_chain): Likewise.
17791         (determine_roots_comp): Likewise.
17792         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
17793
17794 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17795
17796         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
17797         implementations.
17798
17799 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
17800
17801         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
17802         * arm-modes.def (CC_NOTB): Don't define.
17803         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
17804         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
17805         (LTUGEU): New code_iterator.
17806         (cnb, optab): New corresponding code_attrs.
17807         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
17808         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
17809         using LTUGEU.
17810         (addsi3_carryin_shift_<optab>): Likewise.
17811         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
17812         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
17813         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
17814         (subsi3_compare): Renamed from subsi3_compare0_c.
17815         Change CC_NOTB to CC.
17816         (arm_subsi3_insn): Allow constants for operand 0.
17817         (compare_scc peephole for eq case): New.
17818         (compare_scc splitters): Change CC_NOTB to CC.
17819
17820 2010-07-05  Richard Guenther  <rguenther@suse.de>
17821
17822         * tree-ssa-loop-im.c (for_each_index): Do not handle
17823         ALIGN_INDIRECT_REF.
17824         (gen_lsm_tmp_name): Likewise.
17825         * tree-dump.c (dequeue_and_dump): Likewise.
17826         * tree-pretty-print.c (dump_generic_node): Likewise.
17827         (op_code_prio): Likewise.
17828         (op_symbol_code): Likewise.
17829         * tree.c (staticp): Likewise.
17830         (build1_stat): Likewise.
17831         * tree.h (INDIRECT_REF_P): Likewise.
17832         * fold-const.c (maybe_lvalue_p): Likewise.
17833         (operand_equal_p): Likewise.
17834         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17835         (ao_ref_init_from_vn_reference): Likewise.
17836         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
17837         (find_interesting_uses_address): Likewise.
17838         * dwarf2out.c (loc_list_from_tree): Likewise.
17839         * gimplify.c (gimplify_expr): Likewise.
17840         * tree-eh.c (tree_could_trap_p): Likewise.
17841         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
17842         * cfgexpand.c (expand_debug_expr): Likewise.
17843         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17844         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
17845         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
17846         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
17847         * tree-ssa-operands.c (get_expr_operands): Likewise.
17848         * expr.c (safe_from_p): Likewise.
17849         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
17850         * tree-vect-data-refs.c (vect_setup_realignment): Build
17851         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
17852         * tree-vect-stmts.c (vectorizable_load): Likewise.
17853         * tree.def (ALIGN_INDIRECT_REF): Remove.
17854
17855 2010-07-05  Richard Guenther  <rguenther@suse.de>
17856
17857         PR tree-optimization/44784
17858         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
17859         for inserted stmts.
17860         (find_or_generate_expression): Fix SCCVN insertion check.
17861
17862 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
17863
17864         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
17865         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
17866         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
17867         directives.
17868
17869 2010-07-05  Ira Rosen  <irar@il.ibm.com>
17870
17871         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
17872         statements that are not vectorized.
17873         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
17874         in INSIDE_COST.
17875
17876 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
17877
17878         PR bootstrap/44820
17879         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
17880
17881 2010-07-05  Richard Guenther  <rguenther@suse.de>
17882
17883         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
17884         RESULT_DECLs properly.
17885
17886 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17887
17888         PR rtl-optimization/44695
17889         * config/i386/i386.md (extract_code): Removed.
17890         (<u>divmodqi4): Likewise.
17891         (divmodqi4): New.
17892         (udivmodqi4): Likewise.
17893         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
17894         (udivmodhiqi3): Likewise.
17895
17896 2010-07-04  Jan Hubicka  <jh@suse.cz>
17897
17898         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
17899
17900 2010-07-04  Jan Hubicka  <jh@suse.cz>
17901
17902         * cgraphunit.c (init_cgraph): Only initialize dump file if it
17903         is not already initialized.
17904
17905 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17906
17907         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
17908         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
17909         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
17910         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
17911         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
17912         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
17913         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
17914         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
17915         (sync_new_nand_optab): Redefine as macros.
17916         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
17917         Delete.
17918         (direct_optab_index): New enum.
17919         (direct_optab_d): New structure.
17920         (direct_optab): New typedef.
17921         (direct_optab_table): Declare.
17922         (direct_optab_handler, set_direct_optab_handler): New functions.
17923         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
17924         (sync_lock_release_optab): New macros.
17925         * optabs.c (direct_optab_table): New variable.
17926         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
17927         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
17928         cmpstr_optab and cmpstrn_optab.
17929         (emit_conditional_move): Likewise for movcc_optab.
17930         (can_conditionally_move_p): Likewise for movcc_gen_code.
17931         (init_insn_codes): Clear direct_optab_table.
17932         (init_optabs): Don't initialize the new "direct optabs" here.
17933         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
17934         vcond_gen_code.
17935         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
17936         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
17937         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
17938         (expand_sync_operation): Likewise other sync_*_optabs.
17939         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
17940         to sync_compare_and_swap_optab.
17941         (expand_sync_lock_test_and_set): Use direct_optab_handler for
17942         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
17943         to the names of both.
17944         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
17945         cmpstr_optab and cmpstrn_optab.
17946         (expand_builtin_lock_release): Likewise sync_lock_release.
17947         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
17948         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
17949         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
17950         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
17951         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
17952         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
17953         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
17954         (sync_lock_test_and_set, sync_lock_release): Delete.
17955         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
17956         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
17957         * genopinit.c (optabs): Use set_direct_optab_handler for the new
17958         macro optabs.
17959         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
17960         the "optab" local variable.  Use direct_optab_handler for optab and
17961         sync_compare_and_swap_optab.
17962         * reload1.c (reload_in_optab, reload_out_optab): Delete.
17963         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
17964         reload_in_optab and reload_out_optab.
17965         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17966         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
17967         * config/pa/pa.c (pa_secondary_reload): Likewise.
17968         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
17969         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
17970         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
17971         (VMSupportsCS8_builtin): Likewise.
17972
17973 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17974
17975         * optabs.h (optab_handlers): Change type of insn_code to int.
17976         (optab_handler, set_optab_handler, convert_optab_handler)
17977         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
17978         CODE_FOR_nothing".
17979         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
17980         (init_insn_codes): Zero both the above arrays.
17981         (init_optabs): Never call init_insn_codes first time around.
17982
17983 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17984
17985         * optabs.h (optab_handler, convert_optab_handler): Turn into
17986         inline functions that return an insn code.
17987         (set_optab_handler, set_convert_optab_handler): New functions.
17988         * builtins.c: Replace optab_handler(X)->insn_code with
17989         optab_handler or set_optab_handler thoughout.  Likewise
17990         convert_optab_handler(X)->insn_code with convert_optab_handler
17991         and set_convert_optab_handler.
17992         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
17993         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
17994         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
17995         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17996         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
17997         config/spu/spu.c: Likewise.
17998
17999 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
18000
18001         PR target/44531
18002         * config.gcc (sh*-*-*): Use regular expressions instead of
18003         the 'i' modifier for sed substitutions.
18004
18005 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
18006
18007         * gimple.c (gimple_body): Comments added.
18008
18009 2010-07-04  Richard Guenther  <rguenther@suse.de>
18010
18011         PR middle-end/44809
18012         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
18013         of an INDIRECT_REF.
18014
18015 2010-07-04  Richard Guenther  <rguenther@suse.de>
18016
18017         PR tree-optimization/44479
18018         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
18019         extra SSA name copy statements which preserves points-to
18020         information.
18021         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
18022         Copy points-to information for all pointers.  Properly handle
18023         MEM_REFs.
18024         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
18025         copy statements.
18026         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
18027         dependency.
18028
18029 2010-07-04  Richard Guenther  <rguenther@suse.de>
18030
18031         PR middle-end/44785
18032         * tree-inline.c (initialize_inlined_parameters): Do not
18033         re-use pointer-map slot over remap_type call.
18034
18035 2010-07-04  Richard Guenther  <rguenther@suse.de>
18036
18037         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
18038
18039 2010-07-04  Richard Guenther  <rguenther@suse.de>
18040
18041         PR tree-optimization/44656
18042         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
18043         again after value-replacing in the defintions lhs.
18044
18045 2010-07-04  Ira Rosen  <irar@il.ibm.com>
18046             Revital Eres  <eres@il.ibm.com>
18047
18048         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
18049         Document new arguments.
18050         * doc/tm.texi: Regenerate.
18051         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
18052         Handle unaligned store.
18053         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
18054         * target.def (builtin_vectorization_cost): Add new arguments.
18055         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
18056         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
18057         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
18058         (vect_vfa_segment_size): Fix indentation.
18059         * tree-vectorizer.h (struct _vect_peel_info): New.
18060         (struct _vect_peel_extended_info): New.
18061         (struct _loop_vec_info): Add new field for peeling hash table and a
18062         macro for its access.
18063         (VECT_MAX_COST): Define.
18064         (vect_get_load_cost): Declare.
18065         (vect_get_store_cost, vect_get_known_peeling_cost,
18066         vect_get_single_scalar_iteraion_cost): Likewise.
18067         (vect_supportable_dr_alignment): Add new argument.
18068         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
18069         field.
18070         (destroy_loop_vec_info): Free peeling hash table.
18071         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
18072         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
18073         vect_analyze_slp. Fix indentation.
18074         (vect_get_single_scalar_iteraion_cost): New function.
18075         (vect_get_known_peeling_cost): Likewise.
18076         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
18077         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
18078         statement. Move outside cost calculation inside unknown peeling case.
18079         Call vect_get_known_peeling_cost for known amount of peeling.
18080         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
18081         reference to the print message of forced alignment.
18082         (vect_verify_datarefs_alignment): Update call to
18083         vect_supportable_dr_alignment.
18084         (vect_get_data_access_cost): New function.
18085         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
18086         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
18087         vect_peeling_hash_choose_best_peeling): Likewise.
18088         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
18089         to store all the accesses in the loop and find best possible access to
18090         align using peeling for known alignment case. For unknown alignment
18091         check if stores are preferred or if peeling is worthy.
18092         (vect_find_same_alignment_drs): Analyze pairs of loads too.
18093         (vect_supportable_dr_alignment): Add new argument and check aligned
18094         accesses according to it.
18095         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
18096         (cost_for_stmt): Call vect_get_stmt_cost.
18097         (vect_model_simple_cost): Likewise.
18098         (vect_model_store_cost): Call vect_get_stmt_cost. Call
18099         vect_get_store_cost to calculate the cost of the statement.
18100         (vect_get_store_cost): New function.
18101         (vect_model_load_cost): Call vect_get_stmt_cost. Call
18102         vect_get_load_cost to calculate the cost of the statement.
18103         (vect_get_load_cost): New function.
18104         (vectorizable_store): Update call to vect_supportable_dr_alignment.
18105         (vectorizable_load): Likewise.
18106         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
18107         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
18108         arguments. Handle unaligned store.
18109         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
18110         (rs6000_builtin_support_vector_misalignment): Return true for word and
18111         double word alignments for VSX.
18112         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
18113         vect_supportable_dr_alignment and builtin_vectorization_cost.
18114
18115 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18116
18117         PR target/44597
18118         * config/pa/predicates.md (prefetch_cc_operand): Remove.
18119         (prefetch_nocc_operand): Likewise.
18120         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
18121         (prefetch_20): New insn.
18122         (prefetch_cc): Remove.
18123         (prefetch_nocc): Likewise.
18124
18125 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18126
18127         * expr.c (vector_mode_valid_p): Move to c-common.c.
18128         * expr.h (vector_mode_valid_p): Do not declare here.
18129         * system.h: Poison GCC_EXPR_H in front-ends.
18130         * Makefile.in: Update dependencies.
18131
18132 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18133
18134         PR target/44705
18135         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
18136
18137 2010-07-03  Jan Hubicka  <jh@suse.cz>
18138
18139         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
18140         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
18141         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
18142         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
18143         Likewise.
18144
18145         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
18146         Update timevars.V
18147         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
18148         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
18149         TV_IPA_LTO_DECL_OUT): New.
18150         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
18151
18152 2010-07-03  Jan Hubicka  <jh@suse.cz>
18153
18154         * ipa-inline.c (update_edge_key): Break out from ...
18155         update_callers_keys): ... here;
18156         (update_callee_keys): Update only the edges from caller to callee.
18157         (update_all_calle_keys): Do what update_calle_keys did.
18158         (decide_inlining_of_small_functions): Avoid recomputing of all
18159         callees when badness increase.
18160
18161 2010-07-03  Jie Zhang  <jie@codesourcery.com>
18162
18163         * config/arm/arm.c (arm_attr_length_move_neon): New.
18164         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
18165         * config/arm/neon.md (define_mode_attr V_slen): Remove.
18166         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
18167         to compute length attribute.
18168
18169 2010-07-03  Jie Zhang  <jie@codesourcery.com>
18170
18171         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
18172         as predicate for operand 1 and remove its constraint.
18173         * config/arm/predicates.md (vfp_register_operand): New.
18174         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
18175         (*push_fp_multi): Likewise.
18176
18177 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
18178
18179         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
18180
18181 2010-07-03  Jan Hubicka  <jh@suse.cz>
18182
18183         * config/i386/i386.c (override_options): Revert accidental commit.
18184
18185 2010-07-02  Le-Chun Wu  <lcwu@google.com>
18186
18187         PR c++/44128
18188         * doc/invoke.texi: Update documentation of -Wshadow.
18189
18190 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
18191             Julian Brown  <julian@codesourcery.com>
18192             Sandra Loosemore  <sandra@codesourcery.com>
18193
18194         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
18195         comparisons.  Adjust to take both operands.
18196         (arm_select_cc_mode): Handle DImode comparisons.
18197         (arm_gen_compare_reg): Generate a scratch register for DImode
18198         comparisons which require one.  Use xor for Thumb equality checks.
18199         (arm_const_double_by_immediates): New.
18200         (arm_print_operand): Allow 'Q' and 'R' for constants.
18201         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
18202         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
18203         arm_canonicalize_comparison.
18204         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
18205         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
18206         prototype.
18207         (arm_const_double_by_immediates): Declare.
18208         * config/arm/constraints.md (Di): New constraint.
18209         * config/arm/predicates.md (arm_immediate_di_operand)
18210         (arm_di_operand, cmpdi_operand): New.
18211         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
18212         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
18213         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
18214         (cstoredi4): Handle non-Cirrus also.
18215
18216 2010-07-02  Julian Brown  <julian@codesourcery.com>
18217             Sandra Loosemore  <sandra@codesourcery.com>
18218
18219         PR target/43703
18220         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
18221         (smax<mode>3): Disable for NEON float modes when
18222         flag_unsafe_math_optimizations is false.
18223         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
18224         (*mul<mode>3_neon)
18225         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
18226         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
18227         for NEON float modes when flag_unsafe_math_optimizations is false.
18228         (quad_halves_<code>v4sf): Only enable if
18229         flag_unsafe_math_optimizations is true.
18230         * doc/invoke.texi (ARM Options): Add note about floating point
18231         vectorization requiring -funsafe-math-optimizations.
18232
18233 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18234             Julian Brown  <julian@codesourcery.com>
18235
18236         * config/arm/neon.md (UNSPEC_VABA): Delete.
18237         (UNSPEC_VABAL): Delete.
18238         (UNSPEC_VABS): Delete.
18239         (UNSPEC_VMUL_N): Delete.
18240         (adddi3_neon): New.
18241         (subdi3_neon): New.
18242         (mul<mode>3add<mode>_neon): Make the pattern named.
18243         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
18244         (neon_vadd<mode>): Replace with define_expand, and move the remaining
18245         unspec parts...
18246         (neon_vadd<mode>_unspec): ...to this.
18247         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
18248         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
18249         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
18250         (neon_vaba<mode>): Rewrite in terms of vabd.
18251         (neon_vabal<mode>): Rewrite in terms of vabdl.
18252         (neon_vabs<mode>): Rewrite without unspec.
18253         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
18254         (*arm_subdi3): Likewise.
18255         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
18256         No_op attribute to disable assembly output checks.
18257         * config/arm/arm_neon.h: Regenerated.
18258         * doc/arm-neon-intrinsics.texi: Regenerated.
18259
18260 2010-07-02  Jan Hubicka  <jh@suse.cz>
18261
18262         * ipa-split.c (split_function): For aggregate values, set the return
18263         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
18264         *<retval> = fncall.part ().
18265         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
18266
18267 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18268
18269         * config/arm/neon.md (UNSPEC_VAND): Delete.
18270         (UNSPEC_VBIC): Delete.
18271         (UNSPEC_VCLZ): Delete.
18272         (UNSPEC_VCNT): Delete.
18273         (UNSPEC_VEOR): Delete.
18274         (UNSPEC_VORN): Delete.
18275         (UNSPEC_VORR): Delete.
18276         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
18277         core registers too.
18278         (anddi3_neon): Likewise.
18279         (orndi3_neon): Likewise.
18280         (bicdi3_neon): Likewise.
18281         (xordi3_neon): Likewise.
18282         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
18283         rid of unspec and handle unused operand.
18284         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
18285         * config/arm/predicates.md (imm_for_neon_logic_operand):
18286         Require TARGET_NEON.
18287         (imm_for_neon_inv_logic_operand): Likewise.
18288         * config/arm/arm.md (define_split for logical_binary_operator):
18289         Disable for NEON registers.
18290         (anddi3): Add new define_expand, and rename the insn.  Disable
18291         this insn for NEON, where anddi3_neon now applies.
18292         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
18293         (iordi3): As for anddi3.
18294         (xordi3): Likewise.
18295         * config/arm/neon.ml (Vand): Split DImode variants and mark them
18296         as No_op to disable testing for exact instruction match.
18297         (Vorr): Likewise.
18298         (Veor): Likewise.
18299         (Vbic): Likewise.
18300         (Vorn): Likewise.
18301         * config/arm/arm_neon.h: Regenerated.
18302         * doc/arm-neon-intrinsics.texi: Regenerated.
18303
18304 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
18305
18306         * expr.h (emit_stack_probe): Declare.
18307         * explow.c (emit_stack_probe): Make global.
18308         (anti_adjust_stack_and_probe): Fix comments.
18309         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
18310         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18311         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18312         * config/sparc/sparc.c: Include except.h.
18313         (sparc_emit_probe_stack_range): New function.
18314         (output_probe_stack_range): Likewise.
18315         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
18316         built-in stack checking is enabled.
18317         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
18318         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
18319         (probe_stack_range): New insn.
18320
18321 2010-07-02  Richard Guenther  <rguenther@suse.de>
18322
18323         PR target/43958
18324         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
18325         for argument alignment.
18326
18327 2010-07-02  Jan Hubicka  <jh@suse.cz>
18328
18329         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
18330         walk backwards from entry_bb to check only those basic block of header
18331         that might lead to execution of split part.
18332         (consider_split) ... here.
18333         (find_return_bb): Allow assignment in return BB.
18334         (find_retval): New.
18335         (split_function): Fix name of cloned function; take care of updating
18336         return value in return_bb containing move.
18337
18338 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
18339
18340         PR target/44771
18341         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
18342         used variable insn.
18343
18344 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
18345
18346         * implicit-zee.c (combine_reaching_defs): Fix long lines.
18347         (is_set_with_extension_DI): Delete.
18348         (struct zero_extend_info): New structure.
18349         (add_removable_zero_extend): New function.
18350         (find_removable_zero_extends): Use note_stores to find SETs.
18351         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
18352
18353 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
18354
18355         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
18356         is_miss_rate_acceptable. Pull total_positions computation
18357         out of the loops.  Early return if miss_positions exceeds
18358         the acceptable threshold.
18359         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
18360         is_miss_rate_acceptable after renaming of compute_miss_rate.
18361
18362 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
18363
18364         PR middle-end/44576
18365         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
18366         of 1000) for miss rate if the address diference is greater than or
18367         equal to the cache line size (the two reference will never hit the
18368         same cache line).
18369
18370 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
18371
18372         PR target/42835
18373         * config/arm/arm-modes.def (CC_NOTB): New mode.
18374         * config/arm/arm.c (get_arm_condition_code): Handle it.
18375         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
18376         * config/arm/arm.md (subsi3_compare0_c): New pattern.
18377         (compare_scc): Now a define_and_split.  Add a number of extra
18378         splitters before it.
18379
18380         PR target/42172
18381         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
18382         and ZERO_EXTEND.
18383         (arm_rtx_costs_1): Likewise.
18384         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
18385         * config/arm/arm.md (is_arch6): New attribute.
18386         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
18387         extendqisi2): Tighten the code somewhat, avoiding invalid
18388         RTL to occur in the expander patterns.
18389         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
18390         (thumb1_zero_extendhisi2_v6): Delete.
18391         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
18392         (thumb1_extendhisi2_v6): Delete.
18393         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
18394         (thumb1_extendqisi2_v6): Delete.
18395         (zero_extendhisi2 for register input splitter): New.
18396         (zero_extendqisi2 for register input splitter): New.
18397         (thumb1_extendhisi2 for register input splitter): New.
18398         (extendhisi2 for register input splitter): New.
18399         (extendqisi2 for register input splitter): New.
18400         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
18401         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
18402         and add support for a register alternative requiring a split.
18403         (thumb1_zero_extendqisi2): Likewise.
18404         (arm_zero_extendqisi2): Likewise.
18405         (arm_extendhisi2): Likewise.
18406         (arm_extendqisi2): Likewise.
18407
18408 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18409
18410         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
18411         instead of an unspec.
18412         (neon_expand_vector_init): Likewise.
18413         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
18414         (UNSPEC_VDUP_LANE): Delete.
18415         (UNSPEC VDUP_N): Delete.
18416         (UNSPEC_VGET_HIGH): Delete.
18417         (UNSPEC_VGET_LANE): Delete.
18418         (UNSPEC_VGET_LOW): Delete.
18419         (UNSPEC_VMVN): Delete.
18420         (UNSPEC_VSET_LANE): Delete.
18421         (V_double_vector_mode): New.
18422         (vec_set<mode>_internal): Make code emitted match that for the
18423         corresponding intrinsics.
18424         (vec_setv2di_internal): Likewise.
18425         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
18426         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
18427         (neon_vset_lane<mode>): Combine double and quad patterns and
18428         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
18429         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
18430         (neon_vdup_n<mode>): Rewrite RTL without unspec.
18431         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
18432         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
18433         with neon_vdup_lanev2di, adjusting the pattern from the latter
18434         to be predicable for consistency.
18435         (neon_vdup_lane<mode>_internal): New.
18436         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
18437         to avoid using an unspec.
18438         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
18439         (neon_vdup_lanev2di): Turn into a define_expand.
18440         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
18441         (neon_vget_high<mode>): Replace with....
18442         (neon_vget_highv16qi): New pattern using canonical RTL.
18443         (neon_vget_highv8hi): Likewise.
18444         (neon_vget_highv4si): Likewise.
18445         (neon_vget_highv4sf): Likewise.
18446         (neon_vget_highv2di): Likewise.
18447         (neon_vget_low<mode>): Replace with....
18448         (neon_vget_lowv16qi): New pattern using canonical RTL.
18449         (neon_vget_lowv8hi): Likewise.
18450         (neon_vget_lowv4si): Likewise.
18451         (neon_vget_lowv4sf): Likewise.
18452         (neon_vget_lowv2di): Likewise.
18453
18454         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
18455         test for this emitting vmov.
18456         (Vset_lane): Likewise.
18457         (Vdup_n): Likewise.
18458         (Vmov_n): Likewise.
18459
18460         * doc/arm-neon-intrinsics.texi: Regenerated.
18461
18462 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
18463
18464         * config/arm/neon.md (vec_extractv2di): Correct error in register
18465         numbering to reconcile with neon_vget_lanev2di.
18466
18467 2010-07-02  Richard Guenther  <rguenther@suse.de>
18468
18469         * tree-ssa-structalias.c (pt_solution_set_var): New function.
18470         * tree-ssa-alias.h (pt_solution_set_var): Declare.
18471         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
18472         points-to information.
18473
18474 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
18475
18476         * config/s390/s390.c (override_options): Adopt prefetching
18477         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
18478
18479 2010-07-02  Jan Hubicka  <jh@suse.cz>
18480
18481         * df-problems.c (df_kill_notes): Do not collect dead  notes.
18482         (df_set_note): Just call add_reg_note.
18483         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
18484         df_create_unused_note): Do not deal with lists of old notes.
18485         (df_note_bb_compute): Likewise.
18486
18487 2010-07-02  Richard Guenther  <rguenther@suse.de>
18488
18489         * tree-ssa-structalias.c (find_func_aliases): Handle
18490         pointer alignment via BIT_AND_EXPR.
18491         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
18492
18493 2010-07-02  Richard Guenther  <rguenther@suse.de>
18494
18495         * tree-data-ref.c (initialize_data_dependence_relation): Handle
18496         mismatching number of dimensions properly.
18497
18498 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18499
18500         PR target/44707
18501         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
18502         (lo_sum (high ...) ...) patterns generated by earlier passes.
18503
18504 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18505
18506         * doc/install.texi (Prerequisites): Document Perl requirement on
18507         Solaris 2.
18508         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
18509
18510 2010-07-02  Richard Guenther  <rguenther@suse.de>
18511
18512         PR middle-end/44777
18513         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
18514
18515 2010-07-02  Jan Hubicka  <jh@suse.cz>
18516
18517         PR middle-end/44706
18518         * predict.c (predict_paths_for_bb): Handle case when control dependence
18519         BB has only abnormal edges.
18520
18521 2010-07-02  Richard Guenther  <rguenther@suse.de>
18522
18523         PR tree-optimization/44748
18524         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
18525         the embedded conversion in MEM_REFs.
18526
18527 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
18528
18529         * reload.c: Include toplev.h.
18530         * recog.c:  Likewise.
18531         * Makefile.in: Adjust dependencies.
18532
18533 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
18534
18535         PR debug/44694
18536         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
18537         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
18538
18539 2010-07-01  Richard Guenther  <rguenther@suse.de>
18540
18541         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
18542         types for offsets.
18543
18544 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
18545
18546         PR target/44732
18547         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
18548         Fix argument types.
18549
18550 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
18551
18552         PR target/44727
18553         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18554         Make sure operand 0 dies.
18555
18556 2010-07-01  Richard Guenther  <rguenther@suse.de>
18557
18558         PR middle-end/42834
18559         PR middle-end/44468
18560         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
18561         * doc/generic.texi (References to storage): Document MEM_REF.
18562         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
18563         (print_call_name): Likewise.
18564         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
18565         (build_simple_mem_ref_loc): New function.
18566         (mem_ref_offset): Likewise.
18567         * tree.h (build_simple_mem_ref_loc): Declare.
18568         (build_simple_mem_ref): Define.
18569         (mem_ref_offset): Declare.
18570         * fold-const.c: Include tree-flow.h.
18571         (operand_equal_p): Handle MEM_REF.
18572         (build_fold_addr_expr_with_type_loc): Likewise.
18573         (fold_comparison): Likewise.
18574         (fold_unary_loc): Fold
18575         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
18576         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
18577         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
18578         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
18579         (ptr_deref_may_alias_ref_p_1): Likewise.
18580         (ao_ref_base_alias_set): Properly differentiate base object for
18581         offset and TBAA.
18582         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
18583         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
18584         (indirect_refs_may_alias_p): Likewise.
18585         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
18586         chasing code.
18587         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
18588         (call_may_clobber_ref_p_1): Likewise.
18589         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
18590         * expr.c (expand_assignment): Handle MEM_REF.
18591         (store_expr): Handle MEM_REFs from STRING_CSTs.
18592         (store_field): If expanding a MEM_REF of a non-addressable
18593         decl use bitfield operations.
18594         (get_inner_reference): Handle MEM_REF.
18595         (expand_expr_addr_expr_1): Likewise.
18596         (expand_expr_real_1): Likewise.
18597         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
18598         * alias.c (ao_ref_from_mem): Handle MEM_REF.
18599         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
18600         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
18601         (dr_analyze_indices): Likewise.
18602         (dr_analyze_alias): Likewise.
18603         (object_address_invariant_in_loop_p): Likewise.
18604         * gimplify.c (mark_addressable): Handle MEM_REF.
18605         (gimplify_cond_expr): Build MEM_REFs.
18606         (gimplify_modify_expr_to_memcpy): Likewise.
18607         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
18608         (gimple_fold_indirect_ref): Adjust.
18609         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
18610         * tree.def (MEM_REF): New tree code.
18611         * tree-dfa.c: Include toplev.h.
18612         (get_ref_base_and_extent): Handle MEM_REF.
18613         (get_addr_base_and_unit_offset): New function.
18614         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
18615         * gimple-fold.c (may_propagate_address_into_dereference): Handle
18616         MEM_REF.
18617         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
18618         accesses if the array has just one dimension.  Remove always true
18619         parameter.  Do not require type compatibility here.
18620         (maybe_fold_offset_to_component_ref): Remove.
18621         (maybe_fold_stmt_indirect): Remove.
18622         (maybe_fold_reference): Remove INDIRECT_REF handling.
18623         Fold back to non-MEM_REF.
18624         (maybe_fold_offset_to_address): Simplify.  Deal with type
18625         mismatches here.
18626         (maybe_fold_reference): Likewise.
18627         (maybe_fold_stmt_addition): Likewise.  Also handle
18628         &ARRAY + I in addition to &ARRAY[0] + I.
18629         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
18630         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
18631         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
18632         * tree-ssa.c (useless_type_conversion_p): Make most pointer
18633         conversions useless.
18634         (warn_uninitialized_var): Handle MEM_REF.
18635         (maybe_rewrite_mem_ref_base): New function.
18636         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
18637         to SSA form.
18638         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
18639         INDIRECT_REF handling.
18640         (copy_tree_body_r): Handle MEM_REF.
18641         * gimple.c (is_gimple_addressable): Adjust.
18642         (is_gimple_address): Likewise.
18643         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
18644         invariant base are invariant.
18645         (is_gimple_min_lval): Adjust.
18646         (is_gimple_mem_ref_addr): New function.
18647         (get_base_address): Handle MEM_REF.
18648         (count_ptr_derefs): Likewise.
18649         (get_base_loadstore): Likewise.
18650         * gimple.h (is_gimple_mem_ref_addr): Declare.
18651         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
18652         * tree-cfg.c (verify_address): New function, split out from ...
18653         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
18654         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
18655         INDIRECT_REFs.
18656         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
18657         INDIRECT_REF.  Allow conversions.
18658         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
18659         a register does not change its size.
18660         (verify_types_in_gimple_reference): Verify MEM_REF.
18661         (verify_gimple_assign_single): Disallow INDIRECT_REF.
18662         Handle MEM_REF.
18663         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
18664         New.
18665         (mark_address_taken): Handle MEM_REF.
18666         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
18667         (get_asm_expr_operands): Pass opf_not_non_addressable.
18668         (get_expr_operands): Handle opf_[not_]non_addressable.
18669         Handle MEM_REF.  Remove INDIRECT_REF handling.
18670         * tree-vrp.c (check_array_ref): Handle MEM_REF.
18671         (search_for_addr_array): Likewise.
18672         (check_array_bounds): Likewise.
18673         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
18674         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
18675         (ref_always_accessed_p): Likewise.
18676         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
18677         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
18678         Handle MEM_REF.
18679         * cgraphbuild.c (mark_load): Properly check for NULL result
18680         from get_base_address.
18681         (mark_store): Likewise.
18682         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
18683         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
18684         handling for MEM_REF.
18685         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
18686         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
18687         * builtins.c (stabilize_va_list_loc): Use the function ABI
18688         valist type if we couldn't canonicalize the argument type.
18689         Always dereference with the canonical va-list type.
18690         (maybe_emit_free_warning): Handle MEM_REF.
18691         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
18692         memmove to memcpy.
18693         * builtins.c (fold_builtin_memory_op): Use ref-all types
18694         for all memcpy foldings.
18695         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
18696         (build_outer_var_ref): Likewise.
18697         (scan_omp_1_op): Likewise.
18698         (lower_rec_input_clauses): Likewise.
18699         (lower_lastprivate_clauses): Likewise.
18700         (lower_reduction_clauses): Likewise.
18701         (lower_copyprivate_clauses): Likewise.
18702         (expand_omp_atomic_pipeline): Likewise.
18703         (expand_omp_atomic_mutex): Likewise.
18704         (create_task_copyfn): Likewise.
18705         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
18706         Remove old union trick.  Initialize constant offsets.
18707         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
18708         INDIRECT_REF.  Init base_alias_set properly.
18709         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
18710         (vn_reference_fold_indirect): Adjust for MEM_REFs.
18711         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
18712         for ARRAY_REFs.
18713         (may_insert): Remove.
18714         (visit_reference_op_load): Do not test may_insert.
18715         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
18716         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
18717         a field to store the constant offset this op applies.
18718         (run_scc_vn): Adjust prototype.
18719         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
18720         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
18721         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
18722         bother about volatile qualifiers on pointers.
18723         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
18724         * tree-ssa-loop-ivopts.c
18725         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
18726         (strip_offset_1): Likewise.
18727         (find_interesting_uses_address): Replace INDIRECT_REF handling with
18728         MEM_REF handling.
18729         (get_computation_cost_at): Likewise.
18730         * ipa-pure-const.c (check_op): Handle MEM_REF.
18731         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
18732         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
18733         and constants.
18734         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
18735         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
18736         (eliminate_local_variables_1): Likewise.
18737         (create_call_for_reduction_1): Likewise.
18738         (create_loads_for_reductions): Likewise.
18739         (create_loads_and_stores_for_name): Likewise.
18740         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
18741         (ssa_accessed_in_tree): Handle MEM_REF.
18742         (ssa_accessed_in_assign_rhs): Likewise.
18743         (update_type_size): Likewise.
18744         (analyze_accesses_for_call_stmt): Likewise.
18745         (analyze_accesses_for_assign_stmt): Likewise.
18746         (transform_access_sites): Likewise.
18747         (transform_allocation_sites): Likewise.
18748         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
18749         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
18750         not handle INDIRECT_REF.
18751         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
18752         (cond_store_replacement): Likewise.
18753         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
18754         MEM_REF, no not handle INDIRECT_REFs.
18755         (insert_into_preds_of_block): Properly initialize avail.
18756         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
18757         for ARRAY_REFs.  Properly handle reference lookups that
18758         require a bit re-interpretation.
18759         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
18760         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
18761         (build_ref_for_offset_1): Remove.
18762         (build_ref_for_offset): Build MEM_REFs.
18763         (gate_intra_sra): Disable for now.
18764         (sra_ipa_modify_expr): Handle MEM_REF.
18765         (ipa_early_sra_gate): Disable for now.
18766         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
18767         MEM_REF handling.
18768         (disqualify_base_of_expr): Likewise.
18769         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
18770         MEM_REF handling.
18771         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
18772         Use mem_ref_offset.  Remove bogus folding.
18773         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
18774         (make_fancy_name_1): Add support for MEM_REF.
18775         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
18776         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
18777         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
18778         (compute_complex_ancestor_jump_func): Likewise.
18779         (ipa_analyze_virtual_call_uses): Likewise.
18780         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
18781         INDIRECT_REF folding with more generalized MEM_REF folding.
18782         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
18783         (forward_propagate_addr_into_variable_array_index): Also handle
18784         &ARRAY + I in addition to &ARRAY[0] + I.
18785         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
18786         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
18787         creates assignments with overlap.
18788         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
18789         (get_frame_field): Likewise.
18790         (get_nonlocal_debug_decl): Likewise.
18791         (convert_nonlocal_reference_op): Likewise.
18792         (struct nesting_info): Add mem_refs pointer-set.
18793         (create_nesting_tree): Allocate it.
18794         (convert_local_reference_op): Insert to be folded mem-refs.
18795         (fold_mem_refs): New function.
18796         (finalize_nesting_tree_1): Perform defered folding of mem-refs
18797         (free_nesting_tree): Free the pointer-set.
18798         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
18799         (vectorizable_load): Likewise.
18800         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
18801         (propagate_with_phi): Likewise.
18802         * tree-object-size.c (addr_object_size): Handle MEM_REFs
18803         instead of INDIRECT_REFs.
18804         (compute_object_offset): Handle MEM_REF.
18805         (plus_stmt_object_size): Handle MEM_REF.
18806         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
18807         for &MEM_REF.
18808         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
18809         (symbol_marked_for_renaming): Likewise.
18810         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
18811         (fold-const.o): Add $(TREE_FLOW_H).
18812         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
18813         (find_func_clobbers): Likewise.
18814         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
18815         (decompose_access): Likewise.
18816         (replace_field_acc): Likewise.
18817         (replace_field_access_stmt): Likewise.
18818         (insert_new_var_in_stmt): Likewise.
18819         (get_stmt_accesses): Likewise.
18820         (reorg_structs_drive): Disable.
18821         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
18822         (ix86_canonical_va_list_type): Likewise.
18823
18824 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
18825
18826         PR other/44566
18827         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
18828         * target.def (struct gcc_target): Replace enum reg_class with
18829         reg_class_t in hook argument / return types.
18830         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
18831         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
18832         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
18833         * targhooks.h (default_branch_target_register_class): Likewise.
18834         (default_ira_cover_classes, default_secondary_reload): Likewise.
18835         (default_memory_move_cost, default_register_move_cost): Likewise.
18836         * targhooks.c (default_branch_target_register_class): Likewise.
18837         (default_ira_cover_classes, default_secondary_reload): Likewise.
18838         (default_memory_move_cost, default_register_move_cost): Likewise.
18839         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
18840         * bt-load.c (branch_target_load_optimize): Likewise.
18841         * ira.c (setup_cover_and_important_classes): Likewise.
18842         * ira-costs.c (copy_cost): Likewise.
18843         * reload1.c (emit_input_reload_insns): Likewise.
18844         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
18845         * config/frv/frv.c (frv_secondary_reload): Likewise.
18846         * config/s390/s390.c (s390_secondary_reload): Likewise.
18847         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
18848         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
18849         (ix86_register_move_cost): Likewise.
18850         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
18851         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
18852         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
18853         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
18854         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
18855         (rs6000_ira_cover_classes): Likewise.
18856         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
18857         * config/picochip/picochip-protos.h (picochip_secondary_reload):
18858         Likewise.
18859         * config/pa/pa.c (pa_secondary_reload): Likewise.
18860         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
18861         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
18862         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
18863         * doc/tm.texi: Regenerate.
18864
18865 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
18866
18867         PR bootstrrap/44726
18868         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
18869         use.
18870         (build_alias_set_optimal_p): Likewise.
18871         (build_base_obj_set_for_drs): Likewise.
18872
18873 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
18874
18875         * target.def: Remove comment about licensing problems of function
18876         declarations.
18877
18878         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
18879         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
18880         * doc/tm.texi: Regenerate.
18881
18882         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
18883         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
18884
18885         * target.def (enum_va_list_p): Use DEFHOOK.
18886         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
18887         Rename ptype to ptree.
18888         * doc/tm.texi: Regenerate.
18889
18890         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
18891         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
18892         * doc/tm.texi: Regenerate.
18893
18894         * target.def (memory_move_cost): Use DEFHOOK.
18895         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
18896         Rename regclass AKA class to rclass.
18897         * doc/tm.texi: Regenerate.
18898
18899         * target.def (pragma_parse): Use DEFHOOK.
18900         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
18901         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
18902         * doc/tm.texi: Regenerate.
18903
18904         * target.def (pass_by_reference): Use DEFHOOK.
18905         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
18906         * doc/tm.texi: Regenerate.
18907
18908         * target.def (resolve_overloaded_builtin): Rename params to arglist.
18909         Use DEFHOOK.
18910         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
18911         * doc/tm.texi: Regenerate.
18912
18913         * target.def (return_pops_args): Use DEFHOOK.
18914         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
18915         Rename stack-size to size.
18916         * doc/tm.texi: Regenerate.
18917
18918         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
18919         last-sched_cycle to last_clock, cur_cycle to clock.
18920         * doc/tm.texi.in: Use @hook.
18921         * doc/tm.texi: Regenerate.
18922
18923         * target.def (print_operand, print_operand_address): Update comment.
18924         (print_operand_punct_valid_p): Likewise.
18925
18926 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18927
18928         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
18929         to rtl.h.
18930         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
18931         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
18932         * rtl-error.h: New.
18933         * regrename.c: Do not include toplev.h. Include rtl-error.h.
18934         * rtl-error.c: Likewise.
18935         * reload.c: Likewise.
18936         * recog.c:  Likewise.
18937         * sel-sched.c: Likewise.
18938         * function.c: Likewise.
18939         * reg-stack.c: Likewise.
18940         * cfgrtl.c: Likewise.
18941         * reload1.c: Likewise.
18942         * final.c: Include rtl-error.
18943         * Makefile.in: Adjust dependencies.
18944
18945 2010-06-30  Jan Hubicka  <jh@suse.cz>
18946
18947         PR middle-end/PR44706
18948         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
18949         to return the value.
18950
18951 2010-06-30  Michael Matz  <matz@suse.de>
18952
18953         PR bootstrap/44699
18954         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
18955         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
18956         a gimple reg, attach the original VDEF to the last store in the
18957         sequence.
18958
18959 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
18960
18961         PR other/44034
18962         * config/darwin.c (darwin_override_options): Use renamed
18963         targetm.asm_out.emit_unwind_label.
18964
18965 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
18966
18967         PR tree-optimization/39799
18968         * tree-inline.c (remap_ssa_name): Initialize variable only if
18969         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18970
18971 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
18972
18973         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
18974
18975 2010-06-30  Richard Guenther  <rguenther@suse.de>
18976
18977         PR target/44722
18978         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
18979         against oscillation with reverse peephole2.
18980
18981 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18982
18983         PR target/44721
18984         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18985         Fix last commit.
18986
18987 2010-06-30  Nick Clifton  <nickc@redhat.com>
18988
18989         * config/rx/rx-modes.def: New file.
18990         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
18991         (CC_REGNUM): Define.
18992         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
18993         register.
18994         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
18995         (SELECT_CC_MODE): Define.
18996         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
18997         (reg:CC CC_REG) instead of (cc0).
18998         (attr "cc"): Delete.
18999         (cbranchsi4): Do not split compare and branch here. Instead move
19000         it to...
19001         (cbranchsi4_<code>): ... here.  New patterns.
19002         (cmpsi): Call rx-compare_redundant to find out if it is necessary
19003         to emit the compare instruction.
19004         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
19005         cc_status flags.
19006         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
19007         FIRST_PSEUDO_REGNUM.
19008         (rx_expand_prologue, rx_expand_epilogue): Likewise.
19009         (rx_notice_update_cc): Delete.
19010         (rx_cc_modes_compatible): New function.
19011         (flags_needed_for_conditional): New function.
19012         (flags_from_mode): New function.
19013         (rx_compare_redundant): New function - scans backwards through
19014         insn list to find out if condition flags are already set correctly.
19015         (TARGET_CC_MODES_COMPATIBLE): Define.
19016         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
19017
19018         * config/rx/rx.h (BRANCH_COST): Define.
19019         (REGISTER_MOVE_COST): Define.
19020         * config/rx/predicates (rx_source_operand): Allow all constant types.
19021         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
19022         (tstsi4): New pattern.
19023         * config/rx/rx.c (rx_memory_move_cost): Define.
19024         (TARGET_MEMORY_MOVE_COST): Define.
19025
19026 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19027
19028         * tree.h (block_may_fallthru): Declare here.
19029         * tree-flow.h (block_may_fallthru): Do not declare here.
19030         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
19031         bitmap.h
19032         * Makefile.in (c-typeck.o): Update dependencies.
19033
19034 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
19035
19036         PR debug/44694
19037         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
19038         * cselib.c (cfa_base_preserved_regno): New static variable.
19039         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
19040         of REGNO (cfa_base_preserved_val->locs->loc).
19041         (cselib_preserve_cfa_base_value): Add regno argument, set
19042         cfa_base_preserved_regno to it.
19043         (cselib_invalidate_regno): Allow removal of registers other than
19044         cfa_base_preserved_regno from cfa_base_preserved_val.
19045         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
19046         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
19047         of MEM addresses, if not on LHS.
19048         (reverse_op): Don't add reverse ops for cfa_base_rtx.
19049         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
19050
19051 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
19052
19053         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
19054         static variables.
19055         (peep2_buf_position): New static function.
19056         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
19057         peephole2_optimize): Use it.
19058         (peep2_attempt, peep2_update_life): New static functions, broken out
19059         of peephole2_optimize.
19060         (peep2_fill_buffer): New static function.
19061         (peephole2_optimize): Change the main loop to try to fill the buffer
19062         with the maximum number of insns before matching them against
19063         peepholes.  Use a forward scan.  Remove special case for targets with
19064         conditional execution.
19065         * genrecog.c (change_state): Delete dead code.
19066         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
19067         Rewrite so as not to expect the second insn to have had a peephole
19068         applied yet.
19069
19070 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19071
19072         * genhooks.c (emit_findices): Cast field precision to int.
19073         (emit_documentation): Likewise.
19074
19075 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
19076
19077         PR tree-optimization/43801
19078         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
19079         if old_decl was DECL_ONE_ONLY.
19080
19081         PR debug/44668
19082         * dwarf2out.c (add_accessibility_attribute): New function.
19083         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
19084         instead of adding DW_AT_accessibility manually.
19085         (gen_enumeration_type_die, gen_struct_or_union_type_die,
19086         gen_typedef_die): Use it.
19087
19088 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19089
19090         * vmsdbgout.c (full_name): Just output the file name if not native.
19091
19092 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19093
19094         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
19095         (funcnam_table): New static table.
19096         (funcnum_table): New static table.
19097         (write_rtnbeg): Write value saved in funcnum_table.
19098         (write_rtnend): Write value saved in funcnum_table.
19099         (vmsdbgout_begin_function): Save current function info in
19100         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
19101         (vmsdbgout_finish): Iterate over funcnum_table.
19102
19103 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19104
19105         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
19106         (vmsdbgout_type_decl): Declare
19107         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
19108         (FUNC_EPILOGUE_LABEL): New macro
19109         (vmsdbgout_begin_epilogue): New function.
19110         (vmsdbgout_type_decl): New function.
19111
19112 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19113
19114         * vmsdbg.h: Update copyright.
19115
19116 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
19117
19118         * vmsdbg.h (DST_K_TBG): New DST constant.
19119         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
19120         (write_modbeg): Cast module_language to avoid warning.
19121         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
19122
19123 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
19124
19125         PR other/44034
19126         * target.def, doc/tm.texi.in, genhooks.c: New files.
19127         * target.h: Instead of defining individual hook members,
19128         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
19129         include target.def.
19130         * target-def.h: Instead of defining individual hook initializers,
19131         include target-hooks-def.h.
19132         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
19133         targetm.live_on_entry -> targetm.extra_live_on_entry
19134         targetm.sched.md_finish ->targetm.sched.finish
19135         targetm.sched.md_init -> targetm.sched.init
19136         targetm.sched.md_init_global -> targetm.sched.init_global
19137         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
19138         targetm.asm_out.except_table_label ->
19139           targetm.asm_out.emit_except_table_label
19140         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
19141         targetm.target_help -> targetm.help
19142         targetm.vectorize.builtin_support_vector_misalignment ->
19143           targetm.vectorize.support_vector_misalignment
19144         targetm.file_start_app_off -> targetm.asm_file_start_app_off
19145         targetm.file_start_file_directive ->
19146          targetm.asm_file_start_file_directive
19147         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
19148         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
19149         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
19150         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
19151           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
19152         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
19153           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
19154         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
19155         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
19156         * Makefile.in (TARGET_H): Depend on target.def.
19157         (TARGET_DEF_H): Depend on target-hooks-def.h.
19158         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
19159         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
19160         * doc/tm.texi: Regenerate.
19161
19162         * Makefile.in (s-tm-texi): Remove stray tab / rule.
19163
19164         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
19165         (targetm.sched.init): Likewise.
19166
19167 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19168
19169         PR bootstrap/44713
19170         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
19171         (function_arg_advance_32): Const-ify TYPE parameter.
19172         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
19173         (ix86_function_arg_advance): Change type of NAMED to bool.
19174         (function_arg_32): Const-ify CUM and TYPE parameters.
19175         (function_arg_64): Likewise.  Change type of NAMED to bool.
19176         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
19177         to bool.
19178         (ix86_function_arg): Change type of NAMED to bool.
19179         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
19180         last argument as a bool.
19181
19182 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
19183
19184         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
19185         (OVERRIDE_OPTIONS): Add note of obsolescence.
19186         Replace references with references to TARGET_OPTION_OVERRIDE.
19187         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
19188          the macro).
19189         * targhooks.c (default_target_option_override): New function.
19190         * targhooks.h (default_target_option_override): Declare.
19191         * target.h (struct gcc_target): Add override member to
19192         target_option member.
19193         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
19194         targetm.target_option.override call.
19195         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
19196         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
19197
19198 2010-06-29  Jan Hubicka  <jh@suse.cz>
19199
19200         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
19201
19202 2010-06-29  Jan Hubicka  <jh@suse.cz>
19203
19204         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
19205         unreachable.
19206         (rebuild_frequencies): New function.
19207         * predict.h (rebuild_frequencies): Declare.
19208         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
19209         entry block and edge reaching new_entry.
19210         (tree_function_versioning): When doing partial cloning, rebuild
19211         frequencies when done.
19212         * passes.c (execute_function_todo): Use rebild_frequencies.
19213
19214 2010-06-29  Richard Guenther  <rguenther@suse.de>
19215
19216         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
19217         * tree-flow.h (enum noalias_state): Remove.
19218         (struct var_ann_d): Remove noalias_state member.
19219
19220 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
19221
19222         PR target/43902
19223         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
19224         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
19225         (maddhidi4): Likewise.
19226
19227         Revert parts of the change for PR25130.
19228         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
19229         MEM_ALIAS_SET.
19230
19231 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19232
19233         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
19234         targetm.calls.function_incoming_arg, and
19235         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
19236         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
19237         * target.h (struct gcc_target): Add function_arg_advance,
19238         function_arg, and function_incoming_arg fields.
19239         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
19240         (TARGET_FUNCTION_INCOMING_ARG): Define.
19241         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
19242         and TARGET_FUNCTION_INCOMING_ARG.
19243         * targhooks.h (default_function_arg_advance): Declare.
19244         (default_function_arg, default_function_incoming_arg): Declare.
19245         * targhooks.c (default_function_arg_advance): New function.
19246         (default_function_arg, default_function_incoming_arg): New function.
19247         * config/i386/i386.c (function_arg_advance): Rename to...
19248         (ix86_function_arg_advance): ...this.  Make static.
19249         (function_arg): Rename to...
19250         (ix86_function_arg): ...this.  Make static.
19251         (TARGET_FUNCTION_ARG_ADVANCE): Define.
19252         (TARGET_FUNCTION_ARG): Define.
19253         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
19254         (FUNCTION_ARG): Delete.
19255         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
19256         (function_arg): Delete prototype.
19257
19258 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
19259
19260         * reginfo.c (init_reg_sets_1): Adjust comments.
19261         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
19262         * calls.c (prepare_call_address): Likewise.
19263         (emit_call_1): Use targetm.calls.return_pops_args.
19264         (expand_call): Likewise.
19265         * function.c (assign_parms): Likewise.
19266         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
19267         * target.h (struct gcc_target) [struct calls]: Add
19268         return_pops_args field.
19269         * targhooks.h (default_return_pops_args): Declare.
19270         * targhooks.c (default_return_pops_args): Define.
19271         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
19272         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
19273         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
19274         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
19275         documentation.
19276         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
19277         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
19278         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
19279         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
19280         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
19281         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
19282         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
19283         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
19284         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
19285         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
19286         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
19287         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
19288         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
19289         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
19290         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
19291         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
19292         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
19293         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
19294         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
19295         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
19296         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
19297         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
19298         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
19299         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
19300         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
19301         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
19302         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
19303         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
19304         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
19305         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
19306         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
19307         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
19308         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
19309         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
19310         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
19311         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
19312         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
19313         * config/i386/i386.c (ix86_return_pops_args): Make static.
19314         Constify arguments.
19315         (TARGET_RETURN_POPS_ARGS): Define.
19316         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
19317         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
19318         (TARGET_RETURN_POPS_ARGS): Define.
19319         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
19320         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
19321         (TARGET_RETURN_POPS_ARGS): Define.
19322
19323 2010-06-29  Richard Guenther  <rguenther@suse.de>
19324
19325         PR middle-end/44667
19326         * tree-inline.c (initialize_inlined_parameters): Make sure
19327         to remap the inlined parameter variable substitutions types.
19328
19329 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
19330
19331         PR rtl-optimization/44659
19332         * combine.c (make_compound_operation) <SUBREG>: Do not return the
19333         result of force_to_mode if it partially re-expanded the compound.
19334
19335 2010-06-28  Jan Hubicka  <jh@suse.cz>
19336
19337         PR middle-end/44671
19338         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
19339         RESULT_DECL.
19340
19341 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
19342
19343         * double-int.h (force_fit_type_double): Remove declaration.
19344         * double-int.c (force_fit_type_double): Move to tree.c.
19345         * tree.h (force_fit_type_double): Declare.
19346         * tree.h (force_fit_type_double): Moved from double-int.c. Use
19347         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
19348         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
19349         * convert.c (convert_to_pointer): Adjust call to
19350         force_fit_type_double.
19351         * tree-vrp.c (extract_range_from_assert,
19352         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
19353         * fold-const.c: Update comment.
19354         (int_const_binop, fold_convert_const_int_from_int,
19355         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
19356         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
19357         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
19358         round_up_loc): Adjust call to force_fit_type_double.
19359
19360 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19361
19362         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
19363
19364 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19365
19366         * tree-sra.c (convert_callers): New parameter, change fndecls of
19367         recursive calls.
19368         (modify_function): Pass the old decl to convert_callers.
19369
19370 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19371
19372         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
19373         ipa_check_create_node_params and ipa_initialize_node_params with
19374         checking asserts they are not necessary.
19375
19376 2010-06-28  Jan Hubicka  <jh@suse.cz>
19377
19378         PR tree-optimization/44687
19379         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
19380
19381 2010-06-28  Martin Jambor  <mjambor@suse.cz>
19382
19383         PR c++/44535
19384         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
19385         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
19386         instead of BINFO_BASE_BINFO.
19387
19388 2010-06-28  Michael Matz  <matz@suse.de>
19389
19390         PR middle-end/44592
19391         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
19392         proper VDEF chain for intermediate stores in the sequence.
19393
19394 2010-06-28  Jan Hubicka  <jh@suse.cz>
19395
19396         PR tree-optimization/44357
19397         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
19398         uninlinable functions.
19399
19400 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
19401
19402         * config.gcc (powerpc*-*-*): Handle titan.
19403         * config/rs6000/rs6000.c (titan_cost): New costs.
19404         (rs6000_override_options): Add "titan" to processor_target_table.
19405         Add Titan to branch alignment logic.
19406         Correctly set rs6000_cost for titan.
19407         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
19408         * config/rs6000/titan.md: New file.
19409         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
19410
19411 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
19412
19413         * tree-browser.c (TB_history_stack): Convert to a VEC.
19414         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
19415         (TB_history_prev): Likewise.
19416
19417 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
19418
19419         * vec.h (vec_heap_free): Add parentheses around free.
19420
19421 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
19422
19423         * system.h: Poison GCC_EXCEPT_H for front-end files.
19424
19425         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
19426         langhook.
19427         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
19428         Define to NULL by default.
19429         * except.h: Define GCC_EXCEPT_H.
19430         (doing_eh): Remove prototype.
19431         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
19432         (lang_protect_cleanup_actions): Remove.
19433         * except.c (lang_protect_cleanup_actions): Remove.
19434         (doing_eh): Remove.
19435         (gen_eh_region): Don't check doing_eh here.
19436         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
19437         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
19438         instead of lang_protect_cleanup_actions.
19439         * omp-low.c (maybe_catch_exception): Likewise.
19440         * Makefile.in: Update dependencies.
19441
19442 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
19443
19444         * cgraph.h (struct varpool_node): new used_from_object_file flag.
19445         (struct cgraph_local_info): new used_from_object_file flag.
19446         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
19447         (cgraph_clone_node): initialize used_from_object_file.
19448         (cgraph_create_virtual_clone): initialize used_from_object_file.
19449         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
19450         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
19451         when compiling with -fwhole-program.
19452         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
19453         internal resolver.
19454         * ipa.c (function_and_variable_visibility): Set externally_visible
19455         flag of varpool_node if used_from_object_file flag is set.
19456         (cgraph_externally_visible_p): check used_from_object_file flag.
19457         * doc/invoke.texi (-fwhole-program option): Change description of
19458         externally_visible attribute accordingly.
19459         * doc/extend.texi (externally_visible): Ditto.
19460
19461 2010-06-27  Jan Hubicka  <jh@suse.cz>
19462
19463         * params.def (max-inline-insns-auto): Default to 40.
19464         * doc/invoke.texi (max-inline-insns-auto): Document the change.
19465
19466 2010-06-27  Jan Hubicka  <jh@suse.cz>
19467
19468         PR middle-end/44671
19469         PR middle-end/44686
19470         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
19471         signature change.
19472         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
19473         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
19474
19475 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
19476
19477         * target.h (struct gcc_target): Add register_move_cost field.
19478         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
19479         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
19480         * targhooks.c (default_register_move_cost): New function.
19481         * targhooks.h (default_register_move_cost): Declare function.
19482         * defaults.h (REGISTER_MOVE_COST): Delete.
19483         * ira-int.h (ira_register_move_cost): Update comment.
19484         * ira.c (ira_register_move_cost): Update comment.
19485         * reload.h (register_move_cost): Declare.
19486         * reginfo.c (register_move_cost): New function.
19487         (move_cost): Update comment.
19488         (init_move_cost, memory_move_secondary_cost): Replace
19489         REGISTER_MOVE_COST with register_move_cost.
19490         * postreload.c (reload_cse_simplify_set): (Ditto.).
19491         * reload.c (find_valid_class, find_reloads): (Ditto.).
19492         * reload1.c (choose_reload_regs): (Ditto.).
19493         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
19494         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
19495         * doc/md.texi (can_create_pseudo_p): Update documentation.
19496
19497         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
19498         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
19499         * config/i386/i386.h (ix86_memory_move_cost): Make static.
19500         (TARGET_MEMORY_MOVE_COST): Define.
19501
19502         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
19503         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
19504         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
19505         (TARGET_MEMORY_MOVE_COST): Define.
19506
19507 2010-06-27  Richard Guenther  <rguenther@suse.de>
19508
19509         PR tree-optimization/44683
19510         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
19511         false edge from the inverted condition.
19512
19513 2010-06-27  Richard Guenther  <rguenther@suse.de>
19514
19515         PR middle-end/44684
19516         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
19517         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
19518         for register LHS.  Or non-store assignments.
19519
19520 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
19521
19522         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
19523         (sparc_emit_set_const64): Likewise.  Remove disabled code.
19524         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
19525         (sparc_emit_set_const64): Likewise.
19526
19527 2010-06-26  Catherine Moore  <clm@codesourcery.com>
19528
19529         * config/mips/mips.md (alu_type): New attribute.
19530         (type): Infer type from alu_type.
19531         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
19532         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
19533         *subsi3_extended, negsi2, negdi2, *low<mode>,
19534         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
19535         xor<mode>3, *nor<mode>3,
19536         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
19537         *zero_extendhi_truncqi):  Set alu_type instead of type.
19538
19539 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
19540
19541         * config/alpha/alpha.c (alpha_need_linkage): Adjust
19542         splay_tree_new_ggc call.
19543         (alpha_use_linkage): Likewise.
19544
19545 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
19546
19547         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
19548         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
19549         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
19550         (static_specs): Remove switches_need_spaces.
19551         (process_command, do_self_spec): Hardcode handling "-o" instead of
19552         checking switches_need_spaces.
19553         * system.h (SWITCHES_NEED_SPACES): Poison.
19554
19555 2010-06-26  Richard Guenther  <rguenther@suse.de>
19556
19557         PR tree-optimization/44393
19558         * tree-loop-distribution.c (generate_loops_for_partition): Fix
19559         stmt removal and VOP renaming.
19560         (generate_memset_zero): Remove redundant stmt updating.
19561         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
19562         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
19563
19564 2010-06-26  Jan Hubicka  <jh@suse.cz>
19565
19566         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
19567         edges comming from header are equivalent.
19568         (visit_bb): Handle PHIs correctly.
19569         * tree-inline.c (copy_phis_for_bb): Be able to copy
19570         PHI from entry edge.
19571         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
19572
19573 2010-06-26  Richard Guenther  <rguenther@suse.de>
19574
19575         PR middle-end/44674
19576         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
19577         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
19578
19579 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
19580
19581         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
19582         add_infile, alloc_switch): New.
19583         (process_command): Remove variable lang_n_infiles.  Process
19584         options in a single pass.  Use new functions for allocating
19585         infiles and switches arrays.  Properly skip operands of
19586         -Xpreprocessor and -Xassembler.
19587
19588 2010-06-26  Jan Hubicka  <jh@suse.cz>
19589
19590         PR middle-end/44671
19591         * cgraphunit.c (cgraph_function_versioning): Remove wrong
19592         cgraph_make_decl_local call; fix typo copying RTL data.
19593
19594 2010-06-25  DJ Delorie  <dj@redhat.com>
19595
19596         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
19597         (m32c_output_aligned_common): Likewise.
19598         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
19599         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
19600         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
19601         (m32c_register_pragmas): Register it.
19602         * config/m32c/m32c.c (m32c_get_pragma_address): New.
19603         (m32c_insert_attributes): Set #pragma address decls volatile.
19604         (pragma_entry_eq): New.
19605         (pragma_entry_hash): New.
19606         (m32c_note_pragma_address): New.
19607         (m32c_get_pragma_address): New.
19608         (m32c_output_aligned_common): New.
19609         * doc/extend.texi: Document the new pragma.
19610
19611         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
19612         also.
19613         * config/m32c/predicates.md (m32c_any_operand): Check the code
19614         instead of memory_operand so as to allow matching volatile MEMs.
19615         (m32c_nonimmediate_operand): Likewise.
19616         (mra_operand): Allow volatiles.
19617
19618 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
19619
19620         PR debug/44610
19621         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
19622         address if the offset is unknown.
19623
19624 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
19625
19626         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
19627         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
19628         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
19629         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
19630         to ia64_start_function. Invoke it.
19631         * config/ia64/ia64.c (ia64_start_function): Call new function
19632         dwarf2out_vms_debug_main_pointer.
19633
19634 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19635
19636         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
19637         statements computing the true predicate.
19638
19639 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19640
19641         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
19642         to boolean_true_node.
19643         (reset_bb_predicate): New.
19644         (predicate_bbs): Call reset_bb_predicate.
19645
19646 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19647
19648         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
19649         (tree_if_conversion): Returns true when something has been changed.
19650         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
19651         changed something.
19652
19653 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
19654
19655         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
19656         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
19657         * tree-if-conv.c: Include dbgcnt.h.
19658         (tree_if_conversion): Use if_conversion_tree to count the number of
19659         if-convertible loops.
19660
19661 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
19662
19663         * common.opt (fprefetch-loop-arrays): Re-define
19664         -fprefetch-loop-arrays as a tri-state option with the initial
19665         value of -1.
19666         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
19667         pass only when flag_prefetch_loop_arrays > 0.
19668         * toplev.c (process_options): Note that, with tri-states,
19669         flag_prefetch_loop_arrays>0 means prefetching is enabled.
19670         * config/i386/i386.c (override_options): Enable prefetching at -O3
19671         for a set of CPUs that sw prefetching is helpful.
19672         (software_prefetching_beneficial_p): New.  Return TRUE if software
19673         prefetching is beneficial for the given CPU.
19674
19675 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19676
19677         PR rtl-optimization/44326
19678         * implicit-zee.c (find_removable_zero_extends): Replace
19679         INSN_P with NONDEBUG_INSN_P.
19680
19681 2010-06-25  Martin Jambor  <mjambor@suse.cz>
19682
19683         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
19684         (struct ipa_node_params): Removed the modification_analysis_done flag.
19685         (ipa_is_param_modified): Removed.
19686         (ipa_analyze_node): Declare.
19687         (ipa_compute_jump_functions): Remove declaration.
19688         (ipa_count_arguments): Likewise.
19689         (ipa_detect_param_modifications): Likewise.
19690         (ipa_analyze_params_uses): Likewise.
19691         * ipa-prop.c (struct param_analysis_info): New type.
19692         (visit_store_addr_for_mod_analysis): Removed.
19693         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
19694         moved down in the file.
19695         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
19696         (ipa_count_arguments): Made static.
19697         (mark_modified): New function.
19698         (is_parm_modified_before_call): New function.
19699         (compute_pass_through_member_ptrs): New parameter parms_info, call
19700         is_parm_modified_before_call instead of ipa_is_param_modified.
19701         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
19702         it to compute_pass_through_member_ptrs.
19703         (ipa_compute_jump_functions): New parameter parms_info, pass it to
19704         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
19705         on the callee if it is analyzed.  Made static.
19706         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
19707         is_parm_modified_before_call instead of ipa_is_param_modified.
19708         (ipa_analyze_call_uses): New parameter parms_info, pass it to
19709         ipa_analyze_indirect_call_uses.
19710         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
19711         ipa_analyze_call_uses.
19712         (ipa_analyze_params_uses): New parameter parms_info, pass it to
19713         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
19714         (ipa_analyze_node): New function.
19715         (ipa_print_node_params): Do not dump the modified flag.
19716         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
19717         it.  Do not stream the modified parameter flag.
19718         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
19719         it.  Do not stream the modified parameter flag.
19720         * ipa-cp.c (ipcp_analyze_node): Removed.
19721         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
19722         with only a call to ipa_analyze_node.
19723         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
19724         node with only a call to ipa_analyze_node.
19725
19726 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19727
19728         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
19729
19730 2010-06-25  Jan Hubicka  <jh@suse.cz>
19731
19732         * tree-pass.h (pass_split_functions): Declare.
19733         * opts.c (decode_options): Enable function splitting at -O2
19734         * timevar.def (TV_IPA_FNSPLIT): New macro.
19735         * ipa-split.c: New file.
19736         * common.opt (-fpartial-inlining): New flag.
19737         * Makefile.in (ipa-split.o): New object file.
19738         * passes.c (init_optimization_passes): Add ipa-split.
19739         * params.def (partial-inlining-entry-probability): New parameters.
19740         * doc/invoke.texi (-fpartial-inlining): New.
19741
19742 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19743
19744         PR 44665
19745         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
19746         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
19747         (gimplify_expr): Likewise.
19748
19749 2010-06-25  Martin Jambor  <mjambor@suse.cz>
19750
19751         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
19752         statements instead of bailing out on them.
19753         (ipa_analyze_indirect_call_uses): Do not require that loads from the
19754         parameter are in the same BB as the condition.  Update comments.
19755
19756 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
19757
19758         PR middle-end/43866
19759         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
19760         true or always false, return NULL_TREE.
19761         (tree_unswitch_single_loop): Optimize conditions even when reaching
19762         max-unswitch-level parameter.  If num > 0, optimize first all conditions
19763         using entry checks, then do still reachable block discovery and consider
19764         only conditions in still reachable basic blocks in the loop.
19765
19766         PR tree-optimization/44539
19767         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
19768         the call doesn't have LHS, but has VDEF.
19769
19770 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
19771
19772         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
19773         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
19774         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
19775         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
19776         * system.h (MODIFY_TARGET_NAME): Poison.
19777
19778 2010-06-25  Alan Modra  <amodra@gmail.com>
19779
19780         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
19781         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
19782         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
19783         CMODEL_LARGE as default.
19784         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
19785         (offsettable_ok_by_alignment): Delete.
19786         (rs6000_emit_move): Remove mcmodel=medium optimization.
19787
19788 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
19789
19790         With large parts from Jim Wilson:
19791         PR target/43902
19792         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
19793         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
19794         * optabs.c (optab_for_tree_code): Likewise.
19795         (expand_widen_pattern_expr): Likewise.
19796         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
19797         out of execute_optimize_widening_mul.
19798         (convert_plusminus_to_widen): New function.
19799         (execute_optimize_widening_mul): Use the two new functions.
19800         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
19801         Remove code to generate widening multiply-accumulate.  Add support
19802         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
19803         * gimple-pretty-print.c (dump_ternary_rhs): New function.
19804         (dump_gimple_assign): Call it when appropriate.
19805         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
19806         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
19807         (expand_gimple_stmt_1): Likewise.
19808         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
19809         WIDEN_MULT_MINUS_EXPR.
19810         * tree-ssa-operands.c (get_expr_operands): Likewise.
19811         * tree-inline.c (estimate_operator_cost): Likewise.
19812         * gimple.c (extract_ops_from_tree_1): Renamed from
19813         extract_ops_from_tree.  Add new arg for a third operand; fill it.
19814         (gimple_build_assign_stat): Support operations with three operands.
19815         (gimple_build_assign_with_ops_stat): Likewise.
19816         (gimple_assign_set_rhs_from_tree): Likewise.
19817         (gimple_assign_set_rhs_with_ops_1): Renamed from
19818         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
19819         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
19820         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
19821         WIDEN_MULT_MINUS_EXPR.
19822         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
19823         (extract_ops_from_tree_1): Adjust declaration.
19824         (gimple_assign_set_rhs_with_ops_1): Likewise.
19825         (gimple_build_assign_with_ops): Pass NULL for last operand.
19826         (gimple_build_assign_with_ops3): New macro.
19827         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
19828         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
19829         functions.
19830         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
19831         (verify_gimple_assign): Call it.
19832         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
19833         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
19834         functions for dealing with three-operand statements.
19835         * tree.c (commutative_ternary_tree_code): New function.
19836         * tree.h (commutative_ternary_tree_code): Declare it.
19837         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
19838         ternary statements.
19839         (gimple_assign_nonzero_warnv_p): Likewise.
19840         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
19841         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
19842         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
19843         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
19844         (struct hashtable_expr): New member ternary in the union.
19845         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
19846         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
19847         (iterative_hash_hashable_expr): Likewise.
19848         (print_expr_hash_elt): Handle EXPR_TERNARY.
19849         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
19850         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
19851         statements.  Handle GIMPLE_TERNARY_RHS.
19852
19853 2010-06-25  Jan Hubicka  <jh@suse.cz>
19854
19855         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
19856
19857 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
19858
19859         PR c/44517
19860         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
19861         parameters are not good.
19862         (c_parser_parameter_declaration): Error unknown type name if the type
19863         name can't start declaration specifiers.
19864
19865 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
19866
19867         * gcc.c (translate_options): Don't mention +e in comment.
19868         (process_command): Don't handle +e specially.
19869
19870 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
19871
19872         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
19873
19874         * ira-build.c (merge_hard_reg_conflicts): New function.
19875         (create_cap_allocno, copy_info_to_removed_store_destinations,
19876         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
19877         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
19878         (remove_unnecessary_allocnos, remove_low_level_allocnos)
19879         copy_nifo_to_removed_store_destination): Use them.
19880         * ira-lives.c (make_hard_regno_born): New function, split out of
19881         make_regno_born.
19882         (make_allocno_born): Likewise.
19883         (make_hard_regno_dead): New function, split out of make_regno_dead.
19884         (make_allocno_dead): Likewise.
19885         (inc_register_pressure): New function, split out of set_allocno_live.
19886         (dec_register_pressure): New function, split out of clear_allocno_live.
19887         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
19888         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
19889         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
19890         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
19891         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
19892         mark_pseudo_regno_live.
19893         (process_bb_node_lives): Use mark_pseudo_regno_live,
19894         make_hard_regno_born and make_allocno_dead.
19895         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
19896         set_allocno_live, clear_allocno_live): Delete functions.
19897
19898         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
19899         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
19900         functions.
19901         (ira_flattening): Use ira_parent_allocno.
19902         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
19903         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
19904
19905         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
19906         statement.
19907
19908         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
19909         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
19910         minmax_set_iter_cond, minmax_set_iter_next,
19911         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
19912         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
19913         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
19914         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
19915         uses changed.
19916
19917         * ira-int.h (struct live_range, live_range_t): Renamed from struct
19918         ira_allocno_live_range and allocno_live_range_t; all uses changed.
19919         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
19920         All uses changed.
19921
19922 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
19923
19924         * thumb2.md (thumb2_tlobits_cbranch): Delete.
19925         (peephole2 to convert zero_extract/compare of single bit to
19926          lshift/compare): New.
19927
19928 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
19929
19930         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
19931         recursive call and call to 'int_const_binop'.
19932         (build_range_check, fold_cond_expr_with_comparison, unextend,
19933         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
19934         multiple_of_p): Adjust call to const_binop.
19935
19936 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
19937
19938         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
19939         determine size of XFmode operand.
19940         (XFmode extended DFmode push splitter): Ditto.
19941         (XFmode extended SFmode push splitter): Ditto.
19942
19943 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19944
19945         PR target/44588
19946         * config/i386/i386.md (extract_code): New.
19947         (<u>divmodqi4): Likewise.
19948         (divmodhiqi3): Likewise.
19949         (udivmodhiqi3): Likewise.
19950         (<u>divqi3): Remvoved.
19951
19952 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
19953
19954         PR middle-end/44492
19955         * recog.h (struct recog_data): Add is_asm field.
19956         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
19957         present in constraints of inline-asm operand and memory operand
19958         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
19959         (extract_insn): Initialize recog_data.is_asm.
19960         * doc/md.texi (Constraints): Document operand side-effect rules.
19961
19962 2010-06-24  Andi Kleen  <ak@linux.intel.com>
19963
19964         * c-parser.c (c_parser_conditional_expression): Call
19965         warn_for_omitted_condop.
19966         * doc/invoke.texi: Document omitted condop warning.
19967
19968 2010-06-24  Nick Clifton<nickc@redhat.com>
19969
19970         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
19971         insn in the sequence is a jump insn before setting its label.
19972
19973 2010-06-24  Alan Modra  <amodra@gmail.com>
19974
19975         * collect2.c (main): Match exactly --version and --help.
19976
19977 2010-06-24  DJ Delorie  <dj@redhat.com>
19978
19979         * config/m32c/m32c-pragma.c: Don't include rtl.h.
19980
19981 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
19982
19983         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
19984         using X87MODEF mode iterator.
19985         (pushsf splitter): Macroize splitter using P mode iterator.
19986         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
19987         mode iterator.
19988
19989         (*movxf_internal): Rename from *movxf_integer.
19990         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
19991         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
19992         (*movdf_internal): Rename from *movdf_integer.
19993         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
19994         (*movsf_internal): Rename from *movdf_1.
19995
19996 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
19997
19998         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
19999         (const_gimple_seq_node): Removed typedefs.
20000
20001         * gimple.h (gimple_seq_node_d, gimple_seq_node)
20002         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
20003
20004 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20005
20006         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
20007         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
20008         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
20009         and CODE_FOR_vec_extract_lo_v4df.
20010
20011         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
20012         Changed to define_insn_and_split.
20013         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
20014         (vec_extract_lo_v16hi): Likewise.
20015         (vec_extract_lo_v32qi): Likewise.
20016         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
20017         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
20018
20019 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
20020
20021         PR target/44640
20022         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
20023         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
20024         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
20025         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
20026         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
20027
20028         PR target/44640
20029         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
20030
20031         PR other/44644
20032         * df-core.c (struct df): Rename to df_d.
20033         * df.h (struct df): Likewise.
20034         * dse.h (struct df): Remove forward declaration.
20035         * recog.h (struct insn_data): Rename to:
20036         (struct_insn_data_d).  Adjusted all users.
20037
20038 2010-06-23  Arnaud Charlet  <charlet@adacore.com
20039
20040         PR ada/22220
20041         * doc/install.texi: Update requirements to build GNAT.
20042
20043 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
20044
20045         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
20046         enum type.
20047         (m68k_sched_attr_opx_type): Remove unreachable return.
20048         (m68k_sched_attr_opy_type): Likewise.
20049         (m68k_sched_attr_size): Likewise.
20050         (sched_get_opxy_mem_type): Likewise.
20051         (m68k_sched_attr_op_mem): Likewise.
20052
20053 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
20054
20055         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
20056         new statement and adjust VDEF only if necessary.  Remove superfluous
20057         call to maybe_clean_or_replace_eh_stmt.
20058         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
20059         copy the flags.
20060         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
20061         * tree-inline.c (copy_bb): ...and not there.
20062
20063 2010-06-22  Cary Coutant  <ccoutant@google.com>
20064
20065         * dwarf2out.c (is_nested_in_subprogram): New function.
20066         (should_move_die_to_comdat): Use it.
20067         (copy_ancestor_tree): Don't mark DIEs here.
20068         (copy_decls_walk): Start walk from root of newly-added tree;
20069         mark DIEs here instead.
20070
20071 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20072
20073         * config/i386/i386.md (unit): Also check sseishft1.
20074
20075 2010-06-22  Jan Hubicka  <jh@suse.cz>
20076
20077         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
20078         enabled.
20079
20080 2010-06-22  Jan Hubicka  <jh@suse.cz>
20081
20082         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
20083         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
20084         Return true if something changed.
20085         * df.h (df_confluence_function_n): Return bool.
20086         * df-core.c (df_worklist_propagate_forward,
20087         df_worklist_propagate_backward): Track changes and ages.
20088         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
20089         track ages.
20090         * dse.c (dse_confluence_n): Return always true.
20091
20092 2010-06-22  Jan Hubicka  <jh@suse.cz>
20093
20094         * bitmap.c (bitmap_clear_bit): Micro optimize.
20095
20096 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
20097
20098         * config/i386/i386.md (SWI1248x): New mode iterator.
20099         (SWI48x): Ditto.
20100         (SWI12): Ditto.
20101         (SWI24): Ditto.
20102
20103         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
20104         SWI1248x mode iterator.
20105         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
20106         using SWI124 mode iterator.
20107         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
20108         mode iterator.
20109         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
20110         *pushdi2_prologue_rex64 using P mode iterator.
20111         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
20112         using SWI48 mode iterator.
20113         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
20114         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
20115         using SWI1248x mode iterator.
20116         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
20117         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
20118         SWI48 mode iterator.
20119         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
20120         iterator.
20121         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
20122         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
20123         SWI12 mode iterator.
20124         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
20125         SWI12 mode iterator.
20126         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
20127         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
20128         SWI24 mode iterator.
20129         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
20130         SWI48 mode iterator.
20131         (mov<mode>_insn_1): New expander.
20132         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
20133         using SWI48x mode iterator.
20134
20135         (*movoi_internal_avx): Rename from *movoi_internal.
20136         (*movti_internal_rex64): Rename from *movti_rex64.
20137         (*movti_internal_sse): Rename from *movti_sse.
20138         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
20139         (*movdi_internal): Rename from *movdi_2.
20140         (*movsi_internal): Rename from *movsi_1.
20141         (*movhi_internal): Rename from *movhi_1.
20142         (*movqi_internal): Rename from *movqi_1.
20143
20144         (insv): Update the call to gen_movsi_insv_1 for rename.
20145         * config/i386/i386.c (promote_duplicated_reg): Ditto.
20146
20147 2010-06-22  Jan Hubicka  <jh@suse.cz>
20148
20149         * passes.c (execute_function_todo): Move call of statistics_fini_pass
20150         to ...
20151         (execute_todo) ... this one.
20152
20153 2010-06-22  Alan Modra  <amodra@gmail.com>
20154
20155         PR target/44364
20156         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
20157         * caller-save.c (insert_restore, insert_save): Use non-validate
20158         form of adjust_address.
20159
20160 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20161
20162         PR target/39690
20163         * config/pa/pa.c (override_options): Disable
20164         -freorder-blocks-and-partition.
20165
20166 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
20167
20168         PR target/44615
20169         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
20170
20171         * config/i386/i386.md (type): Add sseishft1
20172
20173         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
20174         (ppro_insn_load): Likewise.
20175         (ppro_insn_store): Likewise.
20176         (ppro_insn_both): Likewise.
20177
20178         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
20179         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
20180         for type.
20181         (*vec_extractv2di_1_avx): Likewise.
20182         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
20183         type.  Remove atom_unit.
20184         (*vec_extractv2di_1_sse2): Likewise.
20185
20186 2010-06-21  DJ Delorie  <dj@redhat.com>
20187
20188         * diagnostic.h (diagnostic_classification_change_t): New.
20189         (diagnostic_context): Add history and push/pop list.
20190         (diagnostic_push_diagnostics): Declare.
20191         (diagnostic_pop_diagnostics): Declare.
20192         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
20193         from pragmas in a history chain instead of the global table.
20194         (diagnostic_push_diagnostics): New.
20195         (diagnostic_pop_diagnostics): New.
20196         (diagnostic_report_diagnostic): Scan history chain to find state
20197         of diagnostics as of the diagnostic location.
20198         * opts.c (set_option): Pass UNKNOWN_LOCATION to
20199         diagnostic_classify_diagnostic.
20200         (enable_warning_as_error): Likewise.
20201         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
20202         use in the history chain.
20203         * doc/extend.texi: Document pragma GCC diagnostic changes.
20204
20205 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
20206
20207         * dwarf2out.c (add_linkage_name): New function.  Don't add
20208         anything to DW_TAG_member DIEs.
20209         (add_name_and_src_coords_attributes): Use it.
20210         (gen_variable_die): Call it for C++ static data members if
20211         specification is DW_TAG_member.
20212
20213         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
20214         C++ char16_t and char32_t.
20215
20216         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
20217         * genattrtab.c: Include vecprim.h.
20218         (cached_attrs, cached_attr_count, attrs_seen_once,
20219         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
20220         attrs_cached_after): New variables.
20221         (find_attrs_to_cache): New function.
20222         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
20223         (write_test_expr): Add attrs_cached argument, return it too,
20224         attempt to cache non-const attributes used more than once in
20225         a single case handling.
20226         (write_attr_get): Use find_attrs_to_cache, for caching candidates
20227         emit cached_* variables.  Adjust write_attr_set callers.
20228         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
20229         to find attributes that should be cached in this block.  Adjust
20230         write_test_expr callers.
20231         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
20232         callers.
20233         (make_automaton_attrs): Adjust write_test_expr caller.
20234
20235         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
20236         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
20237         (make_automaton_attrs): If find_tune_attr returns non-NULL,
20238         write separate internal_dfa_insn_code_* and insn_default_latency_*
20239         functions for each attribute's value and emit init_sched_attrs
20240         function and function pointers.
20241         * genattr.c (const_attrs, reservations): New variables.
20242         (gen_attr): Add const attributes to const_attrs vector.
20243         (check_tune_attr, find_tune_attr): New functions.
20244         (main): Add reservations to reservations vector.  If find_tune_attr
20245         returns true, add prototype for init_sched_attrs and make
20246         internal_dfa_insn_code and insn_default_latency function pointers,
20247         otherwise define init_sched_attrs as dummy macro.
20248         * cfgexpand.c: Include insn-attr.h.
20249         (gimple_expand_cfg): Call init_sched_attrs.
20250
20251         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
20252
20253         PR target/44575
20254         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
20255         va_arg from a set of register save slots into a temporary,
20256         if the container is bigger than type size, do the copying
20257         using smaller mode or using memcpy.
20258
20259         PR bootstrap/44426
20260         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
20261         prototype.
20262         (sel_print_to_dot): Remove macro.
20263         (sel_print): Likewise.  New prototype.
20264         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
20265         (sel_print): New function.
20266
20267 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20268
20269         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
20270         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
20271
20272 2010-06-21  Nick Clifton  <nickc@redhat.com>
20273
20274         * config/rx/rx.h (PTRDIFF_TYPE): Define.
20275         (SMALL_REGISTER_CLASS): Define (to zero).
20276         (PRINT_OPERAND): Delete.
20277         (PRINT_OPERAND_ADDRESS): Delete.
20278         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
20279         (rx_print_operand_address): Delete prototype.
20280         * config/rx/rx.c (rx_print_operand): Make static.
20281         Allow %H and %L to handle CONST_DOUBLEs.
20282         (rx_print_operand_address): Make static.
20283         (rx_gen_move_template): Rename local variable 'template' to
20284         out_template.
20285         (rx_function_arg): Do not pass unknown sized objects in registers.
20286         (TARGET_PRINT_OPERAND): Define.
20287         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20288
20289 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
20290
20291         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
20292
20293 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
20294
20295         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
20296         stack-alignment for simple leaf-functions.
20297
20298 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
20299
20300         * doc/install.texi: Document bootstrap-lto.
20301
20302 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
20303
20304         PR debug/44248
20305         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
20306         (input_function): Drop them here, if VTA is disabled.
20307
20308 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
20309
20310         PR target/44546
20311         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
20312         New predicate.
20313         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
20314         ix86_swapped_fp_comparsion_operator instead of
20315         ix86_fp_comparison_operator.
20316
20317         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
20318         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
20319         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
20320         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
20321         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
20322         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
20323
20324 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
20325
20326         PR other/32998
20327         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
20328         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
20329         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
20330         (decode_cmdline_option): Update for this return value.  Set
20331         orig_option_with_args_text field.  Set arg field for unknown
20332         options.  Make static.
20333         (decode_cmdline_options_to_array): New.
20334         (prune_options): Update handling of find_opt return value.
20335         * opts.c (read_cmdline_option): Take decoded option.  Return void.
20336         (read_cmdline_options): Take decoded options.
20337         (decode_options): Add parameters for decoded options.  Use
20338         decode_cmdline_options_to_array.  Use decoded options for -O
20339         scan.  Use integral_argument for -O parameters.  Update call to
20340         read_cmdline_options.
20341         (enable_warning_as_error): Update handling of find_opt return value.
20342         * opts.h: Update comment on unknown options.
20343         (struct cl_decoded_option): Update comments on opt_index and arg.
20344         Add orig_option_with_args_text.
20345         (decode_cmdline_option): Remove.
20346         (decode_cmdline_options_to_array): Declare.
20347         (decode_options): Update prototype.
20348         * toplev.c (save_argv): Remove.
20349         (save_decoded_options, save_decoded_options_count): New.
20350         (read_integral_parameter): Remove.
20351         (print_switch_values): Use decoded options.
20352         (toplev_main): Don't set save_argv.  Update call to decode_options.
20353         * toplev.h (read_integral_parameter): Remove.
20354         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
20355
20356 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
20357
20358         PR target/44072
20359         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
20360         immediate.
20361         * constraints.md (Pw, Px): New constraints.
20362         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
20363
20364 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
20365
20366         * config/i386/sse.md (fma4modesuffixf4): Removed.
20367         (ssemodesuffixf2s): Likewise.
20368         (ssemodesuffixf4): Likewise.
20369         (ssemodesuffixf2c): Likewise.
20370         (ssescalarmodesuffix2s): Likewise.
20371         (avxmodesuffixf2c): Likewise.
20372         (ssemodesuffix): New.
20373         (ssescalarmodesuffix): Likewise.
20374         Update patterns with ssemodesuffix and ssescalarmodesuffix.
20375
20376 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
20377
20378         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
20379
20380 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
20381
20382         * stor-layout.c (debug_rli): Remove unused local variables.
20383
20384 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
20385
20386         PR rtl-optimization/40900
20387         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
20388         original expression for later reuse.
20389         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
20390         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
20391
20392 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
20393
20394         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
20395         double_int_fits_in_uhwi_p): Implement as static inline.
20396         (double_int_xor): New inline function.
20397         (double_int_lrotate, double_int_rrotate, double_int_max,
20398         double_int_umax, double_int_smax, double_int_min, double_int_umin,
20399         double_int_smin): Declare.
20400         (lrotate_double, rrotate_double): Remove declaration.
20401         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
20402         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
20403         (double_int_lrotate, double_int_rrotate, double_int_max,
20404         double_int_umax, double_int_smax, double_int_min, double_int_umin,
20405         double_int_smin): New function.
20406         * fold-const.c (int_const_binop): Clean up, use double_int_*
20407         functions.
20408         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
20409         double_int_* and immed_double_int_const functions.
20410
20411 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
20412
20413         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
20414         * function.c (types_used_by_cur_var_decl): Likewise.
20415         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
20416
20417 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
20418
20419         * tree.h (record_layout_info): Change type of pending_statics field
20420         to a VEC.
20421         * stor-layout.c (start_record_layout): Store NULL into
20422         pending_statics.
20423         (debug_rli): Call debug_vec_tree instead of debug_tree.
20424         (place_field): Likewise.
20425         (finish_record_layout): Likewise.
20426
20427 2010-06-18  Alan Modra  <amodra@gmail.com>
20428
20429         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
20430
20431 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20432
20433         PR target/43740
20434         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
20435         for SET source operand from SET destination operand.
20436
20437 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
20438
20439         PR rtl-optimization/39871
20440         * reload1.c (init_eliminable_invariants): For flag_pic, disable
20441         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
20442         (function_invariant_p): Rule out a plus of frame or arg pointer with
20443         a SYMBOL_REF.
20444         * ira.c (find_reg_equiv_invariant_const): Likewise.
20445
20446 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
20447
20448         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
20449         print_operand_address and puts to output the operand for CONST.
20450
20451 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
20452
20453         PR debug/44572
20454         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
20455         hook.
20456
20457 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20458
20459         * v850-protos.h (print_operand): Delete.
20460         (print_operand_address): Delete.
20461         * v850.h (PRINT_OPERAND): Delete.
20462         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20463         (PRINT_OPERAND_ADDRESS): Delete.
20464         * v850.c (print_operand_address): Rename to...
20465         (v850_print_operand_address): ...this.  Make static. Call
20466         v850_print_operand.
20467         (print_operand): Rename to...
20468         (v850_print_operand): ...this.  Make static.  Call
20469         v850_print_operand_address.
20470         (v850_print_operand_punct_valid_p): New function.
20471         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20472         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20473
20474 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20475
20476         * config/sh/sh-protos.h (print_operand): Delete.
20477         (print_operand_address): Delete.
20478         * config/sh/sh.h (PRINT_OPERAND): Delete.
20479         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20480         (PRINT_OPERAND_ADDRESS): Delete.
20481         * config/sh/sh.c (sh_print_operand_address): Make static.
20482         (sh_print_operand): Make static.  Call sh_print_operand_address
20483         and sh_print_operand.
20484         (sh_print_operand_punct_valid_p): New function.
20485         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20486         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20487
20488 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20489
20490         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
20491         (mcore_print_operand_address): Delete.
20492         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
20493         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20494         (PRINT_OPERAND_ADDRESS): Delete.
20495         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
20496         (mcore_print_operand): Make static.
20497         (mcore_print_operand_punct_valid_p): New function.
20498         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
20499         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20500
20501 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20502
20503         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
20504         (print_operand_address): Delete.
20505         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
20506         (PRINT_OPERAND_ADDRESS): Delete.
20507         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
20508         static.
20509         (m68hc11_print_operand): Make static.
20510         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20511
20512 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20513
20514         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
20515         (m32r_print_operand_address): Delete.
20516         * config/m32r/m32r.h (m32r_punct_chars): Delete.
20517         (PRINT_OPERAND): Delete.
20518         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20519         (PRINT_OPERAND_ADDRESS): Delete.
20520         * config/m32r/m32r.c (m32r_punct_chars): Make static.
20521         (m32r_print_operand_address): Make static.
20522         (m32r_print_operand): Make static.
20523         (m32r_print_operand_punct_valid_p): New function.
20524         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20525         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20526
20527 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20528
20529         * config/iq2000/iq2000-protos.h (print_operand): Delete.
20530         (print_operand_address): Delete.
20531         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
20532         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20533         (PRINT_OPERAND_ADDRESS): Delete.
20534         (iq2000_print_operand_punct): Delete.
20535         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
20536         (iq2000_print_operand_address): Make static.
20537         (iq2000_print_operand): Make static.
20538         (iq2000_print_operand_punct_valid_p): New function.
20539         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20540         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20541
20542 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20543
20544         * config/frv/frv-protos.h (frv_print_operand): Delete.
20545         (frv_print_operand_address): Delete.
20546         * config/frv/frv.h (PRINT_OPERAND): Delete.
20547         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20548         (PRINT_OPERAND_ADDRESS): Delete.
20549         * config/frv/frv.c (frv_print_operand_address): Make static.
20550         (frv_print_operand): Make static.
20551         (frv_print_operand_punct_valid_p): New function.
20552         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20553         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20554
20555 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
20556
20557         * tree.h (vec_member): Declare.
20558         * tree.c (vec_member): Define.
20559
20560 2010-06-17  Richard Guenther  <rguenther@suse.de>
20561
20562         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
20563         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
20564
20565 2010-06-17  Richard Guenther  <rguenther@suse.de>
20566
20567         * tree-inline.c (declare_return_variable): Remove bogus code.
20568
20569 2010-06-17  Richard Guenther  <rguenther@suse.de>
20570
20571         * gimplify.c (gimplify_bind_expr): Always promote complex
20572         and vector variables to registers if possible.
20573
20574 2010-06-17  Richard Guenther  <rguenther@suse.de>
20575
20576         * expr.c (get_inner_reference): Use double_int for bit_offset
20577         calculation.
20578
20579 2010-06-16  DJ Delorie  <dj@redhat.com>
20580
20581         * common.opt (-fstrict-volatile-bitfields): new.
20582         * doc/invoke.texi: Document it.
20583         * fold-const.c (optimize_bit_field_compare): For volatile
20584         bitfields, use the field's type to determine the mode, not the
20585         field's size.
20586         * expr.c (expand_assignment): Likewise.
20587         (get_inner_reference): Likewise.
20588         (expand_expr_real_1): Likewise.
20589         * expmed.c (store_fixed_bit_field): Likewise.
20590         (extract_bit_field_1): Likewise.
20591         (extract_fixed_bit_field): Likewise.
20592
20593 2010-06-16  Richard Guenther  <rguenther@suse.de>
20594
20595         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
20596
20597 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
20598
20599         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
20600         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
20601         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
20602         * debug.c: Likewise.
20603         * sdbout.c: Likewise.
20604         * vmsdbgout.c: Likewise.
20605         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
20606         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
20607         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
20608         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
20609         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
20610         * dwarf2out.c (dw_fde_struct): New fields
20611         dw_fde_vms_{end,begin}_prologue.
20612         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
20613         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
20614         (dwarf2out_vms_end_prologue): New function.
20615         (dwarf2out_vms_begin_epilogue): New function.
20616         (dw_val_struct): New value dw_val_class_vms_delta.
20617         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
20618         begin_epilogue for VMS.
20619         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
20620         new static functions.
20621         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
20622         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
20623         static functions.
20624         (print_die): New case dw_val_class_vms_delta.
20625         (attr_checksum): Likewise.
20626         (same_dw_val_p: Likewise.
20627         (size_of_die): Likewise.
20628         (value_format): Likewise.
20629         (output_die): Likewise.
20630         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
20631         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
20632         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
20633         dwarf2out_cfi_begin_epilogue
20634         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
20635
20636 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
20637
20638         * config/cris/cris-protos.h (cris_print_operand): Delete.
20639         (cris_print_operand_address): Delete.
20640         * config/cris/cris.h (PRINT_OPERAND): Delete.
20641         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20642         (PRINT_OPERAND_ADDRESS): Delete.
20643         * config/cris/cris.c (cris_print_operand_address): Make static.
20644         (cris_print_operand): Make static.
20645         (cris_print_operand_punct_valid_p): New function.
20646         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20647         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20648
20649 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
20650
20651         * config/arm/arm-protos.h (arm_print_operand): Delete.
20652         (arm_print_operand_address): Delete.
20653         * config/arm/arm.h (PRINT_OPERAND): Delete.
20654         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20655         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
20656         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
20657         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
20658         (arm_print_operand): Make static.
20659         (arm_print_operand_punct_valid_p): New function.
20660         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
20661         (TARGET_PRINT_OPERAND_ADDRESS): Define.
20662
20663 2010-06-16  Nick Clifton  <nickc@redhat.com>
20664
20665         * config/rx/constraints.md (NEGint4): New constraint.
20666         * config/rx/rx.md (attr cc): Add set_zsc.
20667         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
20668         initialised.
20669         (cmpsf): Likewise.
20670         (call_internal): Clobber the cc0 register.
20671         (call_value_internal): Likewise.
20672         (cstoresi4): Likewise.
20673         (movsieq): Likewise.
20674         (movsine): Likewise.
20675         (addsi3): Add alternative to handle small negative constants.
20676         (sunsi3): Likewise.
20677         (addsi3): Do not set the O bit in the cc0 register.
20678         (adddi3): Likewise.
20679         (subsi3): Likewise.
20680         (subdi3): Likewise.
20681         (andsi3): Reorder alternatives to prefer shorter forms.
20682         (mulsi3): Likewise.
20683         (iorsi3): Likewise.
20684         (negsi2): Note that the cc0 flags are set.
20685         (rotlsi3): Note that only the Z and S bits are set in cc0.
20686         (lshrsi3): Likewise.
20687         (ashlsi3): Likewise.
20688         (subsf3): Use %Q for the MEM operand.
20689         (fix_truncsfsi2): Likewise.
20690         (floatsisf2): Likewise.
20691         (bitset): Remove early clobber from destination.
20692         (bitset_in_memory): Likewise.
20693         (lrintsf2): Clobber the cc0 register.
20694         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
20695         (rx_print_operand): Handle %N.
20696
20697 2010-06-16  Jan Hubicka  <jh@suse.cz>
20698
20699         * df-core.c (df_compact_blocks): Free problem_temps vector.
20700
20701 2010-06-16  Martin Jambor  <mjambor@suse.cz>
20702
20703         PR tree-optimization/43905
20704         * tree-sra.c: Include tree-inline.h.
20705         (create_abstract_origin): Removed.
20706         (modify_function): Version the call graph node instead of creating
20707         abstract origins and dealing with same_body aliases.
20708         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
20709         function is versionable.
20710         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
20711
20712 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
20713
20714         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
20715         (CHOOSE_DYNAMIC_LINKER): Update.
20716
20717 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
20718
20719         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
20720         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
20721         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
20722         *prefetch_3dnow_rex.
20723
20724 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
20725
20726         * target.h (struct asm_out):Add declare_constant_name field.
20727         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
20728         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
20729         * output.h (default_asm_declare_constant_name): Declare.
20730         (assemble_label): Update prototype.
20731         * varasm.c (assemble_constant_contents): Use
20732         targetm.asm_out.declare_constant_name target hook.
20733         (assemble_label): Add 'file' argument.
20734         (default_asm_declare_constant_name): New function.
20735         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
20736         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
20737         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
20738
20739         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
20740         * config/darwin.c (darwin_asm_declare_constant_name): New function.
20741         (machopic_output_indirection): Update assemble_label argument list.
20742         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
20743         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
20744
20745 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
20746
20747         PR middle-end/44391
20748         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
20749         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
20750
20751 2010-06-15  Richard Guenther  <rguenther@suse.de>
20752
20753         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
20754
20755 2010-06-15  Paul Brook  <paul@codesourcery.com>
20756
20757         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
20758         hard-float ABI.
20759
20760 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
20761
20762         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
20763         don't get a vector type for output.
20764
20765 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
20766
20767         PR fortran/44536
20768         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
20769         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
20770         (LANG_HOOKS_DECLS): Add it.
20771         * gimplify.c (omp_notice_variable): Call
20772         lang_hooks.decls.omp_report_decl.
20773
20774 2010-06-15  Martin Jambor  <mjambor@suse.cz>
20775
20776         PR lto/44464
20777         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
20778         on the newly dead SSA name.
20779
20780 2010-06-15  Alan Modra  <amodra@gmail.com>
20781
20782         * doc/invoke.texi: Add mcmodel to powerpc options.
20783         * configure.ac: Add HAVE_LD_LARGE_TOC test.
20784         * configure: Regenerate.
20785         * config.in: Regenerate.
20786         * config/rs6000/linux64.opt (mcmodel): New.
20787         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
20788         (TARGET_CMODEL, SET_CMODEL): Define.
20789         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
20790         select CMODEL_MEDIUM default.
20791         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
20792         (TARGET_CMODEL): Define default.
20793         * config/rs6000/rs6000.c (cmodel): New variable.
20794         (rs6000_explicit_options): Add cmodel field.
20795         (rs6000_handle_option): Handle -mcmodel.
20796         (create_TOC_reference): Add largetoc_reg param.  Generate high,
20797         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
20798         (rs6000_delegitimize_address): Recognise new toc reference rtl
20799         and minimal-toc rtl.
20800         (rs6000_legitimize_reload_address): Handle new toc references.
20801         (print_operand_address): Handle legitimate_constant_pool_address_p
20802         match before lo_sum.
20803         (rs6000_eliminate_indexed_memrefs): Tidy.
20804         (rs6000_emit_move): Tweak threshold for inlining constants.
20805         Keep rs6000_emit_allocate_stack large stack frame offsets
20806         loaded into r0 inline.
20807         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
20808         (tocrel_base, tocrel_offset): New variables.
20809         (toc_relative_expr_p): Set them here.
20810         (print_operand_address): Skip over any offset on constant pool address.
20811         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
20812         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
20813         (offsettable_ok_by_alignment): New function.
20814         (rs6000_emit_move): Address suitably aligned local symbol_refs
20815         relative to the toc pointer for -mcmodel=medium.
20816         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
20817         strict param.  Allow lo_sum version of addressing.  Verify reg
20818         used for -mminimal-toc and -mcmodel != small.  Update all callers.
20819         * config/rs6000/constraints.md: Update for above change.
20820         * config/rs6000/predicates.md: Likewise.
20821         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
20822         code.
20823         (tls_gd): Split for -mcmodel=medium/large.
20824         (tls_gd_high, tls_gd_low): New.
20825         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
20826         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
20827         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
20828         (largetoc_high, largetoc_low): New.
20829         (cmptf_internal2): Add clobber.
20830         * config/rs6000/rs6000-protos.h: Update.
20831
20832 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
20833
20834         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
20835         true if no prefetch is going to be generated for a given group.
20836         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
20837         estimate the prefetch_count.
20838         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
20839         prefetch count by considering the unroll_factor and prefetch_mod
20840         for is_loop_prefetching_profitable.
20841
20842 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
20843
20844         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
20845         anything if the argument is not a MEM.
20846
20847 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
20848
20849         PR debug/43650
20850         PR debug/44181
20851         PR debug/44247
20852         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
20853         debug stmts.
20854         (canonicalize_loop_ivs): Likewise.
20855
20856 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
20857
20858         PR debug/43656
20859         * haifa-sched.c (setup_insn_reg_pressure_info,
20860         update_register_pressure): Reject debug insns.
20861         (ready_sort): Don't setup reg pressure for debug insns.
20862         (schedule_insn): Don't update reg pressure for debug insns.
20863
20864 2010-06-14  Richard Guenther  <rguenther@suse.de>
20865
20866         * lto-streamer.c (cached_bp): Remove.
20867         (bitpack_delete): Likewise.
20868         (bitpack_create): Likewise.
20869         (bp_get_next_word): Likewise.
20870         (bp_pack_value, bp_unpack_value): Move ...
20871         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
20872         Re-implement.
20873         (struct bitpack_d): Likewise.
20874         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
20875         New inline functions.
20876         * lto-streamer-out.c (lto_output_bitpack): Remove.
20877         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
20878         (pack_value_fields): Adjust.
20879         (lto_write_tree): Likewise.
20880         (output_gimple_stmt): Likewise.
20881         (output_function): Likewise.
20882         * lto-streamer-in.c (input_gimple_stmt): Adjust.
20883         (input_function): Likewise.
20884         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
20885         (lto_input_bitpack): Remove.
20886         (lto_materialize_tree): Adjust.
20887         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
20888         * lto-cgraph.c (lto_output_edge): Adjust.
20889         (lto_output_node): Likewise.
20890         (lto_output_varpool_node): Likewise.
20891         (lto_output_ref): Likewise.
20892         (input_node): Likewise.
20893         (input_varpool_node): Likewise.
20894         (input_ref): Likewise.
20895         (input_edge): Likewise.
20896         (output_node_opt_summary): Likewise.
20897         (input_node_opt_summary): Likewise.
20898         * ipa-pure-const.c (pure_const_write_summary): Likewise.
20899         (pure_const_read_summary): Likewise.
20900         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
20901         (ipa_read_indirect_edge_info): Likewise.
20902         (ipa_write_node_info): Likewise.
20903         (ipa_read_node_info): Likewise.
20904
20905 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
20906
20907         PR target/44534
20908         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
20909         (vec_extract_lo_v16hi): Likewise.
20910         (vec_extract_lo_v32qi): Likewise.
20911
20912 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
20913
20914         PR bootstrap/44426
20915         * tree.h (build_call_expr): Don't define as vararg macro, instead
20916         add a prototype.
20917         * builtins.c (build_call_nofold): Remove.
20918         (expand_builtin_int_roundingfn, expand_builtin_pow,
20919         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
20920         expand_builtin_memset_args, expand_builtin_strcmp,
20921         expand_builtin_strncmp, expand_builtin_memory_chk): Use
20922         build_call_nofold_loc instead of build_call_nofold.
20923         (build_call_expr): New function.
20924
20925         PR tree-optimization/44508
20926         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
20927         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
20928         don't eliminate trivially dead stmts.
20929         * tree-vrp.c (vrp_finalize): Pass false as last argument
20930         to substitute_and_fold.
20931         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
20932         to substitute_and_fold.
20933         * tree-ssa-ccp.c (ccp_finalize): Likewise.
20934
20935         PR bootstrap/44509
20936         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
20937
20938 2010-06-14  Ira Rosen  <irar@il.ibm.com>
20939
20940         PR tree-optimization/44507
20941         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
20942         to build initial vector for BIT_AND_EXPR.
20943         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
20944
20945 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
20946
20947         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
20948         adjust z10prop set_attr.
20949
20950 2010-06-13  Jan Hubicka  <jh@suse.cz>
20951
20952         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
20953         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
20954         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
20955         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
20956         datastructure checks into checking asserts.
20957         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
20958         * tree-ssa-sccvn.c (VN_INFO): Likewise.
20959         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
20960         df_ref_create_structure): Likewise.
20961         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
20962         pool_free): Use gcc_checking_assert.
20963         * alias.c (get_alias_set): Likewise.
20964         * var-tracking.c (variable_htab_free, shared_hash_copy,
20965         canonicalize_values_mark, variable_merge_over_cur): Likewise.
20966         * lto-streamer.c (bp_unpack_value): Likewise.
20967
20968 2010-06-13  Richard Guenther  <rguenther@suse.de>
20969
20970         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
20971         Do not stream but initialize TYPE_CANONICAL to NULL.
20972         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
20973         * gimple.c (gimple_types_compatible_p): Disregard
20974         TYPE_STRUCTURAL_EQUALITY_P.
20975         (gimple_register_type): Use TYPE_CANONICAL as cache.
20976         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
20977         before registering common types.
20978         * config/i386/i386.c (ix86_function_arg_boundary): Do not
20979         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
20980         * tree.h (TYPE_CANONICAL): Clarify documentation.
20981
20982 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
20983
20984         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20985         LIBCALL_VALUE): Remove macros.
20986         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
20987         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20988         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20989         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
20990         (ia64_function_value): Make static. Handle receiving the function
20991         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
20992
20993 2010-06-12  Jan Hubicka  <jh@suse.cz>
20994
20995         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
20996         at correct place.
20997
20998 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
20999
21000         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
21001
21002 2010-06-12  Jan Hubicka  <jh@suse.cz>
21003
21004         * df-core.c (df_clear_bb_info): New function.
21005         (df_set_blocks): bb_info is always allocated.
21006         (df_get_bb_info): Use block_info_elt_size.
21007         (df_set_bb_info): Likewise.
21008         (df_compact_blocks): Update for new block_info.
21009         (grow_bb_info): New function.
21010         * df-problems.c (df_grow_bb_info): Move to df-core.c
21011         (df_rd_set_bb_info): Remove.
21012         (df_rd_free_bb_info): Do not free block pool.
21013         (df_rd_alloc): Do not create pool, use check for
21014         obstack presence instead of NULL pointer for new blocks.
21015         (df_rd_free): DO not free alloc pool; clear block_info.
21016         (problem_RD): Add size of block info structure.
21017         (df_lr_set_bb_info): Remove.
21018         (df_lr_free_bb_info): Do not free block pool.
21019         (df_lr_alloc): Do not create pool, use check for
21020         obstack presence instead of NULL pointer for new blocks.
21021         (df_lr_free): DO not free alloc pool; clear block_info.
21022         (problem_LR): Add size of block info structure.
21023         (df_live_set_bb_info): Remove.
21024         (df_live_free_bb_info): Do not free block pool.
21025         (df_live_alloc): Do not create pool, use check for
21026         obstack presence instead of NULL pointer for new blocks.
21027         (df_live_free): DO not free alloc pool; clear block_info.
21028         (problem_LIVE): Add size of block info structure.
21029         (problem_CHAIN): Add size of block info structure.
21030         (df_byte_lr_set_bb_info): Remove.
21031         (df_byte_lr_free_bb_info): Do not free block pool.
21032         (df_byte_lr_alloc): Do not create pool, use check for
21033         obstack presence instead of NULL pointer for new blocks.
21034         (df_byte_lr_free): DO not free alloc pool; clear block_info.
21035         (problem_BYTE_LR): Add size of block info structure.
21036         (problem_NOTE): Add size of block info structure.
21037         (df_byte_MD_set_bb_info): Remove.
21038         (df_byte_MD_free_bb_info): Do not free block pool.
21039         (df_byte_MD_alloc): Do not create pool, use check for
21040         obstack presence instead of NULL pointer for new blocks.
21041         (df_byte_MD_free): DO not free alloc pool; clear block_info.
21042         (problem_BD): Add size of block info structure.
21043         * df-scan.c (df_scan_free_internal): Free block pool.
21044         (df_scan_set_bb_info): Remove.
21045         (df_scan_free_bb_info): Check for artificial_defs instead
21046         of bb_info being non-NULL.
21047         (df_scan_alloc): DO not create df_scan_block pool.
21048         (problem_SCAN): Set size of block info.
21049         (df_bb_refs_record): Do not allocate bb_info.
21050         * df.h (df_problem): Add block_info_elt_size.
21051         (struct dataflow): Change block_info to void *.
21052         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
21053         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
21054         in-line structures.
21055
21056 2010-06-12  Jan Hubicka  <jh@suse.cz>
21057
21058         PR tree-optimize/44485
21059         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
21060         containing use of return value of noreturn function.
21061
21062 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
21063
21064         * targhooks.c (default_function_value): Don't use
21065         FUNCTION_OUTGOING_VALUE.
21066         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
21067         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
21068
21069 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
21070
21071         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
21072         Add crtfastmath.o to extra_parts.
21073         * config/mips/crtfastmath.c: New.
21074         * config/mips/linux.h (ENDFILE_SPEC): New.
21075
21076 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
21077
21078         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
21079         old_type in parameter.
21080         (gcc_type_for_value): Update call to gcc_type_for_interval.
21081         (compute_type_for_level_1): Renamed compute_type_for_level.
21082         Update call to gcc_type_for_interval.
21083
21084 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
21085
21086         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
21087         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
21088
21089 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
21090
21091         * opts-common.c: Include options.h.
21092         (integral_argument): Move from opts.c.
21093         (decode_cmdline_option): New.  Based on read_cmdline_option.
21094         * opts.c (integral_argument): Move to opts-common.c.
21095         (read_cmdline_option): Move most contents to
21096         decode_cmdline_option.  Use %qs in diagnostics.
21097         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
21098         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
21099         decode_cmdline_option): New.
21100
21101 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
21102
21103         PR target/44481
21104         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
21105         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
21106         (partiysi2_cmp): Ditto.
21107         (*partiyhi2_cmp): Ditto.
21108         (*parityqi2_cmp): Remove.
21109
21110 2010-06-11  Jan Hubicka  <jh@suse.cz>
21111
21112         * bitmap.h (bmp_iter_next_bit): New.
21113         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
21114
21115 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
21116             Eric Botcazou  <ebotcazou@adacore.com>
21117
21118         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
21119         computed cost.
21120
21121 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
21122
21123         * config/i386/i386.md (unspec): New define_c_enum.
21124         (unspecv): Ditto.
21125
21126 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
21127
21128         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
21129
21130 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
21131
21132         PR middle-end/44483
21133         * tree-if-conv.c (bb_predicate_s): New struct.
21134         (bb_predicate_p): New.
21135         (bb_has_predicate): New.
21136         (bb_predicate): New.
21137         (set_bb_predicate): New.
21138         (bb_predicate_gimplified_stmts): New.
21139         (set_bb_predicate_gimplified_stmts): New.
21140         (add_bb_predicate_gimplified_stmts): New.
21141         (init_bb_predicate): New.
21142         (free_bb_predicate): New.
21143         (is_predicated): Use bb_predicate.
21144         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
21145         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
21146         before processing their successors.
21147         (clean_predicate_lists): Removed.
21148         (find_phi_replacement_condition): Use bb_predicate.
21149         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
21150         computations.
21151         (insert_gimplified_predicates): New.
21152         (combine_blocks): Call insert_gimplified_predicates.
21153         (tree_if_conversion): Call free_bb_predicate instead of
21154         clean_predicate_lists.
21155
21156 2010-10-11  Paul Brook  <paul@codesourcery.com>
21157
21158         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
21159         * config/arm/arm.c (all_architectures): Change v7e-m default to
21160         cortexm4.
21161         * config/arm/arm-cores.def: Add cortex-m4.
21162         * config/arm/arm-tune.md: Regenerate.
21163
21164 2010-06-11  Jan Hubicka  <jh@suse.cz>
21165
21166         * ipa-pure-const.c (special_builtlin_state): New function.
21167         (check_call): Use it instead of special casign BUILT_IN_RETURN.
21168         (propagate_pure_const): Use it.
21169
21170 2010-06-11  Jan Hubicka  <jh@suse.cz>
21171
21172         * df-problems.c (df_live_scratch): Convert to bitmap_head.
21173         (df_live_alloc): Initialize df_live_scratch when initializing
21174         problem_data.
21175         (df_live_transfer_function): Update uses of df_live_scratch.
21176         (df_live_free): Free problem_data; clear df_live_scratch before
21177         releasing the obstack.
21178         (df_md_free): Free problem data.
21179
21180 2010-06-11  Jan Hubicka  <jh@suse.cz>
21181
21182         * doc/invoke.texi (Wsuggest-attribute): Document.
21183         (Wmissing-noreturn): Remove.
21184         * ipa-pure-const.c (warn_function_noreturn): New function.
21185         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
21186         warn_missing_noreturn.
21187         * common.opt (Wsuggest-attribute=noreturn): New.
21188         * tree-flow.h (warn_function_noreturn): Declare.
21189         * tree-cfg.c (execute_warn_function_noreturn): Use
21190         warn_function_noreturn.
21191         (gate_warn_function_noreturn): New.
21192         (pass_warn_function_noreturn): Update.
21193
21194 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21195
21196         * c-typeck.c (handle_warn_cast_qual): Add loc
21197         parameter. Improve warning message.
21198         (build_c_cast): Pass location to handle_warn_cast_qual.
21199
21200 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
21201
21202         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
21203         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
21204         insn mnemonic.
21205         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
21206
21207 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
21208
21209         Fix bootstap on mips
21210         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
21211         be naming typedefs.
21212
21213 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
21214
21215         * system.h (helper_const_non_const_cast): New inline for
21216         gcc version <= 4.0.
21217         (CONST_CAST2): For gcc version <= 4.0 use
21218         new helper to do const/non-const casting.
21219
21220 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21221
21222         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
21223         * Makefile.in (OBJS-common): Include insn-enums.o.
21224         (insn-enums.o): New rule.
21225         (simple_generated_c): Add insn-enums.c.
21226         (build/genenums.o): New rule.
21227         (genprogmd): Add "enums".
21228         * genconstants.c (print_enum_type): Declare a C string array
21229         for each enum.
21230         * genenums.c: New file.
21231         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
21232         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
21233         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
21234
21235 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21236
21237         * doc/md.texi (define_enum_attr): Document.
21238         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
21239         * read-md.h (lookup_enum_type): Declare.
21240         * read-md.c (lookup_enum_type): New function.
21241         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
21242         * genattrtab.c (attr_desc): Add an enum_name field.
21243         (evaluate_eq_attr): Take the associated attribute as argument.
21244         Get the enum prefix from the enum_name field, if defined.
21245         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
21246         (simplify_test_exp): Pass attr to evaluate_eq_attr.
21247         (add_attr_value): New function, split out from...
21248         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
21249         (write_test_expr): Pass attr to evaluate_eq_attr.
21250         (write_attr_get): Use the enum_name as the enum tag, if defined.
21251         (write_attr_valueq): Use the enum_name as a prefix, if defined.
21252         (find_attr): Initialize enum_name.
21253         (main): Handle DEFINE_ENUM_ATTR.
21254         * gensupport.c (process_rtx): Likewise.
21255         * config/mips/mips.h (mips_tune_attr): Delete.
21256         * config/mips/mips.md (cpu): Use define_attr_enum.
21257
21258 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21259
21260         * doc/md.texi (define_c_enum, define_enum): Document.
21261         * read-md.h (md_constant): Add a parent_enum field.
21262         (enum_value, enum_type): New structures.
21263         (upcase_string, traverse_enum_types): Declare.
21264         * read-md.c (enum_types): New variable.
21265         (upcase_string, add_constant): New functions.
21266         (handle_constants): Don't create the hash table here.
21267         Use add_constant.
21268         (traverse_md_constants): Don't check for a null md_constants.
21269         (decimal_string, handle_enum, traverse_enum_types): New functions.
21270         (read_md_files): Initialize md_constants and md_enums.
21271         * genconstants.c (print_md_constant): Ignore info argument.
21272         Only print constants that belong to no enum.
21273         (print_enum_type): New function.
21274         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
21275         for each defined enum type.
21276         * config/mips/mips.md (processor): New define_enum.
21277         (unspec): New define_c_enum.
21278         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
21279         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
21280         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
21281         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
21282         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
21283         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
21284         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
21285         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
21286         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
21287         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
21288         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
21289         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
21290         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
21291         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
21292         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
21293         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
21294         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
21295         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
21296         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
21297         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
21298         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
21299         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
21300         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
21301         (UNSPEC_RDDSP): Move to mips-dsp.md.
21302         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
21303         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
21304         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
21305         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
21306         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
21307         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
21308         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
21309         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
21310         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
21311         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
21312         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
21313         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
21314         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
21315         Moved to mips-dspr2.md.
21316         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
21317         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
21318         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
21319         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
21320         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
21321         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
21322         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
21323         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
21324         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
21325         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
21326         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
21327         UNSPEC_LOONGSON_PSADBH)
21328         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
21329         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
21330         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
21331         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
21332         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
21333         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
21334         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
21335         (cpu): Update comment.
21336         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
21337         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
21338         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
21339         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
21340         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
21341         UNSPEC_LOONGSON_PCMPEQ)
21342         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
21343         UNSPEC_LOONGSON_PINSR_0)
21344         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
21345         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
21346         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
21347         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
21348         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
21349         UNSPEC_LOONGSON_PSADBH)
21350         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
21351         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
21352         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
21353         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
21354         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
21355         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
21356         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
21357         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
21358         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
21359         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
21360         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
21361         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
21362         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
21363         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
21364         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
21365         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
21366         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
21367         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
21368         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
21369         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
21370         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
21371         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
21372         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
21373         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
21374         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
21375         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
21376         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
21377         (UNSPEC_RDDSP): Moved from mips.md.
21378         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
21379         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
21380         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
21381         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
21382         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
21383         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
21384         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
21385         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
21386         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
21387         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
21388         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
21389         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
21390         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
21391         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
21392         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
21393         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
21394         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
21395         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
21396         (UNSPEC_SCC): Moved from mips.md.
21397         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
21398         "processor_type" to "processor".
21399         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
21400         * config/mips/mips.h (processor_type): Delete.
21401         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
21402         "processor_type" to "processor".
21403
21404 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21405
21406         * configure.ac (tm_include_list): Add insn-constants.h.
21407         * configure: Regenerate.
21408         * Makefile.in (GTM_H): Move insn-constants.h here from...
21409         (TM_H): ...here.
21410         * mkconfig.sh: Remove special handling for insn-constants.h.
21411
21412 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21413
21414         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
21415         (BUILD_MD): ...this new variable.
21416         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
21417         that include the old contents of simple_generated_h and
21418         simple_generated_c.
21419         (simple_generated_h, simple_generated_c): Include them.  Add
21420         insn-constants.h.
21421         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
21422         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
21423         Remove these dependencies from the main rule and include
21424         insn-conditions.md in the command line only if it appears
21425         in the dependency list.
21426         (insn-constants.h, s-constants): Delete.
21427         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
21428         or gensupport.h.
21429         (build/genmddeps.o): Likewise.
21430         (genprogrtl): New variable that contains everything from genprogmd
21431         except mddeps and constants.
21432         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
21433         depend on $(BUILD_MD)
21434         (genprog): New variable.  Make these programs depend on
21435         $(BUILD_ERRORS).
21436         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
21437         (main): Use read_md_files instead of init_rtx_reader_args.
21438         * genconstants.c: As for genmddeps.c.
21439         * read-md.h (read_skip_construct): Declare.
21440         * read-md.c (read_skip_construct): New function.
21441         (handle_file): Allow a null handle_directive, skipping the
21442         construct if so.
21443         (parse_include): Update the comment accordingly.
21444
21445 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21446
21447         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
21448         * genmddeps.c: Include read-md.h.
21449         (main): Call init_rtx_reader_args instead of init_md_reader_args.
21450         * genattr.c (main): Likewise.
21451         * genattrtab.c (main): Likewise.
21452         * genautomata.c (main): Likewise.
21453         * gencodes.c (main): Likewise.
21454         * genconditions.c (main): Likewise.
21455         * genconfig.c (main): Likewise.
21456         * genconstants.c (main): Likewise.
21457         * genemit.c (main): Likewise.
21458         * genextract.c (main): Likewise.
21459         * genflags.c (main): Likewise.
21460         * genopinit.c (main): Likewise.
21461         * genoutput.c (main): Likewise.
21462         * genpeep.c (main): Likewise.
21463         * genrecog.c (main): Likewise.
21464         * genpreds.c (main): Likewise.
21465         * gensupport.h (in_fname): Move to read-md.h.
21466         (init_md_reader_args_cb): Rename to...
21467         (init_rtx_reader_args_cb): ...this and return a bool.
21468         (init_md_reader_args): Rename to...
21469         (init_rtx_reader_args): ...this and return a bool.
21470         (include_callback): Move to read-md.h.
21471         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
21472         (file_name_list, first_dir_md_include): Move to read-md.c
21473         (first_bracket_include): Delete unused variable.
21474         (last_dir_md_include): Move to read-md.c.
21475         (process_include): Delete, moving code to read-md.c:handle_include.
21476         (process_rtx): Don't handle INCLUDE.
21477         (save_string): Delete.
21478         (rtx_handle_directive): New function.
21479         (init_md_reader_args_cb): Rename to...
21480         (init_rtx_reader_args_cb): ...this and return a boolean success value.
21481         Use read_md_args.
21482         (init_md_reader_args): Rename to...
21483         (init_rtx_reader_args): ...this and return a boolean success value.
21484         * rtl.def (INCLUDE): Delete.
21485         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
21486         argument.
21487         * read-rtl.c (read_conditions): Don't gobble ')' here.
21488         (read_mapping): Likewise.
21489         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
21490         Handle top-level non-rtx constructs here rather than in read_rtx_1.
21491         Store the whole queue in *X.  Remove call to init_md_reader.
21492         (read_rtx_1): Rename to...
21493         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
21494         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
21495         here.
21496         (read_nested_rtx): New function.  Handle (nil) here rather than
21497         in read_rtx_code.
21498         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
21499         gobble ')' here.
21500         * read-md.h (directive_handler_t): New type.
21501         (in_fname, include_callback): Moved from read-md.h.
21502         (read_constants, init_md_reader): Delete.
21503         (read_md_files): Declare.
21504         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
21505         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
21506         from gensupport.c.
21507         (read_constants): Rename to...
21508         (handle_constants): ...this.  Don't gobble ')' here.
21509         (handle_include, handle_file, handle_toplevel_file)
21510         (parse_include): New functions, mostly taken from gensupport.c.
21511         (init_md_reader): Subsume into...
21512         (read_md_files): ...this new function.
21513
21514 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21515
21516         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
21517         (unread_char): Decrement read_md_lineno after putting back '\n'.
21518         * read-md.c (fatal_with_file_and_line): Push back any characters
21519         that we decide not to add to the context.
21520         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
21521         fatal_expected_char in cases where '/' ends a line (for example).
21522         (read_name): Don't increment read_md_lineno here.
21523         (read_escape): Likewise.
21524         (read_quoted_string): Likewise.
21525         (read_braced_string): Likewise.
21526
21527 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21528
21529         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
21530         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
21531         * genconstants.c: Include read-md.h.
21532         * read-rtl.c (md_constants): Move to read-md.c.
21533         (md_name): Move to read-md.h.
21534         (initialize_iterators): Use leading_string_hash instead of def_hash
21535         and leading_string_eq_p instead of def_name_eq_p.
21536         (read_name): Move to read-md.c.
21537         (def_hash, def_name_eq_p): Delete.
21538         (read_constants, traverse_md_constants): Move to read-md.c.
21539         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
21540         * read-md.h: Include hashtab.h.
21541         (md_name): Moved from read-rtl.c.
21542         (md_constant): Moved from read-md.h.
21543         (leading_string_hash, leading_string_eq_p, read_name)
21544         (read_constants, traverse_md_constants): Declare.
21545         * read-md.c (md_constants): Moved from read-rtl.c.
21546         (leading_string_hash, leading_string_eq_p): New functions.
21547         (read_name, read_constants, traverse_md_constants): Moved from
21548         read-rtl.c.
21549
21550 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21551
21552         * read-rtl.c (md_name): New structure.
21553         (read_name): Take an md_name instead of a buffer pointer.
21554         Use the "string" field instead of strcpy when expanding constants.
21555         (read_constants): Remove the tmp_char argument.  Update the calls
21556         to read_name, using two local name buffers instead of the tmp_char
21557         argument.  Merge the constant-creation code.
21558         (read_conditions): Remove the tmp_char argument.  Update the calls
21559         to read_name, using a local name buffer instead of the tmp_char
21560         argument.
21561         (read_mapping): Replace tmp_char variable with a local name buffer.
21562         Update the calls to read_name.
21563         (read_rtx_1): Likewise.  Update the calls to read_constants and
21564         read_conditions.
21565
21566 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21567
21568         * Makefile.in (build/read-md.o): Depend on errors.h.
21569         * read-md.h (error_with_line): Declare.
21570         * read-md.c: Include errors.h.
21571         (message_with_line_1): New function, extracted from...
21572         (message_with_line): ...here.
21573         (error_with_line): New function.
21574         * genattrtab.c: If a call to message_with_line is followed by
21575         "have_error = 1;", replace both statements with a call to
21576         error_with_line.
21577         * genoutput.c: Likewise.
21578         * genpreds.c: Likewise.
21579         * genrecog.c: If a call to message_with_line is followed by
21580         "error_count++;", replace both statements with a call to
21581         error_with_line.
21582         (errorcount): Delete.
21583         (main): Don't check it.
21584         * gensupport.c: If a call to message_with_line is followed by
21585         "errors = 1;", replace both statements with a call to error_with_line.
21586         (errors): Delete.
21587         (process_define_cond_exec): Check have_error instead of errors.
21588         (init_md_reader_args_cb): Likewise.  Don't set errors.
21589
21590 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21591
21592         * read-md.h (read_md_file): Declare.
21593         (read_char, unread_char): New functions.
21594         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
21595         (read_quoted_string, read_string): Remove FILE * argument.
21596         * read-md.c (read_md_file): New variable.
21597         (read_md_filename, read_md_lineno): Update comments and remove
21598         unnecessary initialization.
21599         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
21600         (read_escape, read_quoted_string, read_braced_string, read_string):
21601         Remove FILE * argument.  Update calls accordingly, using read_char
21602         and unread_char instead of getc and ungetc.
21603         * rtl.h (read_rtx): Remove FILE * argument.
21604         * read-rtl.c (iterator_group): Remove FILE * argument from
21605         "find_builtin".
21606         (iterator_traverse_data): Remove "infile" field.
21607         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
21608         (add_mapping, read_name, read_constants, read_conditions)
21609         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
21610         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
21611         Remove file arguments from all calls, using read_char and unread_char
21612         instead of getc and ungetc.
21613         * gensupport.c (process_include): Preserve read_md_file around
21614         the include.  Set read_md_file to the handle of the included file.
21615         Update call to read_rtx.
21616         (init_md_reader_args_cb): Set read_md_file to the handle of the file
21617         and remove local FILE *.  Update calls to read_rtx.
21618
21619 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21620
21621         * read-md.h (read_rtx_lineno): Rename to...
21622         (read_md_lineno): ...this.
21623         (read_rtx_filename): Rename to...
21624         (read_md_filename): ...this.
21625         (copy_rtx_ptr_loc): Rename to...
21626         (copy_md_ptr_loc): ...this.
21627         (print_rtx_ptr_loc): Rename to...
21628         (print_md_ptr_loc): ...this.
21629         * read-md.c: Likewise.  Update references after renaming.
21630         (string_obstack): Replace RTL with MD in comment.
21631         (set_rtx_ptr_loc): Rename to...
21632         (set_md_ptr_loc): ...this.
21633         (get_rtx_ptr_loc): Rename to...
21634         (get_md_ptr_loc): ...this.
21635         * genconditions.c: Update references after renaming.
21636         * genemit.c: Likewise.
21637         * genoutput.c: Likewise.
21638         * genpreds.c: Likewise.
21639         * gensupport.c: Likewise.
21640         * read-rtl.c: Likewise.
21641
21642 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
21643
21644         * Makefile.in (READ_MD_H): New variable.
21645         (BUILD_RTL): Add build/read-md.o.
21646         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
21647         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
21648         (build/genattrtab.o, build/genconditions.o build/genemit.o)
21649         (build/genextract.o, build/genflags.o, build/genoutput.o)
21650         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
21651         (build/read-md.o): New rule.
21652         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
21653         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
21654         * coretypes.h: ...here.
21655         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
21656         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
21657         * genattr.c: Include read-md.h.
21658         * genattrtab.c: Likewise.
21659         * genconditions.c: Likewise.
21660         * genemit.c: Likewise.
21661         * genextract.c: Likewise.
21662         * genflags.c: Likewise.
21663         * genoutput.c: Likewise.
21664         * genpreds.c: Likewise.
21665         * genrecog.c: Likewise.
21666         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
21667         (join_c_conditions, print_c_condition, read_rtx_filename)
21668         (read_rtx_lineno): Move to read-md.h.
21669         * read-rtl.c: Include read-md.h.
21670         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
21671         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
21672         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
21673         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
21674         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
21675         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
21676         (read_braced_string, read_string): Move to read-md.c.
21677         (read_rtx): Move some initialization to init_md_reader and call
21678         init_md_reader here.
21679         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
21680         Move to read-md.h.
21681         * gensupport.c: Include read-md.h.
21682         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
21683         * read-md.h, read-md.c: New files.
21684
21685 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
21686
21687         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21688         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21689         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
21690         * config/moxie/moxie.c (moxie_function_value): Make static.
21691         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
21692         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21693
21694 2010-06-10  Martin Jambor  <mjambor@suse.cz>
21695
21696         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
21697         * dbgcnt.def (tree_sra): New counter.
21698         * tree-sra.c: Include dbgcnt.h.
21699         (gate_intra_sra): Check tree_sra debug counter.
21700
21701 2010-06-10  Martin Jambor  <mjambor@suse.cz>
21702
21703         PR tree-optimization/44258
21704         * tree-sra.c (build_access_subtree): Return false iff there is a
21705         partial overlap.
21706         (build_access_trees): Likewise.
21707         (analyze_all_variable_accesses): Disqualify candidates if
21708         build_access_trees returns true for them.
21709
21710 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
21711
21712         PR debug/41371
21713         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
21714         tail-recurse into canonical node.  Fast-forward over
21715         non-canonical VALUEs.
21716
21717 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
21718
21719         PR boostrap/44470
21720         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
21721         (*addsi_1_zext) <TYPE_LEA>: Likewise.
21722         (add lea splitter): Likewise.
21723         (add_zext lea splitter): Likewise.
21724
21725 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
21726
21727         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
21728
21729 2010-06-10  Jan Hubicka  <jh@suse.cz>
21730
21731         * df-problems.c (df_live_problem_data): Add live_bitmaps.
21732         (df_live_alloc): Initialize problem data and live_osbtacks.
21733         (df_live_finalize): Remove obstack, problem data; do not
21734         clear all bitmaps.
21735         (df_live_top_dump, df_live_bottom_dump): Do not dump old
21736         data when not allocated.
21737         (df_live_verify_solution_start): Do not allocate problem data.
21738         (df_live_verify_solution_end): Check if out is allocated.
21739         (struct df_md_problem_data): New structure.
21740         (df_md_alloc): Allocate problem data.
21741         (df_md_free): Free problem data; do not clear bitmaps.
21742
21743 2010-06-10  Jan Beulich  <jbeulich@novell.com>
21744
21745         PR bootstrap/37304
21746         * configure.ac: Replace $() with ${} when intending to expand
21747         variables rather than invoking commands.
21748         * configure: Re-generate.
21749
21750 2010-06-10  Jan Hubicka  <jh@suse.cz>
21751
21752         PR rtl-optimization/44460
21753         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
21754         TYPE_NEEDS_CONSTRUCTING sanity check.
21755
21756 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
21757
21758         * doc/include/fdl.texi: Move to GFDL version 1.3.
21759
21760         * doc/cpp.texi: Move to GFDL version 1.3.
21761         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
21762         * doc/gccint.texi: Move to GFDL version 1.3.
21763         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
21764         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
21765         * doc/invoke.texi: Move to GFDL version 1.3.
21766
21767 2010-06-09  Jan Hubicka  <jh@suse.cz>
21768
21769         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
21770         Break out from ...
21771         (propagate) ... here; swap the order.
21772
21773 2010-06-09  Jan Hubicka  <jh@suse.cz>
21774
21775         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
21776         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
21777         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
21778         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
21779
21780 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
21781
21782         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
21783         Do not the gather memory reference in the outer loop if the step
21784         is not a constant.
21785
21786 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
21787
21788         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
21789         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
21790         8 to 4.  Minor change of the related comments.
21791
21792 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21793
21794         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
21795         the scev analysis when the variable is not used outside the loop
21796         in a close phi node: call compute_overall_effect_of_inner_loop.
21797
21798 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21799
21800         * graphite-sese-to-poly.c (single_pred_cond): Renamed
21801         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
21802         (build_sese_conditions_before): Renamed call to single_pred_cond.
21803         (build_sese_conditions_after): Same.
21804
21805 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21806
21807         * graphite-poly.h: Fix comments and indentation.
21808         * graphite-sese-to-poly.c: Same.
21809         (build_sese_conditions_before): Compute stmt and gbb only when needed.
21810         * tree-chrec.c: Fix comments and indentation.
21811         (tree-ssa-loop-niter.c): Same.
21812
21813 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
21814
21815         PR rtl-optimization/42461
21816         * dce.c (deletable_insn_p): Return true for const or pure calls again.
21817         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
21818
21819 2010-06-09  Jan Hubicka  <jh@suse.cz>
21820
21821         * bitmap.c (bitmap_and): Walk array forward.
21822         (bitmap_and_compl_into): Likewise.
21823         (bitmap_xor): Likewise.
21824         (bitmap_xor_into):  Likewise.
21825         (bitmap_equal_p): Likewise.
21826         (bitmap_intersect_p): Likewise.
21827         (bitmap_intersect_compl_p): Likewise.
21828         (bitmap_ior_and_into): Likewise.
21829         (bitmap_elt_copy): Likewise.
21830         (bitmap_and_compl): Likewise.
21831         (bitmap_elt_ior): Likewise.
21832
21833 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
21834
21835         * opts-common.c (prune_options): Ensure replacement argv array
21836         is correctly terminated by a NULL entry.
21837
21838 2010-06-09  Jan Hubicka  <jh@suse.cz>
21839
21840         * cgraph.h (varpool_first_static_initializer,
21841         varpool_next_static_initializer): Make checking only when
21842         checking enabled.
21843         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
21844         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
21845         gcc_assert to gcc_checking_assert.
21846         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
21847         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
21848         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
21849         op_iter_init_phiuse, op_iter_init_phidef,
21850         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
21851         gcc_checking_assert.
21852         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
21853         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
21854         partition_is_global, live_on_entry, live_on_exit,
21855         live_merge_and_clear): Likewise.
21856         * system.h (gcc_checking_assert): New macro.
21857         * gimple.h (set_bb_seq): Use gcc_checking_assert.
21858
21859 2010-06-09  Jason Merrill  <jason@redhat.com>
21860
21861         * Makefile.in (TAGS): Collect tags info from c-family.
21862
21863 2010-06-09  Jan Hubicka  <jh@suse.cz>
21864
21865         * gimple.h (gcc_gimple_checking_assert): New macro.
21866         (gimple_set_def_ops, gimple_set_use_ops,
21867         gimple_set_vuse, gimple_set_vdef,
21868         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
21869         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
21870         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
21871         gimple_asm_output_op, gimple_asm_output_op_ptr,
21872         gimple_asm_set_output_op, gimple_asm_clobber_op,
21873         gimple_asm_set_clobber_op, gimple_asm_label_op,
21874         gimple_asm_set_label_op, gimple_try_set_kind,
21875         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
21876         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
21877         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
21878         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
21879         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
21880         gimple_omp_for_set_initial, gimple_omp_for_final,
21881         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
21882         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
21883         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
21884         conditional with ENABLE_GIMPLE_CHECKING.
21885         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
21886
21887 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
21888
21889         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
21890         (get_computation_cost_at): Use it.
21891         (determine_use_iv_cost_condition): Likewise.
21892         (determine_iv_cost): Likewise.
21893
21894 2010-06-09  Richard Guenther  <rguenther@suse.de>
21895
21896         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
21897         replace constants.
21898
21899 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
21900
21901         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
21902
21903 2010-06-09  Martin Jambor  <mjambor@suse.cz>
21904
21905         PR tree-optimization/44423
21906         * tree-sra.c (dump_access): Dump also grp_assignment_read.
21907         (analyze_access_subtree): Pass negative allow_replacements to children
21908         if the current type is scalar.
21909
21910 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
21911
21912         PR testsuite/42843
21913         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
21914         * doc/plugins.texi (Plugin license check): Update information
21915         on type of plugin_is_GPL_compatible.
21916         * Makefile.in (PLUGINCC): Define as $(COMPILER).
21917         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
21918
21919 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
21920
21921         * config/arm/arm.c (thumb2_reorg): New function.
21922         (arm_reorg): Call it.
21923         * config/arm/thumb2.md (define_peephole2 for flag clobbering
21924         arithmetic operations): Delete.
21925
21926 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
21927
21928         PR target/44067
21929         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
21930         e500v2 target.
21931
21932 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
21933
21934         PR plugins/44459
21935         * gcc-plugin.h: Encapsulate all declarations in extern "C".
21936
21937 2010-06-08  Jan Hubicka  <jh@suse.cz>
21938
21939         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
21940         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
21941
21942 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
21943
21944         PR tree-optimization/39874
21945         PR middle-end/28685
21946         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
21947         Declare.
21948         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
21949         same_bool_result_p): New.
21950         (and_var_with_comparison, and_var_with_comparison_1,
21951         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
21952         (or_var_with_comparison, or_var_with_comparison_1,
21953         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
21954         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
21955         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
21956         of combine_comparisons.
21957         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
21958
21959 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
21960
21961         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21962         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21963         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
21964         pdp11_function_value_regno_p): New functions.
21965         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21966         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21967
21968 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
21969
21970         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
21971         Thumb-2 in the MINUS case.
21972
21973 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21974
21975         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
21976
21977         * doc/gty.texi (GTY Options): Document typed GC allocation and
21978         variable_size GTY option.
21979
21980         * ggc-internal.h: New.
21981
21982         * ggc.h: Update copyright year.
21983         (digit_string): Move to stringpool.c.
21984         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
21985         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
21986         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
21987         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
21988         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
21989         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
21990         (ggc_force_collect, ggc_get_size, ggc_statistics)
21991         (ggc_print_common_statistics): Move to ggc-internal.h.
21992         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
21993         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
21994         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
21995         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
21996         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
21997         (ggc_alloc_zone_pass_stat): Remove.
21998         (ggc_internal_alloc_stat, ggc_internal_alloc)
21999         (ggc_internal_cleared_alloc_stat): New.
22000         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
22001         (ggc_internal_vec_alloc_stat)
22002         (ggc_internal_cleared_vec_alloc_stat)
22003         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
22004         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
22005         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
22006         (ggc_cleared_alloc_ptr_array_two_args): New.
22007         (htab_create_ggc, splay_tree_new_ggc): Redefine.
22008         (ggc_splay_alloc): Change the type of the first argument to
22009         enum gt_types_enum.
22010         (ggc_alloc_string): Make macro.
22011         (ggc_alloc_string_stat): New.
22012         (ggc_strdup): Redefine.
22013         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
22014         (ggc_alloc_rtvec_sized): New.
22015         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
22016         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
22017         (ggc_internal_cleared_alloc_zone_stat)
22018         (ggc_internal_zone_alloc_stat)
22019         (ggc_internal_zone_cleared_alloc_stat)
22020         (ggc_internal_zone_vec_alloc_stat)
22021         (ggc_alloc_zone_rtx_def_stat)
22022         (ggc_alloc_zone_tree_node_stat)
22023         (ggc_alloc_zone_cleared_tree_node_stat)
22024         (ggc_alloc_cleared_gimple_statement_d_stat): New.
22025
22026         * ggc-common.c: Include ggc-internal.h.
22027         (ggc_internal_cleared_alloc_stat): Rename from
22028         ggc_alloc_cleared_stat.
22029         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
22030         (ggc_calloc): Remove.
22031         (ggc_cleared_alloc_htab_ignore_args): New.
22032         (ggc_cleared_alloc_ptr_array_two_args): New.
22033         (ggc_splay_alloc): Add obj_type parameter.
22034         (init_ggc_heuristics): Formatting fixes.
22035
22036         * ggc-none.c: Update copyright year.
22037         (ggc_alloc_stat): Rename to ggc_alloc_stat.
22038         (ggc_alloc_cleared_stat): Rename to
22039         ggc_internal_cleared_alloc_stat.
22040         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
22041
22042         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
22043         Remove references to ggc_alloc in comments.
22044         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
22045         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
22046         (new_ggc_zone, destroy_ggc_zone): Remove.
22047         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
22048
22049         * ggc-zone.c: Include ggc-internal.h.  Remove references to
22050         ggc_alloc in comments.
22051         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
22052         (ggc_internal_alloc_zone_pass_stat): New.
22053         (ggc_internal_cleared_alloc_zone_stat): New.
22054         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
22055         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
22056         (new_ggc_zone, destroy_ggc_zone): Remove.
22057
22058         * stringpool.c: Update copyright year.  Include ggc-internal.h
22059         (digit_vector): Make static.
22060         (digit_string): Moved from ggc.h.
22061         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
22062         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
22063
22064         * Makefile.in (GGC_INTERNAL_H): New.
22065         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
22066         $(GGC_INTERNAL_H) to dependencies.
22067
22068         * gentype.c: Update copyright year.
22069         (walk_type): Accept variable_size GTY option.
22070         (USED_BY_TYPED_GC_P): New macro.
22071         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
22072         whitespace at the end of strings.
22073         (get_type_specifier, variable_size_p): New functions.
22074         (alloc_quantity, alloc_zone): New enums.
22075         (write_typed_alloc_def): New function.
22076         (write_typed_struct_alloc_def): Likewise.
22077         (write_typed_typed_typedef_alloc_def): Likewise.
22078         (write_typed_alloc_defns): Likewise.
22079         (output_typename, write_splay_tree_allocator_def): Likewise.
22080         (write_splay_tree_allocators): Likewise.
22081         (main): Call write_typed_alloc_defns and
22082         write_splay_tree_allocators.
22083
22084         * lto-streamer.h (lto_file_decl_data_ptr): New.
22085
22086         * passes.c (order): Define using cgraph_node_ptr.
22087
22088         * strinpool.c (struct string_pool_data): Declare nested_ptr using
22089         ht_identifier_ptr.
22090
22091         * gimple.h (union gimple_statement_d): Likewise.
22092
22093         * rtl.h (struct rtx_def): Likewise.
22094         (struct rtvec_def): Likewise.
22095
22096         * tree.h (union tree_node): Likewise.
22097
22098         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
22099
22100         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
22101
22102         * tree-scalar-evolution.c (scev_initialize): Likewise.
22103
22104         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
22105
22106         * dwarf2asm.c (dw2_force_const_mem): Likewise.
22107
22108         * omp-low.c (lower_omp_critical): Likewise.
22109
22110         * bitmap.h (struct bitmap_head_def): Update comment to not
22111         reference ggc_alloc.
22112
22113         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
22114
22115         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
22116
22117         * ipa-prop.c (duplicate_ggc_array): Rename to
22118         duplicate_ipa_jump_func_array.  Use typed GC allocation.
22119         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
22120
22121         * gimple.c (gimple_alloc_stat): Use
22122         ggc_alloc_cleared_gimple_statement_d_stat.
22123
22124         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
22125
22126         * tree.c (make_node_stat): Use
22127         ggc_alloc_zone_cleared_tree_node_stat.
22128         (make_tree_vec_stat): Likewise.
22129         (build_vl_exp_stat): Likewise.
22130         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
22131         (make_tree_binfo_stat): Likewise.
22132         (tree_cons_stat): Likewise.
22133
22134         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
22135         (shallow_copy_rtx_stat): Likewise.
22136         (make_node_stat): Likewise.
22137
22138         * lto-symtab.c: Fix comment.
22139
22140         * tree-cfg.c (create_bb): Update comment to not reference
22141         ggc_alloc_cleared.
22142         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
22143
22144         * varpool.c (varpool_node): Use typed GC allocation.
22145         (varpool_extra_name_alias): Likewise.
22146
22147         * varasm.c (emutls_decl): Likewise.
22148         (get_unnamed_section): Likewise.
22149         (get_noswitch_section): Likewise.
22150         (get_section): Likewise.
22151         (get_block_for_section): Likewise.
22152         (build_constant_desc): Likewise.
22153         (create_constant_pool): Likewise.
22154         (force_const_mem): Likewise.
22155
22156         * tree.c (build_vl_exp_stat): Likewise.
22157         (build_real): Likewise.
22158         (build_string): Likewise.
22159         (decl_debug_expr_insert): Likewise.
22160         (decl_value_expr_insert): Likewise.
22161         (type_hash_add): Likewise.
22162         (build_omp_clause): Likewise.
22163
22164         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
22165
22166         * tree-ssa.c (init_tree_ssa): Likewise.
22167
22168         * tree-ssa-structalias.c (heapvar_insert): Likewise.
22169
22170         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
22171
22172         * tree-ssa-loop-niter.c (record_estimate): Likewise.
22173
22174         * tree-ssa-alias.c (get_ptr_info): Likewise.
22175
22176         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
22177
22178         * tree-phinodes.c (allocate_phi_node): Likewise.
22179
22180         * tree-iterator.c (tsi_link_before): Likewise.
22181         (tsi_link_after): Likewise.
22182
22183         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
22184
22185         * tree-dfa.c (create_var_ann): Likewise.
22186
22187         * tree-cfg.c (create_bb): Likewise.
22188
22189         * toplev.c (alloc_for_identifier_to_locale): Likewise.
22190         (general_init): Likewise.
22191
22192         * stringpool.c (stringpool_ggc_alloc): Likewise.
22193         (gt_pch_save_stringpool): Likewise.
22194
22195         * sese.c (if_region_set_false_region): Likewise.
22196
22197         * passes.c (do_per_function_toporder): Likewise.
22198
22199         * optabs.c (set_optab_libfunc): Likewise.
22200         (set_conv_libfunc): Likewise.
22201
22202         * lto-symtab.c (lto_symtab_register_decl): Likewise.
22203
22204         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
22205         (input_eh_region): Likewise.
22206         (input_eh_lp): Likewise.
22207         (make_new_block): Likewise.
22208         (unpack_ts_real_cst_value_fields): Likewise.
22209
22210         * lto-section-in.c (lto_new_in_decl_state): Likewise.
22211
22212         * lto-cgraph.c (input_node_opt_summary): Likewise.
22213
22214         * loop-init.c (loop_optimizer_init): Likewise.
22215
22216         * lambda.h (lambda_vector_new): Likewise.
22217
22218         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
22219
22220         * ira.c (update_equiv_regs): Likewise.
22221
22222         * ipa.c (cgraph_node_set_new): Likewise.
22223         (cgraph_node_set_add): Likewise.
22224         (varpool_node_set_new): Likewise.
22225         (varpool_node_set_add): Likewise.
22226
22227         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
22228         (duplicate_ipa_jump_func_array): Likewise.
22229         (ipa_read_node_info): Likewise.
22230
22231         * ipa-cp.c (ipcp_create_replace_map): Likewise.
22232
22233         * integrate.c (get_hard_reg_initial_val): Likewise.
22234
22235         * gimple.c (gimple_alloc_stat): Likewise.
22236         (gimple_build_omp_for): Likewise.
22237         (gimple_seq_alloc): Likewise.
22238         (gimple_copy): Likewise.
22239
22240         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
22241         (gsi_insert_after_without_update): Likewise.
22242
22243         * function.c (add_frame_space): Likewise.
22244         (insert_temp_slot_address): Likewise.
22245         (assign_stack_temp_for_type): Likewise.
22246         (allocate_struct_function): Likewise.
22247         (types_used_by_var_decl_insert): Likewise.
22248
22249         * except.c (init_eh_for_function): Likewise.
22250         (gen_eh_region): Likewise.
22251         (gen_eh_region_catch): Likewise.
22252         (gen_eh_landing_pad): Likewise.
22253         (add_call_site): Likewise.
22254
22255         * emit-rtl.c (get_mem_attrs): Likewise.
22256         (get_reg_attrs): Likewise.
22257         (start_sequence): Likewise.
22258         (init_emit): Likewise.
22259
22260         * dwarf2out.c (new_cfi): Likewise.
22261         (queue_reg_save): Likewise.
22262         (dwarf2out_frame_init): Likewise.
22263         (new_loc_descr): Likewise.
22264         (find_AT_string): Likewise.
22265         (new_die): Likewise.
22266         (add_var_loc_to_decl): Likewise.
22267         (clone_die): Likewise.
22268         (clone_as_declaration): Likewise.
22269         (break_out_comdat_types): Likewise.
22270         (new_loc_list): Likewise.
22271         (loc_descriptor): Likewise.
22272         (add_loc_descr_to_each): Likewise.
22273         (add_const_value_attribute): Likewise.
22274         (tree_add_const_value_attribute): Likewise.
22275         (add_comp_dir_attribute): Likewise.
22276         (add_name_and_src_coords_attributes): Likewise.
22277         (lookup_filename): Likewise.
22278         (store_vcall_insn): Likewise.
22279         (dwarf2out_init): Likewise.
22280
22281         * dbxout.c (dbxout_init): Likewise.
22282
22283         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
22284
22285         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
22286
22287         * config/score/score7.c (score7_output_external): Likewise.
22288
22289         * config/score/score3.c (score3_output_external): Likewise.
22290
22291         * config/s390/s390.c (s390_init_machine_status): Likewise.
22292
22293         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
22294         (rs6000_init_machine_status): Likewise.
22295         (output_toc): Likewise.
22296
22297         * config/pa/pa.c (pa_init_machine_status): Likewise.
22298         (get_deferred_plabel): Likewise.
22299
22300         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
22301
22302         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
22303
22304         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
22305
22306         * config/mep/mep.c (mep_init_machine_status): Likewise.
22307         (mep_note_pragma_flag): Likewise.
22308
22309         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
22310
22311         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
22312
22313         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
22314
22315         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
22316         (i386_pe_maybe_record_exported_symbol): Likewise.
22317
22318         * config/i386/i386.c (get_dllimport_decl): Likewise.
22319         (ix86_init_machine_status): Likewise.
22320         (assign_386_stack_local): Likewise.
22321
22322         * config/frv/frv.c (frv_init_machine_status): Likewise.
22323
22324         * config/darwin.c (machopic_indirection_name): Likewise.
22325
22326         * config/cris/cris.c (cris_init_machine_status): Likewise.
22327
22328         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
22329
22330         * config/avr/avr.c (avr_init_machine_status): Likewise.
22331
22332         * config/arm/arm.c (arm_init_machine_status): Likewise.
22333
22334         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
22335         (alpha_need_linkage): Likewise.
22336         (alpha_use_linkage): Likewise.
22337
22338         * cgraph.c (cgraph_allocate_node): Likewise.
22339         (cgraph_create_edge_1): Likewise.
22340         (cgraph_create_indirect_edge): Likewise.
22341         (cgraph_add_asm_node): Likewise.
22342
22343         * cfgrtl.c (init_rtl_bb_info): Likewise.
22344
22345         * cfgloop.c (alloc_loop): Likewise.
22346         (rescan_loop_exit): Likewise.
22347
22348         * cfg.c (init_flow): Likewise.
22349         (alloc_block): Likewise.
22350         (unchecked_make_edge): Likewise.
22351
22352         * c-parser.c (c_parse_init): Likewise.
22353         (c_parse_file): Likewise.
22354
22355         * c-decl.c (bind): Likewise.
22356         (record_inline_static): Likewise.
22357         (push_scope): Likewise.
22358         (make_label): Likewise.
22359         (lookup_label_for_goto): Likewise.
22360         (finish_struct): Likewise.
22361         (finish_enum): Likewise.
22362         (c_push_function_context): Likewise.
22363
22364         * bitmap.c (bitmap_element_allocate): Likewise.
22365         (bitmap_gc_alloc_stat): Likewise.
22366
22367         * alias.c (record_alias_subset): Likewise.
22368         (init_alias_analysis): Likewise.
22369
22370 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
22371
22372         * fold-const.c (fold_comparison): Remove redundant parenthesis.
22373         * tree-inline.c (expand_call_inline): Pass translated return value of
22374         cgraph_inline_failed_string to diagnostic function.
22375
22376 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
22377             Shujing Zhao  <pearly.zhao@oracle.com>
22378
22379         PR c/37724
22380         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
22381         implicit bad conversions is initialization.
22382         (error_init): Use gmsgid instead of msgid for argument name and change
22383         the call for error.
22384         (pedwarn_init): Use gmsgid instead of msgid for argument name and
22385         change the call for pedwarn.
22386         (warning_init): Use gmsgid instead of msgid for argument name and
22387         change the call for warning.
22388
22389 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
22390
22391         * config/mips/mips-protos.h (mips_print_operand): Delete.
22392         (mips_print_operand_address): Delete.
22393         * config/mips/mips.h (mips_print_operand_punct): Delete.
22394         (PRINT_OPERAND): Delete.
22395         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22396         (PRINT_OPERAND_ADDRESS): Delete.
22397         * config/mips/mips.c (mips_print_operand_punct): Make static.
22398         (mips_print_operand_address): Make static.
22399         (mips_print_operand): Make static.  Call
22400         mips_print_operand_punct_valid_p.
22401         (mips_print_operand_punct_valid_p): New function.
22402         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22403         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22404
22405 2010-06-07  Jan Hubicka  <jh@suse.cz>
22406
22407         PR middle-end/44454
22408         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
22409         are allocated.
22410
22411 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
22412
22413         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
22414         name of RECORD.
22415
22416 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22417
22418         * doc/sourcebuild.texi (Effective-Target Keywords, Other
22419         attributes): Document gas.
22420
22421 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
22422
22423         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
22424         <TYPE_LEA>: Split instruction.
22425         <default>: Remove alternative 2 handling.
22426         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
22427         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
22428         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
22429
22430         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
22431         (ashift_zext lea splitter): Use DImode for multiplication.
22432
22433         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
22434         to generate addition.
22435
22436 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
22437
22438         * common.opt (fira-verbose): Use Var.
22439         (fpcc-struct-return): Use Init instead of VarExists.
22440         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
22441         toplev.c.
22442         * flags.h (flag_signed_char, flag_short_enums,
22443         flag_pcc_struct_return, flag_ira_verbose,
22444         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
22445         * toplev.c (flag_detailed_statistics, flag_signed_char,
22446         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
22447         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
22448         * toplev.h (flag_crossjumping, flag_if_conversion,
22449         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
22450         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
22451         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
22452         flag_cprop_registers, time_report, flag_ira_loop_pressure,
22453         flag_ira_coalesce, flag_ira_move_spills,
22454         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
22455
22456 2010-06-07  Jan Hubicka  <jh@suse.cz>
22457
22458         * df-core.c (df_analyze_problem): Do verification after allocation.
22459
22460         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
22461         (df_lr_alloc): Initialize problem data; move bitmaps to
22462         lr_bitmaps obstack.
22463         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
22464         (df_lr_verify_solution_start): Do not initialize problem data;
22465         allocate bitmaps in lr_bitmaps.
22466         (df_lr_verify_solution_end): Do not free problem data.
22467
22468 2010-06-07  Jan Hubicka  <jh@suse.cz>
22469
22470         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
22471         if caller is noreturn.
22472         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
22473         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
22474         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
22475         * ipa-pure-const.c (check_decl): Add IPA parameter.
22476         (state_from_flags): New function.
22477         (better_state, worse_state): New functions.
22478         (check_call): When in IPA mode, do not care about callees.
22479         (check_load, check_store): Update.
22480         (check_ipa_load, check_ipa_store): New.
22481         (check_stmt): When in IPA mode, use IPA checkers.
22482         (analyze_function): Use state_from_flags.
22483         (propagate): Check indirect edges and references.
22484
22485 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
22486
22487         PR rtl-optimization/44404
22488         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
22489         of count_occurrences to see if it's safe to modify mem_insn.
22490
22491 2010-06-07  Richard Guenther  <rguenther@suse.de>
22492
22493         * gimplify.c (gimplify_cleanup_point_expr): For empty body
22494         and EH-only cleanup drop the cleanup instead of inserting it
22495         unconditionally.
22496
22497 2010-06-07  Ira Rosen  <irar@il.ibm.com>
22498
22499         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
22500         documentation.
22501         * targhooks.c (default_builtin_vectorization_cost): New function.
22502         * targhooks.h (default_builtin_vectorization_cost): Declare.
22503         * target.h (enum vect_cost_for_stmt): Define.
22504         (builtin_vectorization_cost): Change argument and comment.
22505         * tree-vectorizer.h: Remove cost model macros.
22506         * tree-vect-loop.c: Include target.h.
22507         (vect_get_cost): New function.
22508         (vect_estimate_min_profitable_iters): Replace cost model macros with
22509         calls to vect_get_cost.
22510         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
22511         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
22512         default implementation.
22513         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
22514         calls to target hook builtin_vectorization_cost.
22515         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
22516         Likewise.
22517         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
22518         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
22519         implementation to return costs.
22520         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
22521         * config/spu/spu.h: Remove vectorizer cost model macros.
22522         * config/i386/i386.h: Likewise.
22523         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
22524         a call to target hook builtin_vectorization_cost.
22525
22526 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
22527
22528         PR target/44319
22529         * config/i386/i386.c (override_options): Turn zee pass on for level 2
22530         and above and defer till target is known.
22531         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
22532         turn off otherwise.
22533
22534 2010-05-25  Jan Hubicka  <jh@suse.cz>
22535
22536         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
22537         (df_compact_blocks): Likewise.
22538         * df.h (struct df): Turn hardware_regs_used,
22539         regular_block_artificial_uses, eh_block_artificial_uses,
22540         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
22541         bitmap_head.
22542         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
22543         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
22544         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
22545         df_scan_blocks, df_insn_delete, df_insn_rescan,
22546         df_insn_rescan_debug_internal, df_insn_rescan_all,
22547         df_process_deferred_rescans, df_process_deferred_rescans,
22548         df_notes_rescan, df_get_call_refs, df_get_call_refs,
22549         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
22550         df_record_entry_block_defs, df_record_exit_block_uses,
22551         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
22552         df_scan_verify): Update.
22553
22554 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
22555
22556         PR c++/44188
22557         * c-common.c (is_typedef_decl): Move this definition ...
22558         * tree.c (is_typedef_decl): ... here.
22559         (typdef_variant_p): Move definition here from cp/tree.c.
22560         * c-common.h (is_typedef_decl): Move this declaration ...
22561         * tree.h (is_typedef_decl): ... here.
22562         (typedef_variant_p): Move declaration here from cp/cp-tree.h
22563         * dwarf2out.c (is_naming_typedef_decl): New function.
22564         (gen_tagged_type_die): Split out of ...
22565         (gen_type_die_with_usage): ... this function. When an anonymous
22566         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22567         is emitted for the typedef.
22568         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22569         anonymous tagged types.
22570
22571 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22572
22573         PR c/20000
22574         * c-decl.c (grokdeclarator): Delete warning.
22575
22576 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22577
22578         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
22579         newly built CALL_EXPR.
22580         * tree-profile.c (tree_profiling): Don't profile functions produced
22581         for built-in stuff.
22582
22583 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
22584
22585         PR bootstrap/44427
22586         PR bootstrap/44428
22587         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
22588         endianness-independent.
22589
22590 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
22591
22592         * c-common.c: Move to c-family/.
22593         * c-common.def: Likewise.
22594         * c-common.h: Likewise.
22595         * c-cppbuiltin.c: Likewise.
22596         * c-dump.c: Likewise.
22597         * c-format.c: Likewise.
22598         * c-format.h : Likewise.
22599         * c-gimplify.c: Likewise.
22600         * c-lex.c: Likewise.
22601         * c-omp.c: Likewise.
22602         * c.opt: Likewise.
22603         * c-opts.c: Likewise.
22604         * c-pch.c: Likewise.
22605         * c-ppoutput.c: Likewise.
22606         * c-pragma.c: Likewise.
22607         * c-pragma.h: Likewise.
22608         * c-pretty-print.c: Likewise.
22609         * c-pretty-print.h: Likewise.
22610         * c-semantics.c: Likewise.
22611         * stub-objc.c: Likewise.
22612
22613         * gengtype.c (get_file_langdir): Special-case files in c-family/.
22614         (get_output_file_with_visibility): Fix name for c-common.h.
22615         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
22616
22617         * c-tree.h: Update include path for moved files.
22618         * c-lang.c: Likewise.
22619         * c-lang.h: Likewise.
22620         * c-parser.c: Likewise.
22621         * c-convert.c: Likewise.
22622         * c-decl.c: Likewise.
22623         * c-objc-common.c: Likewise.
22624         * configure.ac: Make sure c-family/ exists in the build directory.
22625         * configure: Regenerate.
22626         * Makefile.in: Update paths for moved files.  Regroup files per
22627         location and update dependencies.  Move generated_files down after
22628         ALL_GTFILES_H.
22629
22630         * config/spu/spu-c.c: Update paths for moved files.
22631         * config/mep/mep-pragma.c: Likewise.
22632         * config/darwin-c.c: Likewise.
22633         * config/i386/msformat-c.c: Likewise.
22634         * config/i386/i386-c.c: Likewise.
22635         * config/avr/avr-c.c: Likewise.
22636         * config/sol2-c.c: Likewise.
22637         * config/ia64/ia64-c.c: Likewise.
22638         * config/rs6000/rs6000-c.c: Likewise.
22639         * config/arm/arm.c: Likewise.
22640         * config/arm/arm-c.c: Likewise.
22641         * config/h8300/h8300.c: Likewise.
22642         * config/v850/v850-c.c: Likewise.
22643
22644         * config/t-darwin: Fix dependencies for moved files.
22645         * config/t-sol2: Fix dependencies for moved files.
22646         * config/mep/t-mep: Fix dependencies for moved files.
22647         * config/ia64/t-ia64: Fix dependencies for moved files.
22648         * config/rs6000/t-rs6000: Fix dependencies for moved files.
22649         * config/v850/t-v850: Fix dependencies for moved files.
22650         * config/v850/t-v850e: Fix dependencies for moved files.
22651
22652         * config/m32c/m32c-pragma.c
22653
22654         * po/exgettext: Look in c-family/ also.
22655
22656 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
22657
22658         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
22659         (mark_control_dependent_edges_necessary): Call it instead of marking
22660         the last statement manually.
22661         (propagate_necessity): Likewise.
22662
22663 2010-06-05  Jan Hubicka  <jh@suse.cz>
22664
22665         * basic-block.h (compute_dominance_frontiers): Updated.
22666         (compute_idf): Likewise.
22667
22668         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
22669         for dominance frontiers.
22670         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
22671         (insert_updated_phi_nodes_for): Likewise.
22672         (update_ssa): Likewise.
22673         * cfganal.c (compute_dominance_frontiers_1): Likewise.
22674         (compute_dominance_frontiers): Likewise.
22675         (compute_idf): Likewise.
22676         * df-problems.c (df_md_local_compute): Likewise.
22677
22678 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
22679
22680         * target.h (struct gcc_target): Add memory_move_cost field.
22681         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
22682         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
22683         * targhooks.c (default_memory_move_cost): New function.
22684         * targhooks.h (default_memory_move_cost): Declare function.
22685         * reload.h (memory_move_cost): Declare.
22686         (memory_move_secondary_cost): Change type of 'in' argument to bool.
22687         * reginfo.c (memory_move_cost): New function.
22688         (memory_move_secondary_cost): Change type of 'in' argument to bool.
22689         * ira.h (ira_memory_move_cost): Update comment.
22690         * ira.c (ira_memory_move_cost): Update comment.
22691         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
22692         with memory_move_cost.
22693         * postreload.c (reload_cse_simplify_set): (Ditto.).
22694         * reload1.c (choose_reload_regs): (Ditto.).
22695         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
22696         (MEMORY_MOVE_COST):  Revise documentation.
22697
22698         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
22699         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
22700         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
22701         type of 'in' argument to bool.
22702         (TARGET_MEMORY_MOVE_COST): Define.
22703
22704 2010-06-05  Jan Hubicka  <jh@suse.cz>
22705
22706         * ipa-pure-const.c (propagate): Fix typo in handling of functions
22707         that cannot return.  Be more careful when merging the results with
22708         previously known ones.
22709
22710 2010-06-05  Matthias Klose  <doko@ubuntu.com>
22711
22712         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
22713         function to add the -iplugindir option.
22714         (find_plugindir_spec_function): Add new declaration and function.
22715         (static_spec_func): Use it for "find-plugindir".
22716
22717 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
22718
22719         PR c++/44361
22720         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
22721         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
22722         statement expression.
22723
22724 2010-06-05  Jan Hubicka  <jh@suse.cz>
22725
22726         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
22727         (df_rd_problem_data): Convert sparse_invalidated_by_call,
22728         dense_invalidated_by_call to bitmap head.
22729         (df_rd_alloc, df_rd_bb_local_compute_process_def,
22730         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
22731         df_rd_start_dump, df_lr_verify_transfer_functions,
22732         df_live_verify_transfer_functions, df_chain_create_bb,
22733         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
22734         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
22735         df_simulate_one_insn_forwards, df_md_alloc,
22736         df_md_bb_local_compute_process_def,
22737         df_md_bb_local_compute_process_def, df_md_local_compute,
22738         df_md_transfer_function df_md_free): Update.
22739
22740 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
22741
22742         PR c/44322
22743         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
22744         target type for ADDR_EXPR; require no changes to qualifiers except
22745         for function types.
22746         * c-tree.h (c_build_type_variant): Remove.
22747
22748 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
22749
22750         * genautomata.c (get_excl_set): Do work per element, not per char.
22751         (check_presence_pattern_sets): Similar.
22752         (check_absence_pattern_sets): Similar.
22753
22754 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
22755
22756         * genautomata.c (curr_state_pass_num): Delete.
22757         (min_issue_delay_pass_states): Delete.
22758         (min_issue_delay): Delete.
22759         (initiate_min_issue_delay_pass_states): Delete.
22760         (output_min_issue_delay_table): Compute min_issue_delay_vect
22761         using a breadth-first search variant.
22762         (output_tables): Don't call initiate_min_issue_delay_pass_states.
22763
22764 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22765
22766         PR boostrap/44421
22767         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
22768         (df_byte_lr_bb_local_compute): Likewise.
22769
22770 2010-06-03  Jason Merrill  <jason@redhat.com>
22771
22772         Implement noexcept operator (5.3.7)
22773         * c-common.c (c_common_reswords): Add noexcept.
22774         * c-common.h (enum rid): Add RID_NOEXCEPT.
22775
22776 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
22777
22778         * config/darwin-driver.c (darwin_default_min_version): Use
22779         GCC-specific formats in diagnostics.
22780         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
22781         diagnostics.
22782         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
22783         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
22784         eval_spec_function, handle_braces, process_brace_body, main,
22785         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
22786         getenv_spec_function, compare_version_strings,
22787         version_compare_spec_function): Use GCC-specific formats in
22788         diagnostics.
22789
22790 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22791
22792         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
22793         that operand 0 and operand 1 are equal.
22794         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
22795         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
22796         and operand 1 are equal.
22797         <default>: Ditto.  Remove ??? comment.
22798         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
22799         and operand 1 are equal.
22800         <default>: Ditto.  Remove ??? comment.
22801         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
22802         are equal.
22803         (*add<mode>_4) <default>: Ditto.
22804         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
22805
22806 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
22807
22808         * config/i386/i386-protos.h (ix86_print_operand): Declare.
22809         * config/i386/i386.c (ix86_print_operand): Make non-static.
22810         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
22811         * output.h (output_operand): Declare.
22812         * final.c (output_operand): Make non-static.
22813
22814 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
22815
22816         PR rtl-optimization/44013
22817         * sched-deps.c (add_dependence_list_and_free): Don't free lists
22818         when processing debug insns.
22819
22820         PR debug/41371
22821         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
22822         recursing.  Check that recursion is bounded.  Rename inner var
22823         to avoid hiding incoming argument.
22824
22825 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22826
22827         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
22828         operands[2] == 255.
22829         (*addqi_3): Ditto.
22830         (*addqi_4): Ditto.
22831         (*addqi_5): Ditto.
22832         (*addqi_ext_1_rex64): Ditto.
22833         (*addqi_ext_1): Ditto.
22834
22835         (*addqi_4): Check for incdec_operand in QImode.
22836
22837         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
22838         using SWI mode iterator.
22839         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
22840         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
22841         mode iterator.
22842         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
22843         using SWI mode iterator.
22844
22845 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22846
22847         PR c/25880
22848         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
22849         * c-format.c (gcc_diag_flag_specs): Add hash.
22850         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
22851         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
22852         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
22853         pp_c_cv_qualifiers. Handle qualifiers spelling here.
22854         (pp_c_type_qualifier_list): Call the function above.
22855         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
22856         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
22857         (WARN_FOR_QUALIFIERS): New macro.
22858         (convert_for_assignment): Use it.
22859
22860 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
22861
22862         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
22863
22864 2010-06-04  Jan Hubicka  <jh@suse.cz>
22865
22866         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
22867         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
22868         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
22869         DF_BYTE_LR_OUT): Update for embedded bitmaps.
22870         * fwprop.c (single_def_use_enter_block): Likewise.
22871         * ddg.c (create_ddg_dep_from_intra_loop_link,
22872         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
22873         * loop-iv.c (latch_dominating_def): Likewise.
22874         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
22875         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
22876         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
22877         df_rd_transfer_function, df_rd_top_dump,
22878         df_rd_bottom_dump): Update.
22879         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
22880         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
22881         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
22882         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
22883         df_lr_verify_solution_start, df_lr_verify_solution_end,
22884         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
22885         df_live_free_bb_info, df_live_alloc, df_live_reset,
22886         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
22887         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
22888         df_live_verify_solution_start, df_live_verify_solution_end,
22889         df_live_verify_transfer_functions, df_chain_create_bb,
22890         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
22891         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
22892         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
22893         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
22894         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
22895         df_byte_lr_transfer_function, df_byte_lr_top_dump,
22896         df_byte_lr_bottom_dump, df_create_unused_note,
22897         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
22898         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
22899         df_md_transfer_function, df_md_init, df_md_confluence_0,
22900         df_md_confluence_n,
22901         df_md_top_dump, df_md_bottom_dump): Update.
22902         (struct df_lr_problem_data): Embedd bitmap headers.
22903
22904 2010-06-04  Jan Hubicka  <jh@suse.cz>
22905
22906         * dce.c (dce_process_block): Do not re-scan already marked
22907         instructions.
22908
22909 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22910
22911         PR rtl-optimization/39871
22912         PR rtl-optimization/40615
22913         PR rtl-optimization/42500
22914         PR rtl-optimization/42502
22915         * ira.c (init_reg_equiv_memory_loc: New function.
22916         (ira): Call it twice.
22917         * reload.h (calculate_elim_costs_all_insns): Declare.
22918         * ira-costs.c: Include "reload.h".
22919         (regno_equiv_gains): New static variable.
22920         (init_costs): Allocate it.
22921         (finish_costs): Free it.
22922         (ira_costs): Call calculate_elim_costs_all_insns.
22923         (find_costs_and_classes): Take estimated elimination costs
22924         into account.
22925         (ira_adjust_equiv_reg_cost): New function.
22926         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
22927         * reload1.c (init_eliminable_invariants, free_reg_equiv,
22928         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
22929         (elim_bb): New static variable.
22930         (reload): Move code out of here into init_eliminable_invariants and
22931         free_reg_equiv.  Call them.
22932         (calculate_elim_costs_all_insns): New function.
22933         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
22934         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
22935         but call note_reg_elim_costly if we turned a valid memory address
22936         into an invalid one.
22937         * Makefile.in (ira-costs.o): Depend on reload.h.
22938
22939 2010-06-04  Julian Brown  <julian@codesourcery.com>
22940
22941         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
22942         for pool ranges.
22943
22944 2010-06-04  Richard Guenther  <rguenther@suse.de>
22945
22946         PR lto/41584
22947         * cgraph.h (struct varpool_node): Add lto_file_data field.
22948         * lto-cgraph.c (input_varpool_node): Initialize it.
22949
22950 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22951
22952         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
22953         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
22954         predicate in "type" attribute calculation.
22955         (*addsi_1_zext): Ditto.
22956         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
22957         (*addsi_2_zext): Ditto.
22958         (*add<mode>_3): Ditto.
22959         (*addsi_3_zext): Ditto.
22960         (*add<mode>_5): Ditto.
22961
22962 2010-06-03  Jan Hubicka  <jh@suse.cz>
22963
22964         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
22965         of bitmap_bit_p.
22966         * cfganal.c (compute_dominance_frontiers_1): Likewise.
22967
22968 2010-06-03  Jan Hubicka  <jh@suse.cz>
22969
22970         * df-problems.c (df_create_unused_note, df_note_bb_compute):
22971         micro-optimize the checks when to add new note.
22972
22973 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
22974
22975         * final.c (output_asm_insn): Call
22976         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
22977         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
22978         (output_address): Call targetm.asm_out.print_operand_address.
22979         Update comments.
22980         * target.h (struct gcc_target): Add print_operand,
22981         print_operand_address, and print_operand_punct_valid_p fields.
22982         * targhooks.h (default_print_operand): Declare.
22983         (default_print_operand_address): Declare.
22984         (default_print_operand_punct_valid_p): Declare.
22985         * targhooks.c (default_print_operand): Define.
22986         (default_print_operand_address): Define.
22987         (default_print_operand_punct_valid_p): Define.
22988         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
22989         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
22990         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
22991         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
22992         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
22993         * vmsdbgout.c (addr_const_to_string): Update comment.
22994         * config/i386/i386.c (print_operand): Rename to...
22995         (ix86_print_operand): ...this.  Make static.
22996         (print_operand_address): Rename to...
22997         (ix86_print_operand_address): ...this.  Make static.  Call
22998         ix86_print_operand instead of PRINT_OPERAND.
22999         (ix86_print_operand_punct_valid_p): New function.
23000         (TARGET_PRINT_OPERAND): Define.
23001         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23002         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23003         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
23004         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23005         (PRINT_OPERAND): Delete.
23006         (PRINT_OPERAND_ADDRESS): Delete.
23007         * config/i386/i386-protos.h (print_operand): Delete prototype.
23008         (print_operand_address): Delete prototype.
23009
23010 2010-06-03  Richard Guenther  <rguenther@suse.de>
23011
23012         PR tree-optimization/44403
23013         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23014         Preserve pointer qualifiers.
23015         (vect_create_data_ref_ptr): Likewise.
23016
23017 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
23018
23019         PR c++/44294
23020         * defaults.h (MAX_FIXED_MODE_SIZE): New.
23021
23022         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
23023
23024 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
23025
23026         PR debug/44375
23027         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
23028         return false if merging the bbs would lead to goto_locus
23029         location being lost from the IL.
23030
23031 2010-06-03  Jan Hubicka  <jh@suse.cz>
23032             Jakub Jelinek  <jakub@redhat.com>
23033
23034         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
23035         set->regs[i] is NULL or has just one entry.
23036
23037 2010-06-03  Jan Hubicka  <jh@suse.cz>
23038
23039         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
23040         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
23041
23042 2010-06-03  Paul Brook  <paul@codesourcery.com>
23043
23044         * config/arm/arm.c (FL_TUNE): Define.
23045         (arm_default_cpu, arm_cpu_select): Remove.
23046         (all_cores): Populate core field.
23047         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
23048         (arm_find_cpu): New function.
23049         (arm_handle_option): Lookup cpu/architecture names.
23050         (arm_override_options): Cleanup mcpu/march/mtune handling.
23051         (arm_file_start): Ditto.
23052
23053 2010-06-03  Alan Modra  <amodra@gmail.com>
23054
23055         PR target/44169
23056         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
23057         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
23058         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
23059         (rs6000_emit_load_toc_table): Likewise.
23060
23061 2010-06-02  Jan Hubicka  <jh@suse.cz>
23062
23063         * passes.c (init_optimization_passes): Put ipa reference
23064         after ipa pure-const.
23065
23066 2010-06-02  Jan Hubicka  <jh@suse.cz>
23067
23068         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
23069         calls_read_all and calls_write_all.
23070         (get_reference_optimization_summary): Fix formatting.
23071         (is_proper_for_analysis): Check that decl is not readonly.
23072         (propagate_bits): Check CONST/PURE/noreturn flags.
23073         (ipa_init): Move all_module_statics to optimization_summary_obstack.
23074         (analyze_function): Ignore indirect edges.
23075         (copy_global_bitmap): For all module statics, do nothing.
23076         (generate_summary): Do not print calls_read_all/calls_write_all.
23077         (read_write_all_from_decl): Take node as argument; check
23078         cgraph_node_cannot_return.
23079         (propagate): Reorganize read_all/write_all computation;
23080         check indirect edges; check ecf flags; use all_module_statics
23081         in the results; do not free all_module_statics.
23082         (stream_out_bitmap): Handle all_module_statics.
23083         (ipa_reference_write_optimization_summary): Likewise; use
23084         varpool/cgraph encoders to get boundaries.
23085         (ipa_reference_read_optimization_summary): Read in all_module_statics;
23086         use it when possible.
23087
23088 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
23089
23090         PR target/44218
23091         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
23092         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
23093
23094         * doc/extend.texi (powerpc builtins): Document vec_recip,
23095         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
23096
23097         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
23098         (rs6000_emit_swrsqrt): Ditto.
23099         (rs6000_emit_swdivsf): Delete.
23100         (rs6000_emit_swdivdf): Ditto.
23101         (rs6000_emit_swrsqrtsf): Ditto.
23102
23103         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
23104         describe the reciprocal estimate support for each type.
23105         (recip_options): Map -mrecip=<opt> into option bits.
23106         (gen_2arg_fn_t): New typedef for binary rtx gen function.
23107         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
23108         reciprocal estimate instructions.
23109         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
23110         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
23111         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
23112         cost information if -mdebug=cost or -mdebug=reg.
23113         (rs6000_override_options): Set -mrecip-precision for power6, and
23114         power7 machines.  If -mvsx or -mdfp, enable various options that
23115         came in previous instruction set ISAs, unless the option was
23116         explicitly disabled by the command line option.  Parse
23117         -mrecip=<opt> options.
23118         (rs6000_builtin_vectorized_function): Add support for vectorizing
23119         the reciprocal estimate builtins and expansions.
23120         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
23121         (bdesc_2arg): Add reciprocal estimate builtins.
23122         (bdesc_1arg): Add reciprocal square root estimate builtins.
23123         (rs6000_expand_builtin): Rewrite to use a switch statement,
23124         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
23125         (rs6000_init_builtins): Create declarations for reciprocal
23126         estimate builtins.
23127         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
23128         sized, prefer traditional floating point registers, if integer
23129         vector types, prefer altivec registers.  Don't actually look at
23130         the memory address any more.
23131         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
23132         builtins.
23133         (rs6000_load_constant_and_splat): New helper function to load up
23134         the constant for reciprocal estimate instructions.
23135         (rs6000_emit_madd): New helper function for generating
23136         multiply/add type instructions, based on the current switches.
23137         (rs6000_emit_msub): Ditto.
23138         (rs6000_emit_mnsub): Ditto.
23139         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
23140         replace a divide with a reciprocal estimate and fixup, adding
23141         support for machines with high precision and vectors.
23142         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
23143         low precision machines.
23144         (rs6000_emit_swdiv): New common function to be called to replace a
23145         division with reciprocal estimate and fixup.
23146         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
23147         for double and vector types.  Add support for high precision machines.
23148
23149         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
23150         the reciprocal estimate instructions can be generated.
23151         (TARGET_FRE): Ditto.
23152         (TARGET_FRSQRTES): Ditto.
23153         (TARGET_FRSQRTE): Ditto.
23154         (RS6000_RECIP_*): New macros for reciprocal estimate support.
23155
23156         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
23157         square root estimate on vectors.
23158         (re<mode>2): New insn for reciprocal division estimate on vectors.
23159
23160         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
23161         New builtin.
23162         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
23163         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
23164         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
23165         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
23166         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
23167         (RS6000_BUILTIN_RSQRT): Ditto.
23168         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
23169         floating point builtin.
23170
23171         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
23172         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
23173         __RECIP_PRECISION__ based on the command line switches.
23174         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
23175
23176         * config/rs6000/rs6000.opt (-mrecip): Document add support for
23177         replacing division instructions with reciprocal estimate and fixup.
23178         (-mrecip=<opt>): New option.
23179         (-mrecip-precision): Ditto.
23180
23181         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
23182         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
23183         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
23184         precision scalar.
23185
23186         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
23187         (UNSPEC_VREFP): Ditto.
23188         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
23189         conterparts with regard to support of -mno-fused-madd and -ffast-math.
23190         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
23191         reciprocal estimate instructions to be generated.
23192         (altivec_vrefp): Ditto.
23193
23194         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
23195         estimate support.
23196         (rreg): New mode attribute for reciprocal estimate support.
23197         (recip<mode>3): New insn for division using reciprocal estimate
23198         and fixup builtins.
23199         (divide define_split): New define_split to convert floating point
23200         division to use reciprocal estimate if the user used the
23201         appropriate options and the split is run when we can add new
23202         pseudo registers for the fixup.
23203         (rsqrt<mode>2): New insn for reciprocal square root support.
23204         (recipsf3): Move into recip<mode>3.
23205         (recipdf3): Ditto.
23206         (fres): Use TARGET_FRES.
23207         (rsqrtsf2): Move into rsqrt<mode>2.
23208         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
23209         (copysignsf3): Add support for VSX.
23210         (fred): Use TARGET_FRE.
23211         (fred_fpr): Ditto.
23212         (rsqrtdf_internal1): New function for frsqrte instruciton.
23213
23214         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
23215         (vec_rsqrt): Ditto.
23216
23217 2010-06-03  Richard Guenther  <rguenther@suse.de>
23218
23219         PR middle-end/44291
23220         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
23221         (set_user_assembler_libfunc): Likewise.
23222
23223 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23224
23225         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
23226         defaults.h.
23227         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
23228         to defaults.h
23229         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
23230         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
23231         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
23232         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
23233         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
23234         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
23235         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
23236         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
23237         * defaults.h: Updated for above mentioned changes.
23238
23239 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
23240
23241         * c-common.c: Remove header include of tm_p.h.
23242         * Makefile.in (c-common.o): Remove TM_P_H dependency.
23243
23244 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
23245
23246         * tree.h (struct tree_decl_map): New type.
23247         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
23248         (tree_decl_map_hash): New prototype.
23249         (debug_expr_for_decl, value_expr_for_decl): Change into
23250         tree_decl_map hashtab from tree_map.
23251         (init_ttree): Adjust initialization.
23252         (tree_decl_map_hash): New function.
23253         (decl_debug_expr_lookup, decl_debug_expr_insert,
23254         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
23255
23256 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23257
23258         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
23259         linker emulations.
23260         * configure: Regenerate.
23261         * config.in: Regenerate.
23262
23263         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
23264         (X86_64_EMULATION): Define.
23265         (TARGET_LD_EMULATION): Use them.
23266
23267         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
23268         (SPARC64_EMULATION): Define.
23269         (LINK_ARCH_SPEC): Use them.
23270
23271 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23272
23273         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
23274         smallest_mode_for_size for computing the precision types of new
23275         graphite IVs.  Do not call lang_hooks.types.type_for_size.
23276
23277 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23278
23279         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
23280         information.
23281         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
23282
23283 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
23284
23285         PR middle-end/44363
23286         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
23287         return false instead.
23288
23289 2010-06-02  Jan Hubicka  <jh@suse.cz>
23290
23291         PR middle-end/44295
23292         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
23293         create new cgraph node to check callee.
23294
23295 2010-06-02  Richard Guenther  <rguenther@suse.de>
23296
23297         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
23298
23299 2010-06-02  Richard Guenther  <rguenther@suse.de>
23300
23301         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
23302         (lto_wrapper_cleanup): ... this.  Do not exit.
23303         (fatal): Adjust.  Exit here.
23304         (fatal_perror): Likewise.
23305         (fatal_signal): New function.
23306         (main): Set up signal handlers to cleanup temporary files.
23307         * Makefile.in (lto-wrapper.o): Adjust dependencies.
23308
23309 2010-06-02  Richard Guenther  <rguenther@suse.de>
23310
23311         PR tree-optimization/44377
23312         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
23313
23314 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23315
23316         * config/s390/2097.md (z10_fhex): Remove insn reservation.
23317         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
23318         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
23319         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
23320         instruction.
23321         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
23322
23323 2010-06-02  Jan Hubicka  <jh@suse.cz>
23324
23325         * bitmap.c (bitmap_descriptor): Add search_iter.
23326         (bitmap_find_bit): Increment it.
23327         (print_statistics): Print it.
23328
23329 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
23330
23331         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
23332         instead of gimple_build_call_vec.  Delete unnecessary local variable.
23333
23334 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23335
23336         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
23337         change from yesterday.
23338
23339 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
23340
23341         * c-ada-spec.c: Clean up redundant includes.
23342
23343 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
23344
23345         * gimplify.c: Do not include except.h and optabs.h.
23346         (gimplify_body): Do not initialize RTL profiling.
23347         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
23348         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
23349         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
23350         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
23351         langhooks.h.
23352
23353         * tree-pretty-print.h: Include pretty-print.h.
23354         * gimple-pretty-print.h: Include pretty-print.h.
23355
23356         * tree-pretty-print.c: Do not include diagnostic.h.
23357         * tree-vrp.c: Likewise.
23358         * tree-tailcall.c: Likewise
23359         * tree-scalar-evolution.c: Likewise
23360         * tree-ssa-dse.c: Likewise
23361         * tree-chrec.c: Likewise
23362         * tree-ssa-sccvn.c: Likewise
23363         * tree-ssa-copyrename.c: Likewise
23364         * tree-nomudflap.c: Likewise
23365         * tree-call-cdce.c: Likewise
23366         * tree-stdarg.c: Likewise
23367         * tree-ssa-math-opts.c: Likewise
23368         * tree-nrv.c: Likewise
23369         * tree-ssa-sink.c: Likewise
23370         * tree-browser.c: Likewise
23371         * tree-ssa-loop-ivcanon.c: Likewise
23372         * tree-ssa-loop.c: Likewise
23373         * tree-parloops.c: Likewise
23374         * tree-ssa-address.c: Likewise
23375         * tree-ssa-ifcombine.c: Likewise
23376         * tree-if-conv.c: Likewise
23377         * tree-data-ref.c: Likewise
23378         * tree-affine.c: Likewise
23379         * tree-ssa-phiopt.c: Likewise
23380         * tree-ssa-coalesce.c: Likewise
23381         * tree-ssa-pre.c: Likewise
23382         * tree-ssa-live.c: Likewise
23383         * tree-predcom.c: Likewise
23384         * tree-ssa-forwprop.c: Likewise
23385         * tree-ssa-dce.c: Likewise
23386         * tree-ssa-ter.c: Likewise
23387         * tree-ssa-loop-prefetch.c: Likewise
23388         * tree-optimize.c: Likewise
23389         * tree-ssa-phiprop.c: Likewise
23390         * tree-object-size.c: Likewise
23391         * tree-outof-ssa.c: Likewise
23392         * tree-ssa-structalias.c: Likewise
23393         * tree-switch-conversion.c: Likewise
23394         * tree-ssa-reassoc.c: Likewise
23395         * tree-ssa-operands.c: Likewise
23396         * tree-vectorizer.c: Likewise
23397         * tree-vect-data-refs.c: Likewise
23398         * tree-vect-generic.c: Likewise
23399         * tree-vect-stmts.c: Likewise
23400         * tree-vect-patterns.c: Likewise
23401         * tree-vect-slp.c: Likewise
23402         * tree-vect-loop.c: Likewise
23403         * tree-ssa-loop-ivopts.c: Likewise
23404         * tree-ssa-loop-im.c: Likewise
23405         * tree-ssa-loop-niter.c: Likewise
23406         * tree-ssa-loop-unswitch.c: Likewise
23407         * tree-ssa-loop-manip.c: Likewise
23408         * tree-ssa-loop-ch.c: Likewise
23409         * tree-dump.c: Likewise
23410         * tree-complex.c: Likewise
23411
23412         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
23413         * tree-ssa-uninit.c: Likewise
23414         * tree-ssa-threadupdate.c: Likewise
23415         * tree-ssa-uncprop.c: Likewise
23416         * tree-ssa-ccp.c: Likewise
23417         * tree-ssa-dom.c: Likewise
23418         * tree-ssa-propagate.c: Likewise
23419         * tree-ssa-alias.c: Likewise
23420         * tree-dfa.c: Likewise
23421         * tree-cfgcleanup.c: Likewise
23422         * tree-sra.c: Likewise
23423         * tree-ssa-copy.c: Likewise
23424         * tree-ssa.c: Likewise
23425         * tree-profile.c: Likewise
23426         * tree-cfg.c: Likewise
23427         * tree-ssa-threadedge.c: Likewise
23428         * tree-vect-loop-manip.c: Likewise
23429
23430         * tree-inline.c: Do not include diagnostic.h and expr.h.
23431         Include rtl.h.
23432         (copy_decl_for_dup_finish): Do not use NULL_RTX.
23433
23434         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
23435         * tree-loop-distribution.c: Likewise.
23436
23437 2010-06-01  Jan Hubicka  <jh@suse.cz>
23438
23439         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
23440
23441 2010-06-01  Jan Hubicka  <jh@suse.cz>
23442
23443         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
23444         remove return value.
23445         (split_bbs_on_noreturn_calls) .... here.
23446         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
23447         * tree-flow.h (fixup_noreturn_call): New.
23448
23449 2010-06-01  Jan Hubicka  <jh@suse.cz>
23450
23451         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
23452
23453 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
23454
23455         * tree.h (build_nt_call_list): Delete.
23456         * tree.c (build_nt_call_list): Delete.
23457
23458 2010-06-01  Jan Hubicka  <jh@suse.cz>
23459
23460         * fwprop.c: Make emit-rtl.h include last.
23461         * rtlanal.c: Include emit-rtl.h.
23462         * genautomata.c: Output emit-rtl include into insn-automata.c
23463         * df-scan.c: Include emit-rtl.h.
23464         * haifa-sched.c: Indlude emit-rtl.h.
23465         * mode-switching.c: Indlude emit-rtl.h.
23466         * graph.c: Indlude emit-rtl.h.
23467         * sel-sched.c: Include emit-rtl.h.
23468         * sel-sched-ir.c: Include emit-rtl.h.
23469         * ira-build.c: Include emit-rtl.h.
23470         * emit-rtl.c (first_insn, last_insn): Remove defines.
23471         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
23472         Move to emit-rtl.h.
23473         (set_new_first_and_last_insn, get_last_insn_anywhere,
23474         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
23475         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
23476         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
23477         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
23478         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
23479         Use accessor functions.
23480         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
23481          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
23482         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
23483         mem_expr_equal_p): Move here from rtl.h.
23484         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
23485         Move here from emit-rtl.c; make inline.
23486         * cfglayout.h: Include emit-rtl.h.
23487         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
23488          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
23489         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
23490         mem_expr_equal_p, get_insns, set_first-insn,
23491         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
23492         * reg-stack.c: Include emit-rtl.h.
23493         * dce.c: Likewise.
23494
23495 2010-06-01  Jan Hubicka  <jh@suse.cz>
23496
23497         * cgraph.h (tree_function_versioning): Update prototype.
23498         (cgraph_function_versioning): Update prototype.
23499         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
23500         bitmap.
23501         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
23502         (cgraph_materialize_clone, save_inline_function_body): Update use of
23503         tree_function_versioning.
23504         * tree-inline.c (copy_bb): Look for previous copied block to link
23505         after; fix debug output.
23506         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
23507         (copy_body): Likewise.
23508         (expand_call_inline): Update use of copy_body.
23509         (tree_function_versioning): Update use of copy body; accept
23510         blocks_to_copy and new_entry.
23511
23512 2010-06-01  Jan Hubicka  <jh@suse.cz>
23513
23514         * gegenrtl.c: Remove unnecesary prototypes.
23515         (gendecl): Remove.
23516         (gendef): Produce static inline.
23517         (gencode): Remove.
23518         (main): Do not decode parameters; generate header only.
23519         * Makefile.in (genrtl.c): Remove.
23520
23521 2010-06-01  Jan Hubicka  <jh@suse.cz>
23522
23523         * tree-switch-conversion.c (build_one_array): Make it readonly.
23524
23525 2010-06-01  Richard Guenther  <rguenther@suse.de>
23526
23527         * optabs.c (init_optabs): Guard all accesses to reinit.
23528         * ipa-pure-const.c (propagate): Fix another typo.
23529         * opts.c (common_handle_option): Split assignment to bool.
23530         * c-opts.c (c_common_handle_option): Likewise.
23531
23532 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
23533             Matthew Gingell  <gingell@adacore.com>
23534
23535         * doc/invoke.texi: Mention -fdump-ada-spec.
23536         * tree-dump.c (dump_files): Add ada-spec.
23537         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
23538         * tree-pass.h (tree_dump_index): Add TDI_ada.
23539         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
23540         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
23541         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
23542         * c-decl.c: Include c-ada-spec.h.
23543         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
23544         functions.
23545         (c_write_global_declarations): Add handling of -fdump-ada-spec.
23546         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
23547         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
23548         * c-ada-spec.h, c-ada-spec.c: New files.
23549
23550 2010-06-01  Richard Guenther  <rguenther@suse.de>
23551
23552         PR lto/43853
23553         * ipa-pure-const.c (get_function_state): Hand back varying state
23554         if we do not have one.
23555         (has_function_state): New function.
23556         (duplicate_node_data): Adjust.
23557         (remove_node_data): Likewise.
23558         (pure_const_write_summary): Likewise.
23559         (propagate): Likewise.  Fix typo.
23560
23561 2010-06-01  Jan Hubicka  <jh@suse.cz>
23562
23563         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
23564         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
23565         (execute_all_ipa_transforms): Do not play with the states.
23566
23567 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
23568
23569         * config/arm/t-linux-androideabi: New.
23570         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
23571
23572 2010-06-01  Jan Hubicka  <jh@suse.cz>
23573
23574         * tree-inline.c (estimate_num_insns): For stdarg functions look
23575         into call statement to count cost of argument passing.
23576
23577 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
23578
23579         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
23580         argument for fprintf.
23581         (ix86_output_addr_diff_elt): Likewise.
23582         (x86_function_profiler): Likewise.
23583         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
23584         (LPREFIX): Likewise.
23585         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
23586
23587 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
23588
23589         PR target/44338
23590         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
23591         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
23592         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
23593         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
23594         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
23595         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
23596         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
23597         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
23598         TARGET_FUSED_MADD.
23599
23600 2010-05-31  Jan Hubicka  <jh@suse.cz>
23601
23602         * tree.h (tree_range_check_failed): Declare noreturn.
23603
23604 2010-05-31  Jan Hubicka  <jh@suse.cz>
23605
23606         * gimple.c (gimple_call_builtin_p): New function.
23607         * gimple.h (gimple_call_builtin_p): Declare.
23608         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
23609         to exit.
23610         (execute_warn_function_return): BUILT_IN_RETURN is return.
23611         (split_critical_edges): Return edges are not critical.
23612         (is_ctrl_altering_stmt): Builtin_in_return is altering.
23613         (gimple_verify_flow_info): Handle built_in_return.
23614         (execute_warn_function_return): Handle built_in_return.
23615         * ipa-pure-const.c (check_call): Ignore builtin_return.
23616
23617 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
23618
23619         PR middle-end/44337
23620         * expr.c (expand_assignment): Don't store anything for out-of-bounds
23621         array accesses with non-MEM.
23622
23623         PR tree-optimization/44182
23624         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
23625         newly needs to end a bb is followed by debug stmts, instead return
23626         true from the function at the end.
23627         (maybe_move_debug_stmts_to_successors): New function.
23628         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
23629
23630 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
23631
23632         PR target/44161
23633         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
23634
23635 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
23636
23637         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
23638         for nested functions in non-optimized compilation.
23639
23640 2010-05-31  Richard Guenther  <rguenther@suse.de>
23641
23642         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
23643
23644 2010-05-30  Jan Hubicka  <jh@suse.cz>
23645
23646         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
23647
23648 2010-05-30  Richard Guenther  <rguenther@suse.de>
23649
23650         PR lto/42975
23651         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
23652         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
23653         no longer needed.
23654
23655 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
23656
23657         * config/darwin.c (output_objc_section_asm_op): Add comment.
23658         (name_needs_quotes): Add '_' to list of valid comment chars.
23659         (machopic_output_function_base_name): Remove unneeded quotes.
23660         (darwin_encode_section_info): Adjust asm whitespace.
23661         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
23662         (ASM_OUTPUT_LOCAL): Ditto.
23663         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
23664         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
23665         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
23666
23667 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
23668
23669         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
23670         RS6000_OUTPUT_BASENAME unconditionally.
23671         (rs6000_output_function_epilogue): Likewise.
23672
23673 2010-05-30  Jan Hubicka  <jh@suse.cz>
23674
23675         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
23676         nodes.
23677
23678 2010-05-30  Richard Guenther  <rguenther@suse.de>
23679
23680         * tree-cfg.c (verify_gimple_assign_single): Implement
23681         verification for COND_EXPR rhs.
23682
23683 2010-05-30  Jan Hubicka  <jh@suse.cz>
23684
23685         * cgraph.h (cgraph_dump_file): Declare.
23686         * cgraphunit.c (cgraph_dump_file): Export.
23687         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
23688
23689 2010-05-30  Jan Hubicka  <jh@suse.cz>
23690
23691         * dwarf2out.c (reference_to_unused,
23692         premark_types_used_by_global_vars_helper): Avoid creation of new
23693         varpool nodes.
23694
23695 2010-05-30  Jan Hubicka  <jh@suse.cz>
23696
23697         * cgraph.h (cgraph_node_cannot_return,
23698         cgraph_edge_cannot_lead_to_return): New functions.
23699         * cgraph.c (cgraph_node_cannot_return,
23700         cgraph_edge_cannot_lead_to_return): Use them.
23701         * ipa-pure-const.c (pure_const_names): New static var.
23702         (check_call): Handle calls not leading to return.
23703         (pure_const_read_summary): Dump info read.
23704         (propagate): Dump info about propagation process; ignore side effects
23705         of functions not leading to exit; fix handling of pure functions.
23706
23707 2010-05-30  Jan Hubicka  <jh@suse.cz>
23708
23709         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
23710         for tail call epilogues.
23711
23712 2010-05-30  Jan Hubicka  <jh@suse.cz>
23713
23714         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
23715         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
23716         dump files.
23717
23718 2010-05-29  Jan Hubicka  <jh@suse.cz>
23719
23720         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
23721         node; remove references in node we no longer keep in cgrpah but need
23722         body of.
23723
23724 2010-05-29  Jan Hubicka  <jh@suse.cz>
23725
23726         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
23727
23728 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23729
23730         PR target/44165
23731         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
23732
23733 2010-05-29  Jan Hubicka  <jh@suse.cz>
23734
23735         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
23736         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
23737         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
23738         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
23739         debug_names_replaced_by, debug_update_ssa): Likewise.
23740         * sbitmap.c (debug_sbitmap): Likewise.
23741         * genrecog.c (debug_decision, debug_decision_list): Likewise.
23742         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
23743         debug_tree_chain): Likewise.
23744         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
23745         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
23746         * optabs.c (debug_optab_libfuncs): Likewise.
23747         (verify_loop_closed_ssa): Likewise.
23748         * value-prof.c (verify_histograms): Likewise.
23749         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
23750         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
23751         * cfghooks.c (verify_flow_info): Likewise.
23752         * fold-const.c (debug_fold_checksum): Likewise.
23753         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
23754         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
23755         Likewise.
23756         * omega.c (debug_omega_problem): Likewise.
23757         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
23758         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
23759         * dominance.c (verify_dominators, debug_dominance_info,
23760         debug_dominance_tree): Likewise.
23761         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
23762         * df_regno_debug, df_ref_debug,
23763         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
23764         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
23765         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
23766         * sel-sched.c (debug_state): Likewise.
23767         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
23768         Likewise.
23769         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
23770         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
23771         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
23772         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
23773         Likewise.
23774         * c-pretty-print.c (debug_c_tree): Likewise.
23775         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
23776         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
23777         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
23778         * ebitmap.c (debug_ebitmap): Likewise.
23779         * function.c (debug_find_var_in_block_tree): Likewise.
23780         * print-rtl.c (debug_rtx): Likewise.
23781         (debug_rtx_count): Likewise.
23782         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
23783         * stor-layout.c (debug_rli): Likewise.
23784         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
23785         * tree-data-ref.c (debug_data_references,
23786         debug_data_dependence_relations, debug_data_reference,
23787         debug_data_dependence_relation, debug_rdg_vertex,
23788         debug_rdg_component, debug_rdg): Likewise.
23789         * tree-affine.c (debug_aff): Likewise.
23790         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
23791         Likewise.
23792         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
23793         * emit-rtl.c (verify_rtl_sharing): Likewise.
23794         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
23795         debug_value_expressions): Likewise.
23796         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
23797         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
23798         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
23799         * cfglayout.c (verify_insn_chain): Likewise.
23800         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
23801         debug_clast_stmt, debug_generated_program): Likewise.
23802         * ggc-page.c (debug_print_page_list): Likewise.
23803         * tree-ssa-ter.c (debug_ter): Likewise.
23804         * graphite-dependences.c (debug_pddr): Likewise.
23805         * sched-deps.c (debug_ds): Likewise.
23806         * tree-ssa.c (verify_ssa): Likewise.
23807         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
23808         debug_scattering_functions, debug_iteration_domains, debug_pdr,
23809         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
23810         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
23811         * tree-inline.c (debug_find_tree): Likewise.
23812         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
23813         debug_ppl_powerset_matrix): Likewise.
23814         * var-tracking.c (debug_dv): Likewise.
23815         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
23816         * cfgloop.c (verify_loop_structure): Likewise.
23817         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
23818         * c-common.c (verify_sequence_points): Likewise.
23819         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
23820         debug_candidates, debug_rgn_dependencies): Likewise.
23821         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
23822         * debug_constraint_graph, debug_solution_for_var,
23823         debug_sa_points_to_info): Likewise.
23824         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
23825         Likewie.
23826         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
23827         debug_loops, debug_loop, debug_loop_num): Likewise.
23828         * passes.c (debug_pass): Likewise.
23829         (dump_properties): Likewise; add cfglayout property.
23830         (debug_properties): Likewise.
23831         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
23832         * varpool.c (debug_varpool): Likewise.
23833         * regcprop.c (debug_value_data): Likewise.
23834         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
23835         debug_immediate_uses_for): Likewise.
23836
23837 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
23838
23839         PR bootstrap/44315
23840         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
23841         Filter out insn-flags.h.
23842
23843 2010-05-29  Jan Hubicka  <jh@suse.cz>
23844
23845         * cgraph.h (struct varpool_node_set_def,
23846         struct cgraph_node_set_def): Remove unused AUX pointer.
23847         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
23848         VEC_empty macro.
23849
23850 2010-05-29  Jan Hubicka  <jh@suse.cz>
23851
23852         PR middle-end/44324
23853         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
23854
23855 2010-05-29  Richard Guenther  <rguenther@suse.de>
23856
23857         * lto-streamer.c (cached_bp): New global variable.
23858         (bitpack_create): Return the cached bitpack, if available.
23859         (bitpack_delete): Clear and cache the bitpack, if appropriate.
23860         (bp_pack_value): Remove redundant asserts.
23861
23862 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
23863
23864         PR middle-end/44306
23865         * tree-if-conv.c (is_true_predicate): New.
23866         (is_predicated): Use is_true_predicate.
23867         (add_to_predicate_list): Same.  Do not use unshare_expr.
23868         (add_to_dst_predicate_list): Same.
23869
23870 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
23871
23872         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
23873         field on edges.
23874         (predicate_bbs): Same.
23875         (clean_predicate_lists): Same.
23876         (find_phi_replacement_condition): Do not AND the predicate from
23877         edge->aux.
23878
23879 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
23880
23881         PR bootstrap/44315
23882         * Makefile.in (build/gencondmd.o): Add a missing `\'.
23883
23884 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23885
23886         PR target/44261
23887         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
23888         (negdf2): Adjust expander pattern and use negdf2_slow.
23889         (negsf2): Likewise.
23890
23891 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
23892
23893         * basic-block.h (struct control_flow_graph): Move last_label_uid field
23894         up.
23895         * df.h (struct df_base_ref): Move regno field up.
23896         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
23897         * expr.h (struct separate_ops): Move location field up.
23898         * optabs.h (struct optab_d): Move libcall_basename field down.
23899         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
23900         * config/i386/i386.h (struct machine_function): Convert call_abi field
23901         into a bitfield.  Move cfa field to the end of the structure.
23902
23903 2010-05-29  Jan Hubicka  <jh@suse.cz>
23904
23905         * varpool.c (varpool_get_node): Fix lookup.
23906
23907 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23908
23909         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
23910         RTL specific prototypes with #ifdef RTX_CODE.
23911         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
23912         * config/spu/t-spu-elf: Fix dependencies.
23913
23914         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
23915
23916 2010-05-29  Mike Stump  <mikestump@comcast.net>
23917
23918         PR bootstrap/44315
23919         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
23920         TM_H when building to avoid dependency loops.
23921
23922 2010-05-29  Jan Hubicka  <jh@suse.cz>
23923
23924         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
23925         refs and body; not the whole node for masters of materialized clones.
23926
23927 2010-05-29  Mike Stump  <mikestump@comcast.net>
23928
23929         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
23930
23931 2010-05-29  Jan Hubicka  <jh@suse.cz>
23932
23933         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
23934         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
23935         use of clone_function_name.
23936         * cgraph.h (cgraph_create_virtual_clone,
23937         cgraph_function_versioning): update prototypes.
23938         (clone_function_name): Declare.
23939         * ipa-cp.c (ipcp_insert_stage): Update call of
23940         cgraph_create_virtual_clone.
23941         * omp-low.c (create_omp_child_function_name): Use
23942         cgraph_create_virtual_clone.
23943         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
23944         (cgraph_function_versioning): Take SUFFIX argument; produce new name
23945         and make decl local.
23946
23947 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23948
23949         * vec.h: Include statistics.h
23950         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
23951         with VEC_H.
23952
23953 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23954
23955         * c-lex.c: Do not include c-tree.h.
23956         * c-pretty-print.c: Likewise.
23957         * c-opts.c: Likewise.
23958         * c-gimplify.c: Likewise.
23959         * c-common.c: Likewise.
23960         * c-dump.c: Likewise.  Include c-common.h.
23961
23962 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23963
23964         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
23965         before including diagnostic-core.h.
23966         (c_cpp_error): New prototype moved from c-tree.h.
23967         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
23968         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
23969         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
23970         (c_cpp_error): Prototype moved to c-common.h.
23971         * Makefile.in: Update dependency for C_COMMON_H.
23972
23973 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23974
23975         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
23976         * c-common.c (c_register_addr_space): Remove here.
23977         * c-decl.c (c_register_addr_space): Re-add here.
23978
23979 2010-05-28  Mike Stump  <mikestump@comcast.net>
23980
23981         * config/darwin-c.c: Remove c-tree.h include.
23982
23983 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23984
23985         * gcc.c: Include diagnostic.h.
23986         (error_count): Remove.  All users changed to use errorcount.
23987         (programname): Remove.  All users changed to use progname.
23988         (fancy_abort, internal_error, fatal_error, error, warning, inform,
23989         fnotice): Remove.
23990         (execute): Don't include "Internal error" and bug reporting
23991         information in argument of internal_error call.
23992         (process_command): Don't increment error_count after calling
23993         perror_with_name.
23994         (input_filename): Rename to gcc_input_filename.  All users
23995         changed.
23996         (main): Call diagnostic_initialize.  Register delete_temp_files
23997         with atexit.  Use seen_error to test for errors.
23998         * gcc.h: Include diagnostic-core.h.
23999         (fatal_error, error, warning): Remove.
24000         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
24001         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
24002         (gcc.o): Update dependencies.
24003
24004 2010-05-28  Jeff Law  <law@redhat.com>
24005
24006         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
24007         functions.
24008         * ira.h (ira_bad_reload_regno): Declare
24009         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
24010
24011         * ira-color.c (update_curr_costs): Free updated hard reg costs.
24012         (ira_reassign_conflict_allocnos): Remove bogus asserts.
24013         (allocno_reload_assign): Likewise.
24014
24015 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
24016
24017         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
24018         build1_stat.
24019
24020 2010-05-28  Richard Guenther  <rguenther@suse.de>
24021
24022         PR lto/44312
24023         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
24024         Stream fixed-point constants mode.
24025         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
24026         and TYPE_PRECISION.
24027         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
24028         Stream fixed-point constants mode.
24029         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
24030         and TYPE_PRECISION.
24031
24032 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
24033
24034         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
24035         only place it was called from.
24036         (number_of_latch_executions): Do not return chrec_dont_know when the
24037         may_be_zero is a runtime condition: instead, return a COND_EXPR
24038         including the may_be_zero condition.
24039         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
24040         of nb_iterations.
24041         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
24042         COND_EXPRs.
24043
24044 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
24045
24046         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
24047         generate COND_EXPRs for degenerate_phi_result.
24048
24049 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
24050
24051         PR middle-end/44293
24052         * tree-if-conv.c (if_convertible_loop_p): Check the
24053         if-convertibility of phi nodes in non predicated BBs.
24054
24055 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
24056
24057         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
24058
24059 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
24060
24061         PR driver/15303
24062         * gcc.c (inform, warning, inform): New functions.
24063         (fatal_ice): Rename to internal_error; change cmsgid parameter to
24064         gmsgid.  All callers changed.
24065         (notice): Rename to fnotice; add parameter fp.  All callers changed.
24066         (fatal_error): Rename to fatal_signal.  All users changed.
24067         (fatal): Rename to fatal_error; change cmsgid parameter to
24068         gmsgid.  All callers changed.
24069         (process_command): Use warning instead of error for warnings.
24070         (end_going_arg): Don't use _() around argument of error.
24071         (do_spec_1): Use inform for message from %n specs.  Use warning
24072         instead of error for warnings.
24073         (main): Use inform for comparison messages.  Use warning for
24074         message about unused linker input.
24075         (error): Increment error_count.  Print "error: ".
24076         * gcc.h (fatal): Change to fatal_error.
24077         (warning): Declare.
24078         * config/darwin-driver.c (darwin_default_min_version): Use warning
24079         instead of fprintf for warnings.
24080         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
24081
24082 2010-05-28  Julian Brown  <julian@codesourcery.com>
24083
24084         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
24085         (*thumb2_addsi3_compare0_scratch): New.
24086         * config/arm/constraints.md (Pv): New.
24087         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
24088         for ARM mode only.
24089         (*addsi3_compare0_scratch): Likewise.
24090
24091 2010-05-28  Jan Hubicka  <jh@suse.cz>
24092
24093         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
24094         check.
24095         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
24096         only on local statics.
24097
24098 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
24099
24100         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
24101
24102 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
24103
24104         PR bootstrap/44314
24105         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
24106         (OPTION_GLIBC): Define.
24107
24108 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
24109
24110         PR debug/41048
24111         * dwarf2out.c (double_int_type_size_in_bits): New function.
24112         (round_up_to_align): Change first argument and return value to
24113         double_int.
24114         (field_byte_offset): Work internally on double_ints.
24115
24116         PR target/43636
24117         * builtins.c (expand_movstr): Use a temporary pseudo instead
24118         of target even when target is not NULL and not const0_rtx, but
24119         fails movstr predicate.
24120         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
24121
24122 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
24123
24124         * final.c (rest_of_clean_state): Use %m in errors instead of
24125         strerror (errno).
24126         * gengtype.c (read_input_list, close_output_files): Use xstrerror
24127         instead of strerror.
24128         * toplev.c (process_options): Use %m in errors instead of strerror
24129         (errno).
24130         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
24131         (errno).
24132
24133 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
24134
24135         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
24136         (ix86_canonical_va_list_type): Make static.  Add declaration.
24137         (ix86_enum_va_list): Make static.  Reindent.
24138         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
24139         (ix86_canonical_va_list_type): Ditto.
24140         (ix86_enum_va_list): Ditto.
24141
24142 2010-05-28  Richard Guenther  <rguenther@suse.de>
24143
24144         * lto-wrapper.c (run_gcc): With -save-temps generate a
24145         user-visible ltrans filename.  Fixup ltrans unit numbering.
24146
24147 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
24148
24149         * c-common.c (c_common_nodes_and_builtins): Replace use
24150         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
24151         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
24152         to ix86_enum_va_list.
24153         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
24154         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
24155         (TARGET_ENUM_VA_LIST_P): Add hook description.
24156         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
24157         * target.h (gcc_target): Add enum_va_list hook.
24158
24159         PR bootstrap/44299
24160         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
24161         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
24162         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
24163
24164 2010-05-28  Alan Modra  <amodra@gmail.com>
24165
24166         PR target/44266
24167         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
24168         emit_library_call machinery to set up __tls_get_addr calls.
24169
24170 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24171
24172         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
24173
24174 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
24175
24176         Revert fix for PR c++/44188
24177         * c-common.c (is_typedef_decl): Revert the moving of  this
24178         definition ...
24179         * tree.c (is_typedef_decl): ... here.
24180         (typdef_variant_p): Revert the moving of this  definition
24181         here from cp/tree.c.
24182         * c-common.h (is_typedef_decl): Revert the moving of this
24183         declaration ...
24184         * tree.h (is_typedef_decl): ... here.
24185         (typedef_variant_p): Revert the moving of this  declaration here
24186         from cp/cp-tree.h
24187         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
24188         (gen_tagged_type_die): Revert the splitting out of ...
24189         (gen_type_die_with_usage): ... this function. Revert the anonymous
24190         tagged type handling.
24191         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
24192         typedefs naming anonymous tagged types.
24193
24194 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
24195
24196         * config/rs6000/rs6000-modes.def (PSImode): Delete.
24197
24198 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
24199
24200         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
24201         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
24202         throughout.
24203         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
24204         "xer" to "ca".
24205         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
24206         XER_REGS to CA_REGS throughout.
24207         * config/rs6000/rs6000.h: Same.
24208         (ADDITIONAL_REGISTER_NAMES): Add "xer".
24209         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
24210         that mode_iterator "P" is the size for arithmetic carries as well.
24211         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
24212
24213 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
24214
24215         PR bootstrap/44255
24216         * combine.c (struct rtx_subst_pair): Define unconditionally.
24217         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
24218         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
24219         Call make_compound_operation on pair->to.
24220         (propagate_for_debug): Don't call make_compound_operation here.
24221         Always use simplify_replace_fn_rtx.
24222
24223 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
24224
24225         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
24226         * config/xtensa/xtensa.c (override_options): Check
24227           TARGET_FORCE_NO_PIC and set flag_pic.
24228         * config/xtensa/xtensa.opt: Document -mforce-no-pic
24229
24230 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
24231
24232         PR bootstrap/44299
24233         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
24234         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
24235
24236 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
24237
24238         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
24239         toplev.h.
24240         * diagnostic.c: Don't include toplev.h.
24241         (progname): Define.  Moved from toplev.c.
24242         (seen_error): New function.
24243         * diagnostic.h: Include diagnostic-core.h.
24244         (diagnostic_t, emit_diagnostic): Don't declare here.
24245         * toplev.c (progname): Move to toplev.c.
24246         (emit_debug_global_declarations, compile_file, finalize,
24247         do_compile, toplev_main): Use seen_error.
24248         * toplev.h: Include diagnostic-core.h.
24249         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
24250         internal_error, warning, warning_at, error, error_n, error_at,
24251         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
24252         verbatim, fnotice, progname): Move to diagnostic-core.h.
24253         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
24254         (expand_builtin_expect): Use seen_error.
24255         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
24256         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
24257         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
24258         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
24259         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
24260         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
24261         errorcount for errors.
24262         * c-opts.c (c_common_finish): Use seen_error.
24263         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
24264         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
24265         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
24266         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
24267         (get_coverage_counts): Use seen_error.
24268         * dwarf2out.c (dwarf2out_finish): Use seen_error.
24269         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
24270         gimplify_body): Use seen_error.
24271         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
24272         * ipa-pure-const.c (gate_pure_const): Use seen_error.
24273         * ipa-reference.c (gate_reference): Use seen_error.
24274         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
24275         * lambda-code.c: Include diagnostic-core.h instead of
24276         diagnostic.h.
24277         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
24278         * lto-compress.c: Include diagnostic-core.h instead of
24279         diagnostic.h.
24280         * lto-section-in.c: Include diagnostic-core.h instead of
24281         diagnostic.h.
24282         * lto-streamer-out.c: Include diagnostic-core.h instead of
24283         diagnostic.h.
24284         * lto-streamer.c: Include diagnostic-core.h instead of
24285         diagnostic.h.
24286         (gate_lto_out): Use seen_error.
24287         * matrix-reorg.c: Include diagnostic-core.h instead of
24288         diagnostic.h.
24289         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
24290         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
24291         (gate_expand_omp, lower_omp_1): Use seen_error.
24292         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
24293         (rest_of_decl_compilation, rest_of_type_compilation,
24294         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
24295         * tree-cfg.c (label_to_block_fn): Use seen_error.
24296         * tree-inline.c (optimize_inline_calls): Use seen_error.
24297         * tree-mudflap.c (mudflap_finish_file): Use
24298         seen_error.
24299         * tree-optimize.c (gate_all_optimizations,
24300         gate_all_early_local_passes, gate_all_early_optimizations): Use
24301         seen_error.
24302         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
24303         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
24304         (varpool_remove_unreferenced_decls,
24305         varpool_assemble_pending_decls): Use seen_error.
24306         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
24307         (TOPLEV_H, DIAGNOSTIC_H): Update.
24308         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
24309         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
24310         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
24311         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
24312         coverage.o, lambda-code.o): Update dependencies.
24313
24314 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
24315
24316         PR c++/44188
24317         * c-common.c (is_typedef_decl): Move this definition ...
24318         * tree.c (is_typedef_decl): ... here.
24319         (typdef_variant_p): Move definition here from cp/tree.c.
24320         * c-common.h (is_typedef_decl): Move this declaration ...
24321         * tree.h (is_typedef_decl): ... here.
24322         (typedef_variant_p): Move declaration here from cp/cp-tree.h
24323         * dwarf2out.c (is_naming_typedef_decl): New function.
24324         (gen_tagged_type_die): Split out of ...
24325         (gen_type_die_with_usage): ... this function. When an anonymous
24326         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
24327         is emitted for the typedef.
24328         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
24329         anonymous tagged types.
24330
24331 2010-05-27  Jason Merrill  <jason@redhat.com>
24332
24333         * print-tree.c (debug_vec_tree): New fn.
24334         (print_vec_tree): New fn.
24335         * tree.h: Declare them.
24336         * gdbinit.in (pvt): New command.
24337
24338         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
24339
24340         * gdbinit.in (pdd): New command.
24341
24342 2010-05-27  Jan Hubicka  <jh@suse.cz>
24343
24344         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
24345         (update_caller_keys): Return early if there are no callers;
24346         only update fibheap when decresing the key.
24347         (update_callee_keys): Avoid recursion.
24348         (decide_inlining_of_small_functions): When badness does not match;
24349         re-insert into fibheap.
24350
24351 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
24352
24353         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
24354         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
24355         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
24356         (ALL_HOST_OBJS): Now a union of the above two.
24357         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
24358         all files in ALL_HOST_FRONTEND_OBJS.
24359         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
24360
24361         * c-common.c: Pretend to be a backend file by undefining
24362         IN_GCC_FRONTEND (still need rtl.h here).
24363
24364 2010-05-27  Jan Hubicka  <jh@suse.cz>
24365
24366         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
24367         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
24368
24369 2010-05-27  Jan Hubicka  <jh@suse.cz>
24370
24371         * sched-ebb.c: Rename struct deps to struct deps_desc.
24372         * ddg.c: Likewise.
24373         * sel-sched-ir.c: Likewise.
24374         * sched-deps.c: Likewise.
24375         * sched-int.h: Likewise.
24376         * sched-rgn.c: Likewise.
24377
24378 2010-05-27  Jon Beniston  <jon@beniston.com>
24379
24380         PR 43726
24381         * config/lm32/lm32.h: Remove definition of
24382         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
24383
24384 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
24385
24386         PR lto/44230
24387         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
24388
24389 2010-05-27  Richard Guenther  <rguenther@suse.de>
24390
24391         PR tree-optimization/44284
24392         * tree-vect-stmts.c (vectorizable_assignment): Handle
24393         sign-changing conversions as simple copy.
24394
24395 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24396
24397         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
24398         Bionic C library.
24399         (__gthread_active_p): Check for pthread_create if compiling against
24400         Bionic C library.
24401
24402 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24403
24404         Support compilation for Android platform.  Reimplement -mandroid.
24405
24406         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
24407         (*android*): Set ANDROID_DEFAULT.
24408         (arm*-*-linux*): Include linux-android.h.
24409         (arm*-*-eabi*): Don't include previous -mandroid implementation.
24410         * config/arm/eabi.h: Remove, move Android-specific parts ...
24411         * config/linux-android.h: ... here.  New file.
24412         * config/arm/eabi.opt: Rename to ...
24413         * config/linux-android.opt: ... this.
24414         (mandroid): Allow -mno-android option.  Initialize based on
24415         ANDROID_DEFAULT.
24416         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
24417         Move logic to corresponding LINUX_TARGET_* macros.
24418         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
24419         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
24420         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
24421         Android definitions.
24422         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
24423         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
24424         Document.
24425
24426 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
24427
24428         Add support for Bionic C library
24429
24430         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
24431         macro.
24432         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
24433         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
24434
24435         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
24436         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
24437         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
24438         to support multiple C libraries.  Handle Bionic.
24439         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
24440         (BIONIC_DYNAMIC_LINKER64): Define.
24441         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
24442         Update.
24443         (TARGET_HAS_SINCOS): Enable for Bionic.
24444
24445         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
24446         the last option specified on command line take effect.
24447         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
24448         (mbionic): New.
24449         (mglibc, muclibc): Update.
24450
24451         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
24452         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
24453         DEFAULT_LIBC.
24454
24455         * doc/invoke.texi (-mglibc, -muclibc): Update.
24456         (-mbionic): Document.
24457
24458 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24459
24460         * c-common.h (c_register_addr_space): Add prototype.
24461         (ADDR_SPACE_KEYWORD): Remove.
24462         * c-common.c (c_register_addr_space): New function.
24463         (c_addr_space_name): Reimplement.
24464         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
24465
24466         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
24467         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
24468
24469         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
24470         Remove TARGET_ADDR_SPACE_KEYWORDS.
24471
24472 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
24473
24474         * input.c: New file.
24475         * input.h (main_input_filename): Move declaration to toplev.h.
24476         * toplev.c (input_location, line_table): Move to input.c
24477         * toplev.h (main_input_filename): Move declaration from input.h.
24478         * tree.c (expand_location): Move to input.c.
24479         * Makefile.in (OBJS-common): Add input.o.
24480         (input.o): Add dependencies.
24481
24482 2010-05-27  Richard Guenther  <rguenther@suse.de>
24483
24484         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
24485         for non-existant files.
24486         (fork_execute): Mark args_name file as deleted.
24487
24488 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
24489
24490         PR bootstrp/44287
24491         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
24492         (narrow_signed_type): Likewise.
24493
24494 2010-05-26  Jan Hubicka  <jh@suse.cz>
24495
24496         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
24497         edge only when checking is enabled; check using former_clone_of;
24498         check inline clones too.
24499         (cgraph_materialize_clone): Record former_clone_of pointer.
24500         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
24501         combining redirections; dump args_to_skip bitmap
24502         (cgraph_materialize_all_clones): Do no redirection here.
24503         * ipa-inline.c (inline_transform): Do redirection here.
24504         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
24505         cheking only).
24506
24507 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24508
24509         * config/avr/avr-c.c: Do not include regs.h.
24510         Include cpplib.h for cpp_define and tree.h for c-common.h.
24511         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
24512         * config/avr/t-avr: Fix dependencies for avr-c.o.
24513
24514 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24515
24516         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
24517         string instead of SYMBOL_REF rtx.
24518         * rtl.h (set_stack_check_libfunc): Move prototype from here...
24519         * libfuncs.h: ...to here.  Adjust for explow.c change.
24520
24521 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
24522
24523         * pretty-print.c: Don't include ggc.h.
24524         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
24525         (identifier_to_locale): Use them for allocation.
24526         * pretty-print.h (identifier_to_locale_alloc,
24527         identifier_to_locale_free): Declare.
24528         * toplev.c (alloc_for_identifier_to_locale): New.
24529         (general_init): Set identifier_to_locale_alloc and
24530         identifier_to_locale_free.
24531         * Makefile.in (pretty-print.o): Update dependencies.
24532
24533 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
24534
24535         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
24536         pointer types if they have different alignment or mode.
24537
24538 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
24539
24540         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24541         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24542         * config/sparc/sparc-protos.h (function_value): Remove declaration.
24543         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
24544         sparc_function_value_regno_p): New functions.
24545         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24546         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24547         (function_value): Rename to...
24548         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
24549         argument to 'outgoing'.
24550         (function_arg_record_value, function_arg_union_value,
24551         function_arg_vector_value): Update comment.
24552
24553 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
24554
24555         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
24556         (fde_needed_for_eh_p): New predicate.
24557         (output_call_frame_info): Use it throughout to decide whether FDEs
24558         are needed for EH purpose.
24559         (dwarf2out_begin_prologue): Reorder assignments.
24560
24561 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24562
24563         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
24564         special case loop->header.
24565         (is_predicated): New.
24566         (if_convertible_loop_p): Call it.
24567
24568 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24569
24570         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
24571         iterator in parameter.  Do not generate code during the analysis.
24572         (tree_if_convert_cond_stmt): Removed.
24573         (tree_if_convert_stmt): Removed.
24574         (predicate_bbs): New.
24575         (if_convertible_loop_p): Call predicate_bbs.
24576         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
24577         now contains all the analysis part.
24578
24579 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24580
24581         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
24582         statements in the analysis part.
24583         (tree_if_convert_stmt): Update comment.
24584         (remove_conditions_and_labels): New.
24585         (combine_blocks): Call remove_conditions_and_labels.
24586         (tree_if_conversion): Update comment.
24587
24588 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24589
24590         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
24591         than 2 predecessors or more than 2 successors.
24592
24593 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24594
24595         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
24596         of loops in which the data dependence analysis fails.
24597
24598 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24599
24600         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
24601         CDI_POST_DOMINATORS.
24602         (tree_if_conversion): Same.
24603
24604 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24605
24606         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
24607
24608 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
24609
24610         * tree-if-conv.c: Update copyright years.  Fix comments.
24611         Fix indentation.
24612
24613 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
24614
24615         * builtin-types.def (BT_INT128): New primitive type.
24616         (BT_UINT128): Likewise.
24617         * c-common.c (c_common_r): Add __int128 keyword.
24618         (c_common_type_for_size): Handle __int128.
24619         (c_common_type_for_mode): Likewise.
24620         (c_common_signed_or_unsigned_type): Likewise.
24621         (c_common_nodes_and_builtins): Add builtin type
24622         if target supports 128-bit integer scalar.
24623         * c-common.h (enum rid): Add RID_INT128.
24624         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
24625         if target supports 128-bit integer scalar.
24626         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
24627         (finish_declspecs): Likewise.
24628         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
24629         (c_token_starts_declspecs): Likewise.
24630         (c_parser_declspecs): Likewise.
24631         (c_parser_attributes): Likewise.
24632         (c_parser_objc_selector): Likewise.
24633         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
24634         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
24635         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
24636         * tree.c (make_or_reuse_type): Likewise.
24637         (make_unsigned_type): Likewise.
24638         (build_common_tree_nodes_2): Likewise.
24639         * tree.h (enum integer_type_kind): Add itk_int128 and
24640         itk_unsigned_int128.
24641         (int128_integer_type_node): New define.
24642         (int128_unsigned_type_node): New define.
24643         * doc/extend.texi: Add documentation about __int128 type.
24644
24645 2010-05-26  Richard Guenther  <rguenther@suse.de>
24646
24647         * tree-ssa-sccvn.c (copy_nary): Adjust.
24648         (copy_phis): Rename to ...
24649         (copy_phi): ... this.  Adjust.
24650         (copy_references): Rename to ...
24651         (copy_reference): ... this.  Adjust.
24652         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
24653         result into the valid table.
24654
24655 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24656
24657         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
24658         insn-config.h, insn-codes.h, recog.h, and optabs.h.
24659
24660 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24661
24662         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
24663
24664 2010-05-26  Richard Guenther  <rguenther@suse.de>
24665
24666         * opts.c (common_handle_option): Handle OPT_Ofast.
24667
24668 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
24669
24670         * diagnostic.c: Don't include opts.h.
24671         (permissive_error_option): Define.
24672         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
24673         for classify_diagnostic.  Don't use memset for
24674         classify_diagnostic.  Initialize new and recently added fields.
24675         (diagnostic_classify_diagnostic): Use context->n_opts instead of
24676         N_OPTS.
24677         (diagnostic_report_diagnostic): Pass context parameter to
24678         diagnostic_report_warnings_p.  Use option_enabled and option_name
24679         hooks from context.
24680         (emit_diagnostic): Use permissive_error_option.
24681         (permerror): Likewise.
24682         * diagnostic.h: Don't include options.h.
24683         (struct diagnostic_context): Add n_opts, opt_permissive,
24684         inhibit_warnings, warn_system_headers, option_enabled and
24685         option_name fields.  Change classify_diagnostic to a pointer.
24686         * opts-diagnostic.h: New file.
24687         * opts.c: Include opts-diagnostic.h.
24688         (common_handle_option): Set global_dc fields for -Wfatal-errors,
24689         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
24690         (option_name): New function.
24691         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
24692         (c_common_handle_option): Set global_dc->permissive for
24693         -fpermissive.
24694         * c-common.c (c_cpp_error): Save and restore
24695         global_dc->warn_system_headers, not variable warn_system_headers.
24696         * toplev.c: Include opts-diagnostic.h.
24697         (general_init): Update call to diagnostic_initialize.  Set
24698         global_dc->show_column, global_dc->option_enabled and
24699         global_dc->option_name.
24700         (process_options): Don't set global_dc fields here.
24701         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
24702         (diagnostic.o, opts.o, toplev.o): Update dependencies.
24703
24704 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
24705
24706         * config/picochip/picochip.md (movsi): Split a movsi from a
24707         const after reload.
24708
24709 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24710
24711         * ggc-zone.c: Update copyright year.
24712         (poison_region): Mark memory for Valgrind as undefined before
24713         memset () call and inaccessible afterwards.
24714         (ggc_pch_total_size): Change type of i to int.
24715
24716 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24717
24718         * ggc-common.c (ggc_free_overhead): Allow empty slot.
24719
24720 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24721
24722         * ggc-common.c: Update copyright year.
24723         (ggc_rlimit_bound): Remove prototype.  Compile only if
24724         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
24725         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
24726         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
24727         (ggc_min_heapsize_heuristic): Likewise.
24728
24729 2010-05-26  Richard Guenther  <rguenther@suse.de>
24730
24731         PR rtl-optimization/44164
24732         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
24733         no-common access-path disambiguation.
24734         (indirect_ref_may_alias_decl_p): Adjust.
24735         (indirect_refs_may_alias_p): Likewise.
24736         (refs_may_alias_p_1): Likewise.
24737
24738 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24739
24740         * c-typeck.c: Do not include expr.h.
24741
24742 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24743
24744         * rtl.h (decl_default_tls_model): Move prototype from here...
24745         * output.h: ...to here.
24746         * c-decl.c: Do not include rtl.h.
24747         * c-pragma.c: Likewise.
24748         * c-parser.c: Likewise.
24749         * c-gimplify.c: Likewise.  And also not hard-reg-set.
24750         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
24751         FIXME note for it.  Add a FIXME note for expr.h.
24752         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
24753         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
24754         defined.
24755
24756 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
24757
24758         PR target/44199
24759         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
24760         or total_size is larger than red zone size for non-V4 ABI, emit a
24761         stack_tie resp. frame_tie insn before stack pointer restore.
24762         * config/rs6000/rs6000.md (frame_tie): New insn.
24763
24764 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
24765
24766         * function.h (struct function): Add can_throw_non_call_exceptions bit.
24767         * lto-streamer-in.c (input_function): Stream it in.
24768         * lto-streamer-out.c (output_function): Stream it out.
24769         * function.c (allocate_struct_function): Set it.
24770         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
24771         for flag_non_call_exceptions.
24772         * cfgbuild.c (control_flow_insn_p): Likewise.
24773         (make_edges): Likewise.
24774         * cfgexpand.c (expand_stack_alignment): Likewise.
24775         * combine.c (distribute_notes): Likewise.
24776         * cse.c (cse_extended_basic_block): Likewise.
24777         * except.c (insn_could_throw_p): Likewise.
24778         * gcse.c (simple_mem): Likewise.
24779         * ipa-pure-const.c (check_call): Likewise.
24780         (check_stmt ): Likewise.
24781         * lower-subreg.c (lower-subreg.c): Likewise.
24782         * optabs.c (emit_libcall_block): Likewise.
24783         (prepare_cmp_insn): Likewise.
24784         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
24785         * postreload.c (rest_of_handle_postreload): Likewise.
24786         * reload1.c (reload_as_needed): Likewise.
24787         (emit_input_reload_insns): Likewise.
24788         (emit_output_reload_insns): Likewise.
24789         (fixup_abnormal_edges): Likewise.
24790         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
24791         * store-motion.c (find_moveable_store): Likewise.
24792         * tree-eh.c (stmt_could_throw_p): Likewise.
24793         (tree_could_throw_p): Likewise.
24794         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24795         * config/arm/arm.c (arm_expand_prologue): Likewise.
24796         (thumb1_expand_prologue): Likewise.
24797         * config/rx/rx.md (cbranchsf4): Likewise.
24798         (cmpsf): Likewise.
24799         * config/s390/s390.c (s390_emit_prologue): Likewise.
24800         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
24801         (inline_forbidden_into_p): New predicate.
24802         (expand_call_inline): Use it to forbid inlining.
24803         (tree_can_inline_p): Likewise.
24804
24805 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24806
24807         * config/i386/i386-c.c: Do not include rtl.h.
24808         * config/i386/t-i386: Update dependencies.
24809
24810 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24811
24812         * attribs.c: Do not include rtl.h.
24813         * Makefile.in: Update dependencies.
24814
24815 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
24816
24817         * double-int.h (double_int_and): New.
24818         * combine.c (try_combine): Clean up, use double_int_* and
24819         immed_double_int_const functions.
24820
24821 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24822
24823         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
24824         stderr to /dev/null instead of grep -q.
24825         * configure: Regenerate.
24826
24827 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24828
24829         * Makefile.in (EXCEPT_H): Fix typo.
24830
24831 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
24832
24833         * ira-build.c (update_conflict_hard_reg_costs): New.
24834         (ira_build): Call update_conflict_hard_reg_costs.
24835
24836 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
24837
24838         PR debug/41371
24839         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
24840         ENABLE_CHECKING.
24841         (intersect_loc_chains): Walk the s2var's loc_chain together
24842         with s1node chain as long as the locations are equal, don't
24843         call find_loc_in_1pdv in that case.
24844
24845         PR debug/42801
24846         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
24847         (copy_bind_expr): ... instead of here.
24848         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
24849         if the block hasn't been remapped.
24850         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
24851         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
24852
24853 2010-05-25  Richard Guenther  <rguenther@suse.de>
24854
24855         PR middle-end/44069
24856         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
24857         out-of-bounds array accesses.
24858
24859 2010-05-25  Richard Guenther  <rguenther@suse.de>
24860
24861         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
24862         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
24863         (run_gcc): Re-organize to make cleanup easier.
24864
24865 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24866
24867         * config/s390/s390.c (optimization_options): Fix and move the
24868         flag_prefetch_loop_arrays override ...
24869         (override_options): ... here.
24870
24871 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
24872
24873         * diagnostic.c: Don't include plugin.h.
24874         (diagnostic_report_diagnostic): Don't handle plugins specially
24875         here.  Pass context to internal_error callback.
24876         * diagnostic.h (struct diagnostic_context): Add context parameter
24877         to internal_error callback.
24878         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
24879         * plugin.h (struct diagnostic_context): Declare.
24880         (warn_if_plugins, plugins_internal_error_function): Declare.
24881         * toplev.c (general_init): Set global_dc->internal_error.
24882         * Makefile.in (diagnostic.o): Update dependencies.
24883
24884 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
24885
24886         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
24887         * config/rs6000/t-darwin64: New.
24888         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
24889         build crt2.
24890
24891 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
24892
24893         PR 44203
24894         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
24895         match the original (and intended) behaviour before r159557.  This
24896         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
24897         in two ways.
24898
24899 2010-05-25  Richard Guenther  <rguenther@suse.de>
24900
24901         * doc/invoke.texi: Document -Ofast.
24902         * target.h (struct gcc_target): Add handle_ofast.
24903         * target-def.h (TARGET_HANDLE_OFAST): Add.
24904         (TARGET_INITIALIZER): Adjust.
24905         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
24906         * common.opt (Ofast): Add.
24907
24908 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
24909
24910         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
24911         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
24912
24913 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
24914
24915         PR target/43610
24916         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
24917         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
24918         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
24919         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
24920
24921 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
24922
24923         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
24924         DW_OP_minus with negated offset instead of DW_OP_plus.
24925         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
24926
24927 2010-05-25  Wei Guozhi  <carrot@google.com>
24928
24929         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
24930         tst instruction and a new alternative.
24931         * config/arm/constraints.md (Pu): New constraint.
24932
24933 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
24934
24935         * function.c (assign_stack_local_1): Initialize variable
24936         to avoid warning when bootstrapping at -O3.
24937
24938 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
24939
24940         * configure.ac (all_lang_makefiles): Remove everything related to it.
24941         * configure: Regenerate.
24942         * Makefile.in: Fix reference to ada Make-lang.in.
24943         Remove support for LANG_MAKEFILES.
24944
24945 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
24946             Sandra Loosemore  <sandra@codesourcery.com>
24947
24948         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
24949         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
24950         description.  Add arm_neon_fp16_ok.
24951         (Add Options): Add arm_neon and arm_neon_fp16.
24952
24953 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
24954
24955         * diagnostic.c: Don't include flags.h.
24956         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
24957         context parameters.  Check flags in the context passed as a parameter.
24958         (diagnostic_build_prefix): Add context parameter.  Check
24959         show_column flag in context.
24960         (diagnostic_action_after_output): Check fatal_errors flag in context.
24961         (diagnostic_report_current_module): Check show_column flag in context.
24962         (default_diagnostic_starter): Update call to
24963         diagnostic_build_prefix.
24964         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
24965         (emit_diagnostic): Pass context to permissive_error_kind.
24966         (permerror): Pass context to permissive_error_kind.
24967         * diagnostic.h (struct diagnostic_context): Add show_column,
24968         pedantic_errors, permissive and fatal_errors fields.
24969         (diagnostic_build_prefix): Update prototype.
24970         * langhooks.c
24971         * toplev.c (process_options): Set flags in global_dc from
24972         flag_show_column, flag_pedantic_errors, flag_permissive,
24973         flag_fatal_errors.
24974         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
24975         to diagnostic_build_prefix.
24976         * Makefile.in (diagnostic.o): Update dependencies.
24977
24978 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
24979
24980         * config/i386/ia32intrin.h (__crc32q): Define only if
24981         __SSE4_2__ is defined.
24982
24983 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
24984
24985         PR target/44132
24986         PR middle-end/43602
24987         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
24988         DECL_VISIBILITY_SPECIFIED.
24989         (emutls_decl): Set DECL_PRESERVE_P and copy
24990         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
24991         (emutls_finalize_control_var): New callback.
24992         (emutls_finish): Finalize emutls control variables.
24993         * toplev.c (compile_file): Move the call to emutls_finish ()
24994         before varpool_assemble_pending_decls ().
24995
24996 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
24997
24998         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
24999         added to the preprocessor condition.
25000
25001 2010-05-24  Paul Brook  <paul@codesourcery.com>
25002
25003         * gengtype-lex.l: Add HARD_REG_SET.
25004         * expr.c (expand_expr_real_1): Record writes to hard registers.
25005         * function.c (rtl_data): Add asm_clobbers.
25006         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
25007         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
25008         Use crtl->asm_clobbers.
25009
25010 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25011
25012         * doc/makefile.texi (Makefile): Mention stages 'profile'
25013         and 'feedback' for profiledbootstrap.
25014
25015 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
25016
25017         PR target/44245
25018         * config/i386/i386.c (def_builtin): Properly check
25019         OPTION_MASK_ISA_64BIT.
25020
25021 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
25022
25023         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
25024         typedefs with different but compatible types.  Allow duplicate
25025         typedefs with the same type except for pedantic non-C1X, but give
25026         warning for variably modified types.
25027         * c-typeck.c (tagged_types_tu_compatible_p,
25028         function_types_compatible_p, type_lists_compatible_p,
25029         comptypes_internal): Add parameter different_types_p; set
25030         *different_types_p for different but compatible types.  All
25031         callers changed.
25032         (comptypes_check_different_types): New.
25033         * c-tree.h (comptypes_check_different_types): Declare.
25034
25035 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
25036
25037         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
25038         * jump.c: Include basic-block.h.
25039         * profile.c: Likewise.
25040         * tree-profile.c: Likewise.
25041         * coverage.c: Likewise.
25042         * basic-block.h (optimize_function_for_size_p): Move to function.h.
25043         (optimize_function_for_speed_p): Likewise.
25044         * function.h (optimize_function_for_size_p,
25045         optimize_function_for_speed_p): Moved here from basic-block.h.
25046         * Makefile.in: Update dependencies.
25047
25048 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25049
25050         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
25051         before calling make; allow override through $MAKE.
25052         * doc/invoke.texi (Optimize Options): Document override.
25053
25054 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
25055
25056         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
25057         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25058         (rs6000_mode_dependent_address_ptr): Make static.
25059         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25060         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
25061         Remove.
25062
25063 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
25064
25065         PR target/43869
25066         * config/i386/i386.c: Make sure that the correct regparm is passed.
25067
25068 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
25069
25070         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
25071         * sbitmap.c: ...to here to internalize sbitmap element access.
25072         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
25073         Explain why basic-block.h is included.
25074         * function.h: Include tm.h for CUMULATIVE_ARGS.
25075         * Makefile.in: Update dependencies.
25076
25077 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
25078
25079         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
25080         New core types.
25081         * sbitmap.h (struct sbitmap_def): Do not typedef here.
25082         * sbitmap.c: Include sbitmap.h.
25083         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
25084         hard-reg-set.h.  Split everything related to regsets out from here...
25085         * regset.h: ...to here.  New file.
25086         * df.h: Include regset.h and sbitmap.h.
25087         * tree-flow.h: Likewise.
25088         * cfgloop.h: Likewise.
25089         * except.h: Do not include sbitmap.h.  Include hashtab.h.
25090         * cgraph.h: Include vec.h and function.h.
25091         * reload.h (struct insn_chain): Change types of live_throughout
25092         and dead_or_set from regset_head to bitmap_head.
25093         (compute_use_by_pseudos): Be defined also if regset.h is not included.
25094         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
25095         spilled_regs from regset_head to bitmap_head to avoid dependency
25096         in regset.h.
25097         * sel-sched-ir.h: Include regset.h.
25098         * reload.c: Include df.h before reload.h.
25099         * caller-save.c: Likewise.
25100         * reload1.c: Likewise.
25101         * ira.c: Likewise.
25102         (mark_elimination): Update type of r to bitmap, consistent with
25103         DF_LR_IN.
25104         * dominance.c: Include bitmap.h.
25105         * modulo-sched.c: Include df.h.
25106         * cfganal.c: Include bitmap.h and sbitmap.h.
25107         * cfgbuild.c: Include sbitmap.h.
25108         * lcm.c: Include sbitmap.h.
25109         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
25110         * domwalk.c: Include sbitmap.h, exclude ggc.h.
25111         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
25112         * cselib.c: Include bitmap.h.
25113         * tree-optimize.c: Include regset.h.
25114         * stmt.c: Include bitmap.h.
25115         * Makefile.in: Update dependencies.
25116
25117 2010-05-22  Jan Hubicka  <jh@suse.cz>
25118
25119         * cgraph.h (struct varpool_node): Add same_comdat_group.
25120         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
25121         pointer.
25122         (output_varpool): Update call of lto_output_varpool_node.
25123         (input_varpool): Read same_comdat_group pointer.
25124         (input_varpool_1): Fixup same_comdat_group pointer.
25125         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
25126         group is needed, all are.
25127         * varpool.c (varpool_remove_node): Remove node from same comdat group
25128         linklist too.
25129         (varpool_analyze_pending_decls): Walk same comdat groups.
25130
25131 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
25132
25133         * rtl.h (union rtunion_def): Remove rt_bit member.
25134         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
25135         * print-rtl (print_rtx): Do not print the member.
25136         * gengtype.c (adjust_field_rtx_def): Do not handle it.
25137         * gengenrtl.c (type_from_format): Likewise.
25138         (accessor_from_format): Likewise.
25139
25140 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
25141
25142         * dbgcnt.c: Include toplev.h instead of errors.h.
25143         * ira-emit.c: Don't include errors.h.
25144         * ira.c: Include toplev.h instead of errors.h.
25145         * lto-compress.c: Include toplev.h instead of errors.h.
25146         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
25147         ira.o, dbgcnt.o): Update dependencies.
25148
25149 2010-05-22  Richard Guenther  <rguenther@suse.de>
25150
25151         * gimple.c (gimple_types_compatible_p): Check type qualifications
25152         before merging pointer to complete and pointer to incomplete type.
25153         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
25154         we use our own resolution algorithm.  The gold linker plugin
25155         doesn't do the job we want it to do here.
25156
25157 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
25158
25159         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
25160         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
25161         (sparc_mode_dependent_address_p): New function.
25162
25163 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
25164
25165         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
25166
25167         * timevar.c: Do not include any core headers.
25168         (timevar_print): De-i18n-ize.
25169         (print_time): Likewise.
25170         * timevar.h (timevar_push, timevar_pop): Make inline functions.
25171
25172 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
25173
25174         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
25175         langhooks-def.h.
25176         (diagnostic_initialize): Initialize x_data not last_function.
25177         (diagnostic_report_current_function): Move to tree-diagnostic.c.
25178         (default_diagnostic_starter): Call
25179         diagnostic_report_current_module not
25180         diagnostic_report_current_function.
25181         (diagnostic_report_diagnostic): Initialize x_data not
25182         abstract_origin.
25183         (verbatim): Likewise.
25184         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
25185         x_data.
25186         (struct diagnostic_context): Change last_function to x_data.
25187         (diagnostic_auxiliary_data): Replace with
25188         diagnostic_context_auxiliary_data and
25189         diagnostic_info_auxiliary_data.
25190         (diagnostic_last_function_changed, diagnostic_set_last_function,
25191         diagnostic_report_current_function): Move to tree-diagnostic.h.
25192         (print_declaration, dump_generic_node, print_generic_stmt,
25193         print_generic_stmt_indented, print_generic_expr,
25194         print_generic_decl, debug_c_tree, dump_omp_clauses,
25195         print_call_name, debug_generic_expr, debug_generic_stmt,
25196         debug_tree_chain, default_tree_printer): Move to
25197         tree-pretty-print.h.
25198         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
25199         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
25200         gimple-pretty-print.h.
25201         * pretty-print.c: Don't include tree.h
25202         (pp_base_format): Don't handle %K here.
25203         (pp_base_tree_identifier): Move to tree-pretty-print.c.
25204         * pretty-print.h (text_info): Change abstract_origin to x_data.
25205         (pp_tree_identifier, pp_unsupported_tree,
25206         pp_base_tree_identifier): Move to tree-pretty-print.h.
25207         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
25208         tree-pretty-print.h: New files.
25209         * tree-pretty-print.c: Include tree-pretty-print.h.
25210         (percent_K_format): New.  Moved from pretty-print.c.
25211         (pp_base_tree_identifier): Move from pretty-print.c.
25212         * c-objc-common.c: Include tree-pretty-print.h.
25213         (c_tree_printer): Handle %K here.
25214         * langhooks.c: Include tree-diagnostic.h.
25215         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
25216         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
25217         (default_tree_printer): Handle %K using percent_K_format.
25218         (general_init): Use default_tree_diagnostic_starter.
25219         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
25220         (free_lang_data): Use default_tree_diagnostic_starter.
25221         * c-pretty-print.c: Include tree-pretty-print.h.
25222         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25223         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25224         * dwarf2out.c: Include tree-pretty-print.h.
25225         * except.c: Include tree-pretty-print.h.
25226         * gimple-pretty-print.c: Include tree-pretty-print.h and
25227         gimple-pretty-print.h.
25228         * gimplify.c: Include tree-pretty-print.h.
25229         * graphite-poly.c: Include tree-pretty-print.h and
25230         gimple-pretty-print.h.
25231         * ipa-cp.c: Include tree-pretty-print.h.
25232         * ipa-inline.c: Include gimple-pretty-print.h.
25233         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25234         * ipa-pure-const.c: Include gimple-pretty-print.h.
25235         * ipa-struct-reorg.c: Include tree-pretty-print.h and
25236         gimple-pretty-print.h.
25237         * ipa-type-escape.c: Include tree-pretty-print.h.
25238         * print-rtl.c: Include tree-pretty-print.h.
25239         * print-tree.c: Include gimple-pretty-print.h.
25240         * sese.c: Include tree-pretty-print.h.
25241         * tree-affine.c: Include tree-pretty-print.h.
25242         * tree-browser.c: Include tree-pretty-print.h.
25243         * tree-call-cdce.c: Include gimple-pretty-print.h.
25244         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
25245         * tree-chrec.c: Include tree-pretty-print.h.
25246         * tree-data-ref.c: Include tree-pretty-print.h and
25247         gimple-pretty-print.h.
25248         * tree-dfa.c: Include tree-pretty-print.h.
25249         * tree-if-conv.c: Include tree-pretty-print.h and
25250         gimple-pretty-print.h.
25251         * tree-inline.c: Include tree-pretty-print.h.
25252         * tree-into-ssa.c: Include tree-pretty-print.h and
25253         gimple-pretty-print.h.
25254         * tree-nrv.c: Include tree-pretty-print.h.
25255         * tree-object-size.c: Include tree-pretty-print.h and
25256         gimple-pretty-print.h.
25257         * tree-outof-ssa.c: Include tree-pretty-print.h and
25258         gimple-pretty-print.h.
25259         * tree-parloops.c: Include tree-pretty-print.h and
25260         gimple-pretty-print.h.
25261         * tree-predcom.c: Include tree-pretty-print.h and
25262         gimple-pretty-print.h.
25263         * tree-scalar-evolution.c: Include tree-pretty-print.h and
25264         gimple-pretty-print.h.
25265         * tree-sra.c: Include tree-pretty-print.h.
25266         * tree-ssa-address.c: Include tree-pretty-print.h.
25267         * tree-ssa-alias.c: Include tree-pretty-print.h.
25268         * tree-ssa-ccp.c: Include tree-pretty-print.h and
25269         gimple-pretty-print.h.
25270         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
25271         * tree-ssa-copy.c: Include tree-pretty-print.h and
25272         gimple-pretty-print.h.
25273         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
25274         * tree-ssa-dce.c: Include tree-pretty-print.h and
25275         gimple-pretty-print.h.
25276         * tree-ssa-dom.c: Include tree-pretty-print.h and
25277         gimple-pretty-print.h.
25278         * tree-ssa-dse.c: Include gimple-pretty-print.h.
25279         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
25280         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
25281         * tree-ssa-live.c: Include tree-pretty-print.h and
25282         gimple-pretty-print.h.
25283         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
25284         gimple-pretty-print.h.
25285         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
25286         gimple-pretty-print.h.
25287         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
25288         gimple-pretty-print.h.
25289         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
25290         gimple-pretty-print.h.
25291         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
25292         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
25293         * tree-ssa-operands.c: Include tree-pretty-print.h and
25294         gimple-pretty-print.h.
25295         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
25296         gimple-pretty-print.h.
25297         * tree-ssa-pre.c: Include tree-pretty-print.h and
25298         gimple-pretty-print.h.
25299         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
25300         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
25301         gimple-pretty-print.h.
25302         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
25303         gimple-pretty-print.h.
25304         * tree-ssa-sink.c: Include gimple-pretty-print.h.
25305         * tree-ssa-ter.c: Include tree-pretty-print.h and
25306         gimple-pretty-print.h.
25307         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
25308         * tree-ssa.c: Include tree-pretty-print.h and
25309         gimple-pretty-print.h.
25310         * tree-stdarg.c: Include gimple-pretty-print.h.
25311         * tree-switch-conversion.c: Include gimple-pretty-print.h.
25312         * tree-tailcall.c: Include tree-pretty-print.h and
25313         gimple-pretty-print.h.
25314         * tree-vect-data-refs.c: Include tree-pretty-print.h and
25315         gimple-pretty-print.h.
25316         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
25317         gimple-pretty-print.h.
25318         * tree-vect-loop.c: Include tree-pretty-print.h and
25319         gimple-pretty-print.h.
25320         * tree-vect-patterns.c: Include gimple-pretty-print.h.
25321         * tree-vect-slp.c: Include tree-pretty-print.h and
25322         gimple-pretty-print.h.
25323         * tree-vect-stmts.c: Include tree-pretty-print.h and
25324         gimple-pretty-print.h.
25325         * tree-vectorizer.c: Include tree-pretty-print.h.
25326         * tree-vrp.c: Include tree-pretty-print.h and
25327         gimple-pretty-print.h.
25328         * value-prof.c: Include tree-pretty-print.h and
25329         gimple-pretty-print.h.
25330         * var-tracking.c: Include tree-pretty-print.h.
25331         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
25332         (tree-diagnostic.o): New dependencies.
25333         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
25334         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
25335         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
25336         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
25337         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
25338         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
25339         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
25340         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
25341         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
25342         tree-ssa-address.o, tree-ssa-loop-niter.o,
25343         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
25344         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
25345         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
25346         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
25347         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
25348         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
25349         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
25350         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
25351         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
25352         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
25353         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
25354         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
25355         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
25356         tree-switch-conversion.o, var-tracking.o, value-prof.o,
25357         cfgexpand.o, pretty-print.o): Update dependencies.
25358
25359 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
25360
25361         * tree-ssa-structalias.c: Remove tm_p.h from include.
25362
25363 2010-05-21  Jeff Law  <law@redhat.com>
25364
25365         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
25366
25367 2010-05-21  Jason Merrill  <jason@redhat.com>
25368
25369         * tree-eh.c (cleanup_is_dead_in): New.
25370         (lower_try_finally): Don't generate a dead cleanup region.
25371         (lower_cleanup): Likewise.
25372
25373 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
25374
25375         PR debug/44223
25376         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
25377         unchain each use from the cyclic next_regno_use chain first.
25378
25379 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
25380
25381         * real: Do not include gmp.h, mpfr.h, and mpc.h.
25382         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
25383         (real_value_negate, real_value_abs): New prototypes.
25384         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
25385         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
25386         new include file for interface between MPFR and REAL_VALUE_TYPE.
25387         * real.c: Include realmpfr.h.
25388         (real_arithmetic2): Remove legacy function.
25389         (real_value_negate): New.
25390         (real_value_abs): New.
25391         (mfpr_from_real, real_from_mpfr): Move from here...
25392         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
25393         * builtins.c: Include realmpfr.h.
25394         * fold-const.c: Include realmpfr.h.
25395         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
25396         (fold_negate_const): Likewise.
25397         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
25398         * toplev.c: Include realmpfr.h.
25399         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
25400         and real_value_negate.
25401         * fixed-value.c (check_real_for_fixed_mode): Likewise.
25402         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
25403         (vfp3_const_double_index): Likewise.
25404         (arm_print_operand): Likewise.
25405         * Makefile.in: Update dependencies.
25406
25407 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25408
25409         * config/s390/s390.c (override_options): Increase the default
25410         of max-completely-peel-times.
25411
25412 2010-05-21  Julian Brown  <julian@codesourcery.com>
25413             Mark Mitchell  <mark@codesourcery.com>
25414
25415         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
25416         sibling calls for Thumb-1.
25417         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
25418         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
25419         Thumb-2.
25420         (*call_insn, *call_value_insn): Don't use for Thumb-2.
25421         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
25422         for Thumb-2.
25423         (return): New expander.
25424         (*arm_return): New name for ARM return insn.
25425         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
25426
25427 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
25428
25429         * config.gcc (sparc64-*-rtems*): New target.
25430
25431 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
25432
25433         * tree.c (build_function_decl_skip_args): Fix grammar.
25434         (build_function_type_list_1): Fix typos, adjust formatting.
25435
25436 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
25437
25438         * tree.h: Include real.h and fixed-value.h as basic datatypes.
25439         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
25440         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
25441         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
25442         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
25443         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
25444         tree-pretty-print.c, tree-loop-distribution.c,
25445         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
25446         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
25447         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
25448         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
25449         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
25450         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
25451         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
25452         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
25453         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
25454         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
25455         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
25456         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
25457         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
25458         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
25459         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
25460         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
25461         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
25462         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
25463         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
25464         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
25465         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
25466         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
25467         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
25468         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
25469         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
25470         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
25471         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
25472         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
25473         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
25474         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
25475         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
25476         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
25477         config/score/score7.c, config/score/score.c, config/arm/arm.c,
25478         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
25479         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
25480         config/bfin/bfin.c: Clean up redundant includes.
25481         * Makefile.in: Update accordingly.
25482
25483 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
25484
25485         PR middle-end/44204
25486         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
25487         statement has no arguments.
25488
25489 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
25490
25491         PR/44139
25492         * varasm.c (emutls_decl): Merge attributes to new decl.
25493
25494 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
25495
25496         PR middle-end/44101
25497         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
25498         around the uniquized constructor if its type requires a conversion.
25499
25500 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
25501
25502         PR debug/44205
25503         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
25504         at -O0 goto_locus of any of the incoming edges differs from
25505         goto_locus of outgoing edge, or gimple_location of any of the
25506         labels differs.
25507
25508 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
25509
25510         * ira.c (ira_non_ordered_class_hard_regs): Define.
25511         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
25512         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
25513         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
25514         cost of unaligned hard regs when allocating multi-reg pseudos.
25515
25516 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
25517
25518         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
25519         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
25520         for TARGET_NO_FLOAT.
25521         * config/mips/mips.c (mips_file_start): Expand conditional expression
25522         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
25523         (mips_override_options): Move -mno-float override -msoft-float and
25524         -mhard-float.
25525         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
25526         Condition(TARGET_SUPPORTS_NO_FLOAT).
25527         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
25528         __mips_no_float here.
25529         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
25530         (TARGET_SUPPORTS_NO_FLOAT): Define.
25531         * config/mips/sdemtk.opt: Delete.
25532
25533 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
25534
25535         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
25536
25537 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
25538
25539         PR target/43733
25540         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
25541         * configure: Regenerate.
25542         * config.in: Regenerate.
25543         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
25544         instead of sahf only for 64bit targets.
25545
25546 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
25547
25548         PR debug/44178
25549         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
25550         setup_ref_regs for DEBUG_INSNs.
25551
25552 2010-05-20  Jan Hubicka  <jh@suse.cz>
25553
25554         PR middle-end/44197
25555         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
25556
25557 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
25558
25559         PR bootstrap/43870
25560         * df-scan.c (df_ref_compare): Stabilize sort.
25561
25562 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
25563
25564         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
25565         argument.  Don't use DW_OP_piece if offset is non-zero,
25566         put offset into second DW_OP_bit_piece argument.
25567         (dw_sra_loc_expr): Adjust callers.  For memory expressions
25568         compute offset.
25569
25570 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
25571
25572         PR target/44202
25573         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
25574         settings for 16-bit-constant "addo" alternative.
25575
25576 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
25577
25578         * config/mips/mips-dsp.md (add<DSPV:mode>3,
25579         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
25580
25581         PR target/43764
25582         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
25583         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
25584         Use it.
25585
25586 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
25587
25588         * diagnostic.c (FLOAT, FFS): Don't undefine.
25589         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
25590         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
25591         include ordering.
25592
25593 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25594
25595         * combine.c (propagate_for_debug): Call make_compound_operation
25596         on the source value.
25597         (try_combine): When implementing a split chosen by find_split_point,
25598         either copy i2src or set it to null.  Assert that i2src is not null
25599         before substituting into CALL_INSN_FUNCTION_USAGE.
25600
25601 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
25602
25603         * double-int.h (double_int_ior): New function.
25604         * tree.h (build_int_cst_wide_type): Remove.
25605         * tree.c (build_int_cst_wide_type): Remove.
25606         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
25607         of build_int_cst_wide_type.
25608         * stor-layout.c (set_sizetype): (Ditto.).
25609         * dojump.c (do_jump): Use build_int_cstu instead of
25610         build_int_cst_wide_type.
25611
25612 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
25613
25614         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
25615         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
25616         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
25617         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
25618         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
25619         propagate the 'data' argument to copy_tree_r.
25620         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
25621         Propagate 'data' argument to walk_tree.
25622         (copy_if_shared): New function.
25623         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
25624         (unmark_visited): New function.
25625         (unshare_body): Call copy_if_shared instead of doing it manually.
25626         (unvisit_body): Call unmark_visited instead of doing it manually.
25627
25628 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
25629
25630         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
25631         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
25632         * hooks.c: Likewise.
25633         * target-def.h (TARGET_FOLD_BUILTIN): Define to
25634         hook_tree_tree_int_treep_bool_null.
25635         * target.h (struct gcc_target): Update signature of fold_builtin
25636         field.
25637         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
25638         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
25639         instead of the call expression.
25640         (fold_builtin_call_array): Pass n and argarray directly.
25641         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
25642         consing a list.
25643         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
25644         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
25645         `i' and use it in place of `arity'.
25646         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
25647         Dereference `args' directly.
25648         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
25649
25650 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25651
25652         * doc/sourcebuild.texi (Effective-Target Keywords): Document
25653         3dnow, sse3, sse2.
25654         (Directives): Document optional dg-require-effective-target
25655         selector.
25656
25657 2010-05-19  Richard Guenther  <rguenther@suse.de>
25658
25659         PR lto/44196
25660         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
25661
25662 2010-05-19  Richard Guenther  <rguenther@suse.de>
25663
25664         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
25665         * common.opt (fwhopr=): New.
25666         * opts.c (common_handle_option): Handle OPT_fwhopr.
25667         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
25668         * collect2.c (main): Match -fwhopr*.
25669         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
25670         Execute ltrans stage in parallel when jobs is bigger than 1.
25671
25672 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25673
25674         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
25675         pentiumpro on Solaris 8/x86 with Sun as.
25676         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
25677         hidden alias bug.
25678         (gcc_cv_as_ix86_quad): Check for .quad directive.
25679         * configure: Regenerate.
25680         * config.in: Regenerate.
25681         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
25682
25683 2010-05-19  Martin Jambor  <mjambor@suse.cz>
25684
25685         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
25686         also for indirect edges.  Actual printing moved...
25687         (ipa_print_node_jump_functions_for_edge): ...here.
25688         (ipa_compute_jump_functions): Renamed to
25689         ipa_compute_jump_functions_for_edge and made static.
25690         (ipa_compute_jump_functions): New function.
25691         (make_edge_direct_to_target): Check if the number of arguments on
25692         the newly direct edge is the same as the number of parametrs of
25693         the callee.
25694         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
25695         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
25696         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
25697         analysis functions unconditionally, call the new
25698         ipa_analyze_params_uses on the node instead of every edge.
25699
25700 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
25701
25702         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
25703         to tree.
25704         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
25705         also checks for a constant int vs.  non-constant but
25706         loop-invariant steps.
25707         (find_or_create_group): Change the sort algorithm to only consider
25708         steps that are constant ints.
25709         (idx_analyze_ref): Adopt code to handle a tree instead of a
25710         HOST_WIDE_INT for step.
25711         (gather_memory_references_ref): Handle tree instead of int and be
25712         prepared to see a NULL_TREE.
25713         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
25714         prefetches if the step cannot be calculated at compile time.
25715         (issue_prefetch_ref): Issue prefetches for non-constant but
25716         loop-invariant steps.
25717
25718 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
25719
25720         Revert:
25721         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
25722
25723         * tree.h (build_call_list): Remove.
25724         * tree.c (build_call_list): Remove.
25725
25726 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
25727
25728         * tree.h (build_call_list): Remove.
25729         * tree.c (build_call_list): Remove.
25730
25731 2010-05-18  Jan Hubicka  <jh@suse.cz>
25732
25733         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
25734
25735 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
25736
25737         PR rtl-optimization/43332
25738         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
25739
25740 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
25741
25742         * tree.h (build_int_cstu): Implement as static inline.
25743         * tree.c (build_int_cstu): Remove function.
25744         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
25745         sign extended.
25746
25747 2010-05-18  Richard Guenther  <rguenther@suse.de>
25748
25749         PR lto/44143
25750         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
25751         (debug): Initialize from -save-temps.
25752         (collect_execute): Print command-line when verbose.
25753         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
25754         for ltrans invocation.  Produce -dumpbase flag again.
25755         (process_args): Remove.
25756         (main): Simplify.
25757         * collect2.c (maybe_run_lto_and_relink): Only pass object
25758         files to lto-wrapper.
25759         * gcc.c (LINK_COMMAND_SPEC): Likewise.
25760
25761 2010-05-18  Jan Hubicka  <jh@suse.cz>
25762
25763         * opts.c (decode_options): Do not disable whopr at ipa_cp.
25764         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
25765
25766 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
25767
25768         PR lto/44184
25769         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
25770         in a GIMPLE_ASM.
25771         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
25772         in a GIMPLE_ASM.
25773
25774 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
25775
25776         PR debug/41371
25777         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
25778         rtx_equal_p inline.
25779
25780 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
25781
25782         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
25783         lto-macho as lto_binary_reader.
25784
25785         * darwin.c (darwin_asm_named_section): Do not add assembler comment
25786         after .section directive; just print it before the directive instead.
25787
25788 2010-05-17  Jan Hubicka  <jh@suse.cz>
25789
25790         * cgraph.c (cgraph_create_virtual_clone): Only check
25791         versionable_function_p when not in wpa and checking is enabled.
25792         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
25793         there are no more functions to materialize.
25794
25795 2010-05-17  Jan Hubicka  <jh@suse.cz>
25796
25797         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
25798         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
25799         New functions.
25800         (output_cgraph): Call output_cgraph_opt_summary.
25801         (input_cgrpah): Call input_cgraph_opt_summary.
25802         (output_cgraph_opt_summary_p, output_node_opt_summary,
25803         input_node_opt_summary, input_cgraph_opt_section): New functions.
25804         * lto-section-in.c (lto_section_name): Add cgraphopt.
25805         * tree-inline.c (tree_function_versioning): Handle parm_num.
25806         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
25807         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
25808
25809 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
25810
25811         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
25812         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
25813         the insn to prefetch ratio heuristic to loops with known trip count.
25814
25815 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
25816
25817         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
25818         (schedule_prefetches): Do not generate a prefetch if the unroll factor
25819         is far from what is required by the prefetch.
25820
25821 2010-05-17  Jan Hubicka  <jh@suse.cz>
25822
25823         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
25824         (ipcp_estimate_growth): Likewise.
25825         (ipcp_const_param_count): Likewise.
25826         (ipcp_insert_stage): Likewise.
25827         * ipa-prop.c (visit_load_for_mod_analysis): New function.
25828         (visit_store_addr_for_mod_analysis): Set used flag.
25829         (ipa_detect_param_modifications): Set used flag for SSE params;
25830         update use of walk_stmt_load_store_addr_ops.
25831         (ipa_print_node_params): Print used flag.
25832         (ipa_write_node_info): Stream used flag.
25833         (ipa_read_node_info): Likewise.
25834         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
25835         (ipa_is_param_used): New function.
25836         (lto_ipa_fixup_call_notes): Remove unused declaration.
25837
25838 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25839
25840         PR target/44074
25841         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
25842         * configure: Regenerate.
25843         * config.in: Regenerate.
25844         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
25845         !HAVE_AS_IX86_REP_LOCK_PREFIX.
25846         Don't emit whitespace.
25847         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
25848         (*rep_movsi): Likewise.
25849         (*rep_movsi_rex64): Likewise.
25850         (*rep_movqi): Likewise.
25851         (*rep_movqi_rex64): Likewise.
25852         (*rep_stosdi_rex64): Likewise.
25853         (*rep_stossi): Likewise.
25854         (*rep_stossi_rex64): Likewise.
25855         (*rep_stosqi): Likewise.
25856         (*rep_stosqi_rex64): Likewise.
25857         (*cmpstrnqi_nz_1): Use {%;} after repz.
25858         (*cmpstrnqi_nz_rex_1): Likewise.
25859         (*cmpstrnqi_1): Likewise.
25860         (*cmpstrnqi_rex_1): Likewise.
25861         (*strlenqi_1): Use {%;} after repnz.
25862         (*strlenqi_rex_1): Likewise.
25863         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
25864         (*sync_compare_and_swap<mode>): Likewise.
25865         (sync_double_compare_and_swap<mode>): Likewise.
25866         (*sync_double_compare_and_swapdi_pic): Likewise.
25867         (sync_old_add<mode>): Likewise.
25868         (sync_add<mode>): Likewise.
25869         (sync_sub<mode>): Likewise.
25870         (sync_<code><mode>): Likewise.
25871
25872 2010-05-17  Martin Jambor  <mjambor@suse.cz>
25873
25874         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
25875         otr_token and polymorphic.
25876         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
25877         (cgraph_clone_edge): Copy the above fields.
25878         * tree.c (get_binfo_at_offset): New function.
25879         * tree.h (get_binfo_at_offset): Declare.
25880         * ipa-prop.h (enum jump_func_type): Added known_type jump function
25881         type, reordered items, updated comments.
25882         (union jump_func_value): Added base_type field, reordered fields.
25883         (enum ipa_lattice_type): Moved down in the file.
25884         (struct ipa_param_descriptor): New field polymorphic.
25885         (ipa_is_param_polymorphic): New function.
25886         * ipa-prop.c: Include gimple.h and gimple-fold.h.
25887         (ipa_print_node_jump_functions): Print known type jump functions.
25888         (compute_complex_pass_through): Renamed to...
25889         (compute_complex_assign_jump_func): this.
25890         (compute_complex_ancestor_jump_func): New function.
25891         (compute_known_type_jump_func): Likewise.
25892         (compute_scalar_jump_functions): Create known type and complex ancestor
25893         jump functions.
25894         (ipa_note_param_call): New parameter polymorphic, set the corresponding
25895         flag in the call note accordingly.
25896         (ipa_analyze_call_uses): Renamed to...
25897         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
25898         variable var only in the block where it is used.
25899         (ipa_analyze_virtual_call_uses): New function.
25900         (ipa_analyze_call_uses): Likewise.
25901         (combine_known_type_and_ancestor_jfs): Likewise.
25902         (update_jump_functions_after_inlining): Implemented handling of a
25903         number of new jump function types combination.
25904         (print_edge_addition_message): Removed.
25905         (make_edge_direct_to_target): New function.
25906         (try_make_edge_direct_simple_call): Likewise.
25907         (try_make_edge_direct_virtual_call): Likewise.
25908         (update_call_notes_after_inlining): Renamed to...
25909         (update_indirect_edges_after_inlining): this.  Moved edge creation for
25910         indirect calls to try_make_edge_direct_simple_call, also calls
25911         try_make_edge_direct_virtual_call for virtual calls.
25912         (ipa_print_node_params): Changed the header message.
25913         (ipa_write_jump_function): Stream also known type jump functions.
25914         (ipa_read_jump_function): Likewise.
25915         (ipa_write_indirect_edge_info): Stream new fields in
25916         cgraph_indirect_call_info.
25917         (ipa_read_indirect_edge_info): Likewise.
25918         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
25919         GIMPLE_FOLD_H.
25920
25921 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25922
25923         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
25924
25925 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
25926
25927         * tree.h (CALL_EXPR_ARGS): Delete.
25928         (call_expr_arglist): Delete.
25929         * tree.c (call_expr_arglist): Delete.
25930         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
25931         targetm.fold_builtin.
25932         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
25933         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
25934         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
25935         arglist parameter.  Use CALL_EXPR_ARG.
25936         (picochip_expand_builtin_3op): Likewise.
25937         (picochip_expand_builtin_2opvoid): Likewise.
25938         (picochip_expand_array_get): Likewise.
25939         (picochip_expand_array_put): Likewise.
25940         (picochip_expand_array_testport): Likewise.
25941         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
25942         rather than arglist.
25943         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
25944         CALL_EXPR_ARGS.
25945         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
25946         than TREE_VALUE and TREE_CHAIN.
25947         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
25948         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
25949         the arglist.
25950
25951 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
25952
25953         PR bootstrap/42347
25954         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
25955         to have no fallthru edge.
25956
25957         PR middle-end/44102
25958         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
25959         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
25960         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
25961         add BARRIER after previous bb if needed.
25962
25963 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
25964
25965         * tree.c (build_function_type_list_1): Remove bogus assert condition.
25966
25967 2010-05-17  Alan Modra  <amodra@gmail.com>
25968
25969         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
25970         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
25971         with copy_reg rtx param.
25972         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
25973         Correct cases where code for ABI_V4 did not initialise the reg
25974         used to access frame.  Also leave frame_reg_rtx as sp for large
25975         frames that save no regs.
25976
25977 2010-05-17  Martin Jambor  <mjambor@suse.cz>
25978
25979         PR middle-end/44133
25980         * tree-sra.c (create_access_replacement): New parameter rename, mark
25981         the replaement for renaming only when it is true.
25982         (get_access_replacement): Pass true in the rename parameter of
25983         create_access_replacement.
25984         (get_unrenamed_access_replacement): New function.
25985         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
25986         replacement declaration from it.
25987
25988 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
25989
25990         * function.c (try_fit_stack_local, add_frame_space): New static
25991         functions.
25992         (assign_stack_local_1): Use them.  Look for opportunities to use
25993         space previously wasted on alignment.
25994         * function.h (struct frame_space): New.
25995         (struct rtl_data): Add FRAME_SPACE_LIST member.
25996         * reload1.c (something_was_spilled): New static variable.
25997         (alter_reg): Set it.
25998         (reload): Test it in addition to testing if the frame size changed.
25999
26000 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
26001
26002         * config/s390/s390.c: Define sane prefetch settings and activate
26003         flag_prefetch_loop_arrays on -O3.
26004         * config/s390/s390.h: Declare that read can use write prefetch.
26005
26006 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
26007
26008         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
26009         build.
26010
26011 2010-05-16  Jan Hubicka  <jh@suse.cz>
26012
26013         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
26014         function body; do not check stdarg field of struct function.
26015
26016 2010-05-16  Jan Hubicka  <jh@suse.cz>
26017
26018         * cgraph.c (dump_cgraph_node): Dump versionable flag.
26019         * cgraph.h (cgraph_local_info): Add versionable flag.
26020         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
26021         (ipcp_versionable_function_p): Use it.
26022         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26023         versionable flag.
26024
26025 2010-05-16  Jan Hubicka  <jh@suse.cz>
26026
26027         * cgraph.c (cgraph_clone_node): Take decl argument and insert
26028         clone into hash when it is different from orig.
26029         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
26030         * cgraph.h (cgraph_clone_node): Update prototype.
26031         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
26032         (lto_cgraph_encoder_delete): Delete body map.
26033         (lto_cgraph_encoder_size): Move to header.
26034         (lto_cgraph_encoder_encode_body_p,
26035         lto_set_cgraph_encoder_encode_body): New.
26036         (lto_output_node): Do not take written_decls argument; output clone_of
26037         pointer.
26038         (add_node_to): Add include_body_argument; call
26039         lto_set_cgraph_encoder_encode_body on master of the clone.
26040         (add_references): Update use of add_node_to.
26041         (compute_ltrans_boundary): Likewise.
26042         (output_cgraph): Do not create written_decls bitmap.
26043         (input_node): Take nodes argument; stream in clone_of correctly.
26044         (input_cgraph_1): Update use of input_node.
26045         * lto-streamer-out.c (lto_output): Use encoder info to decide
26046         what bodies to output.
26047         * ipa-inline.c (cgraph_clone_inlined_nodes,
26048         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
26049         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
26050         (lto_cgraph_encoder_size): Define here.
26051         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
26052         Declare.
26053
26054 2010-05-16  Richard Guenther  <rguenther@suse.de>
26055
26056         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
26057         -fipa-type-escape.
26058         * ipa-type-escape.c (gate_type_escape_vars): Run when
26059         -fipa-struct-reorg runs.
26060         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
26061         * common.opt (fipa-type-escape): Remove.
26062
26063 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
26064
26065         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
26066         (decode_options): Likewise.
26067         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
26068
26069 2010-05-16  Jan Hubicka  <jh@suse.cz>
26070
26071         * ipa.c (function_and_variable_visibility): Also bring local all
26072         aliases.
26073
26074 2010-05-16  Richard Guenther  <rguenther@suse.de>
26075
26076         * alias.c (nonoverlapping_memrefs_p): Remove use of
26077         IPA type-escape information.
26078
26079 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
26080
26081         * c-common.c (c_common_reswords): Add _Static_assert for C.
26082         * c-parser.c (c_token_starts_declaration,
26083         c_parser_next_token_starts_declaration,
26084         c_parser_static_assert_declaration_no_semi,
26085         c_parser_static_assert_declaration): New.
26086         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
26087         Handle static assertions if static_assert_ok.
26088         (c_parser_external_declaration, c_parser_declaration_or_fndef,
26089         c_parser_compound_statement_nostart, c_parser_label,
26090         c_parser_for_statement, c_parser_objc_methodprotolist,
26091         c_parser_omp_for_loop): All callers of
26092         c_parser_declaration_or_fndef changed.
26093         (c_parser_struct_declaration): Handle static assertions.
26094         (c_parser_compound_statement_nostart): Use
26095         c_parser_next_token_starts_declaration and
26096         c_token_starts_declaration to detect start of declarations.
26097         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
26098         Likewise.
26099
26100 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
26101
26102         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26103         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26104         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26105         TARGET_FUNCTION_VALUE_REGNO_P): Define.
26106         (mmix_function_outgoing_value): Rename to...
26107         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
26108         (mmix_function_value_regno_p): Make static.
26109         (mmix_libcall_value): New function.
26110         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
26111         mmix_function_value_regno_p): Remove declaration.
26112
26113 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
26114
26115         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
26116         BUILT_IN_ALLOCA if stack checking is enabled.
26117
26118 2010-05-16  Richard Guenther  <rguenther@suse.de>
26119
26120         * var-tracking.c (vars_copy_1): Inline ...
26121         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
26122         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
26123         (variable_merge_over_cur): Adjust.  Merge asserts.
26124         (variable_merge_over_src): Likewise.
26125         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
26126         (variable_post_merge_new_vals): Merge asserts.
26127         (variable_post_merge_perm_vals): Likewise.
26128         (find_mem_expr_in_1pdv): Likewise.
26129         (dataflow_set_different_value): Remove.
26130         (onepart_variable_different_p): Merge asserts.
26131         (variable_different_p): Likewise.
26132         (dataflow_set_different_1): Inline ...
26133         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
26134         (emit_notes_for_differences_1): Merge asserts.
26135
26136 2010-05-16  Richard Guenther  <rguenther@suse.de>
26137
26138         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
26139         * optabs.c (libfunc_decl_hash): Likewise.
26140         * varasm.c (emutls_decl): Likewise.
26141
26142 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
26143
26144         * c-decl.c: Don't include gimple.h.
26145         (merge_decls): Do not copy gimple_body.
26146
26147 2010-05-15  Jason Merrill  <jason@redhat.com>
26148
26149         * c.opt: Add -fnothrow-opt.
26150
26151 2010-05-15  Jan Hubicka  <jh@suse.cz>
26152
26153         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
26154         analyzed.
26155         * passes.c (ipa_write_summaries): Write all analyzed nodes.
26156
26157 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
26158
26159         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
26160         * Makefile.in: Add it.
26161         Fix all other Makefile dependencies for changes below.
26162         * tree.h: Include it instead of defining VEC primitives here.
26163         * gimple.h: Likewise.
26164         * rtl.h: Likewise.
26165         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
26166         * except.h: Include vecir.h, break dependence on tree.h.
26167
26168         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
26169         Move from here...
26170         * tree-iterator.c: ...to here.
26171         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
26172
26173         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
26174         tm_p.h.
26175         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
26176         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
26177         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
26178         tree-mudflap.h, and target.h.
26179         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
26180         predict.h, tree-inline.h, gimple.h, and langhooks.h.
26181         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
26182         Add FIXME for why gimple.h is still included (should be unnecessary
26183         since GCC 4.5 gimplification unit-at-a-time).
26184         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
26185         * c-pragma.c: Add FIXME for why function.h needs to be included just
26186         for cfun, at front-end level.
26187         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
26188         Do not include ggc.h, but include vecprim.h for VEC(char).
26189         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
26190         Explain why target.h is included.
26191         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
26192         Explain why gimple.h is included.
26193         * c-ppoutput.c: Do not include tm.h.
26194         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
26195         * c-parses.c: Explain why rtl.h is included, and that this (and only
26196         this) is also why tm.h must be included.
26197         Do not include except.h.
26198         * c-lang.c: Do not include ggc.h.
26199
26200 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
26201
26202         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
26203
26204 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
26205
26206         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
26207         unions by default if those structs and unions have no tags.  Do
26208         not condition anonymous struct and unions handling on flag_iso.
26209         Allow anonymous structs and unions for C1X.
26210         (finish_struct): Do not diagnose lack of named fields when
26211         anonymous structs and unions present for C1X.  Accept flexible
26212         array members in structure with anonymous structs or unions but no
26213         directly named fields.
26214         * doc/extend.texi (Unnamed Fields): Update.
26215
26216 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
26217
26218         * gimple.h (compare_field_offset): Rename into...
26219         (gimple_compare_field_offset): ...this.
26220         * gimple.c (compare_field_offset): Rename into...
26221         (gimple_compare_field_offset): ...this.  Compare the full access if
26222         the offset is self-referential.
26223         (gimple_types_compatible_p): Adjust for above renaming.
26224         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
26225         DECL_NONADDRESSABLE_P flag of fields before merging them.
26226
26227 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
26228
26229         * tree.h (ctor_to_list): Delete.
26230         * tree.c (ctor_to_list): Delete.
26231
26232 2010-05-15  Jan Hubicka  <jh@suse.cz>
26233
26234         * ipa-reference.c: Include toplev.h
26235         (is_proper_for_analysis): Only add to all_module_statics
26236         if it is allocated.
26237         (write_node_summary_p, stream_out_bitmap,
26238         ipa_reference_write_optimization_summary,
26239         ipa_reference_read_optimization_summary): New.
26240         (struct ipa_opt_pass_d pass_ipa_reference): Add
26241         optimization summary streaming.
26242         * lto-cgraph.c (referenced_from_this_partition_p,
26243         reachable_from_this_partition_p): New functions.
26244         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
26245         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
26246         * opts.c (decode_options): Enable ipa_reference.
26247         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
26248         * lto-streamer.h (referenced_from_this_partition_p,
26249         reachable_from_this_partition_p): Declare.
26250
26251 2010-05-15  Richard Guenther  <rguenther@suse.de>
26252
26253         PR tree-optimization/44038
26254         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
26255         taking the address of a V_C_E of a constant.
26256
26257 2010-05-14  Jan Hubicka  <jh@suse.cz>
26258
26259         * tree.h (memory_identifier_string): Remove.
26260         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
26261         (ipa_reference_global_vars_info_d): Remove statics_not_read and
26262         statics_not_written.
26263         (ipa_reference_optimization_summary_d): New structure.
26264         (ipa_reference_optimization_summary_t): New type and vector.
26265         (ipa_reference_vars_info_d): Embedd structures instead of using
26266         pointers.
26267         (reference_vars_to_consider): Remove out of GGC space.
26268         (module_statics_escape): Remove.
26269         (global_info_obstack): Rename to ...
26270         (optimization_summary_obstack): ... this one.
26271         (initialization_status_t): Remove.
26272         (memory_identifier_string): Remove.
26273         (get_reference_vars_info): Fix indenting.
26274         (set_reference_vars_info): Likewise.
26275         (get_reference_optimization_summary): New.
26276         (set_reference_optimization_summary): New.
26277         (get_global_reference_vars_info): Remove.
26278         (ipa_reference_get_read_global): Remove.
26279         (ipa_reference_get_written_global): Remove.
26280         (ipa_reference_get_not_read_global): Update.
26281         (ipa_reference_get_not_written_global): Update.
26282         (is_proper_for_analysis): Outlaw addressable.
26283         (propagate_bits): Update for new datastructures.
26284         (analyze_variable): Remove.
26285         (init_function_info): Update for new datastructures.
26286         (clean_function_local_data): Remove.
26287         (clean_function): Remove.
26288         (copy_global_bitmap): Use optimizations_summary_obstack.
26289         (duplicate_node_data): Duplicate optimization summary only.
26290         (remove_node_data): Remove optimization summary only.
26291         (generate_summary): Do not analyze variables; do not compute
26292         module_statics_escape; do not prune solutions by it.
26293         (read_write_all_from_decl): Fix typos in comments.
26294         (propagate): Doscover readonly and nonaddressable first;
26295         update for new datastructures; share global bitmaps.
26296         * ipa-reference.h (ipa_reference_get_read_global,
26297         ipa_reference_get_written_global): Remove.
26298         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
26299         * Makefile.in: Remove ipa-refereference from GT files.
26300
26301 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
26302
26303         PR debug/44112
26304         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
26305         for all SYMBOL_REF_DECLs.
26306
26307 2010-05-14  Jan Hubicka  <jh@suse.cz>
26308
26309         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
26310         (varpool_all_refs_explicit_p): New inline function.
26311         * ipa-reference.c: Update comment.
26312         (module_statics_written): Remove.
26313         (get_static_decl): Remove.
26314         (ipa_init): Do not initialize module_statics_written.
26315         (analyze_function): Likewise.
26316         (generate_summary): Likewise; do not compute module_statics_readonly
26317         and do not update variable flags.
26318         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
26319         * ipa.c: Inlucde flags.h
26320         (cgraph_local_node_p): New.
26321         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
26322         promote functions to local.
26323         (ipa_discover_readonly_nonaddressable_vars): New function.
26324         (function_and_variable_visibility): Use cgraph_local_node_p.
26325         * varpool.c (varpool_finalize_decl): Set force_output for
26326         DECL_PRESERVE_P vars.
26327
26328 2010-05-14  Jan Hubicka  <jh@suse.cz>
26329
26330         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
26331
26332 2010-05-14  Richard Guenther  <rguenther@suse.de>
26333
26334         PR tree-optimization/44119
26335         * tree-ssa-pre.c (eliminate): Properly mark replacement of
26336         a PHI node necessary.
26337
26338 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26339
26340         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
26341
26342 2010-05-14  Jason Merrill  <jason@redhat.com>
26343
26344         PR c++/44127
26345         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
26346         (gimple_call_set_nothrow): New.
26347         * gimple.c (gimple_build_call_from_tree): Call it.
26348         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
26349
26350         PR c++/44127
26351         * gimplify.c (gimplify_seq_add_stmt): No longer static.
26352         * gimple.h: Declare it.
26353         * gimple.c (gimple_build_eh_filter): No ops.
26354
26355 2010-05-14  Jan Hubicka  <jh@suse.cz>
26356
26357         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
26358         nodes already in queue.
26359         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
26360         re-enqueueing node.
26361
26362 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
26363
26364         PR debug/44136
26365         * cfgexpand.c (expand_debug_expr): If non-memory op0
26366         has BLKmode, return NULL.
26367
26368 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
26369
26370         * config.gcc: Add support for --with-cpu option for bdver1.
26371         * config/i386/i386.h (TARGET_BDVER1): New macro.
26372         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
26373         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
26374         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
26375         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
26376         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
26377         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
26378         (processor_type): Add PROCESSOR_BDVER1.
26379         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
26380         processor_type in config/i386/i386.h.
26381         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
26382         movaps <reg, reg> instead of movapd <reg, reg> when replacing
26383         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
26384         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
26385         to emit packed xor instead of packed double/packed integer
26386         xor for SSE and AVX when moving a zero value.
26387         * config/i386/sse.md: Add check for
26388         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
26389         movapd/movdqa for SSE and AVX.
26390         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
26391         single logical operations i.e and, or and xor instead of packed double
26392         logical operations for SSE and AVX.
26393         * config/i386/i386-c.c (ix86_target_macros_internal):
26394         Add PROCESSOR_BDVER1.
26395         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
26396         (has_fma4, has_xop): New.
26397         * config/i386/i386.c (bdver1_cost): New variable.
26398         (m_BDVER1): New macro.
26399         (m_AMD_MULTIPLE): Add m_BDVER1.
26400         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
26401         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
26402         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
26403         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
26404         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
26405         x86_tune_sse_partial_reg_dependency,
26406         x86_tune_sse_unaligned_load_optimal,
26407         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
26408         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
26409         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
26410         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
26411         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
26412         Enable/disable for bdver1.
26413         (processor_target_table): Add bdver1_cost.
26414         (cpu_names): Add bdver1.
26415         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
26416          processor_alias_table.
26417         (ix86_expand_vector_move_misalign): Change.
26418         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
26419         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
26420         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
26421         of movupd/movdqu for SSE and AVX.
26422         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
26423         (ix86_tune_adjust_cost): Add code for bdver1.
26424         (standard_sse_constant_opcode): Add check for
26425         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
26426         of packed double xor for SSE and AVX.
26427
26428 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
26429
26430         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
26431         result to unsigned.
26432
26433 2010-05-14  Tristan Gingold  <gingold@adacore.com>
26434
26435         * toplev.c (default_debug_hooks): Remove this variable.
26436         (process_options): Remove assignments to default_debug_hooks.
26437
26438 2010-05-14  Martin Jambor  <mjambor@suse.cz>
26439
26440         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
26441         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
26442         * langhooks.h (struct lang_hooks_for_decls): Removed field
26443         fold_obj_type_ref.
26444         * tree.c (free_lang_data): Remove assignment to
26445         lang_hooks.fold_obj_type_ref.
26446         * tree.def (OBJ_TYPE_REF): Update comment.
26447
26448 2010-05-14  Richard Guenther  <rguenther@suse.de>
26449
26450         PR tree-optimization/44124
26451         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
26452
26453 2010-05-14  Alan Modra  <amodra@gmail.com>
26454
26455         PR target/44075
26456         * config/rs6000/rs6000.c (struct machine_function): Reorder
26457         fields for better packing.  Add lr_save_state.
26458         (rs6000_ra_ever_killed): Return lr_save_state if set.
26459         (rs6000_emit_eh_reg_restore): Set lr_save_state.
26460
26461 2010-05-13  Jan Hubicka  <jh@suse.cz>
26462
26463         * varpool.c (decide_is_variable_needed): Drop code checking
26464         TREE_SYMBOL_REFERENCED.
26465
26466 2010-05-13  Jan Hubicka  <jh@suse.cz>
26467
26468         * final.c (output_addr_const): Do not call mark_decl_referenced.
26469         * cgraphunit.c (process_function_and_variable_attributes): Use
26470         mark_needed_node dirrectly.
26471         (assemble_thunk): Do not call mark_decl_referenced.
26472
26473 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
26474
26475         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
26476
26477 2010-05-13  Jeff Law  <law@redhat.com>
26478
26479         * ira-conflicts.c (print_allocno_conflicts): New function broken out
26480         from...
26481         (print_conflicts): Call print_allocno_conflicts.
26482
26483 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
26484
26485         PR debug/44104
26486         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
26487         if it is NULL.
26488
26489 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
26490
26491         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
26492         t-mingw-w64 or t-mingw-w32 for multilib configuration.
26493         * config/i386/t-mingw-w32: New.
26494         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
26495
26496 2010-05-13  Martin Jambor  <mjambor@suse.cz>
26497
26498         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
26499         gimple-fold.c).
26500         * gimple-fold.c (get_base_binfo_for_type): New function.
26501         (gimple_get_relevant_ref_binfo): Likewise.
26502         (gimple_fold_obj_type_ref_known_binfo): Likewise.
26503         (gimple_fold_obj_type_ref): Likewise.
26504         (fold_gimple_call): Simplify condition for folding virtual calls
26505         and call gimple_fold_obj_type_ref.
26506         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
26507         (gimple_fold_obj_type_ref_known_binfo): Likewise.
26508
26509 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
26510
26511         * config/rs6000/rs6000-protos.h
26512         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
26513         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
26514         (rs6000_debug_mode_dependent_address)
26515         (rs6000_mode_dependent_address_ptr): Likewise.
26516
26517 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
26518
26519         PR debug/43983
26520         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
26521         by SRA.
26522         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
26523         * tree-sra.c (create_access_replacement): Call unshare_expr before
26524         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
26525         * dwarf2out.c: Include tree-flow.h.
26526         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
26527         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
26528         Handle DW_OP_bit_piece.
26529         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
26530         construct_piece_list, adjust_piece_list): New functions.
26531         (add_var_loc_to_decl): Handle SRA optimized variables.
26532         Adjust for var_loc_note to loc field renaming.
26533         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
26534         in VAR_LOCATION note.
26535         (new_loc_descr_op_bit_piece): New function.
26536         (dw_sra_loc_expr): New function.
26537         (dw_loc_list): Use it.  Don't handle the last range after the
26538         loop, handle it inside of the loop.  Adjust for var_loc_note
26539         to loc field renaming.
26540         (add_location_or_const_value_attribute): Only special case
26541         single entry loc lists if loc is NOTE_P.  Adjust for
26542         var_loc_note to loc field renaming.
26543         (dwarf2out_var_location): Don't set newloc->var_loc_note
26544         and newloc->next here.
26545
26546 2010-05-12  Jan Hubicka  <jh@suse.cz>
26547
26548         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
26549         flag.
26550         * cgraph.h (cgraph_only_called_directly_p,
26551         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
26552         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
26553         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
26554         (assemble
26555         * ipa.c (cgraph_remove_unreachable_nodes): Use
26556         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
26557         flags.
26558         * tree-inline.c (copy_bb): Check address_taken flag.
26559         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
26560         externally_visible flag.
26561
26562 2010-05-12  Jason Merrill  <jason@redhat.com>
26563
26564         PR bootstrap/44048
26565         PR target/44099
26566         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
26567         * sdbout.c (plain_type_1): Likewise.
26568         * dwarf2out.c (is_base_type): Likewise.
26569         (gen_type_die_with_usage): Likewise.  Generate
26570         DW_TAG_unspecified_type for any LANG_TYPE.
26571
26572 2010-05-12  Jan Hubicka  <jh@suse.cz>
26573
26574         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
26575         indrect edges too.
26576         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
26577         (cgraph_clone_edge): Update.
26578         (cgraph_node_remove_callees): Remove indirect calls too.
26579         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
26580         (cgraph_create_indirect_edge): Update prototype.
26581         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
26582         is_proper_for_analysis.
26583         (add_new_function, visited_nodes, function_insertion_hook_holder,
26584         get_local_reference_vars_info, mark_address_taken, mark_address,
26585         mark_load, mark_store, check_asm_memory_clobber, check_call,
26586         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
26587         (ipa_init): Do not initialize visited_nodes;
26588         function_insertion_hook_holder.
26589         (analyze_variable): Rewrite.
26590         (analyze_function): Rewrite.
26591         (copy_local_bitmap): Remove.
26592         (duplicate_node_dat): Do not duplicate local info.
26593         (generate_summary): Simplify to only walk cgraph.
26594         (write_node_summary_p, ipa_reference_write_summary,
26595         ipa_reference_read_summary): Remove.
26596         (propagate): Do not remove function insertion;
26597         generate summary.
26598         (pass_ipa_reference): NULLify summary handling fields.
26599         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
26600         (input_edge): Input ecf_flags.
26601         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
26602         (update_indirect_edges_after_inlining): Ignore edges with unknown
26603         param.
26604
26605 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
26606
26607         * implicit-zee.c: New file.
26608         * tree-pass.h (pass_implicit_zee): Declare.
26609         * passes.c (init_optimization_passes): Add zee pass.
26610         * common.opt (fzee): New flag.
26611         * timevar.def (TV_ZEE): Define.
26612         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
26613         and beyond.
26614         * Makefile.in (implicit-zee.o): Add new build file.
26615
26616 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26617             Nathan Froyd  <froydnj@codesourcery.com>
26618
26619         * c-common.c (sync_resolve_params): Remove write-only variable.
26620
26621 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
26622
26623         * target.h (struct gcc_target): Add mode_dependent_address_p field.
26624         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
26625         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
26626         * targhooks.c (default_mode_dependent_address_p): New function.
26627         * targhooks.h (default_mode_dependent_address_p): Declare function.
26628         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
26629         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
26630         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
26631         target hook. Change return type to bool.
26632         * recog.h (mode_dependent_address_p): Change return type to bool.
26633
26634 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26635             Nathan Froyd  <froydnj@codesourcery.com>
26636
26637         * tree-mudflap.c (build_function_type_0, build_function_type_1,
26638         build_function_type_2, build_function_type_3): Remove.
26639         (mudflap_init): Use build_function_type_list.
26640
26641 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
26642             Nathan Froyd  <froydnj@codesourcery.com>
26643
26644         * coverage.c (build_fn_info_value): Call build_constructor instead of
26645         build_constructor_from_list.
26646         (build_ctr_info_value): Likewise.
26647         (build_gcov_info): Likewise.
26648
26649 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
26650
26651         * tree.c (build_constructor): Compute TREE_CONSTANT for the
26652         resultant constructor.
26653         (build_constructor_single): Don't set TREE_CONSTANT.
26654         (build_constructor_from_list): Don't compute TREE_CONSTANT.
26655
26656 2010-05-12  Jan Hubicka  <jh@suse.cz>
26657
26658         * cgraph.h (struct varpool_node): Add aux.
26659         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
26660         * varpool.c (varpool_remove_node): Do not remove initializer.
26661         (varpool_reset_queue): Export.
26662         (varpool_finalize_decl): Volatile vars are forced to be output.
26663         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
26664         replaced decl.
26665         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
26666         process_references, varpool_can_remove_if_no_refs): New functions.
26667         (cgraph_remove_unreachable_nodes): Handle variables too.
26668
26669 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
26670
26671         PR target/44088
26672         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
26673
26674 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
26675
26676         PR middle-end/44085
26677         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
26678         change value of ORT_TASK.
26679         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
26680         (omp_notice_threadprivate_variable): New function.
26681         (omp_notice_variable): Call it for threadprivate variables.
26682         If enclosing ctx is a task, print enclosing task rather than
26683         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
26684         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
26685         if task has untied clause.
26686
26687         PR debug/42278
26688         * dwarf2out.c (base_type_die): Don't add name attribute here.
26689         (modified_type_die): Instead of sizetype use
26690         its underlying original type.  If a DW_TAG_base_type doesn't
26691         have name added, add __unknown__.
26692         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
26693         always call force_type_die instead.
26694
26695 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
26696
26697         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
26698         for __stack_chk_guard.
26699
26700 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
26701
26702         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
26703         don't call start_source_file debug hook here...
26704         (finish_options): ... but here, after outputting predefined and
26705         command line defines and undefs.
26706
26707         PR middle-end/44071
26708         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
26709         no fallthru edge.
26710         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
26711         optimizing away empty bb with no successors, move over its
26712         footer chain to fallthru predecessor.
26713         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
26714         (rtl_split_edge): For asm goto call patch_jump_insn even if
26715         splitting fallthru edge.
26716
26717         PR c++/44059
26718         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
26719         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
26720         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
26721         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
26722         on DW.ref.* decls.
26723
26724         PR c++/44062
26725         * c-parser.c (c_parser_expression): Mark LHS of a comma
26726         expression as read if it is a decl, handled component or
26727         COMPOUND_EXPR with that on the RHS.
26728         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
26729         if it is a decl or handled component.
26730
26731 2010-05-11  Jan Hubicka  <jh@suse.cz>
26732
26733         * lto-symtab.c (lto_symtab_free): New function.
26734         * lto-streamer.h (lto_symtab_free): Declare.
26735
26736 2010-05-11  Jan Hubicka  <jh@suse.cz>
26737
26738         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
26739         that if function is needed it is reachable.
26740         (lto_output_node): See if it the function is reachable or referenced.
26741         (output_cgraph): Update call of lto_output_node.
26742         * lto-streamer.h (reachable_from_other_partition_p): Declare.
26743
26744 2010-05-11  Jan Hubicka  <jh@suse.cz>
26745
26746         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
26747         Mark as used.
26748
26749 2010-05-11  Jan Hubicka  <jh@suse.cz>
26750
26751         PR tree-optimize/44063
26752         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
26753         queue.
26754         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
26755         limits.
26756         (estimate_function_body_sizes): Compute sizes even when disregarding.
26757
26758 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
26759
26760         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
26761
26762 2010-05-11  Jan Hubicka  <jh@suse.cz>
26763
26764         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
26765         into every boundary.
26766
26767 2010-05-11  Jan Hubicka  <jh@suse.cz>
26768
26769         * matrix-reorg.c (matrix_reorg): Rebuild edges.
26770
26771 2010-05-11  Jan Hubicka  <jh@suse.cz>
26772
26773         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
26774         lto_streamer_cache_delete): Put nodes into heap.
26775         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
26776         heap.
26777
26778 2010-05-11  Jan Hubicka  <jh@suse.cz>
26779
26780         * cgraphbuild.c (cgraph_rebuild_references): New.
26781         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
26782         out extern inlines.
26783         * cgraph.h (cgraph_rebuild_references): Declare.
26784         * tree-inline.c (tree_function_versioning): Use it.
26785         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
26786
26787 2010-05-11  Jan Hubicka  <jh@suse.cz>
26788
26789         * cgraph.c: Include ipa-utils.h
26790         (cgraph_create_virtual_clone): Update references.
26791         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
26792
26793 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
26794
26795         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
26796         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
26797         cache size.
26798
26799 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
26800
26801         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
26802
26803 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
26804
26805         * gcc.c (execute): For -### don't quote arguments that
26806         contain just alphanumerics and _/-. characters.
26807         * doc/invoke.texi: Document that change for -###.
26808
26809         PR debug/44023
26810         * df-problems.c (struct dead_debug): Add to_rescan field.
26811         (dead_debug_init): Clear to_rescan field.
26812         (dead_debug_finish): Rescan all debug insns in to_rescan
26813         bitmap and free the bitmap.
26814         (dead_debug_insert_before): Instead of rescanning debug insns
26815         immediately queue their rescanning until dead_debug_finish.
26816         (df_note_bb_compute): After dead_debug_add do continue instead
26817         of break.
26818
26819 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
26820
26821         PR debug/44028
26822         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
26823         clear also INSN_REG_USE_LIST.
26824
26825 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26826
26827         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
26828
26829 2010-05-10  Jan Hubicka  <jh@suse.cz>
26830
26831         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
26832         commited change.
26833
26834 2010-05-10  Jan Hubicka  <jh@suse.cz>
26835
26836         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
26837         Allocate encoders.
26838         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
26839         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
26840         (lto_streamer_cache_create): Init alloc pool.
26841         (lto_streamer_cache_delete): Free alloc pool.
26842         * lto-streamer.h: Include alloc pool.
26843         (lto_streamer_cache_d): Use alloc pool.
26844         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
26845
26846 2010-05-10  Jan Hubicka  <jh@suse.cz>
26847
26848         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
26849         * cgraphbuild.c: Include except.h
26850         (record_type_list, record_eh_tables): New function.
26851         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
26852
26853 2010-05-10  Jan Hubicka  <jh@suse.cz>
26854
26855         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
26856         __frame_dummy_init_array_entry, force_to_data): Attribute as used
26857         rather than unused.
26858
26859 2010-05-10  Michael Matz  <matz@suse.de>
26860
26861         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
26862         (can_reassociate_p): Use FLOAT_TYPE_P.
26863         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
26864         (vect_force_simple_reduction): ... this.
26865         * tree-parloops.c (gather_scalar_reductions): Use
26866         vect_force_simple_reduction.
26867         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
26868         vect_is_simple_reduction, add modify argument, if true rewrite
26869         "a-b" into "a+(-b)".
26870         (vect_is_simple_reduction, vect_force_simple_reduction): New
26871         functions.
26872         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
26873
26874 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
26875             Vladimir Makarov  <vmakarov@redhat.com>
26876
26877         PR rtl-optimization/44012
26878         * ira-build.c (remove_unnecessary_allocnos): Nullify
26879         regno_allocno_map of the removed allocno.
26880
26881 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26882
26883         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
26884         to /dev/null.
26885         * configure: Regenerate.
26886
26887 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26888
26889         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
26890         unused.
26891         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
26892         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
26893         support in Sun ld.
26894         * configure: Regenerate.
26895
26896 2010-05-10  Richard Guenther  <rguenther@suse.de>
26897
26898         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
26899         marked if the entry identifier is marked.
26900
26901 2010-05-10  Richard Guenther  <rguenther@suse.de>
26902
26903         * c-common.c (struct c_common_attributes): Add fnspec attribute.
26904         (handle_fnspec_attribute): New function.
26905         * gimple.h (gimple_call_return_flags): Declare.
26906         (gimple_call_arg_flags): Likewise.
26907         * gimple.c (gimple_call_arg_flags): New function.
26908         (gimple_call_return_flags): Likewise.
26909         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
26910         New argument flags.
26911         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
26912         return value flags.
26913         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
26914         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
26915         main work to ...
26916         (make_heapvar_for): ... this new function.
26917         (handle_rhs_call): Handle fnspec attribute argument specifiers.
26918         (handle_lhs_call): Likewise.
26919         (find_func_aliases): Adjust.
26920
26921 2010-05-10  Richard Guenther  <rguenther@suse.de>
26922
26923         PR tree-optimization/44050
26924         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
26925
26926 2010-05-10  Wei Guozhi  <carrot@google.com>
26927
26928         PR target/42879
26929         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
26930
26931 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
26932
26933         PR c/10676
26934         * c-typeck.c (lookup_field): Take a type directly.  Update
26935         recursive calls.
26936         (build_component_ref): Update call to lookup_field.
26937         (set_init_label): Use lookup_field to find initialized field.
26938         Handle returned list of fields like a sequence of designators.
26939
26940 2010-05-09  Richard Guenther  <rguenther@suse.de>
26941
26942         PR middle-end/44024
26943         * fold-const.c (tree_single_nonzero_warnv_p): Properly
26944         handle &FUNCTION_DECL.
26945
26946 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
26947
26948         PR c/4784
26949         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
26950         structures and unions recursively.
26951         (detect_field_duplicates): Move duplicate detection with a hash to
26952         detect_field_duplicates_hash.  Always use a hash if anonymous
26953         structures or unions are present.
26954         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
26955         give errors.
26956
26957 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
26958
26959         PR target/44046
26960         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
26961         detect Atom, Core 2 and Core i7.
26962
26963 2010-05-09  Richard Guenther  <rguenther@suse.de>
26964
26965         * gcc.c (store_arg): Handle temporary file deletion for
26966         joined arguments.
26967
26968 2010-05-09  Richard Guenther  <rguenther@suse.de>
26969
26970         PR middle-end/44043
26971         * ipa-inline.c (estimate_function_body_sizes): Return after
26972         disregarding inline limits.
26973
26974 2010-05-09  Richard Guenther  <rguenther@suse.de>
26975
26976         * gcc.c (store_arg): Revert last change.
26977
26978 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
26979
26980         PR middle-end/28685
26981         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
26982         (optimize_ops_list): Call it.
26983
26984 2010-05-08  Richard Guenther  <rguenther@suse.de>
26985
26986         PR tree-optimization/44030
26987         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
26988         NECESSARY flag if we propagate from a inserted expression.
26989
26990 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
26991
26992         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
26993         domain types as equal if they are both PLACEHOLDER_EXPRs.
26994
26995 2010-05-08  Richard Guenther  <rguenther@suse.de>
26996
26997         * lto-wrapper.c (run_gcc): Remove linker output from
26998         command line for LTRANS invocation.
26999
27000 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
27001
27002         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
27003         lto-macho as lto_binary_reader.
27004         * target.h (struct gcc_target): New hooks lto_start and lto_end.
27005         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
27006         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
27007         in lto_start and lto_end calls.
27008         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
27009         magic numbers.
27010         (scan_prog_file): Update is_elf_or_coff call.
27011         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
27012
27013         * collect2.c (main): Fix enum comparison.
27014
27015         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
27016         Add prototypes.
27017         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
27018         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
27019         and TARGET_ASM_LTO_END.
27020         * darwin.c: Include obstack.h and lto-streamer.h.
27021         (lto_section_names_offset, lto_section_names_obstack,
27022         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
27023         global variables.
27024         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
27025         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
27026         to a temporary file.
27027         (darwin_asm_lto_end): New function.  Restore asm_out_file.
27028         (darwin_asm_named_section): For LTO sections, replace the name with
27029         the offset of the section name in a string table, and build this
27030         table.
27031         (darwin_file_start): Initialize global vars for LTO support.
27032         (darwin_file_end): If output to asm_out_file was redirected, append it
27033         to the proper asm_out_file here.  Add the section names section.
27034
27035 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
27036
27037         * c-pragma.c (pending_weak_d, pending_weak): New.
27038         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
27039         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
27040         handle_pragma_weak): Update the uses of pending_weaks.
27041
27042 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27043
27044         PR documentation/44016
27045         * doc/standards.texi (Standards): Link to unversioned
27046         cxx0x_status.html page.
27047
27048 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
27049
27050         PR target/43708
27051         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
27052         in addition to TREE_USED, to avoid "set but unused" warnings.
27053
27054 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
27055
27056         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
27057         (is_loop_prefetching_profitable): Do not insert prefetches
27058         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
27059         times the prefetch ahead distance.
27060
27061 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
27062
27063         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
27064         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
27065         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
27066         the unroll_factor.
27067
27068 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
27069
27070         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
27071         a diagnostic info when the insn-to-mem ratio is too small.
27072
27073 2010-05-07  Richard Guenther  <rguenther@suse.de>
27074
27075         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
27076         the linker plugin.
27077         (store_arg): Queue temp_filename for deletion instead of
27078         the whole argument.
27079
27080 2010-05-07  Richard Guenther  <rguenther@suse.de>
27081
27082         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
27083         (run_gcc): Handle LTRANS phase invocation.
27084         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
27085
27086 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
27087
27088         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
27089         this is also meaningful on PARM_DECLs and RESULT_DECLs.
27090
27091 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27092
27093         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
27094
27095 2010-05-07  Richard Guenther  <rguenther@suse.de>
27096
27097         PR tree-optimization/44020
27098         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
27099         code when PRE is not yet initialized.
27100
27101 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27102
27103         * config/mips/dbxmdebug.h: Remove.
27104         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
27105
27106 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
27107
27108         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
27109         with null pointer and also warn about ordered comparison of zero with
27110         pointer if -Wextra.
27111
27112 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
27113
27114         * graphite-blocking.c
27115         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
27116         * graphite-clast-to-gimple.c
27117         (clast_to_gcc_expression): Same.
27118         (precision_for_value): Same.
27119         (precision_for_interval): Same.
27120         (gcc_type_for_interval): Same.
27121         (graphite_create_new_guard): Same.
27122         (compute_bounds_for_level): Same.
27123         (graphite_create_new_loop_guard): Same.
27124         * graphite-interchange.c
27125         (build_linearized_memory_access): Same.
27126         (pdr_stride_in_loop): Same.
27127         (memory_strides_in_loop_1): Same.
27128         (memory_strides_in_loop): Same.
27129         (extend_scattering): Same.
27130         (psct_scattering_dim_for_loop_depth): Same.
27131         (pbb_number_of_iterations): Same.
27132         * graphite-poly.h
27133         (debug_iteration_domains): Same.
27134         * graphite-ppl.c
27135         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
27136         (ppl_set_inhomogeneous_gmp): Same.
27137         (ppl_strip_loop): Same.
27138         (ppl_lexico_compare_linear_expressions): Same.
27139         (ppl_read_polyhedron_matrix): Same.
27140         (ppl_max_for_le_pointset): Same.
27141         * graphite-ppl.h
27142         (ppl_read_polyhedron_matrix): Same.
27143         (tree_int_to_gmp): Same.
27144         (gmp_cst_to_tree): Same.
27145         (ppl_set_inhomogeneous): Same.
27146         (ppl_set_inhomogeneous_tree): Same.
27147         (ppl_set_coef): Same.
27148         (ppl_set_coef_tree): Same.
27149         * graphite-sese-to-poly.c
27150         (build_pbb_scattering_polyhedrons): Same.
27151         (build_scop_scattering): Same.
27152         (scan_tree_for_params_right_scev): Same.
27153         (scan_tree_for_params): Same.
27154         (find_params_in_bb): Same.
27155         (find_scop_parameters): Same.
27156         (add_upper_bounds_from_estimated_nit): Same.
27157         (build_loop_iteration_domains): Same.
27158         (add_condition_to_domain): Same.
27159         (pdr_add_memory_accesses): Same.
27160
27161 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
27162
27163         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
27164         CLooG's value_* macros to their respective mpz_* counterparts.
27165         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
27166         (graphite_create_new_loop_guard): Same.
27167         * graphite-interchange.c (build_linearized_memory_access): Same.
27168         (pdr_stride_in_loop): Same.
27169         (memory_strides_in_loop_1): Same.
27170         (1st_interchange_profitable_p): Same.
27171         * graphite-poly.c (extend_scattering): Same.
27172         (psct_scattering_dim_for_loop_depth): Same.
27173         (pbb_number_of_iterations): Same.
27174         (pbb_number_of_iterations_at_time): Same.
27175         * graphite-poly.h (new_1st_loop): Same.
27176         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
27177         (oppose_constraint): Same.
27178         (insert_constraint_into_matrix): Same.
27179         (ppl_set_inhomogeneous_gmp): Same.
27180         (ppl_set_coef_gmp): Same.
27181         (ppl_strip_loop): Same.
27182         (ppl_lexico_compare_linear_expressions): Same.
27183         (ppl_max_for_le_pointset): Same.
27184         (ppl_min_for_le_pointset): Same.
27185         (ppl_build_realtion): Same.
27186         * graphite-ppl.h (gmp_cst_to_tree): Same.
27187         (ppl_set_inhomogeneous): Same.
27188         (ppl_set_inhomogeneous_tree): Same.
27189         (ppl_set_coef): Same.
27190         (ppl_set_coef_tree): Same.
27191         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
27192         (build_scop_scattering): Same.
27193         (add_value_to_dim): Same.
27194         (scan_tree_for_params_right_scev): Same.
27195         (scan_tree_for_params_int): Same.
27196         (scan_tree_for_params): Same.
27197         (find_params_in_bb): Same.
27198         (find_scop_parameters): Same.
27199         (add_upper_bounds_from_estimated_nit): Same.
27200         (build_loop_iteration_domains): Same.
27201         (create_linear_expr_from_tree): Same.
27202         (add_condition_to_domain): Same.
27203         (pdr_add_memory_accesses): Same.
27204
27205 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
27206             Jason Merrill  <jason@redhat.com>
27207
27208         * c-common.c (c_common_reswords): Add nullptr.
27209         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
27210         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
27211         (gen_type_die_with_usage): Likewise.
27212         * dbxout.c (dbxout_type): Likewise.
27213         * sdbout.c (plain_type_1): Likewise.
27214
27215 2010-05-06  Jason Merrill  <jason@redhat.com>
27216
27217         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
27218         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
27219         ret appropriately.
27220         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
27221
27222         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
27223         stripping WITH_SIZE_EXPR.
27224         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
27225         change.
27226
27227 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27228
27229         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
27230         list of obsolete configurations.
27231         Disabled check for obsolete configurations.
27232         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
27233         Removed support for previous versions.
27234         * config/mips/iris.h: Removed.
27235         * config/mips/iris5.h: Removed.
27236         * config/mips/iris6.h: Merged old iris.h contents.
27237         (TARGET_IRIX): Removed.
27238         (DRIVER_SELF_SPECS): Removed mabi=32.
27239         (IDENT_ASM_OP): Removed undef.
27240         (STARTFILE_SPEC): Removed mabi=32.
27241         (ENDFILE_SPEC): Likewise.
27242         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
27243         (MACHINE_TYPE): Update for IRIX 6.5.
27244         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
27245         TARGET_IRIX by TARGET_IRIX6.
27246         (mips_file_start): Likewise.
27247         (mips_output_external): Remove IRIX 5/6 O32 support.
27248         (mips_output_function_prologue): Likewise.
27249         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
27250         TARGET_IRIX6.
27251         (TARGET_CPU_CPP_BUILTINS): Likewise.
27252         (TARGET_IRIX): Removed.
27253         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
27254         (MULTILIB_DIRNAMES): Removed 32.
27255         (MULTILIB_OSDIRNAMES): Removed ../lib.
27256         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
27257         (Specific, mips-sgi-irix5): Document removal.
27258         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
27259         Remove references to older IRIX 6 releases and the O32 ABI.
27260
27261 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
27262
27263         PR bootstrap/43994
27264         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
27265         instead of DF_REF_REAL_REG.
27266
27267 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
27268
27269         PR target/43888
27270         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
27271         handling to still return true for x64 targets.
27272
27273 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
27274
27275         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
27276
27277 2010-05-06  Jan Hubicka  <jh@suse.cz>
27278
27279         PR tree-optimization/43791
27280         * ipa-inline.c (update_caller_keys): Remove bogus
27281         disregard_inline_limits check.
27282
27283 2010-05-06  Michael Matz  <matz@suse.de>
27284
27285         PR tree-optimization/43984
27286         * tree-ssa-pre.c (inserted_phi_names): Remove.
27287         (inserted_exprs): Change to bitmap.
27288         (create_expression_by_pieces): Set bits, don't append to vector.
27289         (insert_into_preds_of_block): Don't handle inserted_phi_names.
27290         (eliminate): Don't look at inserted_phi_names, remove deleted
27291         insns from inserted_exprs.
27292         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
27293         (init_pre, fini_pre): Allocate and free bitmaps.
27294         (execute_pre): Insert insns on edges before elimination.
27295
27296 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
27297
27298         * tree.c (initializer_zerop): Handle STRING_CST.
27299
27300 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27301
27302         PR 40989
27303         * doc/invoke.texi (Wimplicit): Document as C only.
27304         * opts.c (common_handle_option): Add argument kind.
27305         (handle_option): Rename as read_cmdline_option. Factor out code to...
27306         (handle_option): ... here. New.
27307         (handle_options): Rename as read_cmdline_options.
27308         (decode_options): Update call.
27309         (set_option): Use option index instead of option pointer. Classify
27310         diagnostics correctly.
27311         (enable_warning_as_error): Call handle_option.
27312         * opts.h (set_option): Update declaration.
27313         (handle_option): Declare.
27314         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
27315         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
27316         * c-opts.c (set_Wimplicit): Delete.
27317         (c_family_lang_mask): New static constant.
27318         (c_common_handle_option): Add argument kind. Use handle_option
27319         instead of set_Wimplicit.
27320         (c_common_post_options): warn_implicit and warn_implicit_int
27321         are disabled by default.
27322         * c-common.c (warn_implicit): Do not define here.
27323         * c-common.h (warn_implicit): Do not declare here.
27324         (c_common_handle_option): Update declaration.
27325         * lto-opts.c (lto_reissue_options): Update call to set_option.
27326
27327 2010-05-06  Richard Guenther  <rguenther@suse.de>
27328
27329         PR tree-optimization/43571
27330         * domwalk.c (walk_dominator_tree): Walk the dominator
27331         sons in more optimal order.
27332
27333 2010-05-06  Richard Guenther  <rguenther@suse.de>
27334
27335         PR tree-optimization/43934
27336         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
27337         (stmt_cost): Likewise.
27338         (extract_true_false_args_from_phi): New helper.
27339         (determine_max_movement): For PHI nodes verify we can hoist them
27340         and compute their cost.
27341         (determine_invariantness_stmt): Handle PHI nodes.
27342         (move_computations_stmt): Likewise.  Hoist PHI nodes in
27343         if-converted form using COND_EXPRs.
27344         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
27345         (tree_ssa_lim): Likewise.
27346         * tree-flow.h (tree_ssa_lim): Adjust prototype.
27347         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
27348
27349 2010-05-06  Richard Guenther  <rguenther@suse.de>
27350
27351         PR tree-optimization/43987
27352         * tree-ssa-structalias.c (could_have_pointers): For possibly
27353         address-taken variables force pointers to be recorded.
27354         (create_variable_info_for_1): Likewise.
27355         (push_fields_onto_fieldstack): Pass in wheter all fields
27356         must have pointers.
27357         (find_func_aliases): Query types instead of vars whether
27358         they contain pointers where appropriate.
27359
27360 2010-05-06  Jan Hubicka  <jh@suse.cz>
27361
27362         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
27363         (record_reference, mark_address, mark_load, mark_store): Record
27364         references.
27365         (record_references_in_initializer): Update call of record_references.
27366         (rebuild_cgraph_edges): Remove all references before rebuiding.
27367         * cgraph.c (cgraph_create_node): Clear ref list.
27368         (cgraph_remove_node): Remove references.
27369         (dump_cgraph_node): Dump references.
27370         (cgraph_clone_node): Clone references.
27371         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
27372         (struct cgraph_node, varpool_node): Add ref_lst.
27373         * ipa-ref.c: New file.
27374         * ipa-ref.h: New file.
27375         * ipa-ref-inline.h: New file.
27376         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
27377         (referenced_from_other_partition_p): New function.
27378         (lto_output_varpool_node): Take set arugment; call
27379         referenced_from_other_partition.
27380         (lto_output_ref): New.
27381         (add_references): New.
27382         (output_refs): New.
27383         (output_cgraph): Compute boundary based on references; output refs.
27384         (output_varpool): Accept cgraph_node_set argument.
27385         (input_ref): New.
27386         (input_refs): New.
27387         (input_cgraph): Call input_refs.
27388         * lto-section-in.c (lto_section_name): Add refs.
27389         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
27390         (ipa-ref.o): New file.
27391         * varpool.c (varpool_node): Clear ipa ref list.
27392         (varpool_remove_node): Remove references.
27393         (dump_varpool_node): Dump references.
27394         (varpool_assemble_decl): Only compile finalized ones.
27395         (varpool_extra_name_alias): Initialize ref list.
27396         * lto-streamer.c (lto-get_section_name): Add .refs section.
27397         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
27398         (referenced_from_other_partition_p): Declared.
27399
27400 2010-05-06  Ira Rosen  <irar@il.ibm.com>
27401
27402         PR tree-optimization/43901
27403         * tree-vect-stmts.c (vectorizable_call): Assert that vector
27404         type is not NULL if it's transformation phase, and return
27405         FALSE if it's analysis.
27406         (vectorizable_conversion, vectorizable_operation,
27407         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
27408
27409 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
27410
27411         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
27412         Delete.
27413         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
27414         New define.
27415         * config/mips/mips-protos.h
27416         (mips_small_register_classes_for_mode_p): Delete prototype.
27417
27418 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
27419
27420         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
27421         * config/arm/arm.c (multiple_operation_profitable_p,
27422         compute_offset_order): New static functions.
27423         (load_multiple_sequence, store_multiple_sequence): Use them.
27424         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
27425         memory offsets, not register numbers.
27426         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
27427
27428 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27429
27430         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
27431         (get_pending_sizes, put_pending_size, put_pending_sizes):
27432         Update the uses of pending_sizes.
27433         * c-decl.c (store_parm_decls): Likewise.
27434         * c-tree.h (struct c_arg_info): Likewise.
27435         * tree.h: Update the prototype for get_pending_sizes and
27436         put_pending_sizes.
27437
27438 2010-05-05  Jason Merrill  <jason@redhat.com>
27439
27440         PR debug/43370
27441         * c-common.c (handle_aligned_attribute): Respect
27442         ATTR_FLAG_TYPE_IN_PLACE.
27443
27444         PR testsuite/43758
27445         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
27446         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
27447         (TARGET_INITIALIZER): Use it.
27448         * c-common.c (attribute_takes_identifier_p): Call it.
27449         * c-common.h: Update prototype.
27450         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
27451         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
27452
27453 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
27454
27455         PR debug/43950
27456         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
27457         DW_ID_down_case for Fortran compilation units.
27458
27459 2010-05-05  Jan Hubicka  <jh@suse.cz>
27460
27461         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
27462         handle aliases.
27463
27464 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
27465
27466         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
27467         a variable-sized RESULT_DECL.
27468
27469 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
27470
27471         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
27472
27473 2010-05-05  Jason Merrill  <jason@redhat.com>
27474
27475         PR c++/43787
27476         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
27477         returns GS_OK.
27478         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
27479
27480 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
27481             Jakub Jelinek  <jakub@redhat.com>
27482
27483         PR debug/43478
27484         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
27485         (dead_debug_init, dead_debug_finish): New functions.
27486         (dead_debug_add, dead_debug_insert_before): Likewise.
27487         (df_note_bb_compute): Initialize a dead_debug object, add dead
27488         debug uses to it, insert debug bind insns before death insns,
27489         reset debug insns that refer to pending uses at the end.
27490         * rtl.h (make_debug_expr_from_rtl): New prototype.
27491         * varasm.c (make_debug_expr_from_rtl): New function.
27492
27493 2010-05-05  Jan Hubicka  <jh@suse.cz>
27494
27495         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
27496         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
27497         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
27498         lto_varpool_encoder_deref, lto_varpool_encoder_size,
27499         lto_varpool_encoder_encode_initializer_p,
27500         lto_set_varpool_encoder_encode_initializer): New functions.
27501         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
27502         call output_varpool.
27503         (input_varpool_node): Do not always set analyzed.
27504         (input_cgraph_1): Return vector of cgraph nodes.
27505         (input_varpool_1): Return vector of varpools.
27506         (input_cgraph): Free the vectors.
27507         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
27508         output only initializers needed.
27509         (lto_output): Only call output_cgraph.
27510         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
27511         * lto-section-out.c (lto_new_out_decl_state): Initialize
27512         state->varpool_node_encoder.
27513         * lto-streamer.h (lto_varpool_encoder_d): New.
27514         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
27515         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
27516         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
27517         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
27518         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
27519         Declare.
27520         (output_varpool, input_varpool): Remove declarations.
27521
27522 2010-05-05  Jan Hubicka  <jh@suse.cz>
27523
27524         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
27525         with body can prevail.
27526
27527 2010-05-05  Jan Hubicka  <jh@suse.cz>
27528
27529         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
27530         size.
27531
27532 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27533
27534         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
27535
27536         * gengtype.h (erro_at_line): Constify pos argument.
27537
27538         * gengtype.c: Include hashtab.h.
27539         (enum gc_used): Document GC_MAYBE_POINTED_TO.
27540         (error_at_line): Constify pos argument.
27541         (do_typedef): Initialize p->opt field.
27542         (get_file_gtfilename): Fix comment typo.
27543         (struct walk_type_data): Constify line field.
27544         (get_output_file_for_structure): New function.
27545         (write_local_func_for_structure): Constify orig_s argument.
27546         Use get_output_file_for_structure.
27547         (write_func_for_structure): Use get_output_file_for_structure.
27548         (INDENT): New define.
27549         (dump_pair, dump_type, dump_type_list, dump_typekind)
27550         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
27551         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
27552         functions.
27553         (seen_types): New variable.
27554         (main): New variable do_dump.  Process "-d" command line option.
27555         Call dump_everything if dump requested.
27556
27557 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
27558
27559         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
27560         in a temporary instead of invoking the macro multiple times.
27561         (track_expr_p): Likewise.
27562
27563 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
27564
27565         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
27566         per new semantics.
27567         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
27568         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
27569         conditions for printing notes.
27570         * common.opt (-Wcoverage-mismatch): Allow negative, default to
27571         true, update documentation.
27572         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
27573
27574 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
27575
27576         PR c/43981
27577         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
27578         on dimen.
27579
27580 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
27581
27582         PR target/43799
27583         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
27584         (*sse_prologue_save_insn1): Likewise.
27585         (SSE prologue save splitter): Likewise.
27586
27587 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
27588
27589         * tree.c (free_lang_data_in_one_sizepos): New inline function.
27590         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
27591         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
27592         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
27593         all decls.  Call it on DECL_FIELD_OFFSET of fields.
27594         (find_decls_types_r): Follow DECL_VALUE_EXPR.
27595         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
27596
27597 2010-05-04  Martin Jambor  <mjambor@suse.cz>
27598
27599         * tree-sra.c (build_access_from_expr_1): The first parameter type
27600         changed to simple tree.
27601         (build_access_from_expr): Likewise, gsi parameter was eliminated.
27602         (scan_assign_result): Renamed to assignment_mod_result, enum elements
27603         renamed as well.
27604         (build_accesses_from_assign): Removed all parameters except for a
27605         simple gimple statement.  Now returns a simple bool.
27606         (scan_function): All non-analysis parts moved to separate functions
27607         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
27608         parameters and updated both callers.
27609         (sra_modify_expr): Removed parameter data.
27610         (sra_modify_function_body): New function.
27611         (perform_intra_sra): Call sra_modify_function_body to modify the
27612         function body.
27613         (replace_removed_params_ssa_names): Parameter data changed into
27614         adjustments vector.
27615         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
27616         changed the parameter dont_convert to convert with the opposite
27617         meaning.
27618         (sra_ipa_modify_assign): Parameter data changed into adjustments
27619         vector, return value changed to bool.
27620         (ipa_sra_modify_function_body): New function.
27621         (sra_ipa_reset_debug_stmts): Updated a comment.
27622         (modify_function): Use ipa_sra_modify_function_body to modify function
27623         body.
27624
27625 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
27626
27627         PR middle-end/43671
27628         * alias.c (true_dependence): Handle the same VALUE in x and mem.
27629         (canon_true_dependence): Likewise.
27630         (write_dependence_p): Likewise.
27631
27632 2010-05-04  Jan Hubicka  <jh@suse.cz>
27633
27634         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
27635         * cgraphbuild.c: Include ipa-utils.h
27636         (record_reference_ctx): New struct.
27637         (record_reference): Simplify to work on initializers; not statements.
27638         (mark_address, mark_load, mark_store): New.
27639         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
27640         walk PHI nodes too.
27641         (record_references_in_initializer): Update use of record_reference.
27642         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
27643         walk PHI nodes too.
27644
27645 2010-05-04  Jan Hubicka  <jh@suse.cz>
27646
27647         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
27648         node will be removed anyway.
27649         (lto_varpool_replace_node): Allow also unanalyzed nodes;
27650         relink aliases of node into prevailing node.
27651         * varpool.c (varpool_remove_node): Remove aliases properly;
27652         when removing node, remove all its aliases too; remove DECL_INITIAL
27653         of removed node; ggc_free the varpool node.
27654
27655 2010-05-04  Richard Guenther  <rguenther@suse.de>
27656
27657         PR tree-optimization/43879
27658         * tree-ssa-structalias.c (alias_get_name): Use
27659         DECL_ASSEMBLER_NAME if available.
27660         (create_function_info_for): Return the varinfo node.
27661         (ipa_pta_execute): Associate same-body aliases and extra names
27662         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
27663
27664 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
27665
27666         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
27667
27668 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
27669
27670         PR bootstrap/43964
27671         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
27672         only if HONOR_REG_ALLOC_ORDER is not defined.
27673
27674 2010-05-04  Richard Guenther  <rguenther@suse.de>
27675
27676         PR tree-optimization/43949
27677         * tree-vrp.c (extract_range_from_binary_expr): Only handle
27678         TRUNC_MOD_EXPR.
27679
27680 2010-04-26  Jason Merrill  <jason@redhat.com>
27681
27682         * c.opt (-fstrict-enums): New.
27683         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
27684
27685 2010-05-03  David Ung  <davidu@mips.com>
27686             James E. Wilson  <wilson@codesourcery.com>
27687
27688         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
27689         emit the trap instruction before the divide for TUNE_74K.
27690
27691 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
27692
27693         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
27694         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
27695         based on the above, for new target hook.
27696
27697         * hooks.c (hook_bool_mode_true): New generic hook.
27698         * hooks.h (hook_bool_mode_true): Add prototype.
27699
27700         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
27701         target hook.
27702         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
27703         target hook, set to hook_bool_mode_false.
27704         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
27705         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
27706         with targetm.small_register_classes_for_mode_p.
27707         (find_reusable_reload): Likewise.
27708         (combine_reloads): Likewise.
27709         * reload1.c (reload_as_needed): Likewise.
27710         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
27711         * ifcvt.c (noce_process_if_block, check_cond_move_block,
27712         dead_or_predicable): Likewise.
27713         * regmove.c (optimize_reg_copy_1): Likewise.
27714         * calls.c (prepare_call_address): Likewise.
27715         (precompute_register_parameters): Likewise.
27716
27717         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
27718         hook definition.
27719         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
27720         implementation of the hook that considers all register classes
27721         small except for SH64.
27722         (sh_override_options): Use the new hook.
27723         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
27724         Add prototype.
27725
27726         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
27727         hook definition.
27728         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
27729         implementation of the hook that considers all register classes
27730         small for THUMB1.
27731         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
27732         Add prototype.
27733
27734         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
27735         hook definition.
27736         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
27737         implementation of the hook that considers all register classes
27738         small for MIPS16.
27739         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
27740         Add prototype.
27741
27742         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
27743         hook definition.
27744         * config/m32c/m32c.h: Likewise.
27745         * config/pdp11/pdp11.h: Likewise.
27746         * config/avr/avr.h: Likewise.
27747         * config/xtensa/xtensa.h: Likewise.
27748         * config/m68hc11/m68hc11.h: Likewise.
27749         * config/mn10300/mn10300.h: Likewise.
27750         * config/mcore/mcore.h: Likewise.
27751         * config/h8300/h8300.h: Likewise.
27752         * config/bfin/bfin.h: Likewise.
27753
27754         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
27755         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
27756
27757 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
27758
27759         * double-int.h (tree_to_double_int): Remove macro.
27760         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
27761         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
27762         (tree_to_double_int): New function.
27763         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
27764         Move ...
27765         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
27766
27767 2010-05-03  Richard Guenther  <rguenther@suse.de>
27768
27769         PR tree-optimization/43971
27770         * tree-ssa-structalias.c (get_constraint_for_1): Fix
27771         constraints in the !flag_delete_null_pointer_checks case.
27772
27773 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
27774
27775         PR debug/43972
27776         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
27777         result mode matches original rtl mode.
27778
27779 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
27780
27781         PR target/43888
27782         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
27783
27784 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27785
27786         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
27787         when processing flag options.
27788
27789 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27790
27791         * gcov-iov.c (main): Change format string placeholder
27792         from %#08x to 0x%08x.
27793         * genchecksum.c (dosum): Change format string placeholder
27794         from %#02x to 0x%02x.
27795
27796 2010-05-02  Richard Guenther  <rguenther@suse.de>
27797
27798         PR tree-optimization/43879
27799         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
27800
27801 2010-05-02  Bruno Haible  <bruno@clisp.org>
27802
27803         * doc/extend.texi (Function Attributes): Fix a typo.
27804
27805 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27806
27807         Revert:
27808         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
27809         placeholder from 0x%x to %#x.
27810         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
27811         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
27812         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27813         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27814         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27815         * config/i386/i386.c (ix86_target_string): Ditto.
27816         * config/i386/i386.c (output_pic_addr_const): Ditto.
27817         (print_operand): Ditto.
27818
27819 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27820
27821         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
27822         placeholder from 0x%x to %#x.
27823         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
27824         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
27825         (ASM_OUTPUT_DEBUG_DATA): Ditto.
27826         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
27827         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
27828         * optc-gen.awk: Ditto.
27829         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
27830         (HOST_WIDE_INT_PRINT_HEX): Ditto.
27831         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
27832         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
27833
27834 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
27835
27836         * target.h (struct calls): Add function_value_regno_p field.
27837         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
27838         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
27839         * targhooks.c (default_function_value_regno_p): New function.
27840         * targhooks.h (default_function_value_regno_p): Declare function.
27841         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
27842         * builtins.c. (apply_result_size): (Ditto.).
27843         * combine.c. (likely_spilled_retval_p): (Ditto.).
27844         * mode-switching.c. Include 'target.h'.
27845         (create_pre_exit): Use function_value_regno_p hook.
27846         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
27847         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
27848         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
27849
27850         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
27851         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
27852         (ix86_function_value_regno_p): Declare as static, change argument
27853         type to const unsigned int.
27854         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
27855
27856 2010-05-01  Richard Guenther  <rguenther@suse.de>
27857
27858         PR tree-optimization/43949
27859         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
27860         types.
27861         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
27862
27863 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
27864
27865         * rtl.h (CONST_DOUBLE_P): Define.
27866         (rtx_to_double_int): Declare.
27867         * emit-rtl.c (rtx_to_double_int): New function.
27868         * dwarf2out.c (insert_double): New function.
27869         (loc_descriptor, add_const_value_attribute): Clean up, use
27870         rtx_to_double_int and insert_double functions.
27871
27872 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
27873
27874         * doc/extend.texi (Inline): Add missing return keyword to examples.
27875         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
27876         "command-line".
27877
27878 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
27879
27880         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
27881         the variable part of the offset as well.  Use highest_pow2_factor for
27882         all alignment checks.
27883
27884 2010-04-30  Richard Guenther  <rguenther@suse.de>
27885
27886         PR tree-optimization/43879
27887         * tree-ssa-structalias.c (type_could_have_pointers): Functions
27888         can have pointers.
27889
27890 2010-04-30  Jan Hubicka  <jh@suse.cz>
27891
27892         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
27893         varpool.
27894         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
27895
27896 2010-04-30  Jan Hubicka  <jh@suse.cz>
27897
27898         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
27899         New.
27900         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
27901         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
27902         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
27903         cgraph_node_set_needs_ltrans_p): Remove.
27904
27905 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
27906
27907         * sdbout.c: Include vec.h, do not include varray.h.
27908         (deferred_global_decls, sdbout_global_decl,
27909         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
27910         * toplev.c: Do not include varray.h.
27911         (dump_memory_report): Do not dump VARRAY statistics.
27912         * gengtype.c (open_base_file): Ignore varray.h.
27913         * Makefile.in: Update for abovementioned changes.
27914         Remove all traces of varray.c and varray.h.
27915         * varray.c: Remove file.
27916         * varray.h: Remove file.
27917
27918 2010-04-30  Jan Hubicka  <jh@suse.cz>
27919
27920         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
27921         references.
27922
27923 2010-04-30  Jan Hubicka  <jh@suse.cz>
27924
27925         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
27926         needed.
27927
27928 2010-04-30  Richard Guenther  <rguenther@suse.de>
27929
27930         * tree-ssa-structalias.c (get_constraint_for_1): Generate
27931         constraints for CONSTRUCTOR.
27932
27933 2010-04-30  Richard Guenther  <rguenther@suse.de>
27934
27935         PR lto/43946
27936         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
27937         first after all lowering passes.
27938
27939 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
27940
27941         * toplev.c: Include varray.h for statistics dumping.
27942         * tree.h: Do not declare varray_head_tag.
27943         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
27944         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
27945         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
27946         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
27947         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
27948         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
27949         c-common.c, c-common.h, reg-stack.c, basic-block.h,
27950         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
27951         include varray.h.
27952         * Makefile.in: Update for abovementioned changes.
27953
27954 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
27955
27956         PR debug/43942
27957         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
27958
27959 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27960
27961         * config/picochip/picochip.c (picochip_legitimize_address): Define.
27962         Use this function to do machine-specific conversion.
27963         (picochip_legitimize_reload_address): Likewise.
27964         (picochip_legitimate_address_p): Check valid base register only if
27965         strict.
27966         (picochip_check_conditional_copy): Check for modw only if opnd is
27967         register.
27968         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
27969         to call the function in c.
27970         * config/picochip/picochip-protos.h
27971         (picochip_legitimize_reload_address): Define.
27972         * config/picochip/picochip.md (supported_compare1): Define.
27973
27974 2010-04-30  Jan Hubicka  <jh@suse.cz>
27975
27976         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
27977         (cgraph_global_info): Remove inlined.
27978         (LTO_cgraph_tag_names): Remove.
27979         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
27980         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
27981         simplify cgraph tags and document.
27982         (lto_output_node): Use only LTO_cgraph_unavail_node and
27983         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
27984         for_functions_valid, global info, process and output flags.
27985         (input_overwrite_node): Initialize estimated stack size and
27986         estimated growth.  Do not read flags we no longer store.
27987         (input_node): Likewise do not read info no longer stored.
27988         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
27989         flag.
27990
27991 2010-04-30  Richard Guenther  <rguenther@suse.de>
27992
27993         PR tree-optimization/43879
27994         * tree-ssa-structalias.c (get_constraint_for_1): Properly
27995         handle non-zero initializers.
27996
27997 2010-04-30  Richard Guenther  <rguenther@suse.de>
27998
27999         * builtins.c (fold_builtin_1): Delete free (0).
28000
28001 2010-04-29  Jan Hubicka  <jh@suse.cz>
28002
28003         * gengtype.c (open_base_files): Add lto-streamer.h
28004         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
28005         (pass_ipa_cp): GGC collect.
28006         * toplev. (compile_file): Do not output symbols.
28007         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
28008         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
28009         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
28010         * lto-section-in.c: Include ggc.h
28011         (lto_new_in_decl_state): Alloc in GGC.
28012         (lto_delete_in_decl_state): Likewise.
28013         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
28014         Collect.
28015
28016 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
28017
28018         PR target/42895
28019         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
28020         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
28021         (HONOR_REG_ALLOC_ORDER): Describe new macro.
28022         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
28023         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
28024         account only if HONOR_REG_ALLOC_ORDER is not defined.
28025         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
28026         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
28027
28028 2010-04-29  Jon Grant  <04@jguk.org>
28029
28030         * collect2.c (vflag): Change type from int to bool.
28031         (debug): Likewise.
28032         (helpflag): New global bool.
28033         (main): Set vflag and debug with boolean, not integer truth values.
28034         Accept new "--help" option and output usage text if found.
28035         * collect2.h (vflag): Update prototype.
28036         (debug): Likewise.
28037
28038 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
28039
28040         PR bootstrap/43936
28041         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
28042
28043 2010-04-29  Richard Guenther  <rguenther@suse.de>
28044
28045         PR bootstrap/43935
28046         * plugin.h (invoke_plugin_callbacks): Annotate arguments
28047         with ATTRIBUTE_UNUSED.
28048
28049 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
28050
28051         PR target/43921
28052         * config/i386/i386.c (get_some_local_dynamic_name): Replace
28053         INSN_P with NONDEBUG_INSN_P.
28054         (distance_non_agu_define): Likewise.
28055         (distance_agu_use): Likewise.
28056
28057 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
28058
28059         From Dominique d'Humieres  <dominiq@lps.ens.fr>
28060         PR bootstrap/43858
28061         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
28062         test_set.
28063
28064 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
28065
28066         * plugin.h (invoke_plugin_callbacks): New inline function.
28067         * plugin.c (flag_plugin_added): New global flag.
28068         (add_new_plugin): Initialize above flag.
28069         (invoke_plugin_callbacks): Rename to ...
28070         (invoke_plugin_callbacks_full): ... this.
28071
28072 2010-04-28  Jan Hubicka  <jh@suse.cz>
28073
28074         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
28075         (lto_varpool_replace_node): New.
28076         (lto_symtab_resolve_symbols): Resolve varpool nodes.
28077         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
28078         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
28079         * cgraph.h (varpool_node_ptr): New type.
28080         (varpool_node_ptr): New vector.
28081         (varpool_node_set_def): New structure.
28082         (varpool_node_set): New type.
28083         (varpool_node_set): New vector.
28084         (varpool_node_set_element_def): New structure.
28085         (varpool_node_set_element, const_varpool_node_set_element): New types.
28086         (varpool_node_set_iterator): New type.
28087         (varpool_node): Add prev pointers, add used_from_other_partition,
28088         in_other_partition.
28089         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
28090         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
28091         varpool_get_node, varpool_remove_node): Declare.
28092         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
28093         varpool_node_set_size): New inlines.
28094         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
28095         * tree-pass.h (varpool_node_set_def): Forward declare.
28096         (ipa_opt_pass_d): Summary writting takes vnode sets too.
28097         (ipa_write_optimization_summaries): Update prototype.
28098         * ipa-cp.c (ipcp_write_summary): Update.
28099         * ipa-reference.c (ipa_reference_write_summary): Update.
28100         * lto-cgraph.c (lto_output_varpool_node): New static function.
28101         (output_varpool): New function.
28102         (input_varpool_node): New static function.
28103         (input_varpool_1): New function.
28104         (input_cgraph): Input varpool.
28105         * ipa-pure-const.c (pure_const_write_summary): Update.
28106         * lto-streamer-out.c (lto_output): Update, output varpool too.
28107         (write_global_stream): Kill WPA hack.
28108         (produce_asm_for_decls): Update.
28109         (output_alias_pair_p): Handle variables.
28110         (output_unreferenced_globals): Output only needed partition of varpool.
28111         * ipa-inline.c (inline_write_summary): Update.
28112         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
28113         cgraph.
28114         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
28115         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
28116         varpool_node_set_new, varpool_node_set_add,
28117         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
28118         debug_varpool_node_set): New functions.
28119         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
28120         (execute_one_pass): Process new decls too.
28121         (ipa_write_summaries_2): Pass around vsets.
28122         (ipa_write_summaries_1): Likewise.
28123         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
28124         to add.
28125         (ipa_write_optimization_summaries_1): Pass around vsets.
28126         (ipa_write_optimization_summaries): Likewise.
28127         * varpool.c (varpool_get_node): New.
28128         (varpool_node): Update doubly linked lists.
28129         (varpool_remove_node): New.
28130         (dump_varpool_node): More dumping.
28131         (varpool_enqueue_needed_node): Update doubly linked lists.
28132         (decide_is_variable_needed): Kill ltrans hack.
28133         (varpool_finalize_decl): Kill lto hack.
28134         (varpool_assemble_decl): Skip decls in other partitions.
28135         (varpool_assemble_pending_decls): Update doubly linkes lists.
28136         (varpool_empty_needed_queue): Likewise.
28137         (varpool_extra_name_alias): Likewise.
28138         * lto-streamer.c (lto_get_section_name): Add vars section.
28139         * lto-streamer.h (lto_section_type): Update.
28140         (output_varpool, input_varpool): Declare.
28141
28142 2010-04-28  Mike Stump  <mikestump@comcast.net>
28143
28144         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
28145
28146 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28147
28148         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
28149         record or union type with RECORD_OR_UNION_TYPE_P predicate.
28150         (lto_input_ts_type_tree_pointers): Likewise.
28151         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
28152         (lto_output_ts_type_tree_pointers): Likewise.
28153
28154 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28155
28156         Uniquization of constants at the Tree level
28157         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
28158         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
28159         bit to the end.
28160         (tree_output_constant_def): Declare.
28161         * gimplify.c (gimplify_init_constructor): When using block copy, first
28162         uniquize the constant constructor on the RHS.
28163         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
28164         DECL_IN_CONSTANT_POOL flag.
28165         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
28166         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
28167         constant pool.
28168         (assemble_variable): Deal with symbols belonging to the tree constant
28169         pool.
28170         (get_constant_section): Add ALIGN parameter and simplify.
28171         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
28172         (assemble_constant_contents): Use the expression of the VAR_DECL.
28173         (output_constant_def_contents): Use the alignment of the VAR_DECL.
28174         (tree_output_constant_def): New global function.
28175         (mark_constant): Use the expression of the VAR_DECL.
28176         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
28177         its expression.
28178         (output_object_block): Likewise and assemble the expression.
28179
28180 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28181
28182         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
28183         hash_tree, eq_tree): New tree hash table.
28184         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
28185         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
28186         lto_orig_address_remove): Reimplement.
28187
28188 2010-04-28  Xinliang David Li  <davidxl@google.com>
28189
28190         PR c/42643
28191         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
28192         (compute_uninit_opnds_pos): New function.
28193         (is_non_loop_exit_postdominating): New function.
28194         (compute_control_dep_chain): New function.
28195         (find_pdom): New function.
28196         (convert_control_dep_chain_into_preds): New function.
28197         (find_predicates): New function.
28198         (find_control_equiv_block): New function.
28199         (collect_phi_def_edges): New function.
28200         (find_def_preds): New function.
28201         (find_dom): New function.
28202         (dump_predicates): New function.
28203         (get_cmp_code): New function.
28204         (is_value_included_in): New function.
28205         (find_matching_predicate_in_rest_chains): New function.
28206         (use_pred_not_overlap_with_undef_path_pred): New function.
28207         (is_use_properly_guarded): New function.
28208         (normalize_cond_1): New function.
28209         (is_and_or_or): New function.
28210         (normalize_cond): New function.
28211         (is_gcond_subset_of): New function.
28212         (is_subset_of_any): New function.
28213         (is_or_set_subset_of): New function.
28214         (is_and_set_subset_of): New function.
28215         (is_norm_cond_subset_of): New function.
28216         (is_pred_expr_subset_of): New function.
28217         (is_pred_chain_subset_of): New function.
28218         (is_included_in): New function.
28219         (is_superset_of): New function.
28220         (find_uninit_use): New function.
28221         (warn_uninitialized_phi): New function.
28222         (compute_possibly_undefined_names): New function.
28223         (ssa_undefined_value_p): New function.
28224         (execute_late_warn_uninitialized): New function.
28225         * tree-ssa.c (ssa_undefined_value_p): Removed.
28226         (warn_uninit): Changed to extern.
28227         (warn_uninitialized_phi): Removed.
28228         (warn_uninitialized_vars): Changed to extern.
28229         (execute_late_warn_uninitialized): Removed
28230         * tree-flow.h: Add new prototypes.
28231         * timevar.def: Add new time variable.
28232         * Makefile.in: Add new build file.
28233
28234 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
28235
28236         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
28237         type if available.
28238
28239 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28240
28241         PR target/22224
28242         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
28243
28244 2010-04-28  Martin Jambor  <mjambor@suse.cz>
28245
28246         * cgraph.h (struct cgraph_node): New field indirect_calls.
28247         (struct cgraph_indirect_call_info): New type.
28248         (struct cgraph_edge): Removed field indirect_call. New fields
28249         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
28250         (cgraph_create_indirect_edge): Declare.
28251         (cgraph_make_edge_direct): Likewise.
28252         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
28253         * ipa-prop.h (struct ipa_param_call_note): Removed.
28254         (struct ipa_node_params): Removed field param_calls.
28255         (ipa_create_all_structures_for_iinln): Declare.
28256         * cgraph.c: Described indirect edges and uids in initial comment.
28257         (cgraph_add_edge_to_call_site_hash): New function.
28258         (cgraph_edge): Search also among the indirect edges, use
28259         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
28260         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
28261         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
28262         site hash.
28263         (initialize_inline_failed): Assign a reason to indirect edges.
28264         (cgraph_create_edge_1): New function.
28265         (cgraph_create_edge): Moved some functionality to
28266         cgraph_create_edge_1.
28267         (cgraph_create_indirect_edge): New function.
28268         (cgraph_edge_remove_callee): Add an assert checking for
28269         non-indirectness.
28270         (cgraph_edge_remove_caller): Special-case indirect edges.
28271         (cgraph_remove_edge): Likewise.
28272         (cgraph_set_edge_callee): New function.
28273         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
28274         (cgraph_make_edge_direct): New function.
28275         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
28276         the declaration of the call statement matches.
28277         (cgraph_node_remove_callees): Special-case indirect edges.
28278         (cgraph_clone_edge): Likewise.
28279         (cgraph_clone_node): Clone also the indirect edges.
28280         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
28281         indirect_call, dump count of indirect_calls edges.
28282         * ipa-prop.c (iinlining_processed_edges): New variable.
28283         (ipa_note_param_call): Create indirect edges instead of
28284         creating notes.  New parameter node.
28285         (ipa_analyze_call_uses): New parameter node, pass it on to
28286         ipa_note_param_call.
28287         (ipa_analyze_stmt_uses): Likewise.
28288         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
28289         (print_edge_addition_message): Work on edges rather than on notes.
28290         (update_call_notes_after_inlining): Likewise, renamed to
28291         update_indirect_edges_after_inlining.
28292         (ipa_create_all_structures_for_iinln): New function.
28293         (ipa_free_node_params_substructures): Do not free notes.
28294         (ipa_edge_duplication_hook): Propagate bits within
28295         iinlining_processed_edges bitmap.
28296         (ipa_node_duplication_hook): Do not duplicate notes.
28297         (free_all_ipa_structures_after_ipa_cp): Renamed to
28298         ipa_free_all_structures_after_ipa_cp.
28299         (free_all_ipa_structures_after_iinln): Renamed to
28300         ipa_free_all_structures_after_iinln.
28301         (ipa_write_param_call_note): Removed.
28302         (ipa_read_param_call_note): Removed.
28303         (ipa_write_indirect_edge_info): New function.
28304         (ipa_read_indirect_edge_info): Likewise.
28305         (ipa_write_node_info): Do not stream notes, do stream information
28306         in indirect edges.
28307         (ipa_read_node_info): Likewise.
28308         (lto_ipa_fixup_call_notes): Removed.
28309         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
28310         * ipa-inline.c (pass_ipa_inline): Likewise.
28311         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
28312         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
28313         * tree-inline.c (copy_bb): Removed an unnecessary double check for
28314         is_gimple_call.
28315         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
28316         edges.
28317         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
28318         (output_cgraph): Stream also indirect edges.
28319         (lto_output_edge): Added capability to stream indirect edges.
28320         (input_edge): Likewise.
28321         (input_cgraph_1): Likewise.
28322         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
28323         of indirect edges.
28324
28325 2010-04-28  Richard Guenther  <rguenther@suse.de>
28326
28327         PR tree-optimization/43879
28328         PR tree-optimization/43909
28329         * tree-ssa-structalias.c (struct variable_info): Add
28330         only_restrict_pointers flag.
28331         (new_var_info): Initialize it.  Increment stats.total_vars here.
28332         (create_function_info_for): Do not increment stats.total_vars here.
28333         (get_function_part_constraint): Fix build with C++.
28334         (insert_into_field_list): Remove.
28335         (push_fields_onto_fieldstack): Properly merge fields.
28336         (create_variable_info_for): Split and simplify.
28337         (create_variable_info_for_1): New piece.
28338         (intra_create_variable_infos): Properly make restrict constraints
28339         from parameters.
28340
28341 2010-04-28  Richard Guenther  <rguenther@suse.de>
28342
28343         PR c++/43880
28344         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
28345
28346 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28347             Jan Hubicka  <hubicka@ucw.cz>
28348
28349         * doc/invoke.texi (-Wsuggest-attribute=const,
28350         -Wsuggest-attribute=pure): Document.
28351         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
28352         (function_always_visible_to_compiler_p,
28353         suggest_attribute, warn_function_pure, warn_function_const):
28354         New functions.
28355         (check_call): Improve debug info.
28356         (analyze_function): Do not check availability.
28357         (add_new_function): Check availability.
28358         (propagate): Output warnings.
28359         (skip_function_for_local_pure_const): New function.
28360         (local_pure_const): Use it; output warnings.
28361         * common.opt (Wsuggest-attribute=const,
28362         Wsuggest-attribute=pure): New.
28363
28364 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
28365
28366         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
28367         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
28368         or DW_CFA_def_cfa_offset{,_sf}.
28369
28370 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28371
28372         * tree.h: Fix truncated long macros.
28373
28374 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
28375
28376         * collect2.c (TARGET_64BIT): Redefine to target's default.
28377         * tlink.c: Likewise.
28378         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
28379         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
28380         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
28381         for underscoring __USER_LABEL_PREFIX__.
28382         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
28383         (SUB_LINK_ENTRY32): New.
28384         (SUB_LINK_ENTRY64): New.
28385         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
28386         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
28387         (SUB_LINK_ENTRY64): New.
28388         (SUB_LINK_ENTRY): New.
28389         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
28390         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
28391         x64 target is choosen.
28392         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
28393         * configure: Regenerated.
28394         * configure.ac (leading-mingw64-underscores): Option added.
28395
28396 2010-04-27  Jan Hubicka  <jh@suse.cz>
28397
28398         * doc/invoke.texi (-fipa-profile): Document.
28399         * opts.c (decode_options): Enable ipa-profile at -O1.
28400         * timevar.def (TV_IPA_PROFILE): Define.
28401         * common.opt (fipa-profile): Add.
28402         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
28403         flag for clones.
28404         (cgraph_propagate_frequency): Handle only local ones.
28405         * tree-pass.h (pass_ipa_profile): Declare.
28406         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
28407         (pass_ipa_profile): Use TV_IPA_PROFILE.
28408         * ipa.c (ipa_profile): New function.
28409         (gate_ipa_profile): Likewise.
28410         (pass_ipa_profile): New global variable.
28411         * passes.c (pass_ipa_profile): New.
28412
28413 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
28414
28415         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
28416
28417 2010-04-27  Martin Jambor  <mjambor@suse.cz>
28418
28419         PR middle-end/43812
28420         * ipa.c (dissolve_same_comdat_group_list): New function.
28421         (function_and_variable_visibility): Call
28422         dissolve_same_comdat_group_list when comdat group contains external or
28423         newly local nodes.
28424         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
28425         lists are circular and that they contain only DECL_ONE_ONLY nodes.
28426
28427 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
28428
28429         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
28430         (const_hash_1) <VECTOR_CST>: New case.
28431         (compare_constant) <VECTOR_CST>: Likewise.
28432         <ADDR_EXPR>: Deal with LABEL_REFs.
28433         (copy_constant) <VECTOR_CST>: New case.
28434
28435 2010-04-27  Jan Hubicka  <jh@suse.cz>
28436
28437         * cgraph.c (cgraph_propagate_frequency): New function.
28438         * cgraph.h (cgraph_propagate_frequency): Declare.
28439         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
28440         cgraph_propagate_frequency.
28441
28442 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
28443
28444         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
28445
28446 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
28447
28448         PR target/40657
28449         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
28450         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
28451         here to determine which regs to push and how much stack to reserve.
28452
28453 2010-04-27  Jie Zhang  <jie@codesourcery.com>
28454
28455         * doc/gimple.texi (gimple_statement_with_ops): Remove
28456         addresses_taken field.
28457         (gimple_statement_with_memory_ops): Likewise.
28458
28459 2010-04-27  Jan Hubicka  <jh@suse.cz>
28460
28461         * tree-inline.c (eni_inlining_weights): Remove.
28462         (estimate_num_insns): Special case more builtins.
28463
28464 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
28465
28466         PR c/32207
28467         * c-typeck.c (build_binary_op): Move forward check for comparison
28468         pointer with null pointer constant and adjust the diagnostic message.
28469
28470 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
28471
28472         PR lto/42776
28473         * configure.ac (gcc_cv_as_section_has_align): Set if installed
28474         binutils supports extended .section directive needed by LTO, or
28475         warn if older binutils found.
28476         (LTO_BINARY_READER): New AC_SUBST'd variable.
28477         (LTO_USE_LIBELF): Likewise.
28478         * config.gcc (lto_binary_reader): New target-specific configure
28479         variable.
28480         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
28481         (LTO_USE_LIBELF): Likewise.
28482         * configure: Regenerate.
28483
28484         * collect2.c (is_elf): Rename from this ...
28485         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
28486          object files in addition to ELF-formatted ones.
28487         (scan_prog_file): Caller updated.  Also allow for LTO info marker
28488         symbol to be prefixed or not by an extra underscore.
28489
28490         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
28491         * config/i386/winnt.c: Also #include lto-streamer.h
28492         (i386_pe_asm_named_section): Specify 1-byte section alignment for
28493         LTO named sections.
28494         (i386_pe_asm_output_aligned_decl_common): Add comment.
28495         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
28496
28497 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
28498
28499         PR target/43889
28500         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
28501         Add missing earlyclobber for second alternative.
28502
28503 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
28504
28505         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
28506         bits for artificial defs at the top of the block.
28507         * fwprop.c (single_def_use_enter_block): Don't call it.
28508
28509 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
28510
28511         PR 43715
28512         * configure.ac: Use "$gcc_cv_nm -g" on darwin
28513         instead of "$gcc_cv_objdump -T".
28514         Use "-undefined dynamic_lookup" on darwin.
28515         * configure: Regenerate.
28516
28517 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
28518
28519         PR c/43893
28520         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
28521
28522 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
28523
28524         * c-parser.c (struct c_token): Move location field up.
28525         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
28526         (struct c_declspecs): Convert typespec_word, storage_class, and
28527         default_int_p into bitfields.
28528         (struct c_declarator): Move loc field up.
28529
28530 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
28531
28532         * cfgloop.h (struct loop): Move can_be_parallel field up.
28533         * ipa-prop.h (struct ip_node_params): Move bitfields up.
28534         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
28535         down.
28536         (struct iv_cand): Convert pos field into a bitfield.
28537         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
28538         field up.
28539         (struct _stmt_vec_info): Shuffle fields for better packing.
28540
28541 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
28542
28543         * varasm.c (IN_NAMED_SECTION): Remove guard.
28544         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
28545         (IN_NAMED_SECTION_P): ...this.
28546         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
28547         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
28548
28549 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
28550
28551         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
28552         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
28553         of shadowing it.  Fix comments.
28554
28555 2010-04-26  Jan Hubicka  <jh@suse.cz>
28556
28557         * cgraph.c (cgraph_create_node): Set node frequency to normal.
28558         (cgraph_clone_node): Copy function frequency.
28559         * cgraph.h (node_frequency): New enum
28560         (struct cgraph_node): Add.
28561         * final.c (rest_of_clean_state): Update.
28562         * lto-cgraph.c (lto_output_node): Output node frequency.
28563         (input_overwrite_node): Input node frequency.
28564         * tre-ssa-loop-ivopts (computation_cost): Update.
28565         * lto-streamer-out.c (output_function): Do not output function
28566         frequency.
28567         * predict.c (maybe_hot_frequency_p): Update and handle functions
28568         executed once.
28569         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
28570         attribute lookup.
28571         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
28572         (compute_function_frequency): Set noreturn functions to be executed
28573         once.
28574         (choose_function_section): Update.
28575         * lto-streamer-in.c (input_function): Do not input function frequency.
28576         * function.c (allocate_struct_function): Do not initialize function
28577         frequency.
28578         * function.h (function_frequency): Remove.
28579         (struct function): Remove function frequency.
28580         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
28581         (try_update): Update.
28582         * tree-inline.c (initialize_cfun): Do not update function frequency.
28583         * passes.c (pass_init_dump_file): Update.
28584         * i386.c (ix86_compute_frame_layout): Update.
28585         (ix86_pad_returns): Update.
28586
28587 2010-04-26  Jie Zhang  <jie@codesourcery.com>
28588
28589         PR tree-optimization/43833
28590         * tree-vrp.c (range_int_cst_p): New.
28591         (range_int_cst_singleton_p): New.
28592         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
28593         when both operands are constants.  Use range_int_cst_p in
28594         BIT_IOR_EXPR case.
28595
28596 2010-04-26  Jan Hubicka  <jh@suse.cz>
28597
28598         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
28599
28600 2010-04-26  Richard Guenther  <rguenther@suse.de>
28601
28602         PR lto/43080
28603         * gimple.c (gimple_decl_printable_name): Deal gracefully
28604         with a NULL DECL_NAME.
28605
28606 2010-04-26  Richard Guenther  <rguenther@suse.de>
28607
28608         PR lto/42425
28609         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
28610         if emitting debug information and it is either a function
28611         or a namespace decl.
28612
28613 2010-04-26  Ira Rosen  <irar@il.ibm.com>
28614
28615         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
28616         determine if the statement is vectorizable, and a macro to access it.
28617         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28618         Skip statements that can't be vectorized. If the analysis fails,
28619         mark the statement as unvectorizable if vectorizing basic block.
28620         (vect_compute_data_refs_alignment): Likewise.
28621         (vect_verify_datarefs_alignment): Skip statements marked as
28622         unvectorizable. Add print.
28623         (vect_analyze_group_access): Skip statements that can't be
28624         vectorized. If the analysis fails, mark the statement as
28625         unvectorizable if vectorizing basic block.
28626         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
28627         * tree-vect-stmts.c (vectorizable_store): Fix the number of
28628         generated stmts for SLP.
28629         (new_stmt_vec_info): Initialize the new field.
28630         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
28631         statements marked as unvectorizable.
28632
28633 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
28634
28635         * c-common.c (flag_isoc1x): New.
28636         (flag_isoc99): Update comment.
28637         * c-common.h (flag_isoc1x): New.
28638         (flag_isoc99): Update comment.
28639         * c-cppbuiltin.c (builtin_define_float_constants): Also define
28640         __<type>_DECIMAL_DIG__.
28641         * c-opts.c (set_std_c1x): New.
28642         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
28643         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
28644         * c.opt (-std=c1x, -std=gnu1x): New options.
28645         * doc/cpp.texi: Mention -std=c1x.
28646         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
28647         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
28648         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
28649         * doc/standards.texi: Mention C1X.
28650         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
28651         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
28652         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
28653         Define for C1X.
28654
28655 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
28656
28657         * config/i386/gmon-sol2.c (_mcleanup): Change format string
28658         placeholder from 0x%x to %#x.
28659         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
28660         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
28661         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
28662         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
28663         * config/i386/i386.c (ix86_target_string): Ditto.
28664         (output_pic_addr_const): Ditto.
28665         (print_operand): Ditto.
28666
28667 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
28668
28669         * combine.c (find_split_point): Add third argument.  Use it
28670         to find nested multiply-accumulate instructions.  Adjust calls.
28671         (try_combine): Adjust call to find_split_point.
28672
28673 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
28674
28675         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
28676
28677 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
28678
28679         PR tree-optimization/41442
28680         * fold-const.c (merge_truthop_with_opposite_arm): New function.
28681         (fold_binary_loc): Call it.
28682
28683 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28684
28685         * toplev.c (general_init): Set default for fdiagnostics-show-option.
28686         * opts.c (common_handle_option): Allow disabling it.
28687         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
28688
28689 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
28690
28691         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
28692         between modes if both types are integral.
28693
28694 2010-04-23  Richard Guenther  <rguenther@suse.de>
28695
28696         PR tree-optimization/43572
28697         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
28698
28699 2010-04-23  Richard Guenther  <rguenther@suse.de>
28700
28701         PR lto/43455
28702         * tree-inline.c (tree_can_inline_p): Also check compatibility
28703         of return types.
28704
28705 2010-04-23  Martin Jambor  <mjambor@suse.cz>
28706
28707         PR tree-optimization/43846
28708         * tree-sra.c (struct access): New flag grp_assignment_read.
28709         (build_accesses_from_assign): Set grp_assignment_read.
28710         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
28711         (enum mark_read_status): New type.
28712         (analyze_access_subtree): Propagate grp_assignment_read, create
28713         accesses also if both direct_read and root->grp_assignment_read.
28714
28715 2010-04-23  Martin Jambor  <mjambor@suse.cz>
28716
28717         PR middle-end/43835
28718         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
28719         function does not have type attributes.
28720
28721 2010-04-23  Richard Guenther  <rguenther@suse.de>
28722
28723         PR lto/42653
28724         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
28725         of FUNCTION_DECLs.
28726
28727 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28728
28729         * sese.h (create_if_region_on_edge): Remove.
28730
28731         * sese.c (create_if_region_on_edge): Make static.
28732
28733         * tree-inline.c: Do not include ggc.h.
28734
28735         * expr.c: Do not include ggc.h.
28736
28737         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
28738         dependencies.
28739
28740 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
28741
28742         PR target/43744
28743         * config/sh/sh.c (find_barrier): Don't emit a constant pool
28744         in the middle of insns for casesi_worker_2.
28745
28746 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
28747
28748         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
28749
28750 2010-04-22  Ira Rosen  <irar@il.ibm.com>
28751
28752         PR tree-optimization/43842
28753         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
28754         loop unrolling in update of exit phis. Fix comment.
28755         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
28756         least two reduction statements in the loop before starting SLP
28757         analysis.
28758
28759 2010-04-22  Nick Clifton  <nickc@redhat.com>
28760
28761         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
28762
28763 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
28764
28765         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
28766         to simplify a + ~a.
28767
28768 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28769
28770         * tree-parloops.c (loop_parallel_p): New argument
28771         parloop_obstack.  Pass it down.
28772         (parallelize_loops): New variable parloop_obstack.  Initialize it,
28773         pass it down, free it.
28774
28775         * tree-loop-linear.c (linear_transform_loops): Pass down
28776         lambda_obstack.
28777
28778         * tree-data-ref.h (lambda_compute_access_matrices): New argument
28779         of type struct obstack *.
28780
28781         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
28782         scratch_obstack.  Initialize it, pass down, free it.
28783
28784         * lambda.h (lambda_loop_new): Remove.
28785         (lambda_matrix_new, lambda_matrix_inverse)
28786         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
28787         argument of type struct obstack *.
28788
28789         * lambda-trans.c (lambda_trans_matrix_new): New argument
28790         lambda_obstack.  Pass it down, use obstack allocation for ret.
28791         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
28792         it down.
28793
28794         * lambda-mat.c (lambda_matrix_get_column)
28795         (lambda_matrix_project_to_null): Remove.
28796         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
28797         allocation for mat.
28798         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
28799         lambda_obstack.
28800
28801         * lambda-code.c (lambda_loop_new): New function.
28802         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
28803         (lambda_compute_auxillary_space, lambda_compute_target_space)
28804         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
28805         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
28806         (build_access_matrix): New argument lambda_obstack.  Use obstack
28807         allocation for am.
28808         (lambda_compute_step_signs, lambda_compute_access_matrices): New
28809         argument lambda_obstack.  Pass it down.
28810
28811 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28812
28813         * optabs.h (expand_widening_mult): Declare.
28814
28815 2010-04-22  Richard Guenther  <rguenther@suse.de>
28816
28817         PR tree-optimization/43845
28818         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
28819         lookup the CALL_EXPR function and arguments.
28820
28821 2010-04-22  Nick Clifton  <nickc@redhat.com>
28822
28823         * config/stormy16/stormy16.c
28824         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
28825         * config/stormy16/stormy16.h: Tidy up formatting.
28826         (DONT_USE_BUILTIN_SETJMP): Remove definition.
28827         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
28828         (ineqbranchsi): Delete pattern.
28829         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
28830         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
28831         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
28832         stormy16-lib2-ucmpsi2.c.
28833
28834 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28835
28836         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
28837         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
28838         extra set merge_set_noclobber, and use it to relax the final test
28839         slightly.
28840         * df.h (df_simulate_find_noclobber_defs): Declare.
28841         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
28842         conditional defs.
28843         (df_simulate_find_noclobber_defs): New function.
28844
28845 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
28846
28847         * config/i386/i386.md: Use {} around multi-line preparation statements.
28848
28849 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28850
28851         * c-tree.h (push_init_level, pop_init_level, set_init_index)
28852         (process_init_element): New argument of type struct obstack *.
28853
28854         * c-typeck.c (push_init_level, pop_init_level, set_designator)
28855         (set_init_index, set_init_label, set_nonincremental_init)
28856         (set_nonincremental_init_from_string, find_init_member)
28857         (output_init_element, output_pending_init_elements)
28858         (process_init_element): New argument braced_init_obstack.  Pass it
28859         down.
28860         (push_range_stack, add_pending_init): New argument
28861         braced_init_obstack.  Use obstack allocation.
28862
28863         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
28864         braced_init_obstack.  Pass it down.
28865         (c_parser_braced_init): New variables ret, braced_init_obstack.
28866         Initialize obstack, pass it down and finally free it.
28867
28868 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28869
28870         PR middle-end/29274
28871         * tree-pass.h (pass_optimize_widening_mul): Declare.
28872         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
28873         gate_optimize_widening_mul): New static functions.
28874         (pass_optimize_widening_mul): New.
28875         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
28876         <case MULT_EXPR>: Remove support for widening multiplies.
28877         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
28878         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
28879         simplify_gen_unary rather than directly building extensions.
28880         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
28881         WIDEN_MULT_EXPR.
28882         * expmed.c (expand_widening_mult): New function.
28883         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
28884
28885 2010-04-21  Jan Hubicka  <jh@suse.cz>
28886
28887         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
28888         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
28889         * lto-wpa-fixup.c: Remove.
28890         * Makefile.in (lto-wpa-fixup.o): Remove.
28891         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
28892         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
28893         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
28894
28895 2010-04-21  Jan Hubicka  <jh@suse.cz>
28896
28897         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
28898         add write_optimization_summary, read_optimization_summary.
28899         (ipa_write_summaries_of_cgraph_node_set): Remove.
28900         (ipa_write_optimization_summaries): Declare.
28901         (ipa_read_optimization_summaries): Declare.
28902         * ipa-cp.c (pass_ipa_cp): Update.
28903         * ipa-reference.c (pass_ipa_reference): Update.
28904         * ipa-pure-const.c (pass_ipa_pure_const): Update.
28905         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
28906         Update.
28907         * ipa-inline.c (pass_ipa_inline): Update.
28908         * ipa.c (pass_ipa_whole_program): Update.
28909         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
28910         * passes.c (ipa_write_summaries_1): Do not test wpa.
28911         (ipa_write_optimization_summaries_1): New.
28912         (ipa_write_optimization_summaries): New.
28913         (ipa_read_summaries): Do not test ltrans.
28914         (ipa_read_optimization_summaries_1): New.
28915         (ipa_read_optimization_summaries): New.
28916
28917 2010-04-21  Jan Hubicka  <jh@suse.cz>
28918
28919         * lto-cgraph.c (lto_output_node): Do not output comdat groups
28920         for boundary nodes.
28921         (output_cgraph): Do not arrange comdat groups for boundary nodes.
28922
28923 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28924
28925         PR debug/40040
28926         * dwarf2out.c (add_name_and_src_coords_attributes): Add
28927         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
28928
28929 2010-04-21  Jan Hubicka  <jh@suse.cz>
28930
28931         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
28932
28933 2010-04-21  Jan Hubicka  <jh@suse.cz>
28934
28935         * varpool.c (decide_is_variable_needed): Variable is always needed
28936         during ltrans.
28937
28938 2010-04-21  Jan Hubicka  <jh@suse.cz>
28939
28940         * opts.c (decode_options): Enable pure-const pass for whopr.
28941
28942 2010-04-21  Jan Hubicka  <jh@suse.cz>
28943
28944         * cgraph.c (dump_cgraph_node): Dump also assembler name.
28945         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
28946         at WPA dumping.
28947         (cgraph_decide_inlining): Do not expect callee to be removed in all
28948         cases.
28949
28950 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
28951
28952         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
28953
28954 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
28955
28956         * config/i386/i386.md (x86_shrd): Add athlon_decode and
28957         amdfam10_decode attributes.
28958
28959 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28960
28961         PR middle-end/43570
28962         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
28963         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
28964         (lower_copyprivate_clauses): Use private var in outer
28965         context instead of original var.  Make sure the types
28966         are correct for VLAs.
28967
28968 2010-04-21  Richard Guenther  <rguenther@suse.de>
28969
28970         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
28971         to non-pointer objects.
28972
28973 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28974
28975         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
28976         last chain entry if it starts with the still current label.
28977         (add_location_or_const_value_attribute): Check that
28978         loc_list->first->next is NULL instead of comparing ->first with ->last.
28979         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
28980         to add_var_loc_to_decl.
28981
28982         * dwarf2out.c (output_call_frame_info): For dw_cie_version
28983         >= 4 add also address size and segment size fields into CIE header.
28984
28985         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
28986         long as address size is the same as sizeof (void *) and
28987         segment size is 0.
28988         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
28989         address size or segment size is unexpected, return DW_EH_PE_omit.
28990         (classify_object_over_fdes): If get_cie_encoding returned
28991         DW_EH_PE_omit, return -1.
28992         (init_object): If classify_object_over_fdes returned -1,
28993         pretend there were no FDEs at all.
28994
28995 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
28996
28997         * config/i386/i386.md (bswap<mode>2): Macroize expander from
28998         bswap{si,di}2 using SWI48 mode iterator.
28999         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
29000         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
29001         set modrm attribute of bswap insn to 0 and remove length attribute.
29002         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
29003         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
29004         set mode attribute to <MODE> and remove length attribute.
29005
29006 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
29007
29008         PR rtl-optimization/43520
29009         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
29010         zero available registers.
29011
29012 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29013
29014         * builtins.c (fold_builtin_cproj): Fold more cases.
29015
29016 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
29017
29018         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
29019         (fold_builtin_1): Fold builtin cproj.
29020         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
29021         Use ATTR_CONST_NOTHROW_LIST.
29022
29023 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
29024
29025         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
29026         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
29027         ffsi2_no_cmove for !TARGET_CMOVE.
29028         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
29029         (ffssi2): Remove expander.
29030         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
29031         mode iterator.
29032         (ctz<mode>2): Ditto from ctz{si,di}2.
29033         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
29034         mode iterator.
29035         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
29036         mode iterator.
29037
29038 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
29039
29040         * dwarf2out.c (AT_linkage_name): Define.
29041         (clone_as_declaration): Handle DW_AT_linkage_name.
29042         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
29043         of DW_AT_MIPS_linkage_name.
29044         (move_linkage_attr): Likewise.
29045         (dwarf2out_finish): Likewise.
29046
29047 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
29048
29049         PR middle-end/41952
29050         * fold-const.c (fold_comparison): New folding rule.
29051
29052 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
29053
29054         * double-int.h (double_int_setbit): Declare.
29055         * double-int.c (double_int_setbit): New function.
29056         * rtl.h (immed_double_int_const): Declare.
29057         * emit-rtl.c (immed_double_int_const): New function.
29058         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
29059         and immed_double_int_const functions.
29060         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
29061         expand_copysign_bit): (Ditto.).
29062         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
29063         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
29064         * dojump.c (prefer_and_bit_test): (Ditto.).
29065         * expr.c (convert_modes, reduce_to_bit_field_precision,
29066         const_vector_from_tree): (Ditto.).
29067         * expmed.c (mask_rtx, lshift_value): (Ditto.).
29068
29069 2010-04-20  Jan Hubicka  <jh@suse.cz>
29070
29071         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
29072         (dump_cgraph_node): Dump new flags.
29073         * cgraph.h (struct cgraph_node): Add flags
29074         reachable_from_other_partition and in_other_partition.
29075         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
29076         other partition can not be removed.
29077         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
29078         the other partition must be output; silence sanity checking on
29079         leaking functions bodies from other paritition.
29080         * lto-cgraph.c (reachable_from_other_partition_p): New function.
29081         (lto_output_node): Output new flags; do not sanity check that inline
29082         clones are output; drop lto_forced_extern_inline_p code; do not mock
29083         visibility flags at partition boundaries.
29084         (add_node_to): New function.
29085         (output_cgraph): Use it to sort functions so masters appear before
29086         clones.
29087         (input_overwrite_node): Input new flags.
29088         * passes.c (ipa_write_summaries): Do not call
29089         lto_new_extern_inline_states.
29090         * lto-section-out.c (forced_extern_inline,
29091         lto_new_extern_inline_states lto_delete_extern_inline_states,
29092         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
29093         * lto-streamer.h (lto_new_extern_inline_states,
29094         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
29095         lto_forced_extern_inline_p): Kill.
29096
29097 2010-04-20  Richard Guenther  <rguenther@suse.de>
29098
29099         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
29100         from vars that can have pointers.
29101         (process_constraint): Dump useless constraints.
29102
29103 2010-04-20  Richard Guenther  <rguenther@suse.de>
29104
29105         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
29106         (dump_sa_points_to_info): Remove asserts.
29107         (init_base_vars): nothing_id isn't an escape point nor does it
29108         have pointers.
29109
29110 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
29111
29112         * tree.h (TYPE_REF_IS_RVALUE): Define.
29113         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
29114         should_move_die_to_comdat, prune_unused_types_walk): Handle
29115         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
29116         (modified_type_die, gen_reference_type_die): Emit
29117         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
29118         if TYPE_REF_IS_RVALUE and -gdwarf-4.
29119
29120 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29121
29122         PR target/43635
29123         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
29124         calls for -fpic -m31 if they have been sibcall optimized.
29125
29126 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
29127
29128         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
29129         ar.lc fixed and call-used.
29130
29131         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
29132
29133 2010-04-19  Jan Hubicka  <jh@suse.cz>
29134
29135         * opts.c (decode_options): Disable whpr incompatible passes.
29136         * lto/lto.c (lto_1_to_1_map): Skip clones.
29137         (read_cgraph_and_symbols): Do not mark everything as needed.
29138         (do_whole_program_analysis): Do map only after optimizing;
29139         set proper cgraph_state; use passmanager.
29140
29141 2010-04-19  DJ Delorie  <dj@redhat.com>
29142
29143         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
29144         POINTER_PLUS_EXPR and fix them.
29145
29146 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
29147
29148         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
29149         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
29150         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
29151         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
29152         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
29153         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
29154         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
29155         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
29156         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
29157         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
29158         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
29159
29160 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
29161
29162         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
29163         (check_cond_move_block): Likewise.
29164         (cond_move_process_if_block): Likewise.
29165         (noce_find_if_block): Improve formatting.
29166         (find_if_header): Pass 0 to memset and tweak conditions.
29167         (cond_exec_find_if_block): Fix long lines and tweak conditions.
29168
29169 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
29170
29171         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
29172         for -gdwarf-4.
29173
29174         PR middle-end/43337
29175         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
29176         with non-local decl doesn't need chain.
29177
29178 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29179
29180         * ira-color.c (allocno_reload_assign): Avoid accumulating
29181         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
29182
29183 2010-04-19  Martin Jambor  <mjambor@suse.cz>
29184
29185         * gimple.h (create_tmp_reg): Declare.
29186         * gimplify.c (create_tmp_reg): New function.
29187         (gimplify_return_expr): Use create_tmp_reg.
29188         (gimplify_omp_atomic): Likewise.
29189         (gimple_regimplify_operands): Likewise.
29190         * tree-dfa.c (make_rename_temp): Likewise.
29191         * tree-predcom.c (predcom_tmp_var): Likewise.
29192         (reassociate_to_the_same_stmt): Likewise.
29193         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
29194         (get_replaced_param_substitute): Likewise.
29195         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
29196         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
29197         * tree-ssa-pre.c (get_representative_for): Likewise.
29198         (create_expression_by_pieces): Likewise.
29199         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
29200         (create_tailcall_accumulator): Likewise.
29201
29202 2010-04-19  Martin Jambor  <mjambor@suse.cz>
29203
29204         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
29205         new_stmt.
29206         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
29207
29208 2010-04-19  Richard Guenther  <rguenther@suse.de>
29209
29210         PR tree-optimization/43796
29211         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
29212         from SCEV in the lattice.
29213         (vrp_visit_phi_node): Dump change.
29214
29215 2010-04-19  Richard Guenther  <rguenther@suse.de>
29216
29217         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
29218         * configure: Re-generated.
29219
29220 2010-04-19  Richard Guenther  <rguenther@suse.de>
29221
29222         PR tree-optimization/43783
29223         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
29224         constant ARRAY_REF operands two and three if possible.
29225
29226 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
29227
29228         PR target/43766
29229         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
29230
29231 2010-04-19  Jie Zhang  <jie@codesourcery.com>
29232
29233         PR target/43662
29234         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
29235
29236 2010-04-19  Ira Rosen  <irar@il.ibm.com>
29237
29238         PR tree-optimization/37027
29239         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
29240         and macro to access it.
29241         (vectorizable_reduction): Add argument.
29242         (vect_get_slp_defs): Likewise.
29243         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
29244         statements for possible use in SLP.
29245         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
29246         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
29247         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
29248         add new argument.
29249         (vectorizable_reduction): Likewise.
29250         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
29251         vect_get_slp_defs.
29252         (vectorizable_type_demotion, vectorizable_type_promotion,
29253         vectorizable_store): Likewise.
29254         (vect_analyze_stmt): Update call to vectorizable_reduction.
29255         (vect_transform_stmt): Likewise.
29256         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
29257         (vect_build_slp_tree): Fix indentation. Check that there are no loads
29258         from different interleaving chains in same node.
29259         (vect_slp_rearrange_stmts): New function.
29260         (vect_supported_load_permutation_p): Allow load permutations for
29261         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
29262         inside SLP nodes if necessary.
29263         (vect_analyze_slp_instance): Handle reductions.
29264         (vect_analyze_slp): Try to build SLP instances originating from groups
29265         of reductions.
29266         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
29267         (vect_get_constant_vectors): Create initial vectors for reductions
29268         according to reduction code. Add new argument.
29269         (vect_get_slp_defs): Add new argument, pass it to
29270         vect_get_constant_vectors.
29271         (vect_schedule_slp_instance): Remove SLP tree root statements.
29272
29273 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
29274
29275         * tree.h (ENUM_IS_SCOPED): Define.
29276         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
29277         for ENUM_IS_SCOPED enums.
29278
29279 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
29280
29281         * fold-const.c (fold_comparison): Use ssizetype.
29282         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
29283         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
29284         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
29285         * tree-object-size.c (compute_object_sizes): Use size_type_node.
29286
29287         * tree.h (initialize_sizetypes): Remove parameter.
29288         (build_common_tree_nodes): Remove second parameter.
29289         * stor-layout.c (initialize_sizetypes): Remove parameter.
29290         Always create an unsigned type.
29291         (set_sizetype): Assert that the passed type is unsigned and simplify.
29292         * tree.c (build_common_tree_nodes): Remove second parameter.
29293         Adjust call to initialize_sizetypes.
29294         * c-decl.c (c_init_decl_processing): Remove second argument in call to
29295         build_common_tree_nodes.
29296
29297 2010-04-18  Matthias Klose  <doko@ubuntu.com>
29298
29299         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
29300
29301 2010-04-18  Ira Rosen  <irar@il.ibm.com>
29302
29303         PR tree-optimization/43771
29304         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
29305         load permutation doesn't have gaps.
29306
29307 2010-04-18  Jan Hubicka  <jh@suse.cz>
29308
29309         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
29310         (sse_prologue_save_insn expander): Use new pattern.
29311         (sse_prologue_save_insn1): New pattern and splitter.
29312         (sse_prologue_save_insn): Update to deal also with 64bit aligned
29313         blocks.
29314         * i386.c (setup_incoming_varargs_64): Do not compute jump
29315         destination here.
29316         (ix86_gimplify_va_arg): Update alignment needed.
29317         (ix86_local_alignment): Do not align all local arrays to 128bit.
29318
29319 2010-04-17  Jan Hubicka  <jh@suse.cz>
29320
29321         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
29322
29323 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29324
29325         * arm.md (negdi2): Remove redundant code to force values into a
29326         register.
29327
29328 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29329
29330         * arm/bpabi.S: Add EABI alignment attributes to objects.
29331         * arm/bpabi-v6m.S: Likewise.
29332         * arm/crti.asm: Likewise.
29333         * arm/crtn.asm: Likewise.
29334         * arm/lib1funcs.asm: Likewise.
29335         * arm/libunwind.S: Likewise.
29336
29337 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
29338
29339         * arm-protos.h (tune_params): New structure.
29340         * arm.c (current_tune): New variable.
29341         (arm_constant_limit): Delete.
29342         (struct processors): Add pointer to the tune parameters.
29343         (arm_slowmul_tune): New tuning option.
29344         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
29345         (all_cores): Adjust to pick up the tuning model.
29346         (arm_constant_limit): New function.
29347         (arm_override_options): Select the appropriate tuning model.  Delete
29348         initialization of arm_const_limit.
29349         (arm_split_constant): Use the new constant-limit model.
29350         (arm_rtx_costs): Pick up the current tuning model.
29351         * arm.md (is_strongarm, is_xscale): Delete.
29352         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
29353         for Xscale variant architectures.
29354         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
29355
29356 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29357
29358         * config/arm/arm.c (arm_gen_constant): Remove unused variable
29359         can_shift.
29360         (arm_rtx_costs_1): Remove unused variable extra_cost.
29361         (arm_unwind_emit_set): Use variable offset.
29362         (thumb1_output_casesi): Remove unused variable flags.
29363
29364 2010-04-16  Jeff Law  <law@redhat.com>
29365
29366         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
29367         needing assignment rather than doing a two-phase assignment.  Remove
29368         unused variable 'm'.
29369
29370 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29371
29372         PR bootstrap/43767
29373         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
29374
29375 2010-04-16  Doug Kwan  <dougkwan@google.com>
29376
29377         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
29378         (next_operand_entry_id): New static variable.
29379         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
29380         (add_to_ops_vec): Assigned unique ID to operand entry.
29381         (struct oecount_s): New field ID.
29382         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
29383         (undistribute_ops_list): Assign unique IDs to oecounts.
29384         (init_reassoc): reset next_operand_entry_id.
29385
29386 2010-04-16  Doug Kwan  <dougkwan@google.com>
29387
29388         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
29389         missing left parenthesis.
29390
29391 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
29392
29393         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
29394         *btdi_rex64 using SWI48 mode iterator.
29395         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
29396         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
29397         *jcc_btdi_mask_rex64.
29398
29399 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
29400
29401         * double-int.h (tree_to_double_int): Convert to macro.
29402         * double-int.c (tree_to_double_int): Remove.
29403
29404 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29405
29406         PR debug/43762
29407         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
29408         with want_address 2 and in case a single element list might be
29409         possible, call it again with want_address 0.
29410
29411 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29412
29413         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
29414         case 'W' print operands for HI mode.
29415         * config/h8300/h8300.h (Y0, Y2) : New constraints.
29416         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
29417         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
29418         * config/h8300/predicate.md (bit_register_indirect_operand): New.
29419
29420         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
29421
29422         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
29423         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
29424         #xx:3 and #xx:4 mode.
29425
29426         * config/h8300/h8300.md (inverted load with HImode dest): Add
29427         support for H8300SX.
29428
29429         * config/h8300/predicate.md (bit_operand): Allow immediate values that
29430         satisfy 'U' constraint.
29431
29432 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29433
29434         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
29435         * configure: Regenerate.
29436         * config.in: Regenerate.
29437         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
29438         works.
29439
29440 2010-04-16  Richard Guenther  <rguenther@suse.de>
29441
29442         * tree.h (struct tree_decl_minimal): Move pt_uid ...
29443         (struct tree_decl_common): ... here.
29444         (DECL_PT_UID): Adjust.
29445         (SET_DECL_PT_UID): Likewise.
29446         (DECL_PT_UID_SET_P): Likewise.
29447
29448 2010-04-16  Richard Guenther  <rguenther@suse.de>
29449
29450         PR tree-optimization/43572
29451         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
29452         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
29453         * tree-flow.h (is_call_clobbered): Remove.
29454         * tree-flow-inline.h (is_call_clobbered): Likewise.
29455         * tree-dfa.c (dump_variable): Do not dump call clobber state.
29456         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
29457         (execute_return_slot_opt): Adjust.
29458         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
29459         check for call clobbered vars here.
29460         (find_tail_calls): Move tailcall verification to the
29461         proper place.
29462
29463 2010-04-16  Diego Novillo  <dnovillo@google.com>
29464
29465         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
29466
29467 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
29468
29469         PR target/40603
29470         * config/arm/arm.md (cbranchqi4): New pattern.
29471         * config/arm/predicates.md (const0_operand,
29472         cbranchqi4_comparison_operator): New predicates.
29473
29474 2010-04-16  Richard Guenther  <rguenther@suse.de>
29475
29476         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
29477         (dump_gimple_stmt): Likewise.
29478
29479 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
29480
29481         * recog.h (struct recog_data): New field is_operator.
29482         (struct insn_operand_data): New field is_operator.
29483         * recog.c (extract_insn): Set recog_data.is_operator.
29484         * genoutput.c (output_operand_data): Emit code to set the
29485         is_operator field.
29486         * reload.c (find_reloads): Use it rather than testing for an
29487         empty constraint string.
29488
29489         PR target/41514
29490         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
29491         If the previous insn is a cbranchsi4_insn with the same arguments,
29492         omit the compare instruction.
29493
29494         * config/arm/arm.md (addsi3_cbranch): If destination is a high
29495         register, inputs must be low registers and we need a low register
29496         scratch.  Handle alternative 2 like alternative 3.
29497
29498 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
29499
29500         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
29501         don't call get_addr on both.  If one expression is a VALUE and
29502         the other a REG, check VALUE's locs if the REG isn't among them.
29503
29504 2010-04-16  Christian Bruel  <christian.bruel@st.com>
29505
29506         * config/sh/sh.h (sh_frame_pointer_required): New function.
29507         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
29508         (flag_omit_frame_pointer) Set.
29509         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
29510         (rounded_frame_size): Adjust size with outgoing_args_size.
29511         (sh_set_return_address): Must return from stack pointer.
29512         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
29513         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
29514         (ACCUMULATE_OUTGOING_ARGS): Define.
29515         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
29516         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
29517
29518 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
29519
29520         PR target/43471
29521         * config/sh/sh.c (sh_legitimize_reload_address): Use
29522         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
29523         Remove a unneeded check for offset_base.
29524
29525 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
29526
29527         * configure: Regenerated.
29528
29529 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29530
29531         * config/s390/s390.c (s390_call_save_register_used): Switch back
29532         to HARD_REGNO_NREGS.
29533
29534 2010-04-15  Richard Guenther  <rguenther@suse.de>
29535
29536         * alias.c (alias_set_subset_of): Handle alias-set zero
29537         child properly.
29538
29539 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
29540             Julian Brown  <julian@codesourcery.com>
29541
29542         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
29543         alternatives according to use of high and low regs.
29544         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
29545         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
29546         optimizing for size on Thumb-2.
29547
29548 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
29549
29550         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
29551
29552 2010-04-15  Richard Guenther  <rguenther@suse.de>
29553
29554         * tree-ssa-structalias.c (struct variable_info): Add
29555         is_fn_info flag.
29556         (new_var_info): Initialize it.
29557         (dump_constraints): Support printing last added constraints.
29558         (debug_constraints): Adjust.
29559         (dump_constraint_graph): Likewise.
29560         (make_heapvar_for): Check for NULL cfun.
29561         (get_function_part_constraint): New function.
29562         (get_fi_for_callee): Likewise.
29563         (find_func_aliases): Properly implement IPA PTA constraints.
29564         (process_ipa_clobber): New function.
29565         (find_func_clobbers): Likewise.
29566         (insert_into_field_list_sorted): Remove.
29567         (create_function_info_for): Properly allocate vars for IPA mode.
29568         Do not use insert_into_field_list_sorted.
29569         (create_variable_info_for): Properly generate constraints for
29570         global vars in IPA mode.
29571         (dump_solution_for_var): Always dump the solution.
29572         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
29573         (find_what_var_points_to): Adjust.
29574         (pt_solution_set): Change.
29575         (pt_solution_ior_into): New function.
29576         (pt_solution_empty_p): Export.
29577         (pt_solution_includes_global): Adjust.
29578         (pt_solution_includes_1): Likewise.
29579         (pt_solutions_intersect_1): Likewise.
29580         (dump_sa_points_to_info): Check some invariants.
29581         (solve_constraints): Move constraint dumping ...
29582         (compute_points_to_sets): ... here.
29583         (ipa_pta_execute): ... and here.
29584         (compute_may_aliases): Do not re-compute points-to info
29585         locally if IPA info is available.
29586         (ipa_escaped_pt): New global var.
29587         (ipa_pta_execute): Properly implement IPA PTA.
29588         * tree-into-ssa.c (dump_decl_set): Support dumping
29589         decls not in referenced-vars.
29590         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
29591         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
29592         (dump_points_to_solution): Likewise.
29593         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
29594         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
29595         (remap_gimple_stmt): Reset call clobber/use information if necessary.
29596         (copy_decl_to_var): Copy DECL_PT_UID.
29597         (copy_result_decl_to_var): Likewise.
29598         * tree.c (make_node_stat): Initialize DECL_PT_UID.
29599         (copy_node_stat): Copy it.
29600         * tree.h (DECL_PT_UID): New macro.
29601         (SET_DECL_PT_UID): Likewise.
29602         (DECL_PT_UID_SET_P): Likewise.
29603         (struct tree_decl_minimal): Add pt_uid member.
29604         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
29605         (pt_solution_empty_p): Declare.
29606         (pt_solution_set): Adjust.
29607         (ipa_escaped_pt): Declare.
29608         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
29609         * gimple-pretty-print.c (pp_points_to_solution): New function.
29610         (dump_gimple_call): Dump call clobber/use information.
29611         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
29612         * tree-pass.h (TDF_ALIAS): New dump option.
29613         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
29614         * doc/invoke.texi (-fipa-pta): Update documentation.
29615
29616 2010-04-15  Richard Guenther  <rguenther@suse.de>
29617
29618         * Makefile.in (OBJS-common): Add gimple-fold.o.
29619         (gimple-fold.o): New rule.
29620         * tree.h (maybe_fold_offset_to_reference,
29621         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
29622         prototypes ...
29623         * gimple.h: ... here.
29624         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
29625         may_propagate_address_into_dereference): Move prototypes ...
29626         * gimple.h: ... here.
29627         * tree-ssa-ccp.c (get_symbol_constant_value,
29628         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
29629         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
29630         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
29631         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
29632         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
29633         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
29634         gimplify_and_update_call_from_tree): Move ...
29635         * gimple-fold.c: ... here.  New file.
29636         (ccp_fold_builtin): Rename to ...
29637         (gimple_fold_builtin): ... this.
29638         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
29639
29640 2010-04-15  Richard Guenther  <rguenther@suse.de>
29641
29642         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
29643         fit_double_type, force_fit_type_double, add_double_with_sign,
29644         neg_double, mul_double_with_sign, lshift_double, rshift_double,
29645         lrotate_double, rrotate_double, div_and_round_double): Move ...
29646         * double-int.c: ... here.
29647         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
29648         add_double, neg_double, mul_double_with_sign, mul_double,
29649         lshift_double, rshift_double, lrotate_double, rrotate_double,
29650         div_and_round_double): Move prototypes ...
29651         * double-int.h: ... here.
29652
29653 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
29654
29655         PR target/43742
29656         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
29657         matching constraints to ensure inputs match the output.
29658
29659 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
29660
29661         PR target/43742
29662         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
29663         in an input-only operand.
29664
29665 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
29666
29667         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
29668         (double_int_not, double_int_lshift, double_int_rshift): Declare.
29669         (double_int_negative_p): Convert to static inline function.
29670         * double-int.c (double_int_lshift, double_int_lshift): New functions.
29671         (double_int_negative_p): Remove.
29672         * tree.h (lshift_double, rshift_double):
29673         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
29674         * fold-const.c (fold_convert_const_int_from_real,
29675         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
29676         (lshift_double): Change type of arith argument to bool.
29677         (rshift_double): Change type of arith argument to bool. Correct
29678         comment.
29679         * expmed.c (mask_rtx, lshift_value): (Ditto.).
29680
29681 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
29682
29683         PR target/21803
29684         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
29685         at the start and end of the then/else blocks, and omit them from the
29686         conversion.
29687         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
29688         argument; all callers changed.  Pass zero to old_insns_match_p instead.
29689         (flow_find_head_matching_sequence): New function.
29690         (old_insns_match_p): Check REG_EH_REGION notes for calls.
29691         * basic-block.h (flow_find_cross_jump,
29692         flow_find_head_matching_sequence): Declare functions.
29693
29694 2010-04-14  Jason Merrill  <jason@redhat.com>
29695
29696         PR c++/36625
29697         * c-common.c (attribute_takes_identifier_p): New fn.
29698         * c-common.h: Declare it.
29699
29700 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29701
29702         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
29703         splitter condition.
29704         (*udivmod<mode>4): Ditto.
29705
29706 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29707
29708         * config/i386/i386.md (maxmin_int): Rename code attribute from
29709         maxminiprefix and update all users.
29710         (maxmin_float): Ditto from maxminfprefix.
29711         (logic): Ditto from logicprefix.
29712         (absneg_mnemonic): Ditto from absnegprefix.
29713         * config/i386/mmx.md: Update all users of maxminiprefix,
29714         maxminfprefix and logicprefix for rename.
29715         * config/i386/sse.md: Ditto.
29716         * config/i386/sync.md (sync_<code><mode>): Update for
29717         logicprefix rename.
29718
29719 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29720
29721         PR 42966
29722         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
29723         warnings converted to errors.
29724
29725 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29726
29727         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
29728         used insn_type variable.
29729         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
29730         to avoid set-but-not-used warning.
29731
29732 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29733
29734         * df-core.c (df_ref_debug): Change format string placeholder
29735         from 0x%x to %#x.
29736         * dwarf2asm.c (dw2_asm_output_data_raw,
29737         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
29738         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
29739         * dwarf2out.c (output_cfi, output_cfi_directive,
29740         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
29741         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
29742         Ditto.
29743         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
29744         * print-rtl.c (print_rtx): Ditto.
29745
29746 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
29747
29748         PR middle-end/42694
29749         * builtins.c (expand_builtin_pow_root): New function to expand pow
29750         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
29751         series of sqrt and cbrt calls under -ffast-math.
29752         (expand_builtin_pow): Call it.
29753
29754 2010-04-14  Michael Matz  <matz@suse.de>
29755
29756         PR tree-optimization/42963
29757         * tree-cfg.c (touched_switch_bbs): New static variable.
29758         (group_case_labels_stmt): New function broken out from ...
29759         (group_case_labels): ... here, use the above.
29760         (start_recording_case_labels): Allocate touched_switch_bbs.
29761         (end_recording_case_labels): Deallocate it, call
29762         group_case_labels_stmt.
29763         (gimple_redirect_edge_and_branch): Remember index of affected BB.
29764
29765 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29766
29767         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
29768         from insn template.
29769
29770 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29771
29772         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
29773
29774 2010-04-13  Jan Hubicka  <jh@suse.cz>
29775
29776         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
29777         of optimized out static functions.
29778         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
29779         cost computation.  Also sanity check for overflows.
29780         (update_caller_keys): Update cgraph_edge_badness call; properly
29781         update fibheap and sanity check that it is up to date.
29782         (add_new_edges_to_heap): Update cgraph_edge_badness.
29783         (cgraph_decide_inlining_of_small_function): Likewise;
29784         add sanity checking that badness in heap is up to date;
29785         improve dumping of reason; Update badness of calls to the
29786         offline copy of function currently inlined; dump badness
29787         of functions not inlined because of unit growth limits.
29788
29789 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
29790
29791         PR middle-end/32628
29792         * c-common.c (pointer_int_sum): Disregard overflow that occured only
29793         because of sign-extension change when converting to sizetype here...
29794         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
29795
29796         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
29797         the folding to constants.  Remove redundant final conversion.
29798         (fold_binary) <associate>: Do not associate if the re-association of
29799         constants alone overflows.
29800         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
29801         to the end of the list.
29802         (multiple_of_p) <COND_EXPR>: New case.
29803
29804 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29805
29806         * opt-functions.awk (opt_sanitized_name): New.
29807         (opt_enum): New.
29808         * optc-gen.awk: Use it
29809         * opth-gen.awk: Use it.
29810
29811 2010-04-13  Martin Jambor  <mjambor@suse.cz>
29812
29813         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
29814         (sra_modify_assign): Delete stmts loading dead data even if racc has no
29815         children.  Call replace_uses_with_default_def_ssa_name to handle
29816         SSA_NAES on lhs.
29817
29818 2010-04-13  Michael Matz  <matz@suse.de>
29819
29820         PR middle-end/43730
29821         * builtins.c (expand_builtin_interclass_mathfn): Also create
29822         a register if the predicate doesn't match.
29823
29824 2010-04-13  Diego Novillo  <dnovillo@google.com>
29825
29826         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
29827         * c-pch.c: Include timevar.h.
29828         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
29829         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
29830         * ggc-common.c: Include timevar.h.
29831         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
29832         * timevar.def (TV_PCH_SAVE): Define.
29833         (TV_PCH_CPP_SAVE): Define.
29834         (TV_PCH_PTR_REALLOC): Define.
29835         (TV_PCH_PTR_SORT): Define.
29836         (TV_PCH_RESTORE): Define.
29837         (TV_PCH_CPP_RESTORE): Define.
29838
29839 2010-04-13  Michael Matz  <matz@suse.de>
29840
29841         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
29842         into MINUS_EXPRs.
29843         (can_reassociate_p): New function.
29844         (break_up_subtract_bb, reassociate_bb): Use it.
29845
29846 2010-04-13  Richard Guenther  <rguenther@suse.de>
29847
29848         PR bootstrap/43737
29849         * builtins.c (c_readstr): Fix assert.
29850
29851 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
29852
29853         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
29854         when generating cltd insn.
29855
29856         (*ashl<mode>3_1): Remove special handling for register operand 2.
29857         (*ashlsi3_1_zext): Ditto.
29858         (*ashlhi3_1): Ditto.
29859         (*ashlhi3_1_lea): Ditto.
29860         (*ashlqi3_1): Ditto.
29861         (*ashlqi3_1_lea): Ditto.
29862         (*<shiftrt_insn><mode>3_1): Ditto.
29863         (*<shiftrt_insn>si3_1_zext): Ditto.
29864         (*<shiftrt_insn>qi3_1_slp): Ditto.
29865         (*<rotate_insn><mode>3_1): Ditto.
29866         (*<rotate_insn>si3_1_zext): Ditto.
29867         (*<rotate_insn>qi3_1_slp): Ditto.
29868
29869 2010-04-13  Richard Guenther  <rguenther@suse.de>
29870
29871         * tree-ssa-structalias.c (callused_id): Remove.
29872         (call_stmt_vars): New.
29873         (get_call_vi): Likewise.
29874         (lookup_call_use_vi): Likewise.
29875         (lookup_call_clobber_vi): Likewise.
29876         (get_call_use_vi): Likewise.
29877         (get_call_clobber_vi): Likewise.
29878         (make_transitive_closure_constraints): Likewise.
29879         (handle_const_call): Adjust to do per-call call-used handling.
29880         (handle_pure_call): Likewise.
29881         (find_what_var_points_to): Remove general callused handling.
29882         (init_base_vars): Likewise.
29883         (init_alias_vars): Initialize call_stmt_vars.
29884         (compute_points_to_sets): Process call-used and call-clobbered
29885         vars for call statements.
29886         (delete_points_to_sets): Free call_stmt_vars.
29887
29888 2010-04-13  Richard Guenther  <rguenther@suse.de>
29889
29890         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29891         Only add RW dependence for dependence distance zero.
29892         Adjust maximal vectorization factor according to dependences.
29893         Move alignment handling ...
29894         (vect_find_same_alignment_drs): ... here.  New function.
29895         (vect_analyze_data_ref_dependences): Adjust.
29896         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
29897         (vect_analyze_data_refs): Adjust minimal vectorization factor
29898         according to data references.
29899         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
29900         dependences before determining the vectorization factor.
29901         Analyze alignment after determining the vectorization factor.
29902         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
29903         dependences before alignment.
29904         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
29905         Adjust prototype.
29906         (vect_analyze_data_refs): Likewise.
29907         (MAX_VECTORIZATION_FACTOR): New define.
29908
29909 2010-04-13  Duncan Sands  <baldrick@free.fr>
29910
29911         * except.h (lang_eh_type_covers): Remove.
29912         * except.c (lang_eh_type_covers): Likewise.
29913
29914 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29915             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29916
29917         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
29918         * config/s390/s390.c: Replace UNTIS_PER_WORD with
29919         UNITS_PER_LONG where it is ABI relevant.
29920         (s390_return_addr_rtx): Likewise.
29921         (s390_back_chain_rtx): Likewise.
29922         (s390_frame_area): Likewise.
29923         (s390_frame_info): Likewise.
29924         (s390_initial_elimination_offset): Likewise.
29925         (save_gprs): Likewise.
29926         (s390_emit_prologue): Likewise.
29927         (s390_emit_epilogue): Likewise.
29928         (s390_function_arg_advance): Likewise.
29929         (s390_function_arg): Likewise.
29930         (s390_va_start): Likewise.
29931         (s390_gimplify_va_arg): Likewise.
29932         (s390_function_profiler): Likewise.
29933         (s390_optimize_prologue): Likewise.
29934         (s390_rtx_costs): Likewise.
29935         (s390_secondary_reload): Likewise.
29936         (s390_promote_function_mode): Likewise.
29937         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
29938         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
29939         registers available.
29940         (s390_unwind_word_mode): New function.
29941         (s390_function_value): Split 64 bit values into register pair if
29942         used as return value.
29943         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
29944         function call parameters.  Handle parallels.
29945         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
29946         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
29947         (DWARF_CIE_DATA_ALIGNMENT): New macro.
29948         (s390_expand_setmem): Remove unused variable src_addr.
29949         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
29950         deal with 64 bit registers.
29951         * config/s390/s390.h: Define __zarch__ predefined macro.
29952         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
29953         (UNITS_PER_LONG): New macro.
29954         * libjava/include/s390-signal.h: Define extended ucontext
29955         structure containing the upper halfs of the 64 bit registers.
29956
29957 2010-04-13  Simon Baldwin  <simonb@google.com>
29958
29959         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
29960
29961 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
29962
29963         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
29964         rvalue on the RHS if the LHS is of a non-renamable type.
29965         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
29966
29967 2010-04-13  Matthias Klose  <doko@ubuntu.com>
29968
29969         * gcc.c (cc1_options): Handle -iplugindir before processing
29970         the cc1 spec. Only add -iplugindir once.
29971         (cpp_unique_options): Add -iplugindir option if -fplugin* options
29972         found.
29973         * common.opt (iplugindir): Remove `Separate' property, initialize.
29974         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
29975         option.
29976         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
29977         (distclean): Remove plugin dir.
29978         * doc/invoke.texi: Document -iplugindir.
29979
29980 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
29981
29982         * doc/plugins.texi (Loading Plugins): Document short
29983         -fplugin=foo option.
29984         (Plugin API): Mention default_plugin_dir_name function.
29985
29986         * gcc.c (find_file_spec_function): Add new declaration.
29987         (static_spec_func): Use it for "find-file".
29988         (find_file_spec_function): Add new function.
29989         (cc1_options): Add -iplugindir option if -fplugin* options found.
29990
29991         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
29992
29993         * plugin.c (add_new_plugin): Updated comment, and handle short
29994         plugin name.
29995         (default_plugin_dir_name): Added new function.
29996
29997         * common.opt (iplugindir): New option to set the plugin directory.
29998
29999 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
30000
30001         * config/i386/i386.md (any_rotate): New code iterator.
30002         (rotate_insn): New code attribute.
30003         (rotate): Ditto.
30004         (SWIM124): New mode iterator.
30005         (<rotate_insn>ti3): New expander.
30006         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
30007         any_rotate code iterator.
30008         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
30009         using any_rotate code iterator and SWIM124 mode iterator.
30010         (ix86_rotlti3): New insn_and_split pattern.
30011         (ix86_rotrti3): Ditto.
30012         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
30013         ix86_rotl{di,ti}3 patterns.
30014         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
30015         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
30016         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
30017         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
30018         code iterator and SWI mode iterator.
30019         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
30020         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
30021         code iterator.
30022         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
30023         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
30024         (bswap rotatert splitter): Add splitter.
30025         (bswap splitter): Macroize splitter using any_rotate code iterator.
30026         Add insn predicate to split only for TARGET_USE_XCHGB or when
30027         optimizing function for size.
30028
30029 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
30030
30031         * config/pa/pa.c (emit_move_sequence): Remove use of
30032         deleted variable flag_argument_noalias.
30033
30034 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30035
30036         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
30037         configurations.
30038         Add to unsupported targets list.
30039         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
30040         sparc*-sun-solaris2.[567]* from target lists.
30041         * configure: Regenerate.
30042         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
30043         removal.
30044         Remove Solaris 7 patch references.
30045         (Specific, sparc-sun-solaris2.7): Removed.
30046         (sparc-sun-solaris2*): Update Solaris 7 example.
30047         (sparc64-*-solaris2*): Likewise.
30048
30049 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30050
30051         * config.build (alpha*-dec-osf4*): Remove.
30052         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
30053         of obsolete configurations.
30054         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
30055         support.
30056         * config/alpha/t-osf4: Renamed to ...
30057         * config/alpha/t-osf5: ... this.
30058         * config/alpha/osf.h: Renamed to ...
30059         * config/alpha/osf5.h: ... this.
30060         Merged old osf5.h contents.
30061         Update comments.
30062         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
30063         (EXTRA_SPECS): Removed.
30064         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
30065         reflect removal of Tru64 UNIX V4.0/V5.0 support.
30066         Document that.
30067
30068 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30069
30070         * doc/contrib.texi (Contributors, Rainer Orth): Update.
30071
30072 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
30073
30074         PR/43702
30075         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
30076         __thiscall convention.
30077
30078 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
30079
30080         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
30081         orig_base.
30082         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
30083
30084 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
30085
30086         * function.c (assign_parms_initialize_all): Add unused attribute
30087         to fntype.
30088
30089 2010-04-12  Richard Guenther  <rguenther@suse.de>
30090
30091         * gsstruct.def (GSS_CALL): New.
30092         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
30093         * gimple.h: Include tree-ssa-alias.h.
30094         (struct gimple_statement_call): New.
30095         (union gimple_statement_struct_d): Add gimple_call member.
30096         (gimple_call_reset_alias_info): Declare.
30097         (gimple_call_use_set): New function.
30098         (gimple_call_clobber_set): Likewise.
30099         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
30100         * gimple.c (gimple_call_reset_alias_info): New function.
30101         (gimple_build_call_1): Call it.
30102         * lto-streamer-in.c (input_gimple_stmt): Likewise.
30103         * tree-inline.c (remap_gimple_stmt): Likewise.
30104         (expand_call_inline): Remove callused handling.
30105         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
30106         * tree-dfa.c (dump_variable): Likewise.
30107         * tree-parloops.c (parallelize_loops): Likewise.
30108         * tree-ssa.c (init_tree_ssa): Likewise.
30109         (delete_tree_ssa): Likewise.
30110         * tree-flow-inline.h (is_call_used): Remove.
30111         * tree-flow.h (struct gimple_df): Remove callused member.
30112         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
30113         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
30114         (ref_maybe_used_by_call_p_1): Simplify.
30115         (call_may_clobber_ref_p_1): Likewise.
30116         * tree-ssa-structalias.c (compute_points_to_sets): Set
30117         the call stmt used and clobbered sets.
30118         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
30119         (find_tail_calls): Verify the tail call.
30120
30121 2010-04-12  Richard Guenther  <rguenther@suse.de>
30122
30123         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
30124         single-iteration always-inline inlining.
30125         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
30126         (cgraph_decide_inlining): Do not handle always-inline specially.
30127         (try_inline): Remove always-inline cycle detection special case.
30128         Do not recurse on always-inlines.
30129         (cgraph_early_inlining): Do not iterate if not optimizing.
30130         (cgraph_gate_early_inlining): remove.
30131         (pass_early_inline): Run unconditionally.
30132         (gate_cgraph_decide_inlining): New function.
30133         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
30134         not inlining or optimizing.
30135         (cgraph_decide_inlining_of_small_functions): Also consider
30136         always-inline functions.
30137         (cgraph_default_inline_p): Return true for nodes which should
30138         disregard inline limits.
30139         (estimate_function_body_sizes): Assume zero size and time for
30140         nodes which are marked as disregarding inline limits.
30141         (cgraph_decide_recursive_inlining): Do not perform recursive
30142         inlining on always-inline nodes.
30143
30144 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
30145
30146         PR bootstrap/43699
30147         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
30148         for exprs satisfying handled_component_p.
30149
30150 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
30151
30152         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
30153         non-constant aggregate elements.
30154
30155         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
30156         is a real initialization.
30157
30158 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
30159
30160         PR c/36774
30161         * c-decl.c (start_function): Move forward check for nested function.
30162
30163 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
30164
30165         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
30166         * config/sh/sh.c: Include reload.h.
30167         (sh_legitimize_reload_address): New.
30168         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
30169         sh_legitimize_reload_address.
30170
30171 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
30172
30173         * config/sh/sh.md (*movqi_pop): New insn pattern.
30174         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
30175
30176 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
30177
30178         * config/i386/i386.md (any_shiftrt): New code iterator.
30179         (shiftrt_insn): New code attribute.
30180         (shiftrt): Ditto.
30181         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
30182         using any_shiftrt code iterator.
30183         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
30184         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
30185         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
30186         pattern from corresponding peephole2 patterns.
30187         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
30188         using any_shiftrt code iterator.
30189         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
30190         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
30191         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
30192         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
30193         *{ashr,lshr}<mode>3_cmp_zext.
30194         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
30195
30196 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
30197
30198         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
30199         scratch register.
30200         (*lshr<mode>3_cconly): Ditto.
30201
30202 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
30203
30204         * config/i386/i386.md (lshr<mode>3): Macroize expander from
30205         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
30206         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
30207         pattern from *lshr{di,ti}3_1 and corresponding splitters using
30208         DWI mode iterator.
30209         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
30210         from corresponding peephole2 patterns.
30211         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
30212         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
30213         and *lshrdi3_1_rex64 using SWI mode iterator.
30214         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
30215         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
30216         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
30217         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
30218         and *lshrdi3_cmp_rex64 using SWI mode iterator.
30219         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
30220         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
30221         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
30222         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
30223         SWI mode iterator.
30224
30225 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
30226
30227         * config/i386/i386.md (ashr<mode>3): Macroize expander from
30228         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
30229         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
30230         pattern from *ashr{di,ti}3_1 and corresponding splitters using
30231         DWI mode iterator.
30232         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
30233         from corresponding peephole2 patterns.
30234         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
30235         (ashrsi3_cvt): Rename from ashrsi3_31.
30236         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
30237         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
30238         and x86_64_shift_adj_3 using SWI48 mode iterator.
30239         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
30240         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
30241         and *ashrdi3_1_rex64 using SWI mode iterator.
30242         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
30243         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
30244         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
30245         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
30246         and *ashrdi3_cmp_rex64 using SWI mode iterator.
30247         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
30248         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
30249         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
30250         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
30251         SWI mode iterator.
30252         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
30253         * config/i386/i386.c (ix86_split_ashr): Update for renamed
30254         x86_shift<mode>_adj_3 expanders.
30255
30256 2010-04-10  Wei Guozhi  <carrot@google.com>
30257
30258         PR target/42601
30259         * config/arm/arm.c (arm_pic_static_addr): New function.
30260         (legitimize_pic_address): Call arm_pic_static_addr when it detects
30261         a static symbol.
30262         (arm_output_addr_const_extra): Output expression for new pattern.
30263         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
30264
30265 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
30266
30267         * ira-costs.c (record_reg_classes): Ignore alternatives that are
30268         not enabled.
30269
30270         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
30271         * web.c: Include "insn-config.h" and "recog.h".
30272         (union_match_dups): New function.
30273         (web_main): Call it.
30274         (union_defs): Don't try to recognize match_dups.
30275
30276         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
30277         if doing so would replace the entire pattern.
30278
30279 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
30280
30281         PR target/43707
30282         PR target/43709
30283         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
30284         and splitter pattern.  Change splitter operand 1 predicate to
30285         nonmemory_operand.
30286
30287 2010-04-09  Martin Jambor  <mjambor@suse.cz>
30288
30289         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
30290         lattices are addresses of CONST_DECLs with the same initial value.
30291         (ipcp_print_all_lattices): Print values of CONST_DECLs.
30292         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
30293
30294 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
30295             Bernd Schmidt  <bernds@codesourcery.com>
30296
30297         * loop-invariant.c (replace_uses): New static function.
30298         (move_invariant_reg): Use it to ensure we can replace the uses.
30299
30300 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
30301
30302         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
30303         function template.
30304         (picochip_override_options): Enable section anchors only above -O1.
30305         (picochip_reorg): Fixed a couple of build warnings.
30306
30307 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30308
30309         * configure.ac (plugin -rdynamic test): Log result.
30310         * configure: Regenerate.
30311         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
30312         (RDYNAMIC_SPEC): Define.
30313         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
30314
30315 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30316
30317         * configure.ac: Determine Sun ld version numbers.
30318         (comdat_group): Restrict GNU ld version checks to gld.
30319         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
30320         (enable_comdat): Support --enable-comdat.
30321         * configure: Regenerate.
30322         * doc/install.texi (Configuration): Document --enable-comdat.
30323
30324 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30325
30326         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
30327         * config/sol2-gld.h: ... here.
30328         * config.gcc (sparc*-*-solaris2*): Reflect this.
30329         (i[34567]86-*-solaris2*): Use it.
30330
30331 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
30332
30333         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
30334         setup_clocks_p.
30335         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
30336
30337 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30338
30339         PR 42965
30340         * diagnostic.c (diagnostic_initialize): Initialize
30341         some_warnings_are_errors.
30342         (diagnostic_finish): New.
30343         (diagnostic_action_after_output): Call it before exiting.
30344         (diagnostic_report_diagnostic): Do not print message here. Set
30345         some_warnings_are_errors.
30346         * diagnostic.h (diagnostic_context): Delete
30347         issue_warnings_are_errors_message. Add some_warnings_are_errors.
30348         (diagnostic_finish): Declare.
30349         * toplev.c (toplev_main): Call it before exit.
30350
30351 2010-04-09  Jason Merrill  <jason@redhat.com>
30352
30353         PR c++/42623
30354         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
30355         for incomplete type.
30356
30357         PR c++/41788
30358         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
30359         based on a warning flag.
30360
30361 2010-04-09  Richard Guenther  <rguenther@suse.de>
30362
30363         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
30364
30365 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
30366
30367         PR bootstrap/43684
30368         * varasm.c (default_assemble_visibility): Wrap vars that are
30369         set, but unused, by targets without GAS.
30370         * config/rs6000/rs6000.c (paired_emit_vector_compare):
30371         Remove set, but unused, vars.
30372         (rs6000_legitimize_tls_address): Likewise.
30373         (altivec_expand_dst_builtin): Likewise.
30374         * config/darwin.c (machopic_classify_symbol): Likewise.
30375         (machopic_indirection_name): Likewise.
30376
30377 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
30378
30379         * config/i386/i386.md (DWI): New mode iterator.
30380         (S): New mode attribute.
30381         (shift_operand): Ditto.
30382         (shift_immediate_operand): Ditto.
30383         (ashl_input_operand): Ditto.
30384         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
30385         using SDWIM mode iterator.
30386         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
30387         pattern from *ashl{di,ti}3_1 and corresponding splitters using
30388         DWI mode iterator.
30389         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
30390         from corresponding peephole2 patterns.
30391         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
30392         and x86_64_shift_adj_1 using SWI48 mode iterator.
30393         (x86_shift<mode>_adj_2): Ditto.
30394         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
30395         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
30396         using SWI48 mode iterator.
30397         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
30398         *ashldi3_cmp_rex64 using SWI mode iterator.
30399         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
30400         *ashldi3_cconly_rex64 using SWI mode iterator.
30401         * config/i386/i386.c (ix86_split_ashl): Update for renamed
30402         x86_shift<mode>_adj_{1,2}.
30403         (ix86_split_ashr): Ditto.
30404         (ix86_split_lshr): Ditto.
30405
30406 2010-04-09  Richard Guenther  <rguenther@suse.de>
30407
30408         * target.h (builtin_conversion): Pass in input and output types.
30409         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
30410         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
30411         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
30412         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
30413
30414         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
30415         Handle AVX modes.
30416         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
30417
30418 2010-04-09  Richard Guenther  <rguenther@suse.de>
30419
30420         PR target/43152
30421         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
30422
30423 2010-04-09  Richard Guenther  <rguenther@suse.de>
30424
30425         * tree-vectorizer.h (struct _stmt_vec_info): Document
30426         that vectype is the type of the LHS.
30427         (supportable_widening_operation, supportable_narrowing_operation):
30428         Get both input and output vector types as arguments.
30429         (vect_is_simple_use_1): Declare.
30430         (get_same_sized_vectype): Likewise.
30431         * tree-vect-loop.c (vect_determine_vectorization_factor):
30432         Set STMT_VINFO_VECTYPE to the vector type of the def.
30433         (vectorizable_reduction): Adjust.
30434         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
30435         Adjust.  Specify the output vector type.
30436         (vect_pattern_recog_1): Adjust.
30437         * tree-vect-stmts.c (get_same_sized_vectype): New function.
30438         (vectorizable_call): Adjust.
30439         (vectorizable_conversion): Likewise.
30440         (vectorizable_operation): Likewise.
30441         (vectorizable_type_demotion): Likewise.
30442         (vectorizable_type_promotion): Likewise.
30443         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
30444         the def.
30445         (vect_is_simple_use_1): New function.
30446         (supportable_widening_operation): Get both input and output
30447         vector types.
30448         (supportable_narrowing_operation): Likewise.
30449         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
30450
30451 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
30452
30453         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
30454         __thiscall and _thiscall as predefined macros.
30455         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
30456         thiscall attribute handling.
30457         (ix86_comp_type_attributes): Likewise.
30458         (ix86_function_regparm): Likewise.
30459         (ix86_return_pops_args): Likewise.
30460         (init_cumulative_args): Likewise.
30461         (find_drap_reg): Likewise.
30462         (ix86_static_chain): Likewise.
30463         (x86_this_parameter): Likewise.
30464         (x86_output_mi_thunk): Likewise.
30465         (ix86_attribute_table): Add description for thiscall attribute.
30466         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
30467         * doc/extend.texi: Add documentation for thiscall.
30468
30469 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30470
30471         PR c++/28584
30472         * c.opt (Wint-to-pointer-cast): Available in C++.
30473         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
30474
30475 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
30476
30477         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
30478         * calls.c (expand_call): Pass the function type to aggregate_value_p.
30479         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
30480         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
30481         function type instead.  Reorder and simplify checks.
30482
30483         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
30484
30485 2010-04-08  Jing Yu  <jingyu@google.com>
30486             Zdenek Dvorak  <ook@ucw.cz>
30487
30488         PR tree-optimization/42720
30489         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
30490         loop unswitch conditions here from ...
30491         (tree_unswitch_single_loop): ... here.
30492
30493 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
30494
30495         * tree-if-conv.c: Fix comments and simplify logic.
30496
30497 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
30498
30499         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
30500         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
30501         (main_tree_if_conversion): Update call to tree_if_conversion.
30502
30503 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30504
30505         PR 42485
30506         * doc/invoke.texi (-b,-V): Delete.
30507         * doc/tm.texi: Do not mention -b.
30508         * gcc.c (display_help): Delete -b and -V.
30509         (process_command): Delete -b and -V.
30510         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
30511
30512 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
30513             Wolfgang Gellerich  <gellerich@de.ibm.com>
30514
30515         Implement target hook for loop unrolling
30516         * target.h (loop_unroll_adjust): Add a new target hook function.
30517         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
30518         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
30519         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
30520         (s390_loop_unroll_adjust): Implement the new target hook for s390.
30521         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
30522         target hook.
30523         (decide_unroll_stupid): Likewise.
30524
30525 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30526
30527         PR target/43643
30528         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
30529
30530 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30531
30532         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
30533         (Specific, *-*-solaris2*): Likewise.
30534         Don't prefer Sun as over GNU as.
30535
30536 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
30537
30538         * config/s390/s390.c (override_options): Adjust the z10 defaults
30539         for max-unroll-times, max-completely-peeled-insns
30540         and max-completely-peel-times.
30541
30542 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30543
30544         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
30545         instructions for z10.
30546         (s390_expand_setmem): Likewise.
30547         (s390_expand_cmpmem): Likewise.
30548
30549 2010-04-08  Richard Guenther  <rguenther@suse.de>
30550
30551         PR tree-optimization/43679
30552         * tree-ssa-pre.c (eliminate): Only propagate copies.
30553
30554 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
30555
30556         PR bootstrap/43681
30557         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
30558         set but not used variable warning.
30559
30560 2010-04-08  Wei Guozhi  <carrot@google.com>
30561
30562         PR target/41653
30563         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
30564         (arm_size_rtx_costs): Call the new function when optimized for size.
30565
30566 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
30567
30568         PR debug/43670
30569         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
30570         op0 is not a MEM, just return NULL instead of assertion
30571         failure.
30572         (discover_nonconstant_array_refs): Don't walk debug stmts.
30573
30574 2010-04-08  Doug Kwan  <dougkwan@google.com>
30575
30576         * configure.ac: Recognize gold and do not use its version number
30577         to test ld features.
30578         * configure: Regenerate.
30579
30580 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
30581
30582         PR middle-end/40815
30583         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
30584         (negate_value): Move code to push elements to broken_up_substracts ...
30585         (eliminate_plus_minus_pair): ... here.  Push operands that have no
30586         negative pair to plus_negates.
30587         (repropagate_negates, init_reassoc, fini_reassoc): Update.
30588
30589 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30590
30591         * doc/install.texi (Configuration): Move description of
30592         --enable-lto, --with-libelf*, --enable-gold from Java section to
30593         general section.
30594
30595         * doc/generic.texi (Working with declarations)
30596         (Function Properties, C and C++ Trees): Fix typos.
30597         * doc/sourcebuild.texi (Top Level): Likewise.
30598
30599 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
30600
30601         PR c/18624
30602         * tree.h (DECL_READ_P): Define.
30603         (struct tree_decl_common): Add decl_read_flag.
30604         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
30605         a set but not used warning.
30606         (merge_decls): Merge DECL_READ_P flag.
30607         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
30608         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
30609         * c-common.c (handle_used_attribute, handle_unused_attribute):
30610         Likewise.
30611         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
30612         New prototypes.
30613         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
30614         New functions.
30615         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
30616         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
30617         c_parser_binary_expression, c_parser_cast_expression,
30618         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
30619         Call default_function_array_read_conversion instead of
30620         default_function_array_conversion where needed.
30621         (c_parser_unary_expression, c_parser_conditional_expression,
30622         c_parser_postfix_expression_after_primary, c_parser_initelt):
30623         Likewise.  Call mark_exp_read where needed.
30624         (c_parser_statement_after_labels, c_parser_asm_operands,
30625         c_parser_typeof_specifier, c_parser_sizeof_expression,
30626         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
30627         where needed.
30628         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
30629         New.
30630         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
30631         (warn_unused_but_set_parameter): Default to warn_unused
30632         && extra_warnings.
30633         * doc/invoke.texi: Document -Wunused-but-set-variable and
30634         -Wunused-but-set-parameter.
30635
30636         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
30637         used count variable.
30638         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
30639         when operandN variables aren't used in the body of the expander
30640         or splitter.
30641         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
30642         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
30643         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
30644         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
30645         FOR_EACH_IMM_USE_ON_STMT): Likewise.
30646         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
30647         * tree.c (PROCESS_ARG): Likewise.
30648
30649 2010-04-07  Simon Baldwin  <simonb@google.com>
30650
30651         * diagnostic.h (diagnostic_override_option_index): New macro to
30652         set a diagnostic's option_index.
30653         * c-tree.h (c_cpp_error): Add warning reason argument.
30654         * opts.c (_warning_as_error_callback): New.
30655         (register_warning_as_error_callback): Store callback for
30656         warnings enabled via enable_warning_as_error.
30657         (enable_warning_as_error): Call callback, minor code tidy.
30658         * opts.h (register_warning_as_error_callback): Declare.
30659         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
30660         response to -Werror=.
30661         (c_common_init_options): Register warning_as_error_callback in opts.c.
30662         * common.opt: Add -Wno-cpp option.
30663         * c-common.c (struct reason_option_codes_t): Map cpp warning
30664         reason codes to gcc option indexes.
30665         * (c_option_controlling_cpp_error): New function, lookup the gcc
30666         option index for a cpp warning reason code.
30667         * (c_cpp_error): Add warning reason argument, call
30668         c_option_controlling_cpp_error for diagnostic_override_option_index.
30669         * doc/invoke.texi: Document -Wno-cpp.
30670
30671 2010-04-07  Richard Guenther  <rguenther@suse.de>
30672
30673         * ipa-reference.c (mark_load): Use get_base_address.
30674         (mark_store): Likewise.
30675
30676         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
30677         inserting GIMPLE_NOPs into the IL.
30678         * tree-ssa-structalias.c (get_constraint_for_component_ref):
30679         Explicitly strip handled components and indirect references.
30680
30681         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
30682         folding address expressions.
30683         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
30684         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
30685         operand_equal_p to compare decls.
30686         (ptr_deref_may_alias_decl_p): Likewise.
30687         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
30688         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
30689         Handle reversed comparison ops.
30690         * tree-sra.c (asm_visit_addr): Use get_base_address.
30691         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
30692         * ipa-reference.c (mark_address): Use get_base_address.
30693
30694 2010-04-07  Richard Guenther  <rguenther@suse.de>
30695
30696         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
30697         Propagate constants everywhere.
30698
30699 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
30700
30701         PR debug/43516
30702         * tree.c (MAX_INT_CACHED_PREC): Define.
30703         (nonstandard_integer_type_cache): New array.
30704         (build_nonstandard_integer_type): Cache results for precision
30705         <= MAX_INT_CACHED_PREC.
30706
30707 2010-04-07  Richard Guenther  <rguenther@suse.de>
30708
30709         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
30710         -fargument-noalias-global, -fargument-noalias-anything): Remove.
30711         * common.opt: Likewise.
30712         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
30713         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
30714         (nonoverlapping_memrefs_p): Likewise.
30715         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
30716         * opts.c (common_handle_option): Handle OPT_fargument_alias,
30717         OPT_fargument_noalias, OPT_fargument_noalias_anything and
30718         OPT_fargument_noalias_global for backward compatibility.
30719
30720 2010-04-07  Richard Guenther  <rguenther@suse.de>
30721
30722         PR tree-optimization/43270
30723         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
30724         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
30725         * tree-ssa-pre.c (phi_translate_1): Adjust.
30726         (fully_constant_expression): Split out vn_reference handling to ...
30727         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
30728         Fold reads from constant strings.
30729         (vn_reference_lookup): Handle fully constant references.
30730         (vn_reference_lookup_pieces): Likewise.
30731         * Makefile.in (expmed.o-warn): Add -Wno-error.
30732
30733 2010-04-07  Martin Jambor  <mjambor@suse.cz>
30734
30735         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
30736
30737 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
30738
30739         PR driver/41594
30740         * gcc.c: Add -static-libstdc++ to list of recognized options.
30741
30742 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30743
30744         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
30745
30746 2010-04-07  Richard Guenther  <rguenther@suse.de>
30747
30748         PR middle-end/42617
30749         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
30750         bases build simple mem attributes to retain points-to information.
30751
30752 2010-04-07  Richard Guenther  <rguenther@suse.de>
30753
30754         PR middle-end/42617
30755         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
30756         preserve points-to related information.
30757
30758 2010-04-07  Richard Guenther  <rguenther@suse.de>
30759
30760         PR middle-end/42617
30761         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
30762         discard plain indirect references.
30763         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
30764         * tree.c (tree_nop_conversion): Likewise.
30765
30766 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
30767
30768         PR debug/43628
30769         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
30770
30771 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
30772
30773         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
30774         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
30775
30776 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30777
30778         * tree-if-conv.c: Fix indentation and comments.
30779
30780 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30781
30782         * tree-if-conv.c: Sort static functions in topological order.
30783
30784 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30785
30786         * tree-if-conv.c: Fix indentation and comments.
30787
30788 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30789
30790         PR middle-end/43519
30791         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
30792         lang_hooks.types.type_for_size instead of
30793         build_nonstandard_integer_type.
30794         When converting an unsigned type to signed, double its precision.
30795         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
30796         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
30797         (graphite_create_new_loop_guard): When ub + 1 wraps around,
30798         use lb <= ub.
30799
30800 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30801
30802         PR middle-end/43519
30803         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
30804         POINTER_PLUS_EXPR for pointer types.
30805
30806 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30807
30808         PR middle-end/43519
30809         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
30810         * graphite-clast-to-gimple.c: Include langhooks.h.
30811         (max_signed_precision_type): New.
30812         (max_precision_type): Takes two types as arguments.
30813         (precision_for_value): New.
30814         (precision_for_interval): New.
30815         (gcc_type_for_interval): New.
30816         (gcc_type_for_value): New.
30817         (gcc_type_for_clast_term): New.
30818         (gcc_type_for_clast_red): New.
30819         (gcc_type_for_clast_bin): New.
30820         (gcc_type_for_clast_expr): Split up into several functions.
30821         (gcc_type_for_clast_eq): Rewritten.
30822         (compute_bounds_for_level): New.
30823         (compute_type_for_level_1): New.
30824         (compute_type_for_level): New.
30825         (gcc_type_for_cloog_iv): Removed.
30826         (gcc_type_for_iv_of_clast_loop): Rewritten.
30827         (graphite_create_new_loop): Compute the lower and upper bound types
30828         with gcc_type_for_clast_expr.
30829         (graphite_create_new_loop_guard): Same.
30830         (find_cloog_iv_in_expr): Removed.
30831         (compute_cloog_iv_types_1): Removed.
30832         (compute_cloog_iv_types): Removed.
30833         (gloog): Do not call compute_cloog_iv_types.
30834         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
30835         GBB_CLOOG_IV_TYPES.
30836         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
30837         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
30838         (GBB_CLOOG_IV_TYPES): Removed.
30839
30840 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30841
30842         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
30843         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
30844         (detect_commutative_reduction): Same.
30845
30846 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30847
30848         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
30849         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
30850         argument.
30851         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
30852         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
30853         (rewrite_commutative_reductions_out_of_ssa): Same.
30854         * passes.c (execute_function_todo): Call verify_ssa for every pass
30855         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
30856         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
30857         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
30858         with an extra argument.
30859         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
30860         verify_ssa only when the extra argument is true.
30861         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
30862         with an extra argument.
30863         (tree_transform_and_unroll_loop): Same.
30864
30865 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30866
30867         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
30868         for all the passes of the LNO having LOOP_CLOSED_SSA.
30869         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
30870         * tree-loop-distribution.c (pass_loop_distribution): Same.
30871         * tree-pass.h (TODO_verify_loops): Removed.
30872         * tree-ssa-loop.c (pass_tree_loop_init): Same.
30873         (pass_lim): Same.
30874         (pass_tree_unswitch): Same.
30875         (pass_predcom): Same.
30876         (pass_vectorize): Same.
30877         (pass_linear_transform): Same.
30878         (pass_graphite_transforms): Same.
30879         (pass_iv_canon): Same.
30880         (pass_complete_unroll): Same.
30881         (pass_complete_unrolli): Same.
30882         (pass_parallelize_loops): Same.
30883         (pass_loop_prefetch): Same.
30884         (pass_iv_optimize): Same.
30885
30886 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
30887
30888         PR middle-end/32824
30889         * passes.c (init_optimization_passes): Move pass_lim before
30890         pass_copy_prop and pass_dce_loop.
30891
30892 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
30893
30894         PR target/43667
30895         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
30896         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
30897         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
30898         MULTI_* defines for 4 argument vpermil2p* builtins.
30899
30900 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
30901
30902         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
30903         * config/i386/i386.c (x86_maybe_negate_const_int): New.
30904         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
30905         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
30906         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
30907         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
30908         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
30909         Use x86_maybe_negate_const_int to output insn mnemonic.
30910         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
30911         check from instruction predicate.  Update comments.
30912         * config/i386/sync.md (sync_add<mode>): Use
30913         x86_maybe_negate_const_int to output insn mnemonic.
30914
30915 2010-04-06  Jan Hubicka  <jh@suse.cz>
30916
30917         PR tree-optimization/42906
30918         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
30919         IGNORE_SELF argument.  Set visited_control_parents for fully
30920         processed BBs.
30921         (find_obviously_necessary_stmts): Update call of
30922         mark_control_dependent_edges_necessary.
30923         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
30924
30925 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
30926
30927         * config/i386/i386.md: Remove comment about 'e' and 'E'
30928         operand modifier.
30929
30930 2010-04-06  Richard Guenther  <rguenther@suse.de>
30931
30932         PR tree-optimization/43627
30933         * tree-vrp.c (extract_range_from_unary_expr): Widenings
30934         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
30935         not varying.
30936
30937 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
30938
30939         * BASE-VER: Change to 4.6.0.
30940
30941         PR target/43638
30942         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
30943         handling.
30944
30945 2010-04-06  Richard Guenther  <rguenther@suse.de>
30946
30947         PR middle-end/43661
30948         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
30949
30950 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30951
30952         * doc/invoke.texi (Optimize Options): Document that LTO
30953         won't remove object access purely due to incompatible
30954         declarations.
30955
30956 2010-04-04  Matthias Klose  <doko@ubuntu.com>
30957
30958         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
30959         Initialize variable.
30960
30961 2010-04-03  Richard Guenther  <rguenther@suse.de>
30962
30963         PR middle-end/42509
30964         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
30965         require a non-NULL MEM_OFFSET.
30966
30967 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
30968
30969         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
30970         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
30971         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
30972         config/alpha/predicates.md, config/arm/arm.md,
30973         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
30974         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
30975         config/darwin9.h, config/darwin.c, config/darwin.h,
30976         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
30977         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
30978         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
30979         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
30980         config/mips/mips.md, config/mn10300/mn10300.c,
30981         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
30982         config/rs6000/aix.h, config/rs6000/dfp.md,
30983         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
30984         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
30985         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
30986         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
30987         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
30988         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
30989         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
30990         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
30991         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
30992         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
30993         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
30994         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
30995         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
30996         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
30997         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
30998         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
30999         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
31000         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
31001         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
31002         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
31003         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
31004         opt-functions.awk, opth-gen.awk, params.def, passes.c,
31005         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
31006         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
31007         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
31008         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
31009         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
31010         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
31011         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
31012         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
31013         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
31014         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
31015         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
31016         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
31017         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
31018         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
31019
31020 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31021
31022         PR other/43620
31023         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
31024         * aclocal.m4: Regenerate.
31025
31026 2010-04-02  Richard Guenther  <rguenther@suse.de>
31027
31028         PR tree-optimization/43629
31029         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
31030         if we have seen a constant value.
31031
31032 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
31033
31034         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
31035
31036 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
31037
31038         PR target/43469
31039         * arm.c (legitimize_tls_address): Adjust call to
31040         gen_tls_load_dot_plus_four.
31041         (arm_note_pic_base): New function.
31042         (arm_cannot_copy_insn_p): Use it.
31043         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
31044         constraint.
31045
31046 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31047
31048         PR bootstrap/43531
31049
31050         Revert:
31051         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31052
31053         * Makefile.in ($(out_object_file)): Depend on
31054         gt-$(basename $(notdir $(out_file))).h.
31055
31056 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
31057
31058         * config.gcc (lm32-*-rtems*): Add t-lm32.
31059
31060 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
31061
31062         * config.gcc: Add lm32-*-rtems*.
31063         * config/lm32/rtems.h: New file.
31064
31065 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
31066
31067         PR target/42609
31068         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
31069
31070 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
31071
31072         * dwarf2out.c (output_compilation_unit_header): For
31073         -gdwarf-4 use version 4 instead of version 3.
31074         (output_line_info): For version 4 and above emit additional
31075         maximum ops per insn header field.
31076         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
31077
31078         * dwarf2out.c (is_c_family, is_java): Remove.
31079         (lower_bound_default): New function.
31080         (add_bound_info, gen_descr_array_type_die): Use it.
31081
31082 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
31083
31084         PR debug/43325
31085         * dwarf2out.c (gen_variable_die): Allow debug info for variable
31086         re-declaration when it happens in a function.
31087
31088 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
31089
31090         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
31091         (cgraph_remove_function_insertion_hook): Same.
31092         (cgraph_call_function_insertion_hooks): Same.
31093
31094 2010-04-01  Richard Guenther  <rguenther@suse.de>
31095
31096         PR middle-end/43614
31097         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
31098         and TREE_THIS_VOLATILE.
31099         (copy_ref_info): Likewise.
31100         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
31101         * tree.c (build6_stat): Ignore side-effects of all but arg5
31102         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
31103         TARGET_MEM_REF.
31104
31105 2010-04-01  Richard Guenther  <rguenther@suse.de>
31106
31107         PR tree-optimization/43607
31108         * ipa-type-escape.c (check_call): Do not access non-existing
31109         arguments.
31110
31111 2010-04-01  Richard Guenther  <rguenther@suse.de>
31112
31113         PR middle-end/43602
31114         Revert
31115         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
31116                     Jack Howarth  <howarth@bromo.med.uc.edu>
31117
31118         * tree-profile.c (tree_init_ic_make_global_vars): Make static
31119         variables TLS.
31120
31121 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31122
31123         * doc/install.texi (Prerequisites): Document libelf usability on
31124         IRIX 5/6 and Solaris 2.
31125         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
31126         Update GNU as, GNU ld requirements.
31127         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
31128         Document Sun Studio compiler download.
31129         Update and simplify as, ld recommendations.
31130         (Specific, *-*-solaris2.7): Note obsoletion, removal.
31131
31132 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31133
31134         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
31135         with_tune_32 to pentium4.
31136
31137 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
31138
31139         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
31140
31141 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31142
31143         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
31144         obsoletion, removal.
31145         Update IDO URL.
31146         Document GNU as requirement.
31147         Update configure requirements.
31148         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
31149         Recomment IRIX 6.5.18+.
31150         Document IDF/IDL requirement.
31151         Document GNU as requirement.
31152         Document GNU ld bootstrap failure.
31153         Remove freeware.sgi.com reference.
31154
31155 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31156
31157         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
31158         UNIX V4.0, V5.0 obsoletion, removal.
31159         Remove --with-gc=simple reference.
31160         Update VM requirements during bootstrap.
31161         Remove -oldas bootstrap description.
31162         Update binutils reference.
31163         Remove comparison failure note.
31164
31165 2010-03-31  Richard Guenther  <rguenther@suse.de>
31166             Zdenek Dvorak  <ook@ucw.cz>
31167             Sebastian Pop  <sebastian.pop@amd.com>
31168
31169         PR middle-end/43464
31170         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
31171         with multiple arguments.
31172         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
31173
31174 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31175
31176         * graphite-dependences.c (print_pddr): Call print_pdr with an
31177         extra argument.
31178         * graphite-poly.c (debug_pdr): Add an extra argument for the
31179         verbosity level.
31180         (print_pdr): Same.
31181         (print_pbb_domain): Same.
31182         (print_pbb): Same.
31183         (print_scop_context): Same.
31184         (print_scop): Same.
31185         (print_cloog): Same.
31186         (debug_pbb_domain): Same.
31187         (debug_pbb): Same.
31188         (print_pdrs): Same.
31189         (debug_pdrs): Same.
31190         (debug_scop_context): Same.
31191         (debug_scop): Same.
31192         (debug_cloog): Same.
31193         (print_scop_params): Same.
31194         (debug_scop_params): Same.
31195         (print_iteration_domain): Same.
31196         (print_iteration_domains): Same.
31197         (debug_iteration_domain): Same.
31198         (debug_iteration_domains): Same.
31199         (print_scattering_function): Same.
31200         (print_scattering_functions): Same.
31201         (debug_scattering_function): Same.
31202         (debug_scattering_functions): Same.
31203         * graphite-poly.h (debug_pdr): Update declaration.
31204         (print_pdr): Same.
31205         (print_pbb_domain): Same.
31206         (print_pbb): Same.
31207         (print_scop_context): Same.
31208         (print_scop): Same.
31209         (print_cloog): Same.
31210         (debug_pbb_domain): Same.
31211         (debug_pbb): Same.
31212         (print_pdrs): Same.
31213         (debug_pdrs): Same.
31214         (debug_scop_context): Same.
31215         (debug_scop): Same.
31216         (debug_cloog): Same.
31217         (print_scop_params): Same.
31218         (debug_scop_params): Same.
31219         (print_iteration_domain): Same.
31220         (print_iteration_domains): Same.
31221         (debug_iteration_domain): Same.
31222         (debug_iteration_domains): Same.
31223         (print_scattering_function): Same.
31224         (print_scattering_functions): Same.
31225         (debug_scattering_function): Same.
31226         (debug_scattering_functions): Same.
31227
31228 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31229
31230         * graphite-poly.c (print_scattering_function_1): New.
31231         (print_scattering_function): Call it.
31232         (print_scop_params): Remove spaces at the end of lines.
31233         (print_cloog): New.
31234         (debug_cloog): New.
31235         * graphite-poly.h (print_cloog): Declared.
31236         (debug_cloog): Declared.
31237
31238 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31239
31240         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
31241         in loop->header.
31242         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
31243         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
31244         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
31245         to switch between adding the IV bump in loop->latch or in loop->header.
31246
31247 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
31248
31249         * graphite-poly.c (print_scattering_function): Pretty print following
31250         the scoplib format.
31251         (print_pdr): Same.
31252         (print_pbb_domain): Same.
31253         (dump_gbb_cases): Same.
31254         (dump_gbb_conditions): Same.
31255         (print_pdrs): Same.
31256         (print_pbb): Same.
31257         (print_scop_params): Same.
31258         (print_scop_context): Same.
31259         (print_scop): Same.
31260         (print_pbb_body): New.
31261         (lst_indent_to): New.
31262         (print_lst): Start new lines with a #.
31263         * graphite-poly.h (pbb_bb): New.
31264         (pbb_index): Use pbb_bb.
31265         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
31266         disjuncts.
31267         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
31268
31269 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
31270
31271         * dwarf2out.c (size_of_die): For -gdwarf-4 use
31272         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
31273         and 0 instead of 1 for dw_val_class_flag.
31274         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
31275         dw_val_class_range_list, dw_val_class_loc_list,
31276         dw_val_class_lineptr and dw_val_class_macptr, use
31277         DW_FORM_flag_present for dw_val_class_flag and
31278         DW_FORM_exprloc for dw_val_class_loc.
31279         (output_die): For -gdwarf-4 print dw_val_class_loc
31280         size as uleb128 instead of 1 or 2 bytes and don't print
31281         anything for dw_val_class_flag.
31282
31283         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
31284         instead of cselib_lookup following by tweaking locs->setting_insn.
31285
31286         PR bootstrap/43596
31287         * cselib.c (cselib_process_insn): Clear cselib_current_insn
31288         even before returning from label, setjmp call or volatile asm
31289         handling.
31290
31291 2010-03-31  Richard Guenther  <rguenther@suse.de>
31292
31293         PR middle-end/43600
31294         * cgraphunit.c (cgraph_output_in_order): Do not allocate
31295         temporary data on stack.
31296
31297 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31298
31299         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
31300         (PUSHSECTION_ASM_OP): Remove.
31301         (POPSECTION_ASM_OP): Remove.
31302         (PUSHSECTION_FORMAT): Remove.
31303         * config/sol2.h (PUSHSECTION_FORMAT): Define.
31304         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
31305         * config/sol2.c (solaris_output_init_fini): Use it.
31306
31307 2010-03-31  Jie Zhang  <jie@codesourcery.com>
31308
31309         PR 43574
31310         * opt-functions.awk (var_type_struct): Use signed char type
31311         for simple variables.
31312
31313 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31314
31315         * config/sol2.c: Include output.h.
31316         (solaris_assemble_visibility): New function.
31317         * config/t-sol2 (sol2.o): Add output.h dependency.
31318         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
31319         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
31320         Redefine.
31321
31322 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
31323
31324         PR target/43580
31325         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
31326         V2SImode or XFmode on PRE_DEC.
31327
31328         PR debug/43557
31329         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
31330         BLKmode.
31331
31332 2010-03-31  Jie Zhang  <jie@codesourcery.com>
31333
31334         PR 43562
31335         * reload.h (caller_save_initialized_p): Declare.
31336         * toplev.c (backend_init_target): Don't call
31337         init_caller_save but set caller_save_initialized_p to false.
31338         * caller-save.c (caller_save_initialized_p): Define.
31339         (init_caller_save): Check caller_save_initialized_p.
31340         * ira.c (ira): Call init_caller_save if flag_caller_saves.
31341
31342 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31343
31344         PR target/39048
31345         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
31346         and soft-fp/t-softfp to tmake_file.
31347         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
31348         (LIBGCC2_TF_CEXT): Define.
31349         (TF_SIZE): Define.
31350
31351 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
31352
31353         PR debug/42977
31354         * cselib.c (n_useless_values): Document handling of debug locs.
31355         (n_useless_debug_values, n_debug_values): New variables.
31356         (new_elt_loc_list): Don't add to debug values, keep count.
31357         (promote_debug_loc): New.
31358         (cselib_reset_table): Zero new variables.
31359         (entry_and_rtx_equal_p): Promote debug locs.
31360         (discard_useless_locs): Increment n_useless_debug_values for
31361         debug values.
31362         (remove_useless_values): Adjust n_useless_values and n_debug_values
31363         with n_useless_debug_values.
31364         (add_mem_for_addr): Promote debug locs.
31365         (cselib_lookup_mem): Likewise.
31366         (cselib_lookup_addr): Renamed to...
31367         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
31368         (cselib_log_lookup): ... this.  Turn into...
31369         (cselib_lookup_addr): ... new wrapper.
31370         (cselib_lookup_from_insn): New.
31371         (cselib_invalidate_regno): Increment n_useless_debug_values for
31372         debug values.
31373         (cselib_invalidate_mem): Likewise.
31374         (cselib_process_insn): Take n_deleted and n_debug_values into
31375         account to guard remove_useless_value call.
31376         (cselib_finish): Zero n_useless_debug_values.
31377         * cselib.h (cselib_lookup_from_insn): Declare.
31378         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
31379         (sched_analyze_2): Likewise.
31380
31381 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
31382
31383         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
31384         functions.
31385         (adjust_mems): Replace narrowing SUBREG of expression containing
31386         just PLUS, MINUS, MULT and ASHIFT of registers and constants
31387         with operations in the narrower mode.
31388
31389         PR debug/43593
31390         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
31391         regs_invalidated_by_call instead all call_used_reg_set registers.
31392
31393 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
31394
31395         PR middle-end/43430
31396         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
31397         pointer comparisons with types_compatible_p.
31398         * tree-vect-stmts.c (vectorizable_call): Same.
31399         (vectorizable_condition): Same.
31400
31401 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31402
31403         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
31404         stack check if the mask would be zero.
31405
31406 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
31407             Jack Howarth  <howarth@bromo.med.uc.edu>
31408
31409         * tree-profile.c (tree_init_ic_make_global_vars): Make static
31410         variables TLS.
31411
31412 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
31413
31414         PR other/25232
31415         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
31416         and __unordtf2.
31417         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
31418         Include ___unordxf2 and ___unordtf2.
31419         * config/i386/libgcc-glibc.ver: Do not define inheritance from
31420         GCC_4.4.0 here.
31421
31422 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
31423
31424         * config/lm32/t-lm32: New file.
31425         * config.gcc: Use the above file when targetting lm32.
31426
31427 2010-03-28  Duncan Sands  <baldrick@free.fr>
31428
31429         * Makefile.in (PLUGIN_HEADERS): Add except.h.
31430
31431 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
31432
31433         PR middle-end/43431
31434         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
31435         Improve vectorization cost model diagnostic.
31436
31437 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
31438
31439         PR middle-end/43436
31440         * tree-vect-data-refs.c (vect_analyze_data_refs): When
31441         compute_data_dependences_for_loop returns false, early exit
31442         and output an extra diagnostic for the failed data reference
31443         analysis.
31444
31445 2010-03-29  Richard Guenther  <rguenther@suse.de>
31446
31447         PR tree-optimization/43560
31448         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
31449         (can_sm_ref_p): Treat stores to readonly locations as trapping.
31450
31451 2010-03-29  Jie Zhang  <jie@codesourcery.com>
31452
31453         PR 43564
31454         * toplev.c (process_options): Set optimization_default_node
31455         and optimization_current_node.
31456         * opts.c (decode_options): Don't set optimization_default_node
31457         and optimization_current_node.
31458
31459 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
31460
31461         * config/rtems.h: Abandon -qrtems_debug.
31462
31463 2010-03-28  Jan Hubicka  <jh@suse.cz>
31464
31465         PR tree-optimization/43505
31466         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
31467         map should not be copied.
31468
31469 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31470
31471         PR middle-end/41674
31472         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
31473         cdtors, set DECL_PRESERVE_P.
31474         * ipa.c (cgraph_externally_visible_p): Return true if declaration
31475         should be preseved.
31476
31477 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
31478
31479         PR tree-optimization/43528
31480         * stor-layout.c (place_field): Check that constant fits into
31481         unsigned HWI when skipping calculation of MS bitfield layout.
31482
31483 2010-03-27  Jan Hubicka  <jh@suse.cz>
31484
31485         PR middle-end/43391
31486         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
31487         notice_global_symbol work.
31488
31489 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
31490
31491         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
31492         instead of dwarf2out_decl.
31493         (struct var_loc_node): Remove section_label field.
31494         (dwarf2out_function_decl): New function.
31495         (dwarf2out_var_location): Don't set section_label field.
31496         (dwarf2out_begin_function): Don't empty decl_loc_table here.
31497
31498 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
31499
31500         PR tree-optimization/43544
31501         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31502         First argument for builtin vectorized function hook is now a
31503         tree to be able to distinguish between machine specific and
31504         standard builtins.
31505         * targhooks.c (default_builtin_vectorized_function): Ditto.
31506         * targhooks.h (default_builtin_vectorized_function): Ditto.
31507         * target.h (struct gcc_target): Ditto.
31508         * tree-vect-stmts.c (vectorizable_function): Ditto.
31509         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
31510         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
31511         Ditto.
31512
31513 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
31514
31515         PR c/43381
31516         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
31517         nested binding iff it is a FUNCTION_DECL.
31518         (store_parm_decls_newstyle): Pass nested=true to bind for
31519         FUNCTION_DECLs amongst parameters.
31520
31521 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
31522
31523         * var-tracking.c (vt_expand_loc_callback): Don't run
31524         cselib_expand_value_rtx_cb in dummy mode if
31525         cselib_dummy_expand_value_rtx_cb returned false.
31526
31527         * var-tracking.c (emit_note_insn_var_location): For one part
31528         notes with offset 0, don't add EXPR_LIST around the location.
31529         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
31530         add_location_or_const_value_attribute): Adjust for that change.
31531
31532         PR debug/43540
31533         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
31534         into first operand and location into second.
31535         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
31536         dw_cfi_oprnd_loc for DW_CFA_expression.
31537         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
31538         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
31539         assume first argument is regnum and second argument is location.
31540
31541 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
31542
31543         PR target/42113
31544         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
31545         of scratch register to DImode.  Split to DImode comparison operator.
31546         Use SImode subreg of scratch register in the multiplication.
31547         (*cmp_sadd_sidi): Ditto.
31548         (*cmp_ssub_si): Ditto.
31549         (*cmp_ssub_sidi): Ditto.
31550
31551 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
31552
31553         PR target/43524
31554         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
31555         Remove invalid assert and wrong comment.
31556
31557 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
31558
31559         PR debug/43516
31560         * flags.h (final_insns_dump_p): New extern.
31561         * final.c (final_insns_dump_p): New variable.
31562         (rest_of_clean_state): Set it before -fdump-final-insns=
31563         dumping, clear afterwards.
31564         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
31565         MEM_ALIAS_SET on MEMs.
31566
31567 2010-03-26  David S. Miller  <davem@davemloft.net>
31568
31569         * configure.ac: Fix sparc GOTDATA_OP bug check.
31570         * configure: Rebuild.
31571
31572 2010-03-26  Alan Modra  <amodra@gmail.com>
31573
31574         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
31575
31576 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31577
31578         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
31579         TLS_SECTION_ASM_FLAG.
31580
31581 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
31582
31583         PR bootstrap/43511
31584         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
31585         Clear first_function_block_is_cold.
31586
31587         PR c/43385
31588         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
31589         argument if the argument is truth_value_p.
31590
31591 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
31592
31593         * config/rs6000/constraints.md: Update copyright year for my changes.
31594
31595         PR target/43484
31596         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
31597         used in reg+reg addressing, swap registers.
31598
31599 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
31600
31601         PR debug/43293
31602         * target.h (struct gcc_target): Add code_end hook.
31603         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
31604         if not yet defined.
31605         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
31606         * toplev.c (compile_file): Call targetm.asm_out.code_end
31607         hook before unwind info/debug info output.
31608         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
31609         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
31610         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
31611         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
31612         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
31613         * config/i386/i386.c (ix86_file_end): Renamed to...
31614         (ix86_code_end): ... this.  Make static.  Don't call
31615         file_end_indicate_exec_stack.  Emit unwind info using
31616         final_start_function/final_end_function.
31617         (darwin_x86_file_end): Remove.
31618         (TARGET_ASM_CODE_END): Define.
31619         * config/i386/i386.h (TARGET_ASM_FILE_END,
31620         NEED_INDICATE_EXEC_STACK): Don't define.
31621         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
31622         (TARGET_ASM_FILE_END): Define to darwin_file_end.
31623         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
31624         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
31625
31626         PR target/43498
31627         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
31628         at the beginning and final_end_function at the end.
31629         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
31630
31631 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31632
31633         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
31634         and Sun as TLS syntax.
31635         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
31636         * configure: Regenerate.
31637         * config.in: Regenerate.
31638         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
31639         (default_elf_asm_named_section): Use it.
31640         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
31641         (i386_output_dwarf_dtprel): Likewise.
31642         (output_addr_const_extra): Likewise.
31643         (output_pic_addr_const): Lowercase @GOTTPOFF.
31644         (output_addr_const_extra): Likewise.
31645         (output_pic_addr_const): Lowercase @GOTNTPOFF.
31646         (output_addr_const_extra): Likewise.
31647         (output_pic_addr_const): Lowercase @INDNTPOFF.
31648         (output_addr_const_extra): Likewise.
31649         (output_pic_addr_const): Lowercase @NTPOFF.
31650         (output_addr_const_extra): Likewise.
31651         (output_pic_addr_const): Lowercase @TPOFF.
31652         (output_addr_const_extra): Likewise.
31653         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
31654         (*tls_global_dynamic_64): Likewise.
31655         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
31656         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
31657
31658         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
31659         (ASM_OUTPUT_TLS_COMMON): Use it.
31660         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
31661
31662         PR target/38118
31663         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
31664         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
31665         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
31666         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
31667         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
31668         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
31669
31670 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31671
31672         * config/i386/i386.c (override_options): Don't accept
31673         -mtls-dialect=sun any longer.
31674         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
31675         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
31676         (*tls_local_dynamic_base_32_sun): Likewise.
31677         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
31678
31679 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
31680
31681         PR debug/43508
31682         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
31683         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
31684
31685         PR debug/43479
31686         * ira.c (adjust_cleared_regs): New function.
31687         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
31688
31689         PR debug/19192
31690         PR debug/43479
31691         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
31692         from gimple_block.
31693         * expr.c (expand_expr_real): Restore previous
31694         curr_insn_source_location and curr_insn_block after
31695         expand_expr_real_1 call.
31696         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
31697         instead of expand_expr_real_1.
31698
31699 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
31700
31701         PR rtl-optimization/43413
31702         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
31703         hard regs too.
31704
31705 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
31706
31707         PR target/43348
31708         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
31709         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
31710
31711 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
31712
31713         * config/i386/i386.c (ix86_target_string): Add -mfma.
31714         Fix a typo in comment.
31715
31716 2010-03-22  Mike Stump  <mikestump@comcast.net>
31717
31718         PR target/23071
31719         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
31720         Don't overly align based upon packed packed fields.
31721
31722 2010-03-22  Jason Merrill  <jason@redhat.com>
31723
31724         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
31725         Use () rather than [], and move before the element type.
31726
31727 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31728
31729         * doc/configfiles.texi (Configuration Files): Removed
31730         fixinc/Makefile*, intl/Makefile.*.
31731         * doc/makefile.texi: Fixed markup. Abstract from version
31732         control system used.
31733         (Makefile): Removed obsolete java/parse.y example.
31734         * doc/sourcebuild.texi: Likewise.
31735         (Top Level): Added config, gnattools, libdecnumber, libgcc,
31736         libgomp, libssp.  Removed fastjar.
31737         (Miscellaneous Docs): Clarify location.
31738         Added COPYING3, COPYING3.LIB.
31739         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
31740
31741 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31742
31743         PR target/38085
31744         * config/i386/i386.c (x86_function_profiler)
31745         [!NO_PROFILE_COUNTERS]: Fix typo.
31746         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
31747         instead of callq.
31748
31749 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
31750             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31751
31752         * doc/sourcebuild.texi (Test Directives): Split into six
31753         subsections, with most of the current text in new subsections
31754         Directives, Selectors, and Final Actions.
31755         (Directives): Split list of test directives into multiple
31756         subsubsections.
31757         (Selectors): Describe use and syntax of selectors.
31758         (Effective-Target Keywords): Describe all existing keywords.
31759         (Add Options): Describe features for dg-add-options.
31760         (Require Support): Describe variants of dg-require-support.
31761         (Final Actions): Describe commands to use in dg-final.
31762
31763 2010-03-22  Michael Matz  <matz@suse.de>
31764
31765         PR middle-end/43475
31766         * recog.c (validate_replace_rtx_group): Replace also in
31767         REG_EQUAL and REG_EQUIV notes.
31768
31769 2010-03-22  Richard Guenther  <rguenther@suse.de>
31770
31771         PR tree-optimization/43390
31772         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
31773         sure vector extracts are type correct.
31774
31775 2010-03-22  Richard Guenther  <rguenther@suse.de>
31776
31777         PR middle-end/40106
31778         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
31779         x * sqrt (x) even when optimizing for size if the target
31780         has native support for sqrt.
31781
31782 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
31783
31784         * varasm.c (make_decl_rtl_for_debug): Also clear
31785         flag_mudflap for the duration of make_decl_rtl call.
31786
31787         PR debug/43443
31788         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
31789         locs from preserved VALUEs.
31790
31791 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31792
31793         PR middle-end/42718
31794         * pa.md (movmemsi): Set align to one if zero.
31795         (movmemdi): Likewise.
31796
31797 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
31798
31799         PR target/42321
31800         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
31801         with their corresponding prologue pushes.
31802
31803 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
31804
31805         PR target/43156
31806         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
31807         at the begining or end.
31808         (spu_expand_epilogue): Likewise.
31809
31810 2010-03-20  Richard Guenther  <rguenther@suse.de>
31811
31812         PR rtl-optimization/43438
31813         * combine.c (make_extraction): Properly zero-/sign-extend an
31814         extraction of the low part of a CONST_INT.  Also handle
31815         CONST_DOUBLE.
31816
31817 2010-03-19  Mike Stump  <mikestump@comcast.net>
31818
31819         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
31820         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
31821         (override_options): Use SUBTARGET32_DEFAULT_CPU.
31822
31823 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
31824
31825         PR c/43211
31826         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
31827         an error.
31828
31829 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
31830
31831         PR rtl-optimization/42258
31832         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
31833         use that may match DEF.
31834
31835         PR target/40697
31836         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
31837         the cost of loading the constant rather than assuming
31838         COSTS_N_INSNS (1).
31839         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
31840         outer code is AND, do the same tests as the andsi3 expander and
31841         return COSTS_N_INSNS (1) if and is cheap.
31842
31843         * optabs.c (avoid_expensive_constant): Fix formatting.
31844
31845 2010-03-19  Michael Matz  <matz@suse.de>
31846
31847         PR c++/43116
31848         * attribs.c (decl_attributes): When rebuilding a function pointer
31849         type use the same qualifiers as the original pointer type.
31850
31851 2010-03-19  Martin Jambor  <mjambor@suse.cz>
31852
31853         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
31854         and is_gimple_ip_invariant_address.
31855
31856 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31857
31858         Revert
31859         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31860
31861         * config/arm/arm.c (arm_override_options): Turn off
31862         flag_dwarf2_cfi_asm for AAPCS variants.
31863
31864 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31865
31866         PR target/43399
31867         * config/arm/arm.c (emit_multi_reg_push): Update comments.
31868         Use PRE_MODIFY instead of PRE_DEC.
31869         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
31870         (vfp_emit_fstmd): Likewise.
31871
31872 2010-03-19  Michael Matz  <matz@suse.de>
31873
31874         PR target/43305
31875         * builtins.c (expand_builtin_interclass_mathfn,
31876         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
31877         if that fails.
31878
31879 2010-03-19  Richard Guenther  <rguenther@suse.de>
31880
31881         PR tree-optimization/43415
31882         * tree-ssa-pre.c (phi_translate): Split out worker to ...
31883         (phi_translate_1): ... this.
31884         (phi_translate): Move all caching here.  Cache all NARY
31885         and REFERENCE translations.
31886
31887 2010-03-19  David S. Miller  <davem@davemloft.net>
31888
31889         With help from Eric Botcazou.
31890         * config/sparc/sparc.c: Include dwarf2out.h.
31891         (emit_pic_helper): Delete.
31892         (pic_helper_symbol_name): Delete.
31893         (pic_helper_emitted_p): Delete.
31894         (pic_helper_needed): New.
31895         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
31896         (get_pc_thunk_name): New.
31897         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
31898         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
31899         Set pic_helper_needed to true.  Don't call emit_pic_helper.
31900         (sparc_expand_prologue): Update load_pic_register call.
31901         (sparc_output_mi_thunk): Likewise.
31902         (sparc_file_end): Emit a hidden comdat symbol for the PIC
31903         thunk if possible.  Output CFI information as needed.
31904
31905 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
31906             Jack Howarth  <howarth@bromo.med.uc.edu>
31907
31908         PR target/36399
31909         * config/i386/i386.h: Fix ABI on darwin x86-32.
31910
31911 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
31912
31913         * tree.h: Declare make_decl_rtl_for_debug.
31914         * varasm.c (make_decl_rtl_for_debug): New.
31915         * dwarf2out.c (rtl_for_decl_location): Call it.
31916         * cfgexpand.c (expand_debug_expr): Call it.
31917
31918 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
31919
31920         PR bootstrap/43399
31921         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
31922         mem_mode.
31923
31924         PR bootstrap/43403
31925         * var-tracking.c (vt_init_cfa_base): Do nothing if
31926         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
31927
31928 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
31929
31930         PR debug/42873
31931         * var-tracking.c (canonicalize_vars_star): New.
31932         (dataflow_post_merge_adjust): Use it.
31933
31934 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
31935
31936         PR debug/43058
31937         * var-tracking.c (non_suitable_const): New function.
31938         (add_uses): For DEBUG_INSNs with constants, don't record any
31939         value, instead just the constant value itself.
31940         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
31941         is not VAR_LOC_UNKNOWN_P, set var to the constant.
31942         (emit_notes_in_bb): Likewise.
31943         (emit_note_insn_var_location): For onepart variables if
31944         cur_loc is a VOIDmode constant, use DECL_MODE.
31945
31946 2010-03-18  Martin Jambor  <mjambor@suse.cz>
31947
31948         PR middle-end/42450
31949         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
31950         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
31951         all non-clones.  Moved call redirection...
31952         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
31953         (cgraph_materialize_all_clones): Dispose of all
31954         combined_args_to_skip bitmaps.
31955         (verify_cgraph_node): Do not check for edges pointing to wrong
31956         nodes in inline clones.
31957         * tree-inline.c (copy_bb): Call
31958         cgraph_redirect_edge_call_stmt_to_callee.
31959         * ipa.c (cgraph_remove_unreachable_nodes): Call
31960         cgraph_node_remove_callees even when there are used clones.
31961
31962 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
31963
31964         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
31965
31966 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
31967
31968         PR target/43383
31969         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
31970         for 32bit.
31971
31972 2010-03-18  Michael Matz  <matz@suse.de>
31973
31974         PR middle-end/43419
31975         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
31976         into sqrt(x) if we need to preserve signed zeros.
31977
31978 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
31979             Eric Botcazou  <ebotcazou@adacore.com>
31980
31981         PR rtl-optimization/43360
31982         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
31983         note if we don't know its invariant status.
31984
31985 2010-03-18  Michael Matz  <matz@suse.de>
31986
31987         PR tree-optimization/43402
31988         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
31989         PHI chains of ssa names registered for update.
31990
31991 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
31992
31993         PR target/42427
31994         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
31995         non-offsettable and pre_modify update addressing.
31996         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
31997         and "2" alternatives "#".
31998         (*movdd_softfloat32): Make all alternatives "#";
31999         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
32000         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
32001         (*movdf_softfloat32): Make all alternatives "#";
32002         (movdi): Use the new DIFD mode iterator to create a common splitter
32003         for movdi, movdf and movdd patterns.
32004
32005 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
32006
32007         * common.opt (dumpdir): Remove redundant tab.
32008
32009 2010-03-17  Martin Jambor  <mjambor@suse.cz>
32010
32011         PR tree-optimization/43347
32012         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
32013         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
32014
32015 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
32016
32017         PR rtl-optimization/42216
32018         * regrename.c (create_new_chain): New function, broken out from...
32019         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
32020         appending a use to an empty chain.
32021         (build_def_use): Remove previous changes that convert OP_INOUT to
32022         OP_OUT operands; instead detect the case where an OP_INOUT operand
32023         uses a previously untracked register and create an empty chain for it.
32024
32025 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32026
32027         * doc/extend.texi (Function Attributes): Rewrite unfinished
32028         sentence in ms_abi documentation.
32029
32030 2010-03-17  Alan Modra  <amodra@gmail.com>
32031
32032         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
32033         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
32034         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
32035         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
32036
32037 2010-03-16  Richard Henderson  <rth@redhat.com>
32038
32039         PR middle-end/43365
32040         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
32041         (lower_try_finally): Save and restore eh_seq around the expansion
32042         of the try-finally.
32043
32044 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
32045
32046         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
32047         statements before splitting block.
32048
32049 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32050
32051         * doc/sourcebuild.texi (Testsuites): Fix markup.
32052         Use pathnames relative to gcc/testsuite.
32053         (Test Directives): Move description of how timeout is determined.
32054         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
32055         (C Tests): Correct gcc.misc-tests directory.
32056         Framework tests now live in gcc.test-framework.
32057
32058 2010-03-16  Richard Guenther  <rguenther@suse.de>
32059
32060         PR middle-end/43379
32061         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
32062         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
32063
32064 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
32065             Alexandre Oliva  <aoliva@redhat.com>
32066
32067         PR tree-optimization/42917
32068         * lambda-code.c (remove_iv): Skip debug statements.
32069         (lambda_loopnest_to_gcc_loopnest): Likewise.
32070         (not_interesting_stmt): Debug statements are not interesting.
32071
32072 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
32073
32074         PR debug/43051
32075         PR debug/43092
32076         * cselib.c (cselib_preserve_constants,
32077         cfa_base_preserved_val): New static variables.
32078         (preserve_only_constants): New function.
32079         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
32080         clear its REG_VALUES.  If cselib_preserve_constants, don't
32081         empty the whole hash table, but preserve there VALUEs with constants,
32082         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
32083         (cselib_preserve_cfa_base_value): New function.
32084         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
32085         (cselib_init): Change argument to int bitfield.  Set
32086         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
32087         is in it.
32088         (cselib_finish): Clear cselib_preserve_constants and
32089         cfa_base_preserved_val.
32090         * cselib.h (enum cselib_record_what): New enum.
32091         (cselib_init): Change argument to int.
32092         (cselib_preserve_cfa_base_value): New prototype.
32093         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
32094         * dse.c (dse_step1): Likewise.
32095         * cfgcleanup.c (thread_jump): Likewise.
32096         * sched-deps.c (sched_analyze): Likewise.
32097         * gcse.c (local_cprop_pass): Likewise.
32098         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
32099         If FN is non-NULL, call the callback always and whenever it returns
32100         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
32101         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
32102         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
32103         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
32104         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
32105         * var-tracking.c: Include recog.h.
32106         (bb_stack_adjust_offset): Remove.
32107         (vt_stack_adjustments): Don't call it, instead just gather the
32108         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
32109         (adjust_stack_reference): Remove.
32110         (compute_cfa_pointer): New function.
32111         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
32112         (struct adjust_mem_data): New type.
32113         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
32114         functions.
32115         (get_address_mode): New function.
32116         (replace_expr_with_values): Use it.
32117         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
32118         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
32119         (adjust_sets): Remove.
32120         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
32121         Use get_address_mode.
32122         (get_adjusted_src): Remove.
32123         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
32124         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
32125         (add_with_sets): Don't call adjust_sets.
32126         (fp_setter, vt_init_cfa_base): New functions.
32127         (vt_initialize): Change return type to bool.  Move most of pool etc.
32128         initialization to the beginning of the function from end.  Pass
32129         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
32130         If !frame_pointer_needed, call vt_stack_adjustment before mos
32131         vector is filled, call vt_init_cfa_base if argp/framep has been
32132         eliminated to sp.  If frame_pointer_needed and argp/framep has
32133         been eliminated to hard frame pointer, set
32134         hard_frame_pointer_adjustment and call vt_init_cfa_base after
32135         encountering fp setter in the prologue.  For MO_ADJUST, call
32136         log_op_type before pusing the op into mos vector, not afterwards.
32137         Call adjust_insn before cselib_process_insn/add_with_sets,
32138         call cancel_changes (0) afterwards.
32139         (variable_tracking_main_1): Adjust for vt_initialize calling
32140         vt_stack_adjustments and returning whether it succeeded or not.
32141
32142 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
32143
32144         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
32145         debug statements.
32146
32147 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
32148
32149         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
32150         has been set.
32151         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
32152         drap_reg has not been set.
32153
32154 2010-03-15  Michael Matz  <matz@suse.de>
32155
32156         PR middle-end/43300
32157         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
32158         use it to expand block copies.
32159         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
32160         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
32161         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
32162
32163 2010-03-15  Richard Guenther  <rguenther@suse.de>
32164
32165         PR tree-optimization/43367
32166         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
32167         elimination check.
32168
32169 2010-03-15  Richard Guenther  <rguenther@suse.de>
32170
32171         PR tree-optimization/43317
32172         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
32173
32174 2010-03-15  Martin Jambor  <mjambor@suse.cz>
32175
32176         PR tree-optimization/43141
32177         * tree-sra.c (create_abstract_origin): New function.
32178         (modify_function): Call create_abstract_origin.
32179
32180 2010-03-15  Chris Demetriou  <cgd@google.com>
32181
32182         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
32183         wasn't copied.
32184
32185 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32186
32187         PR middle-end/43354
32188         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
32189         call insert_out_of_ssa_copy for default definitions.
32190
32191 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32192
32193         * graphite-clast-to-gimple.c (my_long_long): Defined.
32194         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
32195         * graphite-sese-to-poly.c (my_long_long): Defined.
32196         (scop_ivs_can_be_represented): Use it.
32197
32198 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32199
32200         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
32201         graphite-max-bbs-per-function, and loop-block-tile-size.
32202         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
32203         with "maximum".
32204         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
32205
32206 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32207
32208         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
32209         forward declaration.
32210         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
32211         (add_upper_bounds_from_estimated_nit): New.
32212         (build_loop_iteration_domains): Use it.
32213
32214 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32215
32216         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
32217
32218 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32219
32220         PR middle-end/43306
32221         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
32222         should be an INTEGER_CST.  Also handle CASE_CONVERT.
32223
32224 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32225
32226         * graphite.c (graphite_initialize): To bound the number of bbs per
32227         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
32228         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
32229         * doc/invoke.texi: Document it.
32230
32231 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32232
32233         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
32234         * graphite-sese-to-poly.h (build_poly_scop): Same.
32235
32236 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
32237
32238         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
32239         the number of parameters in the scop.  Use as an upper bound
32240         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
32241         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
32242         * doc/invoke.texi: Document it.
32243
32244 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
32245
32246         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
32247         * doc/c-tree.texi: Remove.
32248         * doc/generic.texi: Merge c-tree.texi here.
32249         * doc/gccint.texi (Trees): Remove menu entry.
32250         (c-tree.texi): Remove @include.
32251         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
32252         * doc/languages.texi (Reading RTL): Ditto.
32253
32254 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
32255
32256         PR target/42869
32257         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
32258
32259 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
32260
32261         PR middle-end/42431
32262         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
32263         code added to work around reload clobbering CONST insns.
32264
32265 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
32266
32267         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
32268         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
32269         (cselib_preserve_only_values): Remove retain argument, don't
32270         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
32271         * cselib.h (cselib_preserve_only_values): Remove retain argument.
32272         * var-tracking.c (micro_operation): Move insn field before union.
32273         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
32274         (struct variable_tracking_info_def): Remove n_mos field, change
32275         mos into a vector of micro_operations.
32276         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
32277         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
32278         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
32279         changing into a vector.
32280         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
32281         come before all other uops generated by add_stores.
32282         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
32283         argument removal.
32284         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
32285         a vector.  Run just one pass over the bbs instead of separate counting
32286         and computation phase.
32287         (vt_finalize): Free VTI (bb)->mos vector instead of array.
32288
32289         PR debug/43329
32290         * tree-inline.c (remap_decls): Put old_var rather than origin_var
32291         into *nonlocalized_list vector.
32292         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
32293         even if origin is non-NULL.
32294         (gen_variable_die): Likewise.
32295         (process_scope_var): Don't change origin.
32296         (gen_decl_die): Likewise.
32297         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
32298         before adding new edges instead of after it, fix moving over
32299         debug stmts.
32300
32301 2010-03-11  David S. Miller  <davem@davemloft.net>
32302
32303         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
32304         of four.
32305         * configure: Rebuild.
32306
32307 2010-03-11  Martin Jambor  <mjambor@suse.cz>
32308
32309         PR tree-optimization/43257
32310         * tree.c (assign_assembler_name_if_neeeded): New function.
32311         (free_lang_data_in_cgraph): Assembler name assignment moved to the
32312         above new function.
32313         * tree.h (assign_assembler_name_if_neeeded): Declare.
32314         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
32315         the function if needed.
32316
32317 2010-03-11  Chris Demetriou  <cgd@google.com>
32318
32319         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
32320         include/stdint-gcc.h, and include/stdint.h world-readable.
32321
32322 2010-03-11  Richard Guenther  <rguenther@suse.de>
32323
32324         PR tree-optimization/43255
32325         * tree-vrp.c (process_assert_insertions_for): Do not insert
32326         asserts for trivial conditions.
32327
32328 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32329
32330         PR tree-optimization/43280
32331         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
32332         generation.  Move calculation of size out of the if branch.
32333         (find_bswap): Modify compare number generation.
32334
32335 2010-03-11  Richard Guenther  <rguenther@suse.de>
32336
32337         PR lto/43200
32338         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
32339         (input_gimple_stmt): Fixup handled component types during
32340         operand read.  Also fix up decls in ADDR_EXPRs.
32341
32342 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
32343
32344         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
32345         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
32346
32347 2010-03-10  Jan Hubicka  <jh@suse.cz>
32348
32349         PR c/43288
32350         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
32351         * varasm.c (get_variable_section): Don't do that here...
32352         (make_decl_rtl): ... and here.
32353         (do_assemble_alias): Produce decl RTL.
32354         (assemble_alias): Likewise.
32355
32356 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
32357
32358         PR debug/43290
32359         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
32360         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
32361         of fde->vdrap_reg.
32362         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
32363         (based_loc_descr): Only express drap or vdrap regno based expressions
32364         using DW_OP_fbreg when not optimizing.
32365         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
32366         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
32367         REG_CFA_SET_VDRAP note.
32368
32369 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
32370
32371         PR tree-optimization/43236
32372         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
32373         error in calculation of base address in reverse iteration case.
32374         (generate_builtin): Take number of latch executions if the statement
32375         is in the latch.
32376
32377 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
32378
32379         PR middle-end/42859
32380         * tree-eh.c: Include pointer-set.h.
32381         (lower_eh_dispatch): Filter out duplicate case labels and
32382         remove the unneeded edge when the label is unused.  Return
32383         true when some edges are removed.
32384         (execute_lower_eh_dispatch): When any lowering resulted in
32385         removing an edge, also delete unreachable blocks.
32386
32387 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
32388
32389         PR bootstrap/43287
32390         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
32391         UNSPEC_MACHOPIC_OFFSET.
32392
32393 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
32394
32395         PR target/43294
32396         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
32397         (m68k_delegitimize_address): New function.
32398
32399 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
32400
32401         PR debug/43299
32402         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
32403
32404         PR debug/43299
32405         * var-tracking.c (adjust_sets): New function.
32406         (count_with_sets, add_with_sets): Use it.
32407         (get_adjusted_src): New inline function.
32408         (add_stores): Use it.
32409
32410         PR debug/43304
32411         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
32412         call cselib_dummy_expand_value_rtx_cb instead of
32413         cselib_expand_value_rtx_cb.
32414
32415         PR debug/43293
32416         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
32417         * config/i386/i386.c: Include debug.h and dwarf2out.h.
32418         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
32419         and .cfi_endproc around the pic thunks.
32420         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
32421         all queued unwind info register saves are saved before the call.
32422         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
32423         considered as sp-=4 for unwind info and the pop as sp+=4 which
32424         also clobbers dest, but doesn't actually restore it.
32425
32426         PR debug/43290
32427         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
32428         RTX_FRAME_RELATED_P.
32429
32430 2010-03-09  Jie Zhang  <jie@codesourcery.com>
32431
32432         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
32433         whitespaces in output template.
32434
32435 2010-03-09  Jie Zhang  <jie@codesourcery.com>
32436
32437         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
32438         out array boundary.
32439
32440 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
32441
32442         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
32443         builtins.exp in a separate job.
32444
32445 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32446
32447         * graphite-sese-to-poly.c (add_param_constraints): Use
32448         lower_bound_in_type and upper_bound_in_type.
32449
32450 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32451
32452         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
32453         instead of unsigned_type_node.
32454
32455 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32456             Reza Yazdani  <reza.yazdani@amd.com>
32457
32458         PR middle-end/43065
32459         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
32460         on pointer type parameters.
32461
32462 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
32463
32464         PR middle-end/42644
32465         PR middle-end/42130
32466         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
32467         handle conversions from pointer to integers.
32468         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
32469         induction variable, to be able to work with code generated by CLooG.
32470         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
32471         (build_poly_scop): Bail out if we cannot codegen a loop.
32472
32473 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
32474
32475         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
32476         code generation with gloog_error.
32477
32478 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32479
32480         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
32481         Call fold_convert on all the returned values.
32482         (expand_scalar_variables_expr): Pass to
32483         expand_scalar_variables_ssa_name the type of the resulting expression.
32484
32485 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32486
32487         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
32488         ppl_min_for_le_pointset.
32489         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
32490         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
32491
32492 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32493
32494         * graphite-dependences.c (map_into_dep_poly): Removed.
32495         (dependence_polyhedron_1): Use combine_context_id_scat.
32496
32497 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32498
32499         * graphite-poly.h (struct poly_scattering): Add layout documentation.
32500         (struct poly_bb): Same.
32501         (combine_context_id_scat): New.
32502
32503 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32504
32505         PR middle-end/42326
32506         * sese.c (name_defined_in_loop_p): Return false for default
32507         definitions.
32508
32509 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32510
32511         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
32512         and clean up the logic.
32513
32514 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
32515
32516         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
32517         early return.
32518
32519 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
32520
32521         * var-tracking.c (remove_cselib_value_chains): Define only for
32522         ENABLE_CHECKING.
32523         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
32524         delete_slot_part, emit_notes_for_differences_1): Don't call
32525         remove_cselib_value_chains here.
32526         (set_slot_part, emit_notes_for_differences_2): Don't call
32527         add_cselib_value_chains here.
32528         (preserved_values): New vector.
32529         (preserve_value): New function.
32530         (add_uses, add_stores, vt_add_function_parameters): Use it
32531         instead of cselib_preserve_value.
32532         (changed_values_stack): New vector.
32533         (check_changed_vars_0): New function.
32534         (check_changed_vars_1, check_changed_vars_2): Use it.
32535         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
32536         changed_values_stack VALUEs.
32537         (vt_emit_notes): For all preserved_values call
32538         add_cselib_value_chains.  If ENABLE_CHECKING call
32539         remove_cselib_value_chains before verifying value_chains is empty.
32540         Initialize and free changed_values_stack.
32541         (vt_initialize): Initialize preserved_values.
32542         (vt_finalize): Free preserved_values.
32543
32544 2010-03-08  Richard Guenther  <rguenther@suse.de>
32545
32546         PR tree-optimization/43269
32547         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
32548         region detection.
32549
32550 2010-03-08  Martin Jambor  <mjambor@suse.cz>
32551
32552         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
32553         (ipa_is_param_called): Removed.
32554         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
32555         (ipa_print_node_params): Do not print the called flag.
32556         (ipa_write_node_info): Do not stream the called flag.
32557         (ipa_read_node_info): Likewise.
32558
32559 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
32560
32561         PR debug/43176
32562         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
32563         * cselib.c (struct expand_value_data): Add dummy field.
32564         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
32565         dummy to false.
32566         (cselib_dummy_expand_value_rtx_cb): New function.
32567         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
32568         any rtl.
32569         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
32570         * var-tracking.c: Include pointer-set.h.
32571         (variable): Change n_var_parts to char from int.  Add
32572         cur_loc_changed and in_changed_variables fields.
32573         (variable_canonicalize): Remove.
32574         (shared_var_p): New inline function.
32575         (unshare_variable): Maintain cur_loc_changed and
32576         in_changed_variables fields.  If var was in changed_variables,
32577         replace it there with new_var.  Just copy cur_loc instead of
32578         resetting it to something else.
32579         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
32580         (dataflow_set_union): Don't call variable_canonicalize.
32581         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
32582         of their DEBUG_EXPR_TREE_DECLs.
32583         (canonicalize_loc_order_check): Verify that cur_loc is NULL
32584         and in_changed_variables and cur_loc_changed is false.
32585         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
32586         and cur_loc_changed.  Don't update cur_loc here.
32587         (variable_merge_over_src): Don't call variable_canonicalize.
32588         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
32589         removing loc that is equal to cur_loc, clear cur_loc,
32590         set cur_loc_changed and ensure variable_was_changed is called.
32591         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
32592         compare pointers in cur_loc check, if it is equal to loc,
32593         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
32594         (variable_different_p): Remove compare_current_location argument,
32595         don't compare cur_loc.
32596         (dataflow_set_different_1): Adjust variable_different_p caller.
32597         (variable_was_changed): If dv had some var in changed_variables
32598         already, reset in_changed_variables flag for it and propagate
32599         cur_loc_changed over to the new variable.  On empty var
32600         always set cur_loc_changed.  Set in_changed_variables on whatever
32601         var is added to changed_variables.
32602         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
32603         Use shared_var_p.  When removing loc that is equal to cur_loc,
32604         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
32605         end, don't set it to something else, just call variable_was_changed.
32606         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
32607         loc being removed, clear cur_loc and set cur_loc_changed.
32608         Set cur_loc_changed if all locations have been removed.
32609         (struct expand_loc_callback_data): New type.
32610         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
32611         allocated.  Always create SUBREGs if simplify_subreg failed.
32612         Prefer to use cur_loc, when that fails and still in
32613         changed_variables (and seen first time) recompute it.  Set
32614         cur_loc_changed of variables which had to change cur_loc and
32615         compute elcd->cur_loc_changed if any of the subexpressions used
32616         had to change cur_loc.
32617         (vt_expand_loc): Adjust to pass arguments in
32618         expand_loc_callback_data structure.
32619         (vt_expand_loc_dummy): New function.
32620         (emitted_notes): New variable.
32621         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
32622         that weren't used for any other decl in current
32623         emit_notes_for_changes call call vt_expand_loc_dummy to update
32624         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
32625         first loc_chain location if NULL before.  Always use just
32626         cur_loc instead of first loc_chain location.  When cur_loc_changed
32627         is false, when not --enable-checking=rtl just don't emit any note.
32628         When rtl checking, compute the note and assert it is the same
32629         as previous note.  Clear cur_loc_changed and in_changed_variables
32630         at the end before removing from changed_variables.
32631         (check_changed_vars_3): New function.
32632         (emit_notes_for_changes): Traverse changed_vars to call
32633         check_changed_vars_3 on each changed var.
32634         (emit_notes_for_differences_1): Clear cur_loc_changed and
32635         in_changed_variables.  Recompute cur_loc of new_var.
32636         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
32637         (vt_emit_notes): Initialize and destroy emitted_notes.
32638
32639 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
32640
32641         PR rtl-optimization/42220
32642         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
32643         Use verify_reg_tracked to determine if we should use OP_OUT rather
32644         than OP_INOUT.
32645         (build_def_use): If we see an in-out operand for a register that we
32646         know nothing about, treat is an output if possible, fail the block if
32647         not.
32648
32649 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32650
32651         PR debug/42897
32652         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
32653         permanently.
32654
32655 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32656
32657         PR debug/42897
32658         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
32659         uses of relevant DEFs that are dead outside the loop too.
32660
32661 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
32662
32663         * var-tracking.c (dataflow_set_merge): Swap src and src2.
32664         Reverted:
32665         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
32666         PR debug/41371
32667         * var-tracking.c (values_to_unmark): New variable.
32668         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
32669         values_to_unmark vector.  Moved body to...
32670         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
32671         instead queue it into values_to_unmark vector.
32672         (vt_find_locations): Free values_to_unmark vector.
32673
32674 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
32675
32676         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
32677         (site.exp): Export them when plugins are enabled.
32678
32679 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
32680
32681         PR middle-end/42326
32682         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
32683         that contain scevs.
32684         (chrec_fold_multiply): Same.
32685
32686 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
32687
32688         PR c/43248
32689         * c-decl.c (build_compound_literal): Return early if init is
32690         an error_mark_node.
32691
32692 2010-03-04  Martin Jambor  <mjambor@suse.cz>
32693
32694         PR tree-optimization/43164
32695         PR tree-optimization/43191
32696         * tree-sra.c (type_consists_of_records_p): Reject records with
32697         zero-size bit-fields at the end.
32698
32699 2010-03-04  Mike Stump  <mikestump@comcast.net>
32700
32701         * Makefile.in (TAGS): Remove *.y.
32702
32703 2010-03-04  Richard Guenther  <rguenther@suse.de>
32704
32705         PR tree-optimization/40761
32706         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
32707         in reverse order.
32708         (my_rev_post_order_compute): New function.
32709         (init_pre): Call it.
32710
32711 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
32712
32713         PR middle-end/43209
32714         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
32715         decrease the cost of an IV candidate when the cost is infinite.
32716
32717 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32718
32719         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
32720         Use '3DNow!' for the extension of that name, ensure normal space
32721         after the string.
32722         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
32723
32724 2010-03-03  Jeff Law  <law@redhat.com>
32725
32726         * PR middle-end/32693
32727         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
32728         than gen_rtx_SUBREG.
32729         (extract_bit_field_1): Likewise.
32730
32731 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
32732
32733         * doc/sourcebuild.texi (Test directives): Document that arguments
32734         include-opts and exclude-opts are now optional for dg-skip-if,
32735         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
32736
32737 2010-03-03  Jason Merrill  <jason@redhat.com>
32738
32739         PR c++/12909
32740         * cgraph.h (varpool_node): Add extra_name field.
32741         * varpool.c (varpool_extra_name_alias): New.
32742         (varpool_assemble_decl): Emit extra name aliases.
32743         (varpool_mark_needed_node): Look past an extra name alias.
32744         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
32745         * lto-streamer-in.c (lto_input_tree): Read it.
32746         * lto-streamer-out.c (output_unreferenced_globals): Write it.
32747
32748 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32749
32750         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
32751         (sparc*-*-solaris2*): ...this.
32752
32753 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
32754
32755         PR debug/43229
32756         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
32757         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
32758         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
32759         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
32760
32761         PR debug/43237
32762         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
32763         fallthrough to default handling, just with want_address 0 instead of 2.
32764         For single element lists, add_AT_loc directly, otherwise create an
32765         artificial variable DIE and stick location list to it.
32766
32767         PR debug/43177
32768         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
32769         (VAL_EXPR_HAS_REVERSE): Define.
32770         (reverse_op): New function.
32771         (add_stores): For reversible operations add an extra MO_VAL_USE.
32772
32773 2010-03-02  Jason Merrill  <jason@redhat.com>
32774
32775         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
32776
32777 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
32778
32779         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
32780         (sparc64-*-linux*): Likewise.
32781         (sparc64-*-solaris2*): Include assembler files before linker ones.
32782         (sparc-*-solaris2*): Simplify and reorder to match previous case.
32783         * config/sparc/gas.h: Delete.
32784         * config/sparc/sol2-64.h: Add copyright notice.
32785         * config/sparc/sol2-gas-bi.h: Likewise.
32786         * config/sparc/sol2-gld.h: Likewise.
32787         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
32788         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
32789         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
32790         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
32791         (sparc_elf_asm_named_section): Rename into...
32792         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
32793
32794 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
32795
32796         * config/alpha/alpha.c (override_options): Fix -mtune error message.
32797
32798 2010-03-02  Jeff Law  <law@redhat.com>
32799
32800         PR middle-end/42431
32801         * reload1.c (rtx_p, substitute_stack): Declare.
32802         (substitute): Record addresses of changed rtxs.
32803         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
32804         Restore the original rtx when complete.
32805         (reload): Free subsitute_stack when complete.
32806
32807 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
32808
32809         * doc/gccint.texi (menu): Add Testsuites as a chapter.
32810         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
32811         new chapter.
32812         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
32813         LTO Testing, gcov Testing, profopt Testing, compat Testing,
32814         Torture Tests): Change from subsection to section.
32815
32816 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
32817             Steven Bosscher  <steven@gcc.gnu.org>
32818
32819         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
32820         instead of bb.
32821
32822 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
32823
32824         PR middle-end/42640
32825         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
32826         the assignment from the new induction variable to the assignment
32827         of the value from the original loop PHI function.
32828
32829 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
32830             Daniel Jacobowitz  <dan@codesourcery.com>
32831
32832         * doc/sourcebuild.texi (Test directives): Clarify options to
32833         dg-skip-if.
32834
32835 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32836
32837         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
32838         Disable cfi directives unless GCC and gas agree on using read-only
32839         .eh_frame sections for 64-bit.
32840         * configure: Regenerate.
32841
32842 2010-03-01  Richard Guenther  <rguenther@suse.de>
32843
32844         PR tree-optimization/43220
32845         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
32846         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
32847
32848 2010-03-01  Richard Guenther  <rguenther@suse.de>
32849             Martin Jambor  <mjambor@suse.cz>
32850
32851         PR middle-end/41250
32852         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
32853         gimplified parameters.
32854
32855 2010-03-01  Christian Bruel  <christian.bruel@st.com>
32856
32857         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
32858
32859 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
32860
32861         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
32862
32863 2010-03-01  Richard Guenther  <rguenther@suse.de>
32864
32865         PR middle-end/43213
32866         * expr.c (expand_assignment): Use the alias-oracle to tell
32867         if the rhs aliases the result decl.
32868
32869 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32870
32871         PR pch/14940
32872         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
32873         to sol_gt_pch_get_address.
32874         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
32875         64-bit, SPARC and x86.
32876         (sol_gt_pch_get_address): New function.
32877
32878 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
32879
32880         * toplev.h (inform_n, error_n): Declare.
32881         * diagnostic.c (inform_n, error_n): New function.
32882
32883 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
32884
32885         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
32886         has no rtl yet when processing local_decls, queue it and recheck
32887         if deferred stack allocation hasn't assigned it rtl.
32888
32889 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
32890
32891         * config/sh/sh.c (unspec_bbr_uid): New.
32892         (gen_block_redirect): Use it instead of INSN_UID.
32893         (gen_far_branch): Likewise.
32894
32895 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
32896
32897         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
32898         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
32899
32900 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32901
32902         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
32903         (Warning Options): -Wno-conversion-null is valid for
32904         Objective-C++ as well.
32905         * doc/tm.texi (Named Address Spaces): Likewise.
32906         * doc/plugins.texi (Plugins): Replace TABs with spaces.
32907         * doc/tree-ssa.texi (Tree SSA): Likewise.
32908
32909 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32910
32911         PR bootstrap/43202
32912         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
32913         by default.  Don't set the default arch for
32914         i[34567]86-*-darwin*|x86_64-*-darwin*.
32915
32916 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32917
32918         PR bootstrap/43202
32919         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
32920         default.  Set the default 32bit/64bit archs with $with_arch
32921         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
32922
32923 2010-02-27  Richard Guenther  <rguenther@suse.de>
32924
32925         PR tree-optimization/43186
32926         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
32927         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
32928         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
32929         unroller iterations.
32930
32931 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32932
32933         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
32934         required and i[34567]86-*-* targets don't support 64bit ISA.
32935
32936 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32937
32938         PR ada/43096
32939         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32940         the same alias set.
32941
32942 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
32943
32944         * config.gcc: Set the default arch at least to Prescott for
32945         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
32946         if SSE math is enabled.
32947
32948 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32949
32950         * diagnostic.c (diagnostic_initialize): Update.
32951         (diagnostic_report_diagnostic): Test inhibit_notes_p for
32952         informative notes.
32953         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
32954         (diagnostic_inhibit_notes): New.
32955         * toplev.c (process_options): inhibit notes with -fcompare-debug.
32956
32957 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32958
32959         PR c/20631
32960         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
32961         * doc/standards.texi: Likewise.
32962         * doc/extend.texi: Likewise.
32963         * doc/trouble.texi: Likewise.
32964         * doc/cppopts.texi: Likewise.
32965         * doc/install.texi: Likewise.
32966         * c.opt (std=c90,std=gnu90): New options.
32967         * c-opts.c (c_common_handle_option): Handle them.
32968
32969 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32970
32971         PR c/24577
32972         * c-decl.c (undeclared_variable): Use an informative note.
32973
32974 2010-02-26  Richard Guenther  <rguenther@suse.de>
32975
32976         PR tree-optimization/43186
32977         * gimple.h (gimple_fold): Remove.
32978         * gimple.c (gimple_fold): Remove.  Inline into single user ...
32979         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
32980         Try harder for conditions.
32981
32982 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
32983
32984         PR debug/43190
32985         * function.c (used_types_insert): Don't skip through named pointer
32986         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
32987         and it is different from the main variant's type.
32988
32989 2010-02-26  Nick Clifton  <nickc@redhat.com>
32990
32991         * config/rx/rx.md (sminsi3): Remove bogus alternative.
32992
32993 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
32994
32995         * config.gcc: Support --with-fpmath=sse for x86.
32996
32997         * config/i386/ssemath.h: New.
32998
32999         * doc/install.texi (--with-fpmath=sse): Documented.
33000
33001 2010-02-26  Richard Guenther  <rguenther@suse.de>
33002
33003         PR tree-optimization/43188
33004         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
33005         vector types of over-aligned element type.
33006
33007 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
33008
33009         PR target/43175
33010         * config/i386/i386.c (expand_vec_perm_blend): Use correct
33011         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
33012
33013 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
33014
33015         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
33016
33017 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
33018
33019         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
33020         * var-tracking.c: Include diagnostic.h.
33021         (debug_dv): New function.
33022         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
33023
33024         PR debug/43160
33025         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
33026         (add_value_chain, add_value_chains, remove_value_chain,
33027         remove_value_chains): Handle DEBUG_EXPRs.
33028         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
33029
33030         PR debug/43161
33031         * regcprop.c (struct queued_debug_insn_change): New type.
33032         (struct value_data_entry): Add debug_insn_changes field.
33033         (struct value_data): Add n_debug_insn_changes field.
33034         (debug_insn_changes_pool): New variable.
33035         (free_debug_insn_changes, apply_debug_insn_changes,
33036         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
33037         (kill_value_one_regno): Call free_debug_insn_changes if needed.
33038         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
33039         fields.
33040         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
33041         changes for them.
33042         (copyprop_hardreg_forward_1): Don't call apply_change_group for
33043         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
33044         changes, call cprop_find_used_regs via note_stores.
33045         (copyprop_hardreg_forward): When copying vd from predecessor
33046         which has any queued DEBUG_INSN changes, make sure the pointers are
33047         cleared.  At the end call df_analyze and then if there are any
33048         DEBUG_INSN changes queued at the end of some basic block for still
33049         live registers, apply them.
33050         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
33051
33052 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
33053
33054         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
33055         (arm*-*-*): Ditto.
33056
33057 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
33058
33059         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
33060         targets.  Set the default with_cpu/with_arch from arch/cpu.
33061         Allow x86-64 and native for with_cpu/with_arch.
33062
33063 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
33064
33065         * ebitmap.c: Change calls to verify_popcount with calls to
33066         sbitmap_verify_popcount.
33067         (ebitmap_clear_bit): Fixed map->cacheindex test and
33068         map>cache update when bit clearing results in an empty
33069         element.
33070
33071 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
33072
33073         PR target/43154
33074         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
33075         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
33076         and support both V2DF and V2DI modes.
33077         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
33078         support both V2DF and V2DI modes.
33079         (general): Delete trailing whitespace from a few patterns.
33080
33081         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
33082         V2DF/V2DI interleave high/low builtins.
33083
33084         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
33085         new VSX builtins.
33086
33087         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
33088         interleave high/low functions.
33089
33090 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
33091
33092         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
33093         #pragma extern_prefix.
33094
33095 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
33096
33097         PR debug/43166
33098         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
33099         BLKmode, assert op0 is a MEM and just adjust its mode.
33100
33101         PR debug/43165
33102         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
33103         if bitpos isn't multiple of mode's bitsize.
33104
33105 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33106
33107         * c.opt (-ftemplate-depth=): New.
33108         (-ftemplate-depth-): Deprecate.
33109         * optc-gen.awk: Handle -ftemplate-depth=.
33110         * opth-gen.awk: Likewise.
33111         * c-opts.c (c_common_handle_option): Likewise.
33112         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
33113
33114 2010-02-24  Jason Merrill  <jason@redhat.com>
33115
33116         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
33117
33118 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33119
33120         * cfg.c (alloc_aux_for_block): Remove inline.
33121         (alloc_aux_for_edge): Likewise.
33122
33123 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33124
33125         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
33126
33127 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33128
33129         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
33130         * config/i386/sol2-gas.h: New file.
33131         * config.gcc (i[34567]86-*-solaris2*): Use it.
33132
33133 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33134
33135         PR c/43128
33136         * c-typeck.c (ep_convert_and_check): New.
33137         (build_conditional_expr): Use it.
33138         (build_binary_op): Likewise.
33139
33140 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
33141
33142         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
33143
33144         PR debug/43150
33145         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
33146         bounds even for -O+.
33147         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
33148         expr needs to have DECL_NAME set.
33149
33150 2010-02-24  Nick Clifton  <nickc@redhat.com>
33151
33152         * config/mep/mep.c: Include gimple.h.
33153         (mep_function_uses_sp): Delete unused function.
33154         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
33155         parameters.  Use unsigned integers to count args.  Return a
33156         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
33157
33158 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
33159
33160         PR target/43107
33161         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
33162         greater or equal to nelt instead of 2 * nelt.
33163         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
33164         with nelt - 1.
33165
33166 2010-02-23  Jason Merrill  <jason@redhat.com>
33167
33168         PR debug/42800
33169         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
33170         in cfun->local_decls even if they have register types.
33171
33172         PR c++/42837
33173         * stor-layout.c (place_field): Don't warn about unnecessary
33174         DECL_PACKED if the type is packed.
33175
33176 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
33177
33178         PR target/43139
33179         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
33180         GOTOFF relocs, even when the base reg isn't pic pointer.
33181
33182 2010-02-23  Michael Matz  <matz@suse.de>
33183
33184         PR debug/43077
33185         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
33186         (expand_gimple_basic_block): Generate and use debug temps if there
33187         are debug uses left after the last real use of TERed ssa names.
33188         Unlink debug immediate uses when they are expanded.
33189
33190 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33191
33192         PR 43123
33193         * config/i386/i386.c (override_options): Reorganise to provide
33194         better error messages.
33195
33196 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33197
33198         PR middle-end/43083
33199         * graphite-scop-detection.c (create_single_exit_edge): Move
33200         the call to find_single_exit_edge to....
33201         (create_sese_edges): ...here.  Don't handle multiple edges
33202         exiting the function.
33203         (build_graphite_scops): Don't handle multiple edges
33204         exiting the function.
33205
33206 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33207
33208         PR middle-end/43097
33209         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
33210         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
33211
33212 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
33213
33214         PR middle-end/43026
33215         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
33216
33217 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33218
33219         PR c++/43126
33220         * c-typeck.c (convert_arguments): Print declaration location.
33221         * c-common.c (validate_nargs): Rename as
33222         builtin_function_validate_nargs.
33223         (check_builtin_function_arguments): Update.
33224
33225 2010-02-22  Richard Guenther  <rguenther@suse.de>
33226
33227         PR lto/43045
33228         * tree-inline.c (declare_return_variable): Use the type of
33229         the call stmt lhs if available.
33230
33231 2010-02-22  Duncan Sands  <baldrick@free.fr>
33232
33233         * passes.c (register_pass): Always consider all pass lists when
33234         ref_pass_instance_number is zero.
33235
33236 2010-02-22  Richard Guenther  <rguenther@suse.de>
33237
33238         PR tree-optimization/42749
33239         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
33240         parameter.  Do arithmetic in the original type.
33241         (update_accumulator_with_ops): Likewise.
33242         (adjust_accumulator_values): Adjust.
33243
33244 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33245
33246         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
33247         (QI to BLKmode splitter): New splitter.
33248
33249 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
33250
33251         * config/i386/i386.c (initial_ix86_tune_features): Turn on
33252         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
33253
33254 2010-02-22  Richard Guenther  <rguenther@suse.de>
33255
33256         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
33257
33258 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
33259
33260         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
33261         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
33262         ($(T)crti.o, $(T)crtn.o): Remove rules.
33263
33264 2010-02-21  Tobias Burnus  <burnus@net-b.de>
33265
33266         PR fortran/35259
33267         * doc/invoke.texi (-fassociative-math): Document that this
33268         option is automatically enabled for Fortran.
33269
33270 2010-02-20  David S. Miller  <davem@davemloft.net>
33271
33272         * configure.ac: Test if linker and assembler properly support
33273         GOTDATA_OP relocations.
33274         * configure: Rebuild.
33275         * config.in: Likewise.
33276         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
33277         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
33278         (movsi_high_pic): Likewise.
33279         (movdi_lo_sum_pic): Likewise.
33280         (movdi_high_pic): Likewise.
33281         (movsi_pic_gotdata_op): New pattern.
33282         (movdi_pic_gotdata_op): Likewise.
33283         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
33284         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
33285
33286 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
33287
33288         PR target/43067
33289         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
33290         attribute to ssemul.
33291         (xop_mulv2div2di3_high): Ditto.
33292
33293 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33294
33295         PR c++/35669
33296         * c.opt (Wconversion-null): New option.
33297         * doc/invoke.texi (Wconversion-null): Document.
33298
33299 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33300
33301         * common.opt (Wlarger-than-): Add Undocumented.
33302
33303 2010-02-19  Mike Stump  <mikestump@comcast.net>
33304
33305         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
33306
33307 2010-02-19  Jason Merrill  <jason@redhat.com>
33308
33309         PR target/40332
33310         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
33311         * configure: Likewise.
33312
33313 2010-02-20  Alan Modra  <amodra@gmail.com>
33314
33315         PR middle-end/42344
33316         * cgraph.h (cgraph_make_decl_local): Declare.
33317         * cgraph.c (cgraph_make_decl_local): New function.
33318         (cgraph_make_node_local): Use it.
33319         * cgraphunit.c (cgraph_function_versioning): Likewise.
33320         * ipa.c (function_and_variable_visibility): Likewise.
33321
33322 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33323
33324         PR bootstrap/43121
33325         * except.c (sjlj_emit_function_enter): Don't call
33326         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
33327         directly.
33328         * rtl.h (add_reg_br_prob_note): Remove prototype.
33329
33330 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33331
33332         PR 41779
33333         * c-common.c (conversion_warning): Remove widening conversions
33334         before checking the conversion of integers to reals.
33335
33336 2010-02-19  Mike Stump  <mikestump@comcast.net>
33337
33338         PR middle-end/43125
33339         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
33340
33341         PR objc/43061
33342         * cgraphunit.c (process_function_and_variable_attributes): Check
33343         DECL_PRESERVE_P instead of looking up attribute "used".
33344         * ipa-pure-const.c (check_decl): Likewise.
33345         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
33346         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
33347         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
33348         instead of attribute "used".
33349         * config/sol2-c.c (solaris_pragma_init): Likewise.
33350         (solaris_pragma_fini): Likewise.
33351
33352 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33353
33354         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
33355         Use XCNEW instead of xcalloc.
33356         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
33357         XNEW instead of xmalloc.
33358         (get_fields): Use XNEWVEC instead of xmalloc.
33359
33360         PR debug/43084
33361         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
33362         populate vars array.
33363         (create_new_general_access): For debug stmts just reset value.
33364         (get_stmt_accesses): For accesses within debug stmts just record them
33365         using add_access_to_acc_sites instead of preventing the peeling or
33366         counting them as accesses.
33367
33368         PR middle-end/42233
33369         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
33370
33371 2010-02-19  Richard Guenther  <rguenther@suse.de>
33372
33373         PR tree-optimization/42916
33374         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
33375         instructions.
33376
33377 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
33378
33379         * configure.ac: Replace all uses of changequote in macro arguments
33380         with proper quoting.
33381
33382 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33383
33384         PR middle-end/42233
33385         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
33386
33387 2010-02-19  Richard Guenther  <rguenther@suse.de>
33388
33389         PR tree-optimization/42944
33390         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
33391         test for aliasing with errno.
33392
33393 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
33394
33395         PR middle-end/42233
33396         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
33397         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
33398         * dojump.c: Include output.h.
33399         (inv): New inline function.
33400         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
33401         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
33402         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
33403         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
33404         argument, pass it down to other calls.
33405         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
33406         add REG_BR_PROB note to the conditional jump.
33407         * cfgexpand.c (add_reg_br_prob_note): Removed.
33408         (expand_gimple_cond): Don't call it, add the probability
33409         as last argument to jumpif_1/jumpifnot_1.
33410         * Makefile.in (dojump.o): Depend on output.h.
33411         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
33412         callers.
33413         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
33414         * stmt.c (do_jump_if_equal): Likewise.
33415         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
33416         * loop-unswitch.c (compare_and_jump_seq): Likewise.
33417         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
33418         Likewise.
33419         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
33420         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
33421         jumpifnot_1 callers.
33422         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
33423         callers.
33424         (store_expr): Adjust jumpifnot caller.
33425         (store_constructor): Adjust jumpif caller.
33426
33427         PR middle-end/42233
33428         * gimplify.c (gimple_boolify): For __builtin_expect call
33429         gimple_boolify also on its first argument.
33430
33431 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
33432
33433         * configure.ac (gnu-unique-object): Wrap regexps using [] in
33434         changequote block.
33435         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
33436         * configure: Regenerated.
33437
33438 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33439
33440         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
33441         lang_hooks.types_compatible_p instead of comptypes.
33442
33443 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
33444
33445         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
33446         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
33447         if __prefer_thumb__ is defined.
33448
33449 2010-02-18  Martin Jambor  <mjambor@suse.cz>
33450
33451         PR tree-optimization/43066
33452         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
33453         array with zero-sized element type.
33454
33455 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
33456
33457         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
33458         rtx, allocate struct var_loc_node here and return it to the
33459         caller, and only if it is actually needed.
33460         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
33461         move it earlier and return immediately if it returns NULL.
33462
33463 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
33464
33465         * config/sparc/gas.h: New file.  Restore
33466         TARGET_ASM_NAMED_SECTION to its ELF default.
33467         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
33468         check !HAVE_GNU_AS.
33469         * config/sparc/sparc.c (sparc_elf_asm_named_section):
33470         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
33471         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
33472         after sparc/sysv4.h.
33473
33474 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
33475
33476         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
33477
33478 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
33479
33480         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
33481         patterns from predicated pattern.
33482
33483 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
33484
33485         PR target/43103
33486         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
33487         for insn mnemonic suffix.
33488
33489 2010-02-17  Richard Guenther  <rguenther@suse.de>
33490
33491         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
33492         to loop PHI nodes.
33493
33494 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
33495
33496         PR debug/42918
33497         * caller-save.c (save_call_clobbered_regs): If BB ends with
33498         a DEBUG_INSN, move any notes in between last real insn and the last
33499         DEBUG_INSN after the last DEBUG_INSN.
33500
33501 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
33502
33503         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
33504         Fix return type.  Fix argument type.  Explain meaning of return value.
33505
33506 2010-02-16  Richard Guenther  <rguenther@suse.de>
33507
33508         PR tree-optimization/41043
33509         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
33510         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
33511         statements ...
33512         (vrp_visit_phi_node): ... but only for loop PHI nodes.
33513
33514 2010-02-16  Ira Rosen  <irar@il.ibm.com>
33515
33516         PR tree-optimization/43074
33517         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
33518         * tree-vect-loop.c (vect_analyze_loop_operations): Add
33519         vectorizable cycles in hybrid SLP check.
33520         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
33521
33522 2010-02-16  Richard Guenther  <rguenther@suse.de>
33523
33524         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
33525         (true_dependence): If memrefs_conflict_p computes must-alias
33526         trust it.  Move TBAA check after offset-based disambiguation.
33527         (canon_true_dependence): Likewise.
33528
33529 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
33530
33531         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
33532         * doc/invoke.texi: Document it.
33533         * var-tracking.c: Include toplev.h and params.h.
33534         (vt_find_locations): Return bool indicating success.  Compute
33535         hash sizes unconditionally.  Check new parameter, report.
33536         (variable_tracking_main_1): Check vt_find_locations results and
33537         retry.  Renamed from...
33538         (variable_tracking_main): ... this.  New wrapper to preserve
33539         flag_var_tracking_assignments.
33540         * Makefile.in (var-tracking.o): Adjust dependencies.
33541
33542 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
33543             Jakub Jelinek  <jakub@redhat.com>
33544
33545         PR target/42854
33546         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
33547         if weak_import attribute is present.
33548         * config/darwin.c (machopic_select_section): Likewise.
33549
33550 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
33551
33552         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
33553         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
33554         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
33555         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
33556
33557         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
33558         types.
33559
33560         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
33561         Fix argument types.
33562
33563         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
33564         Rewrite text to refer to the names.
33565
33566 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
33567
33568         * config/i386/i386-builtin-types.def
33569         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
33570         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
33571         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
33572         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
33573         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
33574         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
33575         IX86_BUILTIN_VPERMIL2PS256.
33576         (MULTI_ARG_4_DF2_DI_I): Defined.
33577         (MULTI_ARG_4_DF2_DI_I1): Defined.
33578         (MULTI_ARG_4_SF2_SI_I): Defined.
33579         (MULTI_ARG_4_SF2_SI_I1): Defined.
33580         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
33581         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
33582         __builtin_ia32_vpermil2ps256.
33583         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
33584         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
33585         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
33586         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
33587         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
33588         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
33589         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
33590         CODE_FOR_xop_vpermil2v8sf3.
33591         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
33592         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
33593         * config/i386/xopintrin.h (_mm_permute2_pd): New.
33594         (_mm256_permute2_pd): New.
33595         (_mm_permute2_ps): New.
33596         (_mm256_permute2_ps): New.
33597
33598 2010-02-15  Nick Clifton  <nickc@redhat.com>
33599
33600         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
33601         boolean parameters.  Use emit_jump_insn when emitting a pop
33602         instruction containing a return insn.
33603         (push): Use 'true' rather than '1' as second parameter to F.
33604         (h8300_expand_prologue): Likewise.
33605         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
33606         (h8300_expand_epilogue): Likewise.
33607
33608 2010-02-15  Richard Guenther  <rguenther@suse.de>
33609
33610         PR middle-end/43068
33611         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
33612         if that is zero.
33613
33614 2010-02-15  Nick Clifton  <nickc@redhat.com>
33615
33616         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
33617         delta.
33618
33619 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
33620
33621         * intl.c (fake_ngettext): New function.
33622         * intl.h (fake_ngettext): Declare.
33623         (ngettext): Define macro.
33624         * collect2.c (notice_translated): New function.
33625         (main): Use notice_translated and ngettext.
33626         * collect2.h (notice_translated): Declare.
33627
33628 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
33629
33630         * reorg.c (delete_computation): Comment fixes.
33631         * caller-save.c (setup_save_areas): Idem.
33632         * sel-sched-dump.c (dump_lv_set): Idem.
33633         * rtl.def: Idem.
33634
33635 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33636
33637         * config/s390/s390.c (s390_sched_init): New function.
33638         (TARGET_SCHED_INIT): Target hook defined.
33639
33640 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
33641             Jack Howarth  <howarth@bromo.med.uc.edu>
33642             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
33643
33644         PR target/42982
33645         Partial revert of unintended change in fix for PR41605.
33646         * config/darwin.h: Fix typo.
33647         * config/darwin9.h: Same.
33648
33649 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
33650
33651         * c-pch.c (pch_init): Clear v.
33652
33653 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33654
33655         PR middle-end/42930
33656         * graphite-scop-detection.c (graphite_can_represent_scev): Call
33657         graphite_can_represent_init for MULT_EXPR.
33658
33659 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33660
33661         PR middle-end/42914
33662         PR middle-end/42530
33663         * graphite-sese-to-poly.c (remove_phi): New.
33664         (translate_scalar_reduction_to_array): Call remove_phi.
33665
33666 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33667
33668         PR middle-end/42771
33669         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
33670         * graphite-clast-to-gimple.h (gloog): Update declaration.
33671         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
33672         * graphite-poly.h (struct poly_bb): Add missing comments.
33673         (struct scop): Add poly_scop_p field.
33674         (POLY_SCOP_P): New.
33675         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
33676         * graphite.c (graphite_transform_loops): Build the polyhedral
33677         representation for each scop before code generation.
33678         * sese.c (rename_variables_in_operand): Removed.
33679         (rename_variables_in_expr): Return the renamed expression.
33680         (rename_sese_parameters): New.
33681         * sese.h (rename_sese_parameters): Declared.
33682
33683 2010-02-11  Richard Guenther  <rguenther@suse.de>
33684
33685         PR tree-optimization/42998
33686         * tree-ssa-pre.c (create_expression_by_pieces): Treat
33687         POINTER_PLUS_EXPR properly.
33688
33689 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
33690             Changpeng Fang  <changpeng.fang@amd.com>
33691
33692         PR middle-end/40886
33693         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
33694         the cost of an IV candidate when the IV is used in a test against zero.
33695
33696         * gcc.dg/tree-ssa/ivopts-3.c: New.
33697
33698 2010-02-11  Richard Guenther  <rguenther@suse.de>
33699
33700         PR lto/41664
33701         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
33702         pointer-vs-decl case by swapping refs.  Handle some cases
33703         of pointer-vs-decl disambiguations more conservatively.
33704         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
33705         to false after expanding.
33706
33707 2010-02-11  Richard Guenther  <rguenther@suse.de>
33708
33709         PR driver/43021
33710         * gcc.c (process_command): Handle LTO file@offset case more
33711         appropriately.
33712
33713 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
33714
33715         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
33716         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
33717         of DEBUG_INSNs.
33718         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
33719
33720         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
33721         if MEM's mode size isn't DWARF2_ADDR_SIZE.
33722         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
33723         Optimize eq/ne comparisons when both arguments are known to be
33724         zero-extended.
33725         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
33726         Don't mask operands unnecessarily if they are known to be already
33727         zero-extended.
33728
33729 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
33730
33731         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
33732         instead of loop.
33733
33734 2010-02-10  Richard Guenther  <rguenther@suse.de>
33735
33736         PR tree-optimization/43017
33737         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
33738         for wrapping signed arithmetic.
33739
33740 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
33741
33742         PR debug/43010
33743         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
33744         if no debug info should be emitted for it.
33745
33746 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
33747
33748         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
33749         note when flag_exceptions is set.
33750
33751 2010-02-10  Duncan Sands  <baldrick@free.fr>
33752
33753         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
33754
33755 2010-02-10  Richard Guenther  <rguenther@suse.de>
33756
33757         PR c/43007
33758         * tree.c (get_unwidened): Handle constants.
33759         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
33760
33761 2010-02-10  Martin Jambor  <mjambor@suse.cz>
33762
33763         PR lto/42985
33764         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
33765         check for variable argument counts independently.
33766
33767 2010-02-10  Christian Bruel  <christian.bruel@st.com>
33768
33769         PR target/42841
33770         * config/sh/sh.c (find_barrier): Increase length for non delayed
33771         conditional branches.
33772
33773 2010-02-10  Christian Bruel  <christian.bruel@st.com>
33774
33775         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
33776
33777 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
33778
33779         * builtins.c (set_builtin_user_assembler_name): Also handle
33780         ffs if int is smaller than word.
33781
33782 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
33783
33784         PR middle-end/42973
33785         * ira-conflicts.c (get_dup): Remove.
33786         (process_reg_shuffles): Add new parameter.  Use it as an
33787         additional guard for copy generation.
33788         (add_insn_allocno_copies): Rewrite.
33789
33790 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
33791
33792         * common.opt (fsched2-use-traces): Preserved for backward
33793         compatibility.
33794         * doc/invoke.texi: Remove the documentation about option
33795         -fsched2-use-traces.
33796         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
33797         flag_sched2_use_traces.
33798         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
33799         the backward compatibility flag section.
33800
33801 2010-02-09  Richard Guenther  <rguenther@suse.de>
33802
33803         PR tree-optimization/43008
33804         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
33805         make HEAP variables initialized from global memory if they
33806         are not known builtin functions.
33807         (find_func_aliases): Adjust.
33808
33809 2010-02-09  Richard Guenther  <rguenther@suse.de>
33810
33811         PR tree-optimization/43000
33812         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
33813         arithmetic manually.
33814
33815 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
33816
33817         PR tree-optimization/42931
33818         * tree-loop-linear.c (try_interchange_loops): Don't call
33819         double_int_mul if estimated_loop_iterations failed.
33820
33821 2010-02-08  Martin Jambor  <mjambor@suse.cz>
33822
33823         PR middle-end/42898
33824         * tree-sra.c (build_accesses_from_assign): Do not mark in
33825         should_scalarize_away_bitmap if stmt has volatile ops.
33826         (sra_modify_assign): Do not process assigns piecemeal if if stmt
33827         has volatile ops.
33828
33829 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
33830
33831         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
33832
33833 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
33834
33835         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
33836         before the pattern.
33837
33838 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
33839
33840         PR middle-end/42946
33841         * df-core.c (df_finish_pass): Change type of saved_flags to int.
33842
33843 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
33844
33845         PR middle-end/42988
33846         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
33847         to unknown_dependence.
33848         (graphite_legal_transform_dr): Handle the unknown_dependence.
33849         (graphite_carried_dependence_level_k): Same.
33850
33851 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
33852
33853         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
33854
33855 2010-02-07  Richard Guenther  <rguenther@suse.de>
33856
33857         PR middle-end/42991
33858         * expr.c (get_inner_reference): Always initialize *pbitsize.
33859
33860 2010-02-07  Richard Guenther  <rguenther@suse.de>
33861
33862         PR middle-end/42956
33863         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
33864         new ARRAY_REFs on variable size element or minimal index arrays.
33865         Complete.
33866         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
33867         gimple_fold_indirect_ref.
33868
33869 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
33870
33871         PR target/42957
33872         * arm.c (arm_override_options): Just return if the user has specified
33873         an invalid fpu name.
33874
33875 2010-02-03  Jason Merrill  <jason@redhat.com>
33876
33877         PR c++/42870
33878         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
33879         i386_pe_maybe_record_exported_symbol.
33880
33881 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
33882
33883         PR target/42924
33884         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
33885         (pa_delegitimize_address): New function.
33886
33887 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
33888
33889         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
33890         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
33891
33892 2010-02-05  Richard Guenther  <rguenther@suse.de>
33893
33894         PR lto/42762
33895         * lto-streamer-in.c (get_resolution): Deal with references
33896         to undefined functions.
33897
33898 2010-02-05  Richard Guenther  <rguenther@suse.de>
33899
33900         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
33901         (fold_const_aggregate_ref): Likewise.
33902         (ccp_fold_stmt): Substitute loads.
33903         (maybe_fold_reference): Verify types before substituting.
33904         Unshare properly.
33905         (fold_gimple_assign): Unshare properly.
33906         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
33907
33908 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
33909
33910         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
33911         for rs6000_gen_cell_microcode.
33912
33913 2010-02-04  Richard Guenther  <rguenther@suse.de>
33914
33915         PR rtl-optimization/42952
33916         * dse.c (const_or_frame_p): Remove MEM handling.
33917
33918 2010-02-04  Nick Clifton  <nickc@redhat.com>
33919
33920         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
33921         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33922         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
33923         (mn10300_asm_output_mi_thunk): New function.
33924         (mn10300_can_output_mu_thunk): New function.
33925         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
33926         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
33927         (FUNCTION_ARG): Delete incorrect comment.
33928
33929 2010-02-03  Jason Merrill  <jason@redhat.com>
33930
33931         PR c++/40138
33932         * fold-const.c (operand_equal_p): Handle erroneous types.
33933
33934 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
33935
33936         * config/h8300/h8300.md (can_delay): Fix attibute condition.
33937
33938 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
33939
33940         PR rtl-optimization/42941
33941         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
33942         of xmalloc.
33943
33944 2010-02-03  Jason Merrill  <jason@redhat.com>
33945
33946         PR c++/35652
33947         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
33948
33949 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
33950
33951         PR debug/42896
33952         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
33953         (cselib_reset_table): Renamed from...
33954         (cselib_reset_table_with_next_value): ... this.
33955         (cselib_get_next_uid): Renamed from...
33956         (cselib_get_next_unknown_value): ... this.
33957         * cselib.c (next_uid): Renamed from...
33958         (next_unknown_value): ... this.
33959         (cselib_clear_table): Adjust.
33960         (cselib_reset_table): Adjust.  Renamed from...
33961         (cselib_reset_table_with_next_value): ... this.
33962         (cselib_get_next_uid): Adjust.  Renamed from...
33963         (cselib_get_next_unknown_value): ... this.
33964         (get_value_hash): Use hash.
33965         (cselib_hash_rtx): Likewise.
33966         (new_cselib_val): Adjust.  Set and dump uid.
33967         (cselib_lookup_mem): Pass next_uid as hash.
33968         (cselib_subst_to_values): Likewise.
33969         (cselib_log_lookup): Dump uid.
33970         (cselib_lookup): Pass next_uid as hash.  Adjust.
33971         (cselib_process_insn): Adjust.
33972         (cselib_init): Initialize next_uid.
33973         (cselib_finish): Adjust.
33974         (dump_cselib_table): Likewise.
33975         * dse.c (canon_address): Dump value uid.
33976         * print-rtl.c (print_rtx): Print value uid.
33977         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
33978         (dvuid): New type.
33979         (dv_uid): New function, sort of renamed from...
33980         (dv_htab_hash): ... this, reimplemented in terms of it and...
33981         (dv_uid2hash): ... this.  New.
33982         (variable_htab_eq): Drop excess assertions.
33983         (tie_break_pointers): Removed.
33984         (canon_value_cmp): Compare uids.
33985         (variable_post_merge_New_vals): Print uids.
33986         (vt_add_function_parameters): Adjust.
33987         (vt_initialize): Reset table.  Adjust.
33988
33989 2010-02-03  Richard Guenther  <rguenther@suse.de>
33990
33991         PR tree-optimization/42944
33992         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
33993         (call_may_clobber_ref_p_1): Likewise.  Properly handle
33994         malloc and calloc clobbering errno.
33995
33996 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
33997
33998         * doc/invoke.texi: Fix name of sched1 dump.
33999
34000         * opts.c (decode_options): Set flag_tree_switch_conversion
34001         only conditionally on optimize >= 2.
34002
34003         * gcse.c: Assorted comment fixes in pass description.
34004
34005 2010-02-03  Anthony Green  <green@moxielogic.com>
34006
34007         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
34008         nop padding in order to maintain alignment of storage location of
34009         target function address.
34010         (moxie_trampoline_init): Store target function address at newly
34011         aligned location.
34012         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
34013         to 32.
34014         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
34015
34016 2010-02-03  Richard Guenther  <rguenther@suse.de>
34017
34018         PR middle-end/42927
34019         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
34020
34021 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34022
34023         * config.gcc: Reenable check for obsolete targets.
34024         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
34025         mips-sgi-irix6.[0-4]*.
34026
34027 2010-02-02  Nick Clifton  <nickc@redhat.com>
34028
34029         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
34030         constant size of 4 as being the same as 0.
34031         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
34032         can take values in the range 0..4.
34033
34034 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
34035
34036         PR java/41991
34037         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
34038         as _darwin10_Unwind_FindEnclosingFunction().
34039         * libgcc-libsystem.ver: New.
34040
34041 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
34042
34043         PR target/41399
34044         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
34045         implicitly set registers.
34046
34047 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
34048
34049         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
34050         (arm_override_options): Allow automatic selection of the thread
34051         pointer register if thumb2.
34052         (legitimize_pic_address): Improve code sequences for Thumb2.
34053         (arm_call_tls_get_addr): Likewise.
34054         (legitimize_tls_address): Likewise.
34055         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
34056         (pic_load_addr_32bit): ... this.  New named pattern.
34057         * thumb2.md (pic_load_addr_thumb2): Delete.
34058         (pic_load_dot_plus_four): Delete.
34059         (tls_load_dot_plus_four): New named pattern.
34060
34061 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34062
34063         PR libgomp/29986
34064         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
34065         Document fix for TLS bug.
34066
34067 2010-01-31  Richard Guenther  <rguenther@suse.de>
34068
34069         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
34070         conservatively correct.
34071
34072 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34073
34074         PR target/42850
34075         Revert:
34076         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34077
34078         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34079
34080 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34081
34082         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
34083
34084 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
34085
34086         * config.gcc: Adjust order of makefile fragments for mingw targets.
34087
34088 2010-01-31  Richard Guenther  <rguenther@suse.de>
34089
34090         PR middle-end/42898
34091         * gimplify.c (gimplify_init_constructor): For volatile LHS
34092         initialize a temporary.
34093
34094 2010-01-31  Matthias Klose  <doko@ubuntu.com>
34095
34096         * configure.ac: Fix __stack_chk_fail check for cross builds configured
34097         --with-headers
34098         * configure: Regenerate.
34099
34100 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
34101
34102         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
34103         the same alias set and their sizes different constantness.
34104         (aliasing_component_refs_p): Revert 2009-10-24 change.
34105
34106 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34107
34108         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
34109         unused.
34110
34111 2010-01-29  Richard Guenther  <rguenther@suse.de>
34112
34113         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
34114         Assert we successfully updated the call.
34115
34116 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
34117
34118         PR rtl-optimization/42889
34119         * df.h (df_set_bb_dirty_nonlr): New prototype.
34120         * df-core.c (df_set_bb_dirty_nonlr): New function.
34121         * df-scan.c (df_insn_rescan): Call it instead of
34122         df_set_bb_dirty for DEBUG_INSNs.
34123
34124 2010-01-29  Richard Guenther  <rguenther@suse.de>
34125
34126         PR middle-end/37448
34127         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
34128         quadratic behavior in most cases.
34129
34130 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
34131
34132         PR target/42891
34133         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
34134         in the call to gen_x86_movsicc_0_m1.
34135
34136 2010-01-28  Richard Guenther  <rguenther@suse.de>
34137
34138         PR tree-optimization/42871
34139         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
34140
34141 2010-01-28  Richard Guenther  <rguenther@suse.de>
34142
34143         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
34144         into call arguments.
34145
34146 2010-01-28  Richard Guenther  <rguenther@suse.de>
34147
34148         PR middle-end/42883
34149         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
34150         the forwarder if the destination is an EH landing pad.
34151
34152 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
34153
34154         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
34155         block list passed to gimple_duplicate_sese_tail.
34156         (parallelize_loops): Avoid parallelization when the function
34157         has_nonlocal_label.
34158         Avoid parallelization when the preheader is IRREDUCIBLE.
34159         Try to optimize when estimated_loop_iterations_int is unresolved.
34160         Add the loop's location to the dump file.
34161         * tree-cfg.c (add_phi_args_after_redirect): Remove.
34162         (gimple_duplicate_sese_tail): Remove the check for the latch.
34163         Redirect nexits to the exit block.
34164         Remove handling of the incoming edges to the latch.
34165         Redirect the backedge from the copied latch to the exit bb.
34166
34167 2010-01-28  Michael Matz  <matz@suse.de>
34168
34169         PR target/42881
34170         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
34171         Wrap force_reg into a sequence, emit it before user.
34172
34173 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
34174
34175         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
34176         (arm_rev): New.
34177         (arm_legacy_rev): Likewise.
34178         (thumb_legacy_rev): Likewise.
34179
34180 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
34181
34182         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
34183         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
34184         on MEM's address failed, try avoid_constant_pool_reference and
34185         recurse if it returned something different.
34186         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
34187         address, try avoid_constant_pool_reference and recurse if it
34188         returned something different.
34189         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
34190         address and avoid_constant_pool_reference returned something
34191         different, don't set have_address.
34192
34193 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
34194
34195         PR debug/42861
34196         * var-tracking.c (val_store): Add modified argument, obey it.
34197         Adjust callers.
34198         (count_uses): Move down logging of main.
34199         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
34200         don't need resolution.
34201         (emit_notes_in_bb): Likewise.
34202
34203 2010-01-27  Richard Guenther  <rguenther@suse.de>
34204
34205         PR middle-end/42878
34206         * tree-inline.c (remap_decl): Delay remapping of SSA name
34207         default definitions until we need them.
34208
34209 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
34210
34211         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
34212         (rs6000_delegitimize_address): New function.
34213
34214         * config/s390/s390.c (s390_delegitimize_address): Call
34215         delegitimize_mem_from_attrs.
34216
34217         PR middle-end/42874
34218         * tree-inline.c (cannot_copy_type_1): Removed.
34219         (copy_forbidden): Don't forbid copying of functions containing
34220         records/unions with variable length fields.
34221
34222 2010-01-27  Christian Bruel  <christian.bruel@st.com>
34223
34224         Revert:
34225         PR target/42841
34226         * config/sh/sh.c (find_barrier): Increase length for non delayed
34227         conditional branches.
34228
34229 2010-01-27  Matthias Klose  <doko@ubuntu.com>
34230
34231         * configure.ac (gnu-unique-object): Fix ldd version check.
34232         * configure: Regenerate.
34233
34234 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34235
34236         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
34237         HAVE_GNU_AS value.
34238         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
34239         Test for HAVE_GNU_AS value.
34240
34241 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34242
34243         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
34244         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
34245         INT64_TYPE): Define.
34246         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
34247         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
34248         INT_LEAST64_TYPE): Define.
34249         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
34250         UINT_LEAST64_TYPE): Define.
34251         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
34252         INT_FAST64_TYPE): Define.
34253         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
34254         UINT_FAST64_TYPE): Define.
34255         (INTMAX_TYPE, UINTMAX_TYPE): Define.
34256         (INTPTR_TYPE, UINTPTR_TYPE): Define.
34257         (SIG_ATOMIC_TYPE): Define.
34258
34259 2010-01-26  Richard Guenther  <rguenther@suse.de>
34260
34261         * df-scan.c (df_scan_set_bb_info): Remove assert.
34262         (df_insn_rescan_debug_internal): Merge asserts.
34263         (df_install_ref): Likewise.
34264         (df_mark_reg): Use bitmap_set_range.
34265         (df_hard_reg_used_p): Remove assert.
34266         (df_hard_reg_used_count): Likewise.
34267
34268 2010-01-26  Richard Guenther  <rguenther@suse.de>
34269
34270         PR rtl-optimization/42685
34271         * web.c (web_main): Ignore DEBUG_INSNs.
34272
34273 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
34274
34275         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
34276
34277         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
34278         Fix types of fndecl and arglist parameters.
34279
34280 2010-01-26  Richard Guenther  <rguenther@suse.de>
34281
34282         PR middle-end/42806
34283         * tree-eh.c (unsplit_eh): Skip debug insns.
34284
34285 2010-01-26  Richard Guenther  <rguenther@suse.de>
34286
34287         PR tree-optimization/42250
34288         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
34289
34290 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
34291
34292         PR fortran/42866
34293         * omp-low.c (expand_omp_sections): Only use single_pred if
34294         l2_bb is single_pred_p.
34295
34296 2010-01-25  Christian Bruel  <christian.bruel@st.com>
34297
34298         PR target/42841
34299         * config/sh/sh.c (find_barrier): Increase length for non delayed
34300         conditional branches.
34301         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
34302
34303 2010-01-24  David S. Miller  <davem@davemloft.net>
34304
34305         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
34306         define if not using GAS.
34307         * config/sparc/sparc.c (sparc_elf_asm_named_section):
34308         Likewise.  Delete SECTION_MERGE code, which is only applicable
34309         when using GAS.
34310
34311 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
34312
34313         PR c++/42748
34314         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
34315         mangling of va_list in system headers.
34316
34317 2010-01-23  Toon Moene  <toon@moene.org>
34318
34319         * tree-predcom.c (combine_chains): Return NULL, not false.
34320
34321 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
34322
34323         * tree-loop-distribution.c (distribute_loop): Fix declaration and
34324         initialization of variable res to agree with return type.
34325
34326 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
34327
34328         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
34329         * tree-sra.c: Add include of expr.h.
34330
34331 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
34332
34333         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
34334         insert the debug stmt on the single non-EH edge from the stmt.
34335
34336 2010-01-22  Richard Henderson  <rth@redhat.com>
34337
34338         PR tree-opt/42833
34339         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
34340         the RHS until after generate_subtree_copies has insertted its
34341         code before the current statement.
34342
34343 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
34344
34345         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
34346
34347         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
34348
34349 2010-01-21  Martin Jambor  <mjambor@suse.cz>
34350
34351         PR tree-optimization/42585
34352         * tree-sra.c (struct access): New field grp_total_scalarization.
34353         (dump_access): Dump the new field.
34354         (should_scalarize_away_bitmap): New variable.
34355         (cannot_scalarize_away_bitmap): Likewise.
34356         (sra_initialize): Allocate new bitmaps.
34357         (sra_deinitialize): Free new bitmaps.
34358         (create_access_1): New function.
34359         (create_access): Parts moved to create_access_1.
34360         (type_consists_of_records_p): New function.
34361         (completely_scalarize_record): Likewise.
34362         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
34363         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
34364         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
34365         access.
34366         (analyze_all_variable_accesses): Completely scalarize small eligible
34367         records.
34368
34369 2010-01-21  Martin Jambor  <mjambor@suse.cz>
34370
34371         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
34372
34373 2010-01-21  Andrew Haley  <aph@redhat.com>
34374
34375         * gcc.c (process_command): Move lang_specific_driver before
34376         setting cc_libexec_prefix.
34377
34378 2010-01-21  Richard Guenther  <rguenther@suse.de>
34379
34380         PR middle-end/19988
34381         * fold-const.c (negate_expr_p): Pretend only negative
34382         real constants are easily negatable.
34383
34384 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
34385             Jason Merrill  <jason@redhat.com>
34386
34387         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
34388         (TYPE_TRANSPARENT_AGGR): this, for union and record.
34389         * calls.c (initialize argument_information): Handle it.
34390         * c-common.c (handle_transparent_union_attribute): Use new name.
34391         * c-decl.c (finish_struct): Ditto.
34392         * c-typeck.c (type_lists_compatible_p): Ditto.
34393         (convert_for_assignment): Use new name and also handle record.
34394         * function.c (aggregate_value_p): Handle it.
34395         (pass_by_reference): Ditto.
34396         (assign_parm_data_types): Ditto.
34397         * print-tree.c (print_node): Ditto.
34398         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
34399         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
34400         * tree.c (first_field): New fn.
34401
34402 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
34403
34404         PR target/42818
34405         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
34406         even when linking statically, for now.
34407
34408 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
34409
34410         PR debug/42715
34411         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
34412         without a cselib val.
34413         (count_uses): Accept MO_VAL_SET with no val on stores.
34414         (add_stores): Likewise.
34415
34416 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34417
34418         * var-tracking.c (check_value_val): Add a compile time assertion.
34419         (dv_is_decl_p): Simplify.
34420         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
34421         gcc_assert if ENABLE_CHECKING.
34422
34423 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
34424
34425         PR debug/42782
34426         * var-tracking.c: Include tree-flow.h.
34427         (mem_dies_at_call): New.
34428         (dataflow_set_preserve_mem_locs): Use it.
34429         (dataflow_set_remove_mem_locs): Likewise.
34430         (dump_var): Renamed from dump_variable.  Adjust all callers.
34431         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
34432         * Makefile.in (var-tracking.o): Adjust deps.
34433
34434 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
34435
34436         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
34437
34438 2010-01-20  Richard Guenther  <rguenther@suse.de>
34439
34440         PR tree-optimization/42717
34441         * tree-ssa-dce.c (get_live_post_dom): Remove.
34442         (forward_edge_to_pdom): Take an arbitrary edge to copy
34443         degenerate PHI args from.
34444         (remove_dead_stmt): Use the first post-dominator even if it
34445         does not contain live statements as redirection destination.
34446
34447 2010-01-20  Richard Guenther  <rguenther@suse.de>
34448
34449         * tree-inline.c (estimate_num_insns): Handle EH builtins.
34450
34451 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34452
34453         * sel-sched.c (create_speculation_check): Remove set but not used
34454         variable twin.
34455         (try_transformation_cache): Remove set but not used variable ds.
34456         (calculate_privileged_insns): Remove set but not used variables
34457         cur_insn and min_spec_insn.
34458         (find_best_expr): Remove set but not used variable avail_n.
34459         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
34460         variable e.
34461         * cgraphunit.c (assemble_thunk): Remove set but not used variable
34462         false_label.
34463         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
34464         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
34465         new_scop_exit_edge.
34466
34467 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
34468
34469         PR bootstrap/42786
34470         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
34471         cpu types.  Add support for *-sse3 cpu types.
34472         (x86_64-*-*): Ditto.
34473
34474 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34475
34476         PR middle-end/42803
34477         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
34478         argument, call initializer_constant_valid_p_1 instead of
34479         initializer_constant_valid_p, pass CACHE to it, return NULL
34480         immediately if first call returns NULL.
34481         (initializer_constant_valid_p_1): New function.
34482         (initializer_constant_valid_p): Use it.
34483
34484 2010-01-20  Thomas Quinot  <quinot@adacore.com>
34485
34486         * tree.def (PLACEHOLDER_EXPR): Fix comment.
34487
34488 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
34489
34490         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
34491         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
34492         (loc_list_from_tree): Don't handle unsigned division.  Handle
34493         signed modulo using DW_OP_{over,over,div,mul,minus}.
34494         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
34495         modulo instead of signed.
34496
34497 2010-01-20  DJ Delorie  <dj@redhat.com>
34498
34499         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
34500         (Fpa): Pass it
34501         (h8300_emit_stack_adjustment): Propogate it.
34502         (push): Pass it.
34503         (h8300_expand_prologue): Likewise.
34504         (h8300_expand_epilogue): Likewise.
34505
34506 2010-01-19  Michael Matz  <matz@suse.de>
34507
34508         PR tree-optimization/41783
34509         * tree-data-ref.c (toplevel): Include flags.h.
34510         (dump_data_dependence_relation):  Also dump the inputs if the
34511         result will be unknown.
34512         (split_constant_offset_1): Look through some conversions.
34513         * tree-predcom.c (determine_roots_comp): Restart a new chain if
34514         the offset from last element is too large.
34515         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
34516         (reassociate_to_the_same_stmt): Handle vector registers.
34517         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
34518         (e.g. conversions).
34519         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
34520         wide_prolog_niters argument, emit widening instructions.
34521         (vect_do_peeling_for_alignment): Adjust caller, use widened
34522         variant of the iteration cound.
34523         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
34524
34525 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34526
34527         PR target/38697
34528         * config/arm/neon-testgen.m (emit_automatics): New parameter
34529         features. Adjust for Fixed_return_reg feature.
34530         (test_intrinsic): Call emit_automatics with new feature.
34531         * config/arm/neon.ml: Update copyright years.
34532         (features): New Fixed_return_reg feature.
34533         (ops): Update feature for Vget_low.
34534
34535 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
34536
34537         PR tree-optimization/42719
34538         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
34539         stmt uses.
34540
34541         PR debug/42728
34542         * fwprop.c (all_uses_available_at): Return false if def_set dest
34543         is a REG that is used in def_insn.
34544
34545 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
34546
34547         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
34548
34549         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
34550         Add argument names.
34551
34552         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
34553
34554         * target.h (struct gcc_target) <secondary_reload>: Change type
34555         of last argument to secondary_reload_info *.
34556
34557 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
34558
34559         PR target/42774
34560         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
34561         memory references with unaligned offsets.  Remove CQImode handling.
34562         (unaligned_memory_operand): Return 1 for memory references with
34563         unaligned offsets.  Remove CQImode handling.
34564
34565 2010-01-18  Richard Guenther  <rguenther@suse.de>
34566
34567         PR middle-end/39954
34568         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
34569         builtin calls.
34570
34571 2010-01-18  Richard Guenther  <rguenther@suse.de>
34572
34573         PR tree-optimization/42781
34574         * tree-ssa-structalias.c (find_what_var_points_to): Skip
34575         restrict processing only if the original variable was artificial.
34576
34577 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
34578
34579         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
34580         find number of popped argument bytes.
34581
34582         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
34583         Fix the text that describes the return value for invalid insns.
34584
34585         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
34586
34587         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
34588         Clarify what 'cost of the -dependence' is.  Fix quoting.
34589
34590         * toplev.c (default_get_pch_validity): Rename argument to "sz".
34591         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
34592
34593 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
34594
34595         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
34596         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
34597
34598 2010-01-17  Richard Guenther  <rguenther@suse.de>
34599
34600         PR middle-end/42248
34601         * function.c (split_complex_args): Take a VEC to modify.
34602         (assign_parms_augmented_arg_list): Build a VEC instead of
34603         a chain of PARM_DECLs.
34604         (assign_parms_unsplit_complex): Take a VEC of arguments.
34605         Do not fixup unmodified parms.
34606         (assign_parms): Deal with the VEC.
34607         (gimplify_parameters): Likewise.
34608
34609 2010-01-17  Richard Guenther  <rguenther@suse.de>
34610
34611         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
34612         node existence check.
34613         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
34614         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
34615         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
34616         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
34617         (gimple_execute_on_growing_pred): Likewise.
34618
34619 2010-01-17  Richard Guenther  <rguenther@suse.de>
34620
34621         PR tree-optimization/42773
34622         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
34623         (compute_antic_aux): Likewise.
34624         (compute_partial_antic_aux): Likewise.
34625
34626 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
34627
34628         PR debug/42767
34629         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
34630         and US_TRUNCATE.
34631
34632 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
34633
34634         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
34635         appearance.
34636
34637         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
34638         Fix markup for strict argument.
34639
34640         (TARGET_SCHED_REORDER2): Fix argument types.
34641
34642         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
34643         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
34644
34645         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
34646         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
34647
34648         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
34649         Add argument name.
34650
34651         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
34652         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
34653         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
34654         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
34655         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
34656
34657         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
34658
34659         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
34660
34661         (TARGET_ASM_RELOC_RW_MASK): Add return type.
34662         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
34663
34664         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
34665
34666         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
34667         Use prototype.
34668
34669         (TARGET_ASM_NAMED_SECTION): Fix argument list.
34670
34671         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
34672         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
34673
34674         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
34675
34676         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
34677
34678         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
34679         referring to it.  Fix language.
34680
34681         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
34682
34683         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
34684
34685         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
34686
34687         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
34688
34689         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
34690         '@var{stream}.  Remove stray 'and'.
34691
34692         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
34693
34694         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
34695
34696         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
34697
34698         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
34699         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
34700
34701         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
34702         Fix description of return value.
34703         Rename argument "sz" to "len."
34704
34705         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
34706         Clarify meaning of 'true' return value.
34707
34708         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
34709
34710         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
34711         rep_mode versus mode_rep.
34712
34713         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
34714
34715         (TARGET_BUILTIN_DECL): Fix name.
34716
34717         (TARGET_COMMUTATIVE_P): Fix type of first argument.
34718
34719         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
34720
34721         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
34722
34723         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
34724
34725         (TARGET_RELAXED_ORDERING): Use @deftypevr.
34726
34727         (TARGET_GET_DRAP_RTX): Note that this is a hook.
34728         Clarify language.
34729
34730         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
34731         Rename argument tm_fn to md_fn.
34732
34733         (TARGET_OPTION_PRINT): Fix argument list.
34734
34735 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
34736
34737         PR target/42664
34738         * config/i386/i386.c (ix86_fixup_binary_operands):
34739         Revert FMA4 fixup of operands.
34740
34741 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34742
34743         PR other/42525
34744         * Makefile.in (write_entries_to_file, install-plugin):
34745         Use \012 instead of \n with tr.
34746
34747 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
34748
34749         * configure.ac (HAVE_AS_REF): New C macro.
34750         * configure: Regenerate.
34751         * config.in: Likewise.
34752         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
34753         if HAVE_AS_REF.
34754         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
34755         if HAVE_AS_REF.
34756
34757 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
34758
34759         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
34760
34761         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
34762
34763         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
34764
34765         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
34766
34767         (TARGET_IN_SMALL_DATA_P): Fix argument type.
34768
34769         (TARGET_BINDS_LOCAL_P): Fix argument type.
34770
34771         (TARGET_ASM_FILE_END): Use prototype.
34772
34773         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
34774
34775         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
34776
34777         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
34778
34779         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
34780
34781         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
34782         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
34783
34784         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
34785         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
34786
34787         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
34788         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
34789         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
34790         (TARGET_ADDR_SPACE_CONVERT): Likewise.
34791
34792         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
34793
34794         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
34795
34796         (TARGET_INIT_BUILTINS): Use prototype.
34797
34798         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
34799         Put 'const char *' in braces.  Fix parameter types.
34800         (TARGET_INVALID_CONVERSION): Fix parameter types.
34801         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
34802         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
34803
34804         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
34805         Fix argument type.
34806
34807         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
34808
34809         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
34810
34811 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
34812
34813         * doc/tm.texi (TARGET_HELP): Fix return type.
34814
34815         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
34816         in braces.  Fix argument types.
34817
34818         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
34819
34820         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
34821
34822         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
34823
34824         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
34825         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
34826
34827         (TARGET_MANGLE_TYPE): Fix argument types.
34828
34829         (TARGET_IRA_COVER_CLASSES): Use prototype.
34830
34831         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
34832
34833         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
34834
34835         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
34836
34837         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
34838
34839         (TARGET_CALLEE_COPIES): Fix argument types.
34840
34841         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
34842
34843         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
34844
34845         (TARGET_FUNCTION_VALUE): Fix argument types.
34846
34847         (TARGET_RETURN_IN_MSB): Fix argument type.
34848
34849         (TARGET_RETURN_IN_MEMORY): Fix argument types.
34850
34851         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
34852
34853         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
34854
34855         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
34856         agree with return type.
34857
34858         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
34859
34860 2010-01-15  Jing Yu  <jingyu@google.com>
34861
34862         PR rtl-optimization/42691
34863         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
34864         a pseudo to a constant and are merged, and adjust comments.
34865
34866 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
34867
34868         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
34869
34870 2010-01-15  Richard Guenther  <rguenther@suse.de>
34871
34872         PR middle-end/42739
34873         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
34874         labels of computed or non-local gotos to the destination.
34875         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
34876         landing pad label is the first label.
34877
34878 2010-01-15  Richard Guenther  <rguenther@suse.de>
34879
34880         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
34881
34882 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
34883
34884         PR target/42747
34885         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
34886         to allow generation of the xssqrtdp instruction on power7.
34887         (sqrtdf2_fpr): Ditto.
34888
34889 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
34890
34891         PR middle-end/42674
34892         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
34893         functions with noreturn attribute.
34894
34895         PR c++/42608
34896         * varasm.c (declare_weak): Add weak attribute to decl if it
34897         doesn't have one already.
34898         (assemble_external): Only add decls to weak_decls if they also
34899         have weak attribute.
34900
34901 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
34902
34903         * var-tracking.c (var_reg_delete): Don't delete the association
34904         between REGs and values or one-part variables if the register
34905         isn't clobbered.
34906
34907 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
34908
34909         PR debug/42657
34910         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
34911         because its first operand is a non-localized variable.
34912
34913 2010-01-14  Martin Jambor  <mjambor@suse.cz>
34914
34915         PR tree-optimization/42706
34916         * tree-sra.c (encountered_recursive_call): New variable.
34917         (encountered_unchangable_recursive_call): Likewise.
34918         (sra_initialize): Initialize both new variables.
34919         (callsite_has_enough_arguments_p): New function.
34920         (scan_function): Call decl and flags check only for IPA-SRA, check
34921         whether there is a recursive call and whether it has enough arguments.
34922         (all_callers_have_enough_arguments_p): New function.
34923         (convert_callers): Look for recursive calls only when
34924         encountered_recursive_call is set.
34925         (ipa_early_sra): Bail out either if
34926         !all_callers_have_enough_arguments_p or
34927         encountered_unchangable_recursive_call.
34928
34929 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34930
34931         * sel-sched.c: Add 2010 to copyright years.
34932         * sel-sched-ir.c: Likewise.
34933         * sel-sched-ir.h: Likewise.
34934
34935 2010-01-14  Martin Jambor  <mjambor@suse.cz>
34936
34937         PR tree-optimization/42714
34938         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
34939         constructors specially.
34940
34941 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34942
34943         * config/i386/drivers-i386.c (detect_caches_intel):
34944         Add l2sizekb parameter and fill in.
34945         (host_detect_local_cpu): Add l2sizekb, fill in.
34946         Add Atom small cache heuristic.
34947
34948 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34949
34950         * config/i386/drivers-i386.c (detect_caches_cpuid4):
34951         Add level3 parameter and fill in.
34952         (detect_caches_intel): Handle level3 cache.
34953
34954 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34955
34956         * config/i386/drivers-i386.c (host_detect_local_cpu):
34957         Fix core duo detection.
34958
34959 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34960
34961         * config/i386/drivers-i386.c (host_detect_local_cpu):
34962         Fix Atom detection.
34963
34964 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34965
34966         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
34967         (rs6000_variable_issue_1): this.  Use...
34968         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
34969
34970 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34971
34972         * sel-sched-ir.c (sel_restore_other_notes): Rename to
34973         sel_restore_notes.  Update all callers.  Call reemit_notes
34974         for all insns.
34975
34976 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34977
34978         PR rtl-optimization/42246
34979         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
34980         loops.
34981
34982 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34983
34984         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
34985         all successors is the same as number of successors in current region.
34986
34987 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34988
34989         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
34990         to rename is not separable.  Otherwise check that its LHS is not NULL.
34991
34992 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34993
34994         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
34995
34996 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34997
34998         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
34999         available registers when failed to discover LHS register class.
35000         Fix indentation.  Update comment.
35001
35002 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35003             Alexander Monakov  <amonakov@ispras.ru>
35004
35005         PR rtl-optimization/42389
35006         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
35007         to can_issue_more.
35008         (advance_state_on_fence): Likewise.
35009         (sel_target_adjust_priority): Print debug output only when
35010         sched_verbose >= 4, not 2.
35011         (get_expr_cost): Do not issue all unique insns on the next cycle.
35012         (fill_insns): Initialize can_issue_more from the value saved
35013         with the fence.
35014         * sel-sched-ir.c (flist_add): New parameter issue_more.
35015         Init FENCE_ISSUE_MORE with it.
35016         (merge_fences): Likewise.
35017         (init_fences): Update call to flist_add.
35018         (add_to_fences, add_clean_fence_to_fences)
35019         (add_dirty_fence_to_fences): Likewise.
35020         (move_fence_to_fences): Update call to merge_fences.
35021         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
35022         sched groups.
35023         * sel-sched-ir.h (struct _fence): New field issue_more.
35024         (FENCE_ISSUE_MORE): New accessor macro.
35025
35026 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35027
35028         PR rtl-optimization/42388
35029         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
35030         that have no predecessors nor successors.  Do not call move_bb_info
35031         for empty blocks outside of current region.
35032
35033 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35034
35035         PR rtl-optimization/42294
35036         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
35037         * sel-sched.c (move_exprs_to_boundary): Transitively add all
35038         originators' originators.
35039
35040 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
35041
35042         PR rtl-optimization/39453
35043         PR rtl-optimization/42246
35044         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
35045         for pipelining_p.
35046         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
35047
35048 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35049             Alexander Monakov  <amonakov@ispras.ru>
35050
35051         PR middle-end/42245
35052         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
35053         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
35054         argument.  Update all callers.
35055         (tidy_control_flow): ... and here.  Recompute topological order
35056         of basic blocks in region if necessary.
35057         (sel_redirect_edge_and_branch): Change return type.  Return true
35058         if topological order might have been invalidated.
35059         (purge_empty_blocks): Export and move from...
35060         * sel-sched.c (purge_empty_blocks): ... here.
35061         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
35062         (maybe_tidy_empty_bb): Delete prototype.
35063         (purge_empty_blocks): Declare.
35064
35065 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
35066
35067         PR rtl-optimization/42249
35068         * sel-sched.c (try_replace_dest_reg): When chosen register
35069         and original register is the same, do not bail out early, but
35070         still check all original insns for validity of replacing destination
35071         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
35072         in this case.
35073
35074 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
35075
35076         PR c/42721
35077         Port from no-undefined-overflow branch:
35078         2009-03-09  Richard Guenther  <rguenther@suse.de>
35079
35080         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
35081
35082 2010-01-14  Richard Guenther  <rguenther@suse.de>
35083
35084         PR lto/42665
35085         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
35086
35087 2010-01-14  Ira Rosen  <irar@il.ibm.com>
35088
35089         PR tree-optimization/42709
35090         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
35091         as scalar type in creation of constant vector operand.
35092
35093 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35094
35095         PR testsuite/42414
35096         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
35097         (check-parallel-%): Match `testsuite' directory component only
35098         at the end.
35099
35100 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
35101
35102         PR translation/39521
35103         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
35104         strings with _().
35105
35106 2010-01-13  Richard Guenther  <rguenther@suse.de>
35107
35108         PR tree-optimization/42730
35109         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
35110         offset zero.
35111
35112 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
35113
35114         PR target/pr42542
35115         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
35116         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
35117         them signed.
35118
35119 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
35120
35121         * config/bfin/libgcc-bfin.ver: Regenerate based on current
35122         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
35123         ___umulsi3_highpart.
35124
35125         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
35126         rather than schedule_insns if the pass is enabled.
35127
35128 2010-01-13  Martin Jambor  <mjambor@suse.cz>
35129
35130         PR tree-optimization/42704
35131         * tree-sra.c (sra_modify_assign): Do not delete assignments to
35132         SSA_NAMEs.
35133
35134 2010-01-13  Martin Jambor  <mjambor@suse.cz>
35135
35136         PR tree-optimization/42703
35137         * tree-sra.c (analyze_access_subtree): Check that we can build a
35138         reference to the original data within the aggregate.
35139
35140 2010-01-13  Richard Guenther  <rguenther@suse.de>
35141
35142         PR tree-optimization/42705
35143         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
35144
35145 2010-01-13  Richard Guenther  <rguenther@suse.de>
35146
35147         PR middle-end/42716
35148         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
35149
35150 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
35151
35152         PR debug/41371
35153         * var-tracking.c (values_to_unmark): New variable.
35154         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
35155         values_to_unmark vector.  Moved body to...
35156         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
35157         instead queue it into values_to_unmark vector.
35158         (vt_find_locations): Free values_to_unmark vector.
35159
35160 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
35161
35162         * config/s390/s390.c (override_options): Set
35163         default of max-pending-list-length to 256
35164
35165 2010-01-13  Richard Guenther  <rguenther@suse.de>
35166
35167         PR lto/42678
35168         * tree-pass.h (PROP_gimple_lcx): New.
35169         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
35170         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
35171         before the final cleanup_eh.
35172         (dump_properties): Dump PROP_gimple_lcx.
35173         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
35174         (tree_lower_complex_O0): Remove.
35175         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
35176         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
35177         tree_lower_complex, schedule TODO_update_ssa.
35178         * lto-streamer-out.c (output_function): Stream the functions
35179         properties.
35180         * lto-streamer-in.c (input_function): Likewise.
35181         (lto_read_body): Do not override them here.
35182
35183 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
35184
35185         PR c/42708
35186         * c-typeck.c (build_c_cast): Fold value cast to union type before
35187         wrapping it in a CONSTRUCTOR.
35188
35189 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
35190
35191         PR rtl-optimization/42699
35192         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
35193         involved.
35194
35195 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35196
35197         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
35198         SUBTARGET_WARN_UNUSED_SPEC): Move ...
35199         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
35200         SUBTARGET_WARN_UNUSED_SPEC): ... here
35201         * config/mips/iris5.h (LIBGCC_SPEC): Define.
35202
35203 2010-01-12  Julian Brown  <julian@codesourcery.com>
35204
35205         * config/arm/neon-schedgen.ml (Utils): Don't try to
35206         open missing module.
35207         (find_with_result): New.
35208
35209 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
35210
35211         PR debug/42662
35212         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
35213         sharing when canonicalizing ({lt,ge}u (plus a b) b).
35214
35215         PR tree-optimization/42645
35216         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
35217         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
35218         decl_map, set processing_debug_stmt to -1 and return name without
35219         any remapping.
35220
35221 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
35222
35223         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
35224         binutils version, and reword target configuration description.
35225
35226 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
35227
35228         * config/avr/avr.h (LINKER_NAME): Remove.
35229
35230 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
35231
35232         PR target/42416
35233         * config/rs6000/rs6000.c (rs6000_override_options): On targets
35234         that support VSX, warn for -mno-altivec if vsx is not disabled,
35235         and disable vsx.
35236
35237 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
35238             Shujing Zhao  <pearly.zhao@oracle.com>
35239
35240         PR translation/42469
35241         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
35242         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
35243         character between option name and help text.
35244         * c.opt (imultilib): Likewise.
35245
35246 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
35247
35248         * lto-streamer-out.c (output_unreferenced_globals): Output static
35249         variables.
35250
35251 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
35252
35253         PR rtl-optimization/42621
35254         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
35255         optimizing for size.
35256         (duplicate_computed_gotos): Remove now-redundant check.
35257
35258 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
35259
35260         PR target/37454
35261         * configure.ac: Save and restore LDFLAGS and LIBS
35262         * configure: Regenerate.
35263
35264 2010-01-10  Richard Guenther  <rguenther@suse.de>
35265
35266         PR middle-end/42667
35267         * builtins.c (fold_builtin_strlen): Add type argument and
35268         convert the resulting length to it.
35269         (fold_builtin_1): Adjust.
35270
35271 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
35272
35273         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
35274         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
35275         1 insn.
35276         (num_insns_constant_wide): Adjust for that change.
35277
35278 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35279
35280         PR debug/42631
35281         * web.c (union_defs): Add used argument, to combine uses of
35282         uninitialized regs.
35283         (entry_register): Adjust type and tests of used argument.
35284         (web_main): Widen used for new use.  Pass it to union_defs.
35285         * df.h (union_defs): Adjust prototype.
35286
35287 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35288
35289         PR debug/42630
35290         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
35291         uses in new incoming argument.  Free body.
35292         (reset_debug_uses_in_loop): New.
35293         (analyze_insn_to_expand_var): Call the latter if the former found
35294         anything.  Fix whitespace.  Reject invalid dest overlaps before
35295         going through all insns in the loop.
35296
35297 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35298
35299         PR debug/42629
35300         * haifa-sched.c (dying_use_p): Debug insns don't count.
35301
35302 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35303
35304         PR middle-end/42363
35305         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
35306         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
35307         (verify_gimple_call): Reject LHS in noreturn calls.
35308
35309 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35310
35311         PR debug/42604
35312         PR debug/42395
35313         * tree-vect-loop-manip.c (adjust_info): New type.
35314         (adjust_vec): New pointer to vector.
35315         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
35316         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
35317         (slpeel_update_phis_for_duplicate_loop): Use them.
35318         (slpeel_update_phi_nodes_for_guard1): Likewise.
35319         (slpeel_update_phi_nodes_for_guard2): Likewise.
35320         (slpeel_tree_peel_loop_to_edge): Likewise.
35321         (vect_update_ivs_after_vectorizer): Likewise.
35322
35323 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35324
35325         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
35326         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
35327
35328 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
35329
35330         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
35331         bogus uninitialized warning.
35332
35333 2010-01-09  Richard Guenther  <rguenther@suse.de>
35334
35335         PR middle-end/42512
35336         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
35337         the evolution is compatible with the initial condition.
35338
35339 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
35340
35341         * gcc.c (process_command): Update copyright notice dates.
35342         * gcov.c (print_version): Likewise.
35343         * gcov-dump.c (print_version): Likewise.
35344         * mips-tfile.c (main): Likewise.
35345         * mips-tdump.c (main): Likewise.
35346
35347 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
35348
35349         PR target/41885
35350         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
35351         (rotlhi3): Delete.
35352         (rotlhi3_8): Delete.
35353         (rotlsi3): Delete.
35354         (rotlsi3_8): Delete.
35355         (rotlsi3_16): Delete.
35356         (rotlsi3_24): Delete.
35357         (rotl<mode>3): New.
35358         (*rotw<mode>3): New.
35359         (*rotb<mode>3): New.
35360         * config/avr/avr.c (avr_rotate_bytes): New function.
35361         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
35362
35363 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
35364
35365         PR target/37454
35366         * configure.ac: Modify -rdynamic check.
35367         * configure: Regenerate.
35368
35369 2010-01-08  DJ Delorie  <dj@redhat.com>
35370
35371         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
35372         register popping order.
35373
35374 2010-01-08  Richard Guenther  <rguenther@suse.de>
35375
35376         PR lto/42528
35377         * c.opt (fsigned-char): Also let LTO handle this option.
35378         (funsigned-char): Likewise.
35379
35380 2010-01-07  Richard Guenther  <rguenther@suse.de>
35381
35382         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
35383         (gimple_op): Likewise.
35384         (gimple_op_ptr): Likewise.
35385         (gimple_assign_set_lhs): Remove gcc_assert.
35386         (gimple_assign_set_rhs1): Likewise.
35387         (gimple_assign_set_rhs2): Likewise.
35388         (gimple_call_set_lhs): Likewise.
35389         (gimple_call_set_fn): Likewise.
35390         (gimple_call_set_fndecl): Likewise.
35391         (gimple_call_fndecl): Likewise.
35392         (gimple_call_return_type): Likewise.
35393         (gimple_call_set_chain): Likewise.
35394         (gimple_call_num_args): Likewise.
35395         (gimple_call_set_arg): Likewise.
35396         (gimple_cond_set_code): Likewise.
35397         (gimple_cond_set_lhs): Likewise.
35398         (gimple_cond_set_rhs): Likewise.
35399         (gimple_cond_set_true_label): Likewise.
35400         (gimple_cond_set_false_label): Likewise.
35401         (gimple_label_set_label): Likewise.
35402         (gimple_goto_set_dest): Likewise.
35403         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
35404         (gimple_debug_bind_get_value): Likewise.
35405         (gimple_debug_bind_get_value_ptr): Likewise.
35406         (gimple_debug_bind_set_var): Likewise.
35407         (gimple_debug_bind_set_value): Likewise.
35408         (gimple_debug_bind_reset_value): Likewise.
35409         (gimple_debug_bind_has_value_p): Likewise.
35410         (gimple_return_retval_ptr): Remove gcc_assert.
35411         (gimple_return_retval): Likewise.
35412         (gimple_return_set_retval): Likewise.
35413         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
35414         (safe_referenced_var_iterator): Remove.
35415         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
35416         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
35417         (fill_referenced_var_vec): Remove.
35418         (first_readonly_imm_use): Remove redundant gcc_assert.
35419         (phi_arg_index_from_use): Combine gcc_asserts.
35420         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
35421         (first_imm_use_stmt): Remove redundant gcc_assert.
35422         * tree-cfg.c (verify_gimple_call): Verify function and chain
35423         operands.  Verify arguments.
35424         (verify_types_in_gimple_stmt): Verify condition code and labels.
35425
35426 2010-01-07  Richard Guenther  <rguenther@suse.de>
35427
35428         PR tree-optimization/42641
35429         * sese.c (rename_map_elt_info): Use the SSA name version, do
35430         not hash pointers.
35431
35432 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
35433
35434         PR tree-optimization/42625
35435         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
35436         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
35437
35438 2010-01-07  Duncan Sands  <baldrick@free.fr>
35439
35440         * Makefile.in (PLUGIN_HEADERS): Add version.h.
35441
35442 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
35443
35444         PR target/42511
35445         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
35446         note itself is not function_invariant_p.
35447
35448 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
35449
35450         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
35451         Do not add the DF_NOTE problem.
35452         * store-motion.c (execute_rtl_store_motion): Likewise.
35453
35454 2010-01-07  Martin Jambor  <mjambor@suse.cz>
35455
35456         PR tree-optimization/42157
35457         * tree-sra.c (compare_access_positions): Stabilize sort if both
35458         accesses have integer types, return zero immediately if they are the
35459         same.
35460
35461 2010-01-06  Richard Henderson  <rth@redhat.com>
35462
35463         PR middle-end/41883
35464         * haifa-sched.c (add_to_note_list): Merge into ...
35465         (concat_note_lists): ... here, and ...
35466         (unlink_other_notes, rm_other_notes): Merge into...
35467         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
35468         NOTE_INSN_EPILOGUE_BEG.
35469
35470 2010-01-06  Richard Guenther  <rguenther@suse.de>
35471
35472         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
35473         not inline regular functions into always-inline functions.
35474
35475 2010-01-06  Nick Clifton  <nickc@redhat.com>
35476
35477         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
35478         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
35479         used together.
35480         (OVERRIDE_OPTIONS): Delete.
35481         (OPTIMIZATION_OPTIONS): Define.
35482         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
35483         * config/rx/rx.c (rx_handle_option): Issue an error message if
35484         -mcpu=rx200 and -fpu are used together.
35485         (rx_set_optimization_options): New function.  Issue an error
35486         message if an optimization attribute attempts to reset the FPU/
35487         math optimization pairing.
35488         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
35489         * config/rx/rx.opt: Set the default to 32-bit doubles.
35490         * config/rx/t-rx: Add multilibs for -nofpu option.
35491         * doc/invoke.texi: Update documentation of RX options.
35492
35493 2010-01-06  Richard Guenther  <rguenther@suse.de>
35494
35495         * tree-ssa-pre.c (name_to_id): New global.
35496         (alloc_expression_id): Simplify SSA name handling.
35497         (lookup_expression_id): Likewise.
35498         (init_pre): Zero name_to_id.
35499         (fini_pre): Free it.
35500
35501 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
35502
35503         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
35504
35505 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
35506
35507         PR target/42542
35508         * config/i386/sse.md (smaxv2di3): New.
35509         (umaxv2di3): Likewise.
35510         (sminv2di3): Likewise.
35511         (uminv2di3): Likewise.
35512
35513 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
35514
35515         PR target/42564
35516         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
35517         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
35518         (legitimize_tls_address): Likewise.
35519         (sparc_tls_referenced_p): Likewise.
35520         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
35521         and adjust calls to legitimize_pic_address.
35522         (legitimate_constant_p) Use sparc_tls_referenced_p.
35523         (legitimate_pic_operand_p): Likewise.
35524         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
35525         (sparc_tls_symbol_ref_1): Delete.
35526         (sparc_tls_referenced_p): Make static, recognize specific patterns.
35527         (legitimize_tls_address): Make static, handle CONST patterns.
35528         (legitimize_pic_address): Make static, remove unused parameter and
35529         adjust recursive calls.
35530         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
35531         and adjust call to legitimize_pic_address.
35532         (sparc_output_mi_thunk): Likewise.
35533
35534 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
35535             H.J. Lu  <hongjiu.lu@intel.com>
35536
35537         PR target/42542
35538         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
35539         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
35540         operands to make them signed.
35541
35542         Revert:
35543         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
35544
35545         PR target/42542
35546         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
35547         GTU to GT for V4SI and V2DI.
35548
35549         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
35550         (umin<mode>3): Removed.
35551         (uminv8hi3): New.
35552         (uminv4si3): Likewise.
35553
35554 2010-01-05  Martin Jambor  <mjambor@suse.cz>
35555
35556         PR tree-optimization/42462
35557         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
35558         current_function_decl to helper functions and macros.
35559
35560 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35561
35562         PR bootstrap/41771
35563         * flags.h: Don't include real.h.
35564         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
35565         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
35566         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
35567         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
35568         * dominance.c: Update copyright.
35569         * gimple.c (walk_gimple_op): Remove inline.
35570         * tree-ssa-reassoc.c: Include real.h.
35571         * Makefile.in (FLAGS_H): Remove $(REAL_H).
35572         (tree-ssa-reassoc.o): Depend on $(REAL_H).
35573
35574 2010-01-05  Nick Clifton  <nickc@redhat.com>
35575
35576         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
35577         register to push into the stack frame when the accumulator has to
35578         be saved during interrupts.
35579
35580 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
35581
35582         * doc/invoke.texi: Remove the documentation about option
35583         -Wunreachable-code.
35584         * common.opt (Wunreachable-code):  Preserved for backward
35585         compatibility.
35586         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
35587         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
35588         the backward compatibility flag section.
35589
35590 2010-01-05  Richard Guenther  <rguenther@suse.de>
35591
35592         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
35593
35594 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
35595
35596         PR other/42611
35597         * cfgexpand.c (expand_one_var): Diagnose too large variables.
35598
35599         PR tree-optimization/42508
35600         * tree-sra.c (convert_callers): Check for recursive call
35601         by comparing cgraph nodes instead of decls.
35602         (modify_function): Call ipa_modify_formal_parameters also
35603         on all same_body aliases.
35604
35605         * cgraphunit.c (cgraph_materialize_all_clones): Compare
35606         cgraph nodes when checking for same_body aliases.
35607
35608 2010-01-05  Richard Guenther  <rguenther@suse.de>
35609
35610         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
35611         allocation and lookup.
35612         (get_or_alloc_expr_for_constant): Likewise.
35613         (phi_translate): Sink allocation.
35614
35615 2010-01-04  Richard Guenther  <rguenther@suse.de>
35616
35617         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
35618         a new entry only if needed.
35619         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
35620         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
35621         hashtable lookup.
35622         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
35623         the result array.
35624         (phi_translate): Handle CONSTANTs early.
35625
35626 2010-01-04  Martin Jambor  <mjambor@suse.cz>
35627
35628         PR tree-optimization/42398
35629         * tree-sra.c (struct access): Removed flag grp_different_types.
35630         (dump_access): Do not dump the removed flag.
35631         (sort_and_splice_var_accesses): Do not set the removed flag.
35632         (sra_modify_expr): Check for type compatibility directly.
35633
35634 2010-01-04  Martin Jambor  <mjambor@suse.cz>
35635
35636         PR tree-optimization/42366
35637         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
35638         edges with variable number of parameters.
35639         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
35640         flag instead of asserting it.
35641         (ipa_read_node_info): Read uses_analysis_done flag.
35642
35643 2010-01-04  Richard Guenther  <rguenther@suse.de>
35644
35645         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
35646         iterative_hash_* as intended.
35647         (vn_reference_compute_hash): Likewise.  Simplify hashing
35648         SSA names.
35649         (vn_reference_lookup_2): Likewise.
35650         (vn_nary_op_compute_hash): Likewise.
35651         (vn_phi_compute_hash): Likewise.
35652         (expressions_equal_p): Remove strange code.
35653         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
35654         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
35655         (bitmap_insert_into_set_1): Take value-id as parameter.
35656         (add_to_value): Pass it.
35657         (bitmap_insert_into_set): Likewise.
35658         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
35659
35660 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
35661
35662         PR driver/42442
35663         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
35664         (do_self_spec): For switches with SWITCH_IGNORE set set also
35665         SWITCH_IGNORE_PERMANENTLY.
35666         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
35667         of SWITCH_IGNORE.
35668
35669 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
35670
35671         * lto-streamer-out.c (output_unreferenced_globals): Output the full
35672         tree of an unreferenced global var.
35673
35674 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
35675
35676         PR target/42542
35677         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
35678         GTU to GT for V4SI and V2DI.
35679
35680         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
35681         (umin<mode>3): Removed.
35682         (uminv8hi3): New.
35683         (uminv4si3): Likewise.
35684
35685 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
35686
35687         PR lto/42581
35688         * collect2.c (main): Turn on trace in collect2 if -v is passed
35689         to gcc with LTO.
35690
35691 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
35692
35693         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
35694         description of expression operand.
35695
35696 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
35697
35698         * configure.ac: Add install-html to target_list for Make-hooks.
35699         * configure: Regenerate.
35700         * fortran/Make-lang.in (F95_HTMLFILES): New.
35701         (fortran.html): Use it.
35702         (fortran.install-html): New.
35703         * Makefile.in (install-html): Add lang.install-html.
35704         * java/Make-lang.in (JAVA_HTMLFILES): New.
35705         (java.html): Use it.
35706         (java.install-html): New.
35707         * objc/Make-lang.in (objc.install-html): New.
35708         * objcp/Make-lang.in (obj-c++.install-html): New.
35709         * cp/Make-lang.in (c++.install-html): New.
35710         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
35711         * lto/Make-lang.in (lto.install-html): New.
35712
35713 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
35714
35715         PR lto/42520
35716         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
35717
35718 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
35719
35720         PR rtl-optimization/41862
35721         * store-motion.c (store_killed_in_insn, compute_store_table,
35722         remove_reachable_equiv_notes, replace_store_insn,
35723         build_store_vectors): Ignore all DEBUG_INSNs.
35724
35725 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
35726
35727         PR lto/41564
35728         * common.opt: Add dumpdir.
35729
35730         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
35731         isn't specified.
35732         (option_map): Add --dumpdir.
35733
35734         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
35735
35736         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
35737
35738         * opts.c (decode_options): Try dump_dir_name first if
35739         dump_base_name isn't an absolute path.
35740         (common_handle_option): Handle OPT_dumpdir.
35741
35742         * toplev.c (dump_dir_name): New.
35743         (print_switch_values): Also ignore -dumpdir.
35744
35745         * toplev.h (dump_dir_name): New.
35746
35747 2010-01-03  Richard Guenther  <rguenther@suse.de>
35748
35749         PR tree-optimization/42589
35750         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
35751         double-word expansion of bswap32.
35752
35753 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
35754
35755         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
35756         with BLOCK_FOR_INSN.
35757         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
35758         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
35759         noce_process_if_block): Likewise.
35760         * gcse.c (compute_local_properties, insert_expr_in_table,
35761         insert_set_in_table, canon_list_insert, find_avail_set,
35762         pre_insert_copy_insn): Likewise.
35763
35764         * basic-block.h (BLOCK_NUM): Move from here...
35765         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
35766
35767 2010-01-03  Richard Guenther  <rguenther@suse.de>
35768
35769         PR tree-optimization/42438
35770         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
35771         contains_may_not_return_call flag.
35772         (BB_MAY_NOTRETURN): New.
35773         (valid_in_sets): Trapping nary operations are not valid
35774         in blocks that may not return.
35775         (insert_into_preds_of_block): Remove check for trapping expressions.
35776         (compute_avail): Compute also BB_MAY_NOTRETURN.
35777
35778 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
35779
35780         * doc/invoke.texi: Add 2010 to copyright years.
35781
35782 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
35783
35784         * config/sparc/sparc.c: Fix formatting nits.
35785
35786 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
35787             Alexander Monakov  <amonakov@ispras.ru>
35788
35789         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
35790
35791 2010-01-02  Richard Guenther  <rguenther@suse.de>
35792
35793         PR middle-end/42577
35794         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
35795         (simplify_switch_using_ranges): Mark to be removed edges
35796         as non-executable.
35797
35798 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35799
35800         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
35801
35802         * collect2.c (scan_libraries): Add missing argument in call to
35803         scan_prog_file.
35804
35805 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
35806
35807         PR target/42448
35808         * config/alpha/predicates.md (aligned_memory_operand): Return false
35809         for CQImode.
35810         (unaligned_memory_operand): Return true for CQImode.
35811         * config/alpha/alpha.c (get_aligned_mem): Assert that location
35812         doesn not cross aligned SImode word boundary.
35813
35814 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
35815
35816         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
35817         Remove.
35818         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
35819         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
35820
35821 2010-01-02  Richard Guenther  <rguenther@suse.de>
35822
35823         PR lto/41597
35824         * toplev.c (compile_file): Emit LTO marker properly.  Change
35825         it to __gnu_lto_v1.
35826         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
35827
35828 2010-01-01  Richard Guenther  <rguenther@suse.de>
35829
35830         PR debug/42455
35831         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
35832
35833 2010-01-01  Richard Guenther  <rguenther@suse.de>
35834
35835         PR c/42570
35836         * c-decl.c (grokdeclarator): For zero-size arrays force
35837         structural equality checks as layout_type does.
35838
35839 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
35840
35841         * builtins.c: Update copyright to 2010.
35842
35843 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
35844
35845         PR lto/42531
35846         * lto-streamer-out.c (produce_asm): Revert the last change.
35847         (copy_function): Likewise.
35848
35849         * lto-streamer.c (lto_get_section_name): Skip any leading
35850         asterisk in name.
35851
35852 2010-01-01  Richard Guenther  <rguenther@suse.de>
35853
35854         PR middle-end/42559
35855         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
35856         for LABEL_DECLs.
35857
35858 \f
35859 Copyright (C) 2010 Free Software Foundation, Inc.
35860
35861 Copying and distribution of this file, with or without modification,
35862 are permitted in any medium without royalty provided the copyright
35863 notice and this notice are preserved.